Skip to content

Configure USD3/frxUSD LlamaLend v2 market - #267

Open
dudesahn wants to merge 4 commits into
curvefi:masterfrom
dudesahn:USD3-deploy
Open

dudesahn wants to merge 4 commits into
curvefi:masterfrom
dudesahn:USD3-deploy

Conversation

@dudesahn

@dudesahn dudesahn commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploy USD3/frxUSD LlamaLend v2: A610, 0.3% fee, 3.5% loan discount, 0.6% liquidation discount.

Oracle: USD3's share price times USDC/USD. ChainlinkEMA on the USDC/USD feed (10 observations × 60 seconds, as on wOUSD) is the base of ERC4626EMAWrapper on USD3 with an 866-second EMA. Share-price increases are smoothed; decreases pass through immediately; failed vault calls revert. The USDC/USD EMA has no staleness check: a stopped feed keeps its last answer. USD3 and USDC both have 6 decimals, so convertToAssets(1e18) is a 1e18-scaled price. frxUSD is valued at $1. The linked specification has no USDC/USD leg; this follows the syrupUSDC and wOUSD markets instead.

Unlimited supply; HyperbolicDynamicMP targets USD3's realized yield at 90% utilization, with 0.5×/5× ratios and no shift. The yield comes from DeltaPPSRateCalculator (#269) deployed on USD3. create() stores its first record and the borrow cap stays zero until the vote executes, so the first borrow reads about a week of yield and the specification's separate seeding step is not needed.

--create-vote proposes a 2,500,000 frxUSD borrow cap, 10% admin fee, and registration of the vault gauge (type 0, zero weight).

deploy.py and verify.py follow the wOUSD scripts. A fork dry run from block 26,501,942 deployed the market and executed the vote.

Oracle and rate-policy specification

- deploy.py: share-price oracle, rate calculator, dynamic rate policy, market, vault gauge and optional activation vote
- verify.py: etherscan verification of the three deployed contracts
- oracle: ChainlinkEMA on USDC/USD (10 x 60 s, as on wOUSD) under ERC4626EMAWrapper on USD3
- verify.py: the Solidity EMA and the wrapper replace ERC4626EMAOracle
- deploy.py and verify.py: DeltaPPSRateCalculator replaces SyrupUSDCRateCalculator, which master renamed
@dudesahn
dudesahn marked this pull request as ready for review November 27, 2026 05:46

This branch has not been deployed

No deployments
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