Calculator
Interactive estimates using the exact protocol formulas. Enter human amounts (whole DOHM, USD, ×-multipliers); the math mirrors the on-chain floor division. These are estimates — live chain state (index, reserves, capacity, rate) is what actually executes.
Staking — shares from a deposit
If the index later reaches 1.5, they'd be worth 120 DOHM (unstaking now returns 100 DOHM).
Bond — payout for a deposit
Price 11 ≥ floor 10 — passes the accretion guard.
Rebase & yield estimate
Estimated APY 10.07% (~48 epochs/yr, compounded). Upper bound — assumes the rate holds and no excess cap.
Swap output (constant-product AMM)
Reference formulas
If you want to compute by hand:
Staking — shares = ⌊ deposit × 1e8 / index ⌋; later value = shares × index / 1e8.
Bond (fixed) — payout = deposit_usd × 1e8 / fixed; effective price = deposit_usd / payout.
Bond (curve) — payout = deposit_usd × v_out / (v_in + deposit_usd); curve spot = 1e8 × v_in / v_out.
Rebase rate — rate_eff = rate_max × (ratio − 1) / (target − 1), clamped to [0, rate_max] (0 at ratio ≤ 1×, rate_max at ratio ≥ target).
APY estimate — (1 + rate_eff)^(blocks_per_year / epoch_length) − 1.
Swap output — out = ⌊ in×(1000−fee) × reserve_out / (reserve_in×1000 + in×(1000−fee)) ⌋.