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

Router v2 stable liquidity #118

Merged
merged 10 commits into from
Sep 26, 2024
Merged

Router v2 stable liquidity #118

merged 10 commits into from
Sep 26, 2024

Conversation

JanKuczma
Copy link
Contributor

Allow adding liquidity to StablePools via Router.

Copy link
Contributor

@ggawryal ggawryal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the approve should be done there, otherwise looks good

amm/contracts/router_v2/stable_pool.rs Show resolved Hide resolved
amm/contracts/router_v2/stable_pool.rs Outdated Show resolved Hide resolved
@@ -234,4 +215,18 @@ impl StablePool {
.position(|&token| wnative == token)
.ok_or(RouterV2Error::InvalidToken)
}

fn handle_token_transfers(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe transfer_tokens_back ?

@JanKuczma JanKuczma merged commit a09a8b2 into router-v2 Sep 26, 2024
1 check passed
@JanKuczma JanKuczma deleted the router-v2-stable-liquidity branch September 26, 2024 09:45
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.

3 participants