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

feat: general curve meta adapter #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sewinter
Copy link
Contributor

This PR addresses this issue. It creates a general Curve Meta adapter. It passes all tests in curve.spec.js (new test cases are in lines 400+), and it updates the deployment scripts to use a single adapter. Swapping and querying use slightly more gas than with the original meta-pool-specific contract because the contract finds eligible pools given a combination of tokens and uses the one with the best output. Please let me know if there's a gas optimization you'd like me to make.

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.

1 participant