Contracts
Four contracts on Base Sepolia. Every number on this page is read from the chain when you load it. Click an address to see the code and every transaction on Basescan.
TenorOracle
0x4b10184467B5A490672EcE6844cDf1b2bDb61ADDChecks each publisher's signature, keeps their latest value, answers with the median and a confidence band.
- Tenor Reference · 0x55c0E3…F7D870 · active
- CME Futures-Implied · 0x5ca27a…7aAEbc · active
- Test Publisher · 0xBb1343…660318 · active
getForward(bytes32 pair, uint8 tenor) → (int256 rate, int256 confidence, uint256 count, uint64 updatedAt) // rate scaled 1e8
submit(pair, tenor, rate, observedAt, signature) // anyone may relay a publisher's signed value
submitBatch(...) // a whole curve in one transactionTenorStaking
0x1aD99Ff7E4A4223aDBDaA3F1A95AF6deE1a392dcPublishers lock a deposit. The judge takes part of it for going dark or publishing off-market. Unstaking waits for a cooldown.
stake(amount) · requestUnstake() · withdraw()
slash(publisher, amount, reason) // judge only, capped by maxSlashBps, slice goes to the treasury
isActive(publisher) → bool // at least minStake locked and no unstake pendingThe judge's rules and every penalty taken are on the Publishers page.
TenorToken (tTNR)
0xA865E9112631e04e294C51D39969A101B47Cd564Test token used as stake. A faucet hands out 1,000 a day to anyone. It has no value and is not a real token.
TenorForward
0x2905AF4C18a1C3000c6927D59931EB0a16cC6C58The first consumer. A cash-settled FX forward: the oracle's forward fixes the rate at the open, the oracle's spot fixes the close on the value date, and the difference is paid in test USDC.
| # | Pair | Side | Notional | Locked rate | Tenor | Value date | Status | P&L |
|---|---|---|---|---|---|---|---|---|
| 0 | EUR/USD | Buy EUR | 10,000 | 1.12174 | 1 Month | 2026-10-05 14:53 | Settled | -16.61 |
open(pair, side, notional, tenor, valueDate) → id // locks oracle.getForward(pair, tenor); client posts 10% margin
settle(id) // on/after valueDate: pnl = notional × (spot − K) / K, paid in tUSDC
markToMarket(id) → (pnl, spot)Open one yourself on the Forward Desk page. No wallet needed on testnet.
How They Fit Together
- Publishers sign curves off-chain. A relayer calls TenorOracle.submitBatch with the signatures. The oracle recovers each signer and keeps only registered publishers.
- TenorStaking holds each publisher's deposit. The judge reads the published history, measures deviation and downtime, and calls slash when a rule is broken.
- TenorForward reads TenorOracle twice: the forward at the open, the spot at settlement. It never talks to the publishers directly.
- tTNR is the stake; tUSDC is the settlement money. Both are test tokens with faucets.
Source, tests and deployment scripts live in the contracts/ folder of the repository; the full write-up is docs/CONTRACTS.md.