Skip to content

feat[test]: more curvefi examples #4714

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

AlbertoCentonze
Copy link
Contributor

@AlbertoCentonze AlbertoCentonze commented Jul 6, 2025

What I did

Added a comprehensive collection of Curve Finance contracts as examples, ported from curvefi/curve-core to be compatible with Vyper >=0.4.2.

The contracts can be found in tests/functional/examples/thirdparty/curvefi/ organized by functionality:

  • AMM implementations (stableswap, tricryptoswap, twocryptoswap)
  • Gauge contracts and factories
  • Governance contracts (agents, relayers, vault)
  • Helper contracts (routers, zaps, rate providers)
  • Registry contracts (address provider, metaregistry)
  • Legacy contracts moved to legacy/ directory

⚠️ WARNING: It is unsafe to use these contracts in production as they've been ported to Vyper >=0.4.2 without checking their functional equivalence from the original audited version.

How I did it

Ported contracts from the curvefi/curve-core repository, updating them to work with Vyper >=0.4.2 syntax and features.

How to verify it

CI will attempt to compile these contracts as part of the test suite.

Commit message

feat: more curvefi examples

Description for the changelog

Added Curve Finance contract examples ported from curvefi/curve-core for Vyper >=0.4.2 compatibility

Cute Animal Picture

image

@AlbertoCentonze AlbertoCentonze changed the title feat: more curvefi examples feat[test]: more curvefi examples Jul 6, 2025
Copy link

codecov bot commented Jul 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.02%. Comparing base (b74f825) to head (0e35957).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4714      +/-   ##
==========================================
+ Coverage   93.00%   93.02%   +0.01%     
==========================================
  Files         131      131              
  Lines       19095    19095              
  Branches     3324     3324              
==========================================
+ Hits        17760    17763       +3     
  Misses        898      898              
+ Partials      437      434       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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