Skip to main content

Variable-rate vault components (EarnUSDT)

Variable-rate asset flow (EarnUSDT)

Fixed-rate vault components & asset flow (EarnJPYC)

  1. Deposit: Users approve JPYC to Router and call Router.deposit, minting 18-decimal EarnJPYC shares through Teller.
  2. Yield accrual: Each periodic Keeper.poke() advances the confirmed Accountant rate; share counts stay constant while underlying value increases via floor(shares × rate / 10^18).
  3. Withdrawal & settlement: Users approve EarnJPYC shares to AtomicQueue and call safeUpdateAtomicRequest; shares remain in the user wallet (transfer-locked) until AtomicSolver executes redeemSolve, paying JPYC atomically with no separate claim step.
Key points
  • EarnUSDT PPS is denominated in the underlying seCDV token. Apply the seCDV-to-USDT conversion for asset value.
  • Fixed-rate EarnJPYC shares (18 decimals) convert directly via Accountant.getRateInQuoteSafe (18 decimals) at the same block, and pending AtomicQueue shares remain in positionValue until settlement.
  • Wallet accounting includes active investment plus supported unpaid claims. See valuation and earnings equations.
  • Cross-chain operations are asynchronous; preserve observation timestamps and release identity.
Cautions
  • Count the root investment once when combining nested vault and strategy exposures.
  • Quoted values, confirmed reporting balances and indexed observations have distinct timestamps.
  • For EarnUSDT, funding and FIFO reservations determine claim readiness; cooldown alone provides incomplete evidence.

Integration references