Oracle and rate-policy spec: USD3/frxUSD (LlamaLend v2, Ethereum)
No new contract. Three Curve contracts are used unchanged, all pointed at USD3: the share-price oracle, the share-price rate calculator, and the dynamic hyperbolic policy.
oracle = ERC4626EMAOracle(VAULT = USD3, ema_time = 866)
price = min(spot, EMA of spot) # USDC per USD3, WAD; rises smoothed, falls at once
spot = USD3.convertToAssets(1e18)
rate calculator = SyrupUSDCRateCalculator(USD3) # 7 daily records of convertToAssets(1e18)
monetary policy = HyperbolicDynamicMP(controller, rate calculator, 90%, 0.5, 5, 0)
The debt is frxUSD and the price is in USDC. Each USDC counts as one frxUSD, so there is no base
oracle, pool price, aggregator or USDC/USD feed in the stack. frxUSD mints from USDC and redeems to
USDC at Frax's custodian (0x4f95c5ba0c7c69fb2f9340e190ccee890b3bd87c) with no fee either way.
| Input | Address | Notes |
|---|---|---|
| USD3 | 0x056b269eb1f75477a8666ae8c7fe01b64dd55ecc |
3Jane's senior vault, a Yearn V3 tokenized strategy over USDC. 6 decimals; asset() = USDC, 6 decimals. Upgradeable proxy |
ERC4626EMAOracle |
curve-stablecoin ERC4626EMAOracle.vy |
Unchanged. _ema_time 866 s, the averaging time of Curve's stablecoin pools. It only smooths rises, about 0.02% a day here, so its value barely matters |
SyrupUSDCRateCalculator |
curve-stablecoin SyrupUSDCRateCalculator.vy |
Unchanged; live on the syrupUSDC market (0xe6a7bf45f6468f4e938b4a70dfec51f80f2b4526). Its only call on the vault is convertToAssets(1e18) |
HyperbolicDynamicMP |
curve-stablecoin HyperbolicDynamicMP.vy |
Unchanged; the sfrxUSD and syrupUSDC curve |
What to deploy
ERC4626EMAOracle(_vault = USD3, _ema_time = 866).SyrupUSDCRateCalculator(USD3), about a week before the market, withrate_w()called once a day until then. It returns 0 until it holds two records a day apart, and the policy then sits at its 1% floor.HyperbolicDynamicMP(controller, rate calculator, 0.9e18, 0.5e18, 5e18, 0)at market creation.
Checks
- The 1e18 call is right for a 6-decimal vault.
ERC4626EMAOracleneeds the vault and its asset to have the same decimals, so the decimals cancel andconvertToAssets(1e18)is a WAD price. USD3 and USDC both have 6. At block 26,402,928 (13 November 2026) USD3 returns 1189244118964011434, which is its total assets over its total supply, 1.189244. syrupUSDC, which the live calculator reads, is also a 6-decimal USDC vault. AconvertToAssets(1e6)call would return 1189244 and must not be used. - No decimals offset. The oracle doesn't revert on a vault with virtual shares; it reports a price off by the offset. USD3 has none today. Check again at deployment.
price()andprice_w()return the same value in the same block; onlyprice_w()moves the EMA.- Upgrades. USD3 has had seven implementations since August 2025. An upgrade that changed what
convertToAssetsreturns would change the price and the rate with no change to these contracts.
How USD3's share price moves
- Up, smoothly. Profit is reported about every three days and unlocks evenly over about three days, so the share price rises a little every block: 6.6% a year from June to October 2026, with no fall in any hour. The 866 s EMA lags that by a negligible amount.
- Not by donation. USD3 uses Yearn V3's stored accounting, not its token balance, so USDC sent to it doesn't move the share price until a report, and a reported profit unlocks over days. Confirm on the implementation live at deployment.
- Down, at a report. A credit loss lowers the share price only after it is applied at a report: USD3's locked profit is burned first, then sUSD3's holding, and only the rest reaches the share price. The oracle passes that fall through at once, as one step. LLAMMA loses more than the size of an oracle step: at the parameters below a 2% write-down costs a position 4.2% on an untouched AMM, and 2.9% if the step lands within 120 seconds of an oracle read. The loan discount is what absorbs that.
What the oracle doesn't see
- The pool. USD3's price in the USD3/frxUSD pool (
0x7BA89Bc658c07569cfa6d7947adAA80181a24568) doesn't enter. USD3 has traded above its share price in 94% of blocks and never more than 0.034% below it. - A loss before it is marked. 3Jane's contracts mark a missed payment down only after 98 days, then over two years. 99% of the loan book is one protocol-owned account that funds off-chain facilities, and 3Jane records their losses itself. USD3's redemptions return zero while a loss is pending. The market's loan discount is sized for that, not the oracle.
Rate calculator on USD3
Replayed on USD3's share price, every hour from 4 June to 14 October 2026:
| Calls | Reading, a year |
|---|---|
| Once a day | 5.6% to 7.3%, median 6.6% |
| Every 3 days | 6.2% to 6.8% |
| Every 7 days | 6.4% to 6.7% |
It never read at the policy's 1% floor. Borrow rate as a multiple of the reading: 0.5 with nothing borrowed, 0.56 at 50% utilization, 1 at 90%, 1.44 at 95%, 3.1 at 99%, 5 at 100%.
After a write-down the rate drops. _rate returns 0 while the newest share price is not above the
oldest record, so for about a week the policy sits on its 1% floor and borrowers pay 0.5% to 5%,
whatever USD3 yields.
Parameters
A610, 0.3% fee, 0.6% liquidation and 3.5% loan discounts, borrow cap 2,500,000 frxUSD. A and the fee were chosen with:
- the USD3/frxUSD pool's 866 s EMA capped at 1, times the same dampened share price, standing in for stress the share price has never shown;
- syrupUSDC's market price over its exit NAV before June 2026, as USD3's stand-in;
- USDC and frxUSD at $1.
The deployed oracle is the share price alone. Under it a market gap costs a position nothing, so the discounts are not simulated: the liquidation discount is the cost of closing a loan (0.36% to exit through the pool, a day's interest, and the market's gap to the share price), and the loan discount is the syrupUSDC market's. At 3.5% the debt of a maximum-LTV loan stays covered through a 1.7% write-down of the share price. sUSD3 takes the first 7.5% of 3Jane's loan book, so that is a 9.3% loss of the book. The borrow cap is half of the 5.5 million USDC that USD3's instant redemption has stayed above for 90% of the time since June 2026, less a 5% margin, times the maximum LTV.