Repository navigation
Conversation
- 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
marked this pull request as ready for review
November 27, 2026 05:46
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
ChainlinkEMAon the USDC/USD feed (10 observations × 60 seconds, as on wOUSD) is the base ofERC4626EMAWrapperon 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, soconvertToAssets(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;
HyperbolicDynamicMPtargets USD3's realized yield at 90% utilization, with 0.5×/5× ratios and no shift. The yield comes fromDeltaPPSRateCalculator(#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-voteproposes a 2,500,000 frxUSD borrow cap, 10% admin fee, and registration of the vault gauge (type 0, zero weight).deploy.pyandverify.pyfollow the wOUSD scripts. A fork dry run from block 26,501,942 deployed the market and executed the vote.Oracle and rate-policy specification