Contracts

Every Decayless contract, what it does, who calls it, and where it is deployed on the testnet.

How a chain is deployed

Each chain runs one engine, made of Vault, Auctions, Oracle and SystemControl, deployed together in one stream of transactions. Each contract is deployed against the predicted addresses of the others and the script checks every link, so there is no initializer and no setter to rewire them. Their code and the links between them never change. During the beta the keys can change the fees and the unbond notice, pause entries and bring the end date forward, within the bounds the Security page sets out.

A bug that needs new code is fixed by winding the engine down, so that everyone redeems, and deploying a new engine beside it. Around the engine sit DCL on Ethereum, the art registry on every chain, and the periphery (Router, Lens and StateLens), which holds nothing between transactions and has no admin.

What each contract does

ContractWhat it doesWho calls it
RouterRuns long, close, deposit, withdraw, bid and createMarket, each in one transaction, with native ETH, permits, and entry from any token through Uniswap. multicall runs several in one transaction.Traders and liquidity providers, through the app. A bonded deposit through it goes only to the account that sends it.
VaultHolds the reserve of every market on its chain and runs the engine. Leverage tokens and LP tokens are issued and redeemed here, and LP tokens are its ERC-1155 balances.The Router. Liquidity providers directly to bond, request an unbond and unbond, and to approve the Router.
Leverage tokensOne ERC-20 per tier of each market, such as WETH-USDC-2X.Whoever holds them, in any wallet or on any exchange.
OracleGives the price, a 30-minute time-weighted average from the pair's most liquid Uniswap v3 pool on the same chain.The Vault.
AuctionsHolds the auctioned half of each fee, sells it for DCL, pays liquidity providers their share of each winning bid and burns the rest.Anyone starts an auction. Bidders, directly or through the Router. Liquidity providers claim directly (claim, claimMany).
SystemControlHolds the levers of the keys (pause, changes of the fees and the unbond notice, ossification and shutdown) within the bounds on the Security page.The owner key, and the guardian for the pause alone. Anyone executes a matured request.
DCLThe protocol token, an ERC-20 with permit and burn, minted once at genesis on Ethereum and with no owner.Its holders.
Lens, StateLensRead-only views that compute quotes with the engine's own libraries and give the headroom after a trade and the state the app shows.The app.
PoolMathThe engine's pricing library, linked into Vault.The Vault.
Burn sink, BurnerOn Robinhood Chain the sink collects the DCL to be burned and bridges it to its Burner on Ethereum, which burns it.Anyone.
HubThe art registry, where liquidity providers wrap the DCL they earned into pieces of a collection.Auctions, when a liquidity provider claims into a piece. Creators, which means only the Safe until creation is opened. Anyone, to record the freeze.

Testnet deployments

The testnet at testnet.decayless.fi runs on these contracts. Their source is not yet verified on the explorers.

Sepolia

ContractAddress
Vault0x126d76638e81584138a3537722ADEf480A930376
Auctions0xFe0eFf879A48fe31676078639c9c717Ce01845AB
Oracle0x31BdF76a0072FED7713ce94EB720b4Ad4cE29A89
SystemControl0x2dA90B43cC3ed260aAe38Db2Ad4c6f76E28065b5
PoolMath0xae4d19D3719CC96fFf6B2B9c670BA55Fa87f0b9d
DCL0x8329235f45C9A8fafc34a41153aD91e70b15406b
Burnerburns what Robinhood Chain testnet sends0x730B4433a4a0623A86221C3BFE88CC83cF595949
Router0x648f307d99de401DdD8E5A0F2538e6091c6F33B0
Lens0xa2dd936eD56CEbd66EafAc63759c8F328a94E838
StateLens0x6BF7151B09992A26290FA137b2c68512E97414B0
Hub0x02f7f42F302c7D1E025dbfaecBC8B961B78fE14c

Robinhood Chain testnet

ContractAddress
Vault0x4E38205f993d3cC76c77e3C69519c7f5693fb9a2
Auctions0xD436E7B4134e11E8349E47eA5eC8FAA440c17876
Oracle0xaBF7BFAB0eA0c3807aE6E36C3FbF07EA80152429
SystemControl0xbF4A39048AD1DE470774Ea03D3E6DC86BEe67a62
PoolMath0xcfC8A9885eF3D27647E0AeB4794334fE3F1b45b7
DCLbridged from Sepolia0x8F688A4Be845cb5043C1A26F4B1cCcd02cB37D43
Burn sink0x2778F84485238860a4e5bB110b95166cc1eaBfFC
Router0xbBf903A02Eb3Ff2a5b0667490afD1356378150D1
Lens0xAF3A682FeFfE1a21d6421C4FE15af0B7666f1382
StateLens0xeFB35B533A544D067B0641d65eB33aAE8d39cA5c
Hub0xBc350B485fc2f274794bCb1829F834Ab37D0936E

Source

The source is published and verified on each explorer when the contracts are deployed to mainnet. Until then, investors can ask the team for read access to the repositories.