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

RouterV2 #117

Merged
merged 34 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5d59aac
add router v2
JanKuczma Aug 27, 2024
d7cd466
optional pool in the swap path
JanKuczma Aug 28, 2024
1c86d41
refactor Pool enum
JanKuczma Aug 28, 2024
39aebdd
missing imports
JanKuczma Aug 29, 2024
16303b3
add simple router_v2 test
JanKuczma Aug 29, 2024
5ec15b1
move pair liquidity methods
JanKuczma Aug 29, 2024
b1fcded
clean up
JanKuczma Aug 29, 2024
63ce13e
remove PoolId
JanKuczma Aug 30, 2024
d8b221e
remove optional pool_id
JanKuczma Aug 30, 2024
4adf0f9
Merge branch 'main' into router-v2
JanKuczma Sep 2, 2024
a3be0c5
fix test
JanKuczma Sep 3, 2024
5b9ca04
Update amm/contracts/router_v2/lib.rs
JanKuczma Sep 4, 2024
db45df5
consistent vec usage
JanKuczma Sep 5, 2024
03b3cd2
make contract permissionless
JanKuczma Sep 16, 2024
bd5b7c1
update tests
JanKuczma Sep 16, 2024
c5b3307
more tests wip
JanKuczma Sep 16, 2024
2dab175
test swap for exact
JanKuczma Sep 17, 2024
82eaade
swap native tests
JanKuczma Sep 24, 2024
55449b2
fix swap native
JanKuczma Sep 24, 2024
106e206
stable pool liquidity methods
JanKuczma Sep 24, 2024
ba7557f
test cache stable
JanKuczma Sep 24, 2024
ea7cc44
stable liquidity tests
JanKuczma Sep 24, 2024
f8a20ed
return surplus of native token on liquidity stable mint
JanKuczma Sep 24, 2024
a0f214f
remove unnecessary check
JanKuczma Sep 25, 2024
c6f8d77
rm commented code
JanKuczma Sep 25, 2024
f2e9ea8
rm InvalidPath error
JanKuczma Sep 25, 2024
58583b8
throw correct error when pair address is invalid
JanKuczma Sep 25, 2024
65de0c6
Merge branch 'router-v2' into router-v2-stable-liquidity
JanKuczma Sep 25, 2024
eff301a
extract code to fn
JanKuczma Sep 25, 2024
b02cb14
remove unecessary checks
JanKuczma Sep 25, 2024
779f4b4
refactor withdraw function
JanKuczma Sep 25, 2024
836d435
rename functions
JanKuczma Sep 25, 2024
3222cff
rename fn
JanKuczma Sep 26, 2024
a09a8b2
Router v2 stable liquidity (#118)
JanKuczma Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading