Tenor

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.

Checks each publisher's signature, keeps their latest value, answers with the median and a confidence band.

Registered publishers
3
Freshness window
24 h
USD/CAD 1M on-chain
—
Last relay
—
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 transaction

Publishers lock a deposit. The judge takes part of it for going dark or publishing off-market. Unstaking waits for a cooldown.

Minimum stake
1,000 tTNR
Stakers
3
Unstake cooldown
7 days
Max slash per call
20%
Judge
0xa83f2…9045a
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 pending

The judge's rules and every penalty taken are on the Publishers page.

Test token used as stake. A faucet hands out 1,000 a day to anyone. It has no value and is not a real token.

Symbol
tTNR
Total supply
10,000,000

The 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.

Forwards opened
1
Desk pool, free
5,000,016.611 tUSDC
Margins held
0 tUSDC
Client margin
10% of notional
#PairSideNotionalLocked rateTenorValue dateStatusP&L
0EUR/USDBuy EUR10,0001.121741 Month2026-10-05 14:53Settled-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

  1. Publishers sign curves off-chain. A relayer calls TenorOracle.submitBatch with the signatures. The oracle recovers each signer and keeps only registered publishers.
  2. TenorStaking holds each publisher's deposit. The judge reads the published history, measures deviation and downtime, and calls slash when a rule is broken.
  3. TenorForward reads TenorOracle twice: the forward at the open, the spot at settlement. It never talks to the publishers directly.
  4. 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.