Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: better update fn naming #741

Merged
merged 6 commits into from
Oct 11, 2024
Merged

Conversation

jcompagni10
Copy link
Contributor

@jcompagni10 jcompagni10 commented Sep 24, 2024

Clearer naming for update fns. This eliminates confusion about what the various functions used for updating KV store records do.
Note: because of PRs like this, that add additional event handlers to the save functions it is preferable to use a single update function, so that any future logic/event hooks only need to happen in one place.

UpdateLimitOrderTranche
UpdateLimitOrderTrancheUser
UpdatePool
UpdatePoolReserves

Also, lots of extra comments and small refactoring so that each function is easier to understand.

@jcompagni10 jcompagni10 force-pushed the chore/better_update_fn_naming branch 2 times, most recently from 6b6d06c to 1a50fc9 Compare September 24, 2024 15:01
@jcompagni10
Copy link
Contributor Author

NicholasDotSol
NicholasDotSol previously approved these changes Sep 25, 2024
swelf19
swelf19 previously approved these changes Oct 9, 2024
@jcompagni10 jcompagni10 dismissed stale reviews from swelf19 and NicholasDotSol via dc02518 October 11, 2024 04:04
@pr0n00gler pr0n00gler merged commit b708bd3 into main Oct 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants