-
Notifications
You must be signed in to change notification settings - Fork 2
Release 0.2.0 Audit fix #37
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* fix: skip swap if output is zero * fix: swap_out_amount inverted
* fix: potential overflow * chore: use non upcast formula to calc midpoint
* fix: stop swap attempt if sim fail * fix: stop swap attempt if sim fail
* fix: avoid meaningless loop * fix after rebase --------- Co-authored-by: Andrew Nguyen <[email protected]>
* fix: curve & bidask zap in single bin * fix: bidask and curve x0, delta_x formula when delta == 0
* fix: curve reduce precision loss * fix type --------- Co-authored-by: Andrew Nguyen <[email protected]>
andrewsource147
added a commit
that referenced
this pull request
Dec 4, 2025
* init release 0.2.0 * Zap in (#18) * init * update changelog * remove comments * update flow * refactor * care for transfer fee extension * refactor * fix for rate limiter * fix for rate limiter * fix rate limiter * add zapin dlmm * fix based comments * add unit test for dlmm * add unit test in damm v2 * log deposit and remaining amounts after zapin * test/fix zap in (#17) * dammv2 0.1.5 * update test * trigger cicd * low liquidity case * fix liquidity * remove only * cicd * update test * update test * update test * bin array bitmap extension test * fix comments * fix test --------- Co-authored-by: Andrew Nguyen <[email protected]> * support transfer fee (#19) * update readme --------- Co-authored-by: defi0x1 <[email protected]> * allow position to shrink * fix account borrow (#20) * flexible for zap in (#22) * Release 0.2.0 Audit fix (#37) * fix: price diff bps ceil (#26) * fix: validate min max delta (#28) * fix: make sure position not rent payer as well (#30) * fix: use crate defined max basis point (#32) * fix: potential overflow in user ledger (#33) * fix: exp i32::MIN not representable (#34) * fix: skip swap when output is zero amount (#35) * fix: skip swap if output is zero * fix: swap_out_amount inverted * fix: typo and comments (#31) * fix: potential overflow (#27) * fix: potential overflow * chore: use non upcast formula to calc midpoint * fix: return error if unknown fee mode (#38) * fix: stop swap if swap computation fail (#25) * fix: stop swap attempt if sim fail * fix: stop swap attempt if sim fail * fix: binary search (#36) * fix: avoid meaningless loop * fix after rebase --------- Co-authored-by: Andrew Nguyen <[email protected]> * fix: curve and bid ask single bin zap in (#23) * fix: curve & bidask zap in single bin * fix: bidask and curve x0, delta_x formula when delta == 0 * fix: curve reduce precision loss (#24) * fix: curve reduce precision loss * fix type --------- Co-authored-by: Andrew Nguyen <[email protected]> --------- Co-authored-by: kampung-tech <[email protected]> * minor fix (#39) * remove unused import --------- Co-authored-by: defi0x1 <[email protected]> Co-authored-by: kampung-tech <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.