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

✨ Implement White Whale swap adapter #87

Merged
merged 10 commits into from
Feb 7, 2024
Merged

Conversation

thal0x
Copy link
Member

@thal0x thal0x commented Feb 5, 2024

Implements the White Whale swap adapter contract which is essentially the same as the Astroport one with some very minor type differences.

@thal0x thal0x self-assigned this Feb 5, 2024
@thal0x thal0x requested a review from NotJeremyLiu February 5, 2024 19:51
Copy link
Member

@NotJeremyLiu NotJeremyLiu left a comment

Choose a reason for hiding this comment

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

everything lgtm for the most part, waiting on response from bossanova on importance of stable swap pools as well as method of calculating spot price (think we need to take into account more fees), down to approve once he responds / we get clarity

@NotJeremyLiu NotJeremyLiu changed the title Implement White Whale swap adapter ✨ Implement White Whale swap adapter Feb 6, 2024
- all fees are taken from the out asset
- since all ww pools that are live right now are constant product, we could just do out/in asset ratios to get spot price. This may break down as new pool types are introduced. Keeping this amount-based logic in for now
@NotJeremyLiu NotJeremyLiu merged commit 4380bb0 into main Feb 7, 2024
5 checks passed
@NotJeremyLiu NotJeremyLiu deleted the jw/white-whale-adapter branch February 7, 2024 09:23
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.

2 participants