Commit 117e7d5
Release 0.2.0 (#15)
* 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 <cuong.hv.dtvt@gmail.com>
* support transfer fee (#19)
* update readme
---------
Co-authored-by: defi0x1 <34453681+defi0x1@users.noreply.github.com>
* 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 <cuong.hv.dtvt@gmail.com>
* 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 <cuong.hv.dtvt@gmail.com>
---------
Co-authored-by: kampung-tech <tian@raccoons.dev>
* minor fix (#39)
* remove unused import
---------
Co-authored-by: defi0x1 <34453681+defi0x1@users.noreply.github.com>
Co-authored-by: kampung-tech <tian@raccoons.dev>1 parent c171942 commit 117e7d5
61 files changed
Lines changed: 39876 additions & 23015 deletions
File tree
- .github/workflows
- fixtures
- idls
- libs/dlmm
- src
- programs/zap
- src
- instructions
- zap_in_dlmm
- math
- state
- tests
- dlmm_rebalancing_tests
- utils
- tests
- common
- endpoints
- idl
- transferHook/idl
- fixtures
- test_zapin
- test_zapout
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments