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

add tricrypto deployments #28

Merged
merged 11 commits into from
Jan 15, 2024
Merged

Conversation

bout3fiddy
Copy link
Collaborator

@bout3fiddy bout3fiddy commented Jan 15, 2024

re-adds the original implementation back (CurveTricryptoOptimizedWETH.vy) which is the implementation that allows native token transfers. Adds an additional implementation contract (CurveTricryptoOptimized.vy) that disallows native token transfers, has exchange_received, does not expose claim_admin_fees, and fees are collected in individual tokens.

The original tricrypto-ng implementation CurveTricryptoOptimizedWETH is at index 0 of all factories. the new tricrypto-ng implementation CurveTricryptoOptimized is at index 1, but only for factories that are not on Ethereum. This is because of a small bug in the ethereum factory where there is no getter for pool's implementation contract address, but it exists for layer2 factories.

Users can still create AMM pools without native token transfers by setting _weth to zero address.

@bout3fiddy bout3fiddy merged commit 49a99c6 into curvefi:main Jan 15, 2024
2 checks passed
@bout3fiddy bout3fiddy deleted the feat/update_impls branch January 15, 2024 16:42
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