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

Adding Curve support #34

Merged
merged 2 commits into from
Jun 14, 2022
Merged

Adding Curve support #34

merged 2 commits into from
Jun 14, 2022

Conversation

diwu1989
Copy link
Contributor

@diwu1989 diwu1989 commented Apr 29, 2022

Contracts to support curve 3/4-pools
Curve interface created from ABI of https://blockscout.com/xdai/mainnet/address/0x7f90122BF0700F9E7e1F688fe926940E8839F353/contracts

PairCurve deployed at
https://blockscout.com/xdai/mainnet/address/0x404CF071C7Df717aa8367f86546d9268B652D82d/contracts

Once i'm confident of the typescript logic correctness, I'll open a PR for the other portion. The existing stableswap math can be refactored a little to be re-used between the PairCurve and PairStableSwap

@diwu1989
Copy link
Contributor Author

Smart contract seems to work fine, successful transfers:
https://blockscout.com/xdai/mainnet/address/0x404CF071C7Df717aa8367f86546d9268B652D82d/token-transfers

@zviadm zviadm merged commit 4cb938a into terminal-fi:main Jun 14, 2022
@diwu1989
Copy link
Contributor Author

The math also works fine against the 3-pool over on Optimism, successful swaps
https://optimistic.etherscan.io/address/0x0b7365a90d7db99c9d52d27c23d9891abd5a1557#tokentxns

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