Docs / Protocol

Contracts

Soter runs on Elysium (chain id 99901, gas in HYPE). USDC is 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65.

ContractRole
SoterPoolPool shares, covers, signed quotes, caps, claims, disputes, settlement
SoterStakingStake $SOTER, receive the protocol share in USDC, cover discount tiers
WickMathTouch probability and the normal tail, used by the pool
ContractAddress on Elysium
SoterPool0x712c2BB6c3a931869A33DE52F3686412AEf83763
SoterStaking0x92d47f3cf1DdDaB0982f056aA9f4a7B8f4325AF6
USDC0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65

Main functions

deposit(uint256 assets, address receiver) returns (uint256 shares)
withdraw(uint256 shares, address receiver) returns (uint256 assets)
quotePremium(Quote q, bool isLong, uint128 liqPx, uint128 margin, uint8 term, address buyer) view
buyCover(Quote q, bytes sig, bool isLong, uint128 sizeE8, uint128 liqPx, uint128 margin, uint8 term, uint256 maxPremium)
buyCoverWithPermit(..., uint256 deadline, uint8 v, bytes32 r, bytes32 s)
proposeClaim(uint256 coverId, ClaimData d)
dispute(uint256 claimId)
settle(uint256 claimId)
expire(uint256 coverId)
voidStale(uint256 claimId)

Prices use 8 decimals, USDC 6. The quote type is Quote(uint16 market,uint128 markPx,uint32 volBps,uint32 recoveryBps,uint40 issuedAt) in the EIP-712 domain Soter, version 1.

Owner functions

setKeeper, setMarket, setParams, setStaking, resolve, two-step ownership, and sweep / sweepToken, which move the protocol share and stray tokens only: underwriter assets, locked collateral and bonds are never swept.

Tests

56 unit and fuzz tests and 6 tests on a fork of Elysium with the real USDC, including the permit path, every claim rule for longs and shorts, disputes both ways, voiding, expiry and a fuzzed sweep that never touches user money.