UHI9 capstone · HK-UHI9-0888 · Impermanent Loss & Yield Systems

the console

One balance sheet, held at L = 2.

simulatedwallet offlineBalanced
Preview

The contracts pass 82 Foundry tests locally; devnet deployment is pending. Every number below is simulated and marked. Set NEXT_PUBLIC_YB_HOOK_ADDRESS after deployment and this console flips to live contract reads.

your position

sim

yb shares

0

position value

$0

Connect a wallet from the top bar to manage a position.

mints (preview)2,834 yb shares

priced onpool NAV at the Chainlink price

deposit(rawCollateral, minShares, deadline)

balance sheet

sim

50.32%

loan-to-value · target 50.00% ± 2.5%

At 50% LTV the discriminant collapses and pool value is exactly c/2, linear in price. The band is where cron decides to skip.

40%47.5% · target · 52.5%60%

wethCollateral

128 WETH

Euler eWETH-1 supply

usdcDebt

$183,150

Euler eUSDC-1 borrow

usdcInventory

$182,400

stable side, same account

NAV

$363,218

collateral - debt + inventory

automation

sim

pendingRebalance()

(false, 0)

inside band, cron skips

Kill switch

off

solvency watcher can pause

Oracle

12s old

staleness gate reverts

what the feed will look like

  • cronHeartbeat read pendingRebalance() · inside band · skip
    block n
  • swapWETH in, USDC out · paid from stable inventory
    block n - 41
  • driftLTV 52.61% · repay callback dispatched · replay key burned
    block n - 187
  • deposit4.20 WETH supplied · shares minted on NAV
    block n - 310