The constraint, first
Elysium is an Arbitrum Orbit L2 that settles on HyperEVM. It carries the native coin HYPE and the chain id 99901, and it does not carry the thing every other Hyperliquid-adjacent protocol quietly assumes: the HyperCore precompiles. On HyperEVM the sixteen read precompiles sit at 0x…0800 through 0x…080F and the writer sits at 0x3333…3333. On Elysium all seventeen are empty.
That is not a detail, it is the whole premise. A contract here cannot read a Hyperliquid price, a treasury yield, an invoice, a custodian’s balance sheet or any other fact about the world. It cannot know that a real-world asset exists.
Worse than empty: a staticcall to one of those addresses succeeds and returns nothing. A protocol that read one would not fail loudly — it would decode an empty return as a zero and carry on pricing against it. That failure mode is the reason this memorandum begins with a measurement instead of a claim.
The table below is not a screenshot and not a quotation. Your browser asked the chain for eth_getCode at each address through this site’s own read-only relay, and the byte count beside each one is whatever came back. An address this site could not read is printed unread, which is not the same thing as empty and is never drawn as a zero.
| Address | What it would be | Code | State |
|---|---|---|---|
| asking the chain… | eth_getCode, one call per address | — | — |
Reads leave the browser, cross this site’s own relay and come back by position, so a throttled element of a batch cannot silently become a zero.
The address everyone else calls oracle
Every RWA lending protocol has the problem of §1, because no chain can see a receivable. Most of them resolve it the same way: a storage slot holding an address, named oracle or verifier or attestationRegistry, which some party writes into and the protocol believes. The trust did not disappear; it was given a variable name.
The alternative is not to find a better oracle. It is to stop needing the chain to know whether the asset is real, and instead make the chain record, in HYPE, how much somebody has staked on the claim that it is. That number can be enforced. The claim itself cannot.
The mechanism, in four moves
One. An attestor stakes HYPE and is listed on chain. They sign, under EIP-712, an attestation over a receivable: its face value, its maturity, a hash of the obligor’s identity, a haircut, a deadline and a nonce. The signature is checked in the contract — domain, typehash, low-s, replay, expiry — and Draw.t.sol spends twenty-two tests on nothing else.
Two. A borrower presents that attestation and draws HYPE from the lending pool at the attested face value less the haircut. Interest accrues per second at a fixed rate. Three gates stand in front of the draw and all three are arithmetic: the attestor’s credit, the pool’s utilisation ceiling, and the cap on any one attestor’s book.
Three. The attestor’s stake is the credit. Past maturity plus the grace period, anybody may call declareDefault — it is not a privileged function and there is no one who can decline to call it — and the stake is seized to the lenders up to the size of the loss.
Four. Lenders deposit HYPE and hold internal shares. Loss reaches them only after the attestor’s stake is exhausted. Waterfall.t.sol is sixteen tests about that order and nothing else.
At no point does the contract claim the receivable is real. It states, in HYPE, how much stake says it is — coverageBps(attestor) — and anybody can read that number off the chain without asking this site.
The stake is the credit
Principal outstanding against one attestor may never exceed stakeOf(attestor) × LEVERAGE, and LEVERAGE is two. Said plainly, and this is the sentence most protocols would rather not write: the stake is first-loss capital covering the first half of an attestor’s book, not the whole of it. A total default on a full book leaves lenders short by the rest.
Two is not a marketing number, it is the largest multiple at which the attestor still loses more than the lenders do on a total default. At three the attestor forfeits one third of the loss and the lenders eat two; the ordering of incentives inverts, and with it the entire reason to believe an attestation. The ordering is the mechanism, so the multiple is pinned to where the ordering holds.
It is a public constant, it is readable on chain, and this page prints it with its own name attached so that there is no version of this site on which the number is flattering.
The order a loss arrives in
A waterfall is the only part of a credit structure that cannot be argued about after the fact, so it is written as three bands and tested as sixteen assertions. The attestor’s stake absorbs first, to the size of the loss. The lenders’ shares absorb what is left. There is no third tranche — no insurance fund, no treasury backstop, no protocol-owned cushion that could be quietly spent before anybody noticed it was the thing absorbing the loss.
The accounting is deliberately mean about what counts as an asset. totalAssets is cash plus principal; accrued interest becomes an asset only when it arrives as cash in repay. Booking interest on a receivable this chain cannot see would be exactly the optimism the protocol exists to avoid.
- FirstThe attestor’s stake, seized up to the size of the loss.
Waterfall.t.sol - SecondThe lenders’ shares, for whatever the stake did not cover.
- ThirdNothing. There is no further tranche, and the contract does not pretend there is.
Three ceilings, and what each one buys
Three constants do most of the work of keeping a bad attestation from becoming a bad pool. They are drawn here the way this project draws them on its own banner, because each one is a fraction of something and a bar is the honest shape for a fraction.
A fourth number is a duration rather than a fraction, so it gets no bar. An attestor who wants out waits max(now + UNSTAKE_COOLDOWN, latestMaturity + DEFAULT_GRACE + 1) — three days at least, and never less than the last moment at which a loan their stake backed could still default.
What there is no key for
There is no pause. There is no owner over a balance, a share, a loan or a stake. The one privileged role, curator, can do exactly two things: add a name to the attestor list, and take a name off it. It cannot move a wei. It cannot stop a repayment, a default, a deposit or a redemption. And it can be thrown away forever with renounceCurator().
There is also no receive(). Every HYPE that enters the contract arrives through a function that writes down whose it is, so a donation cannot move the share price and a stray send cannot be mistaken for a repayment. Vault.t.sol checks the forced-balance case too, because selfdestruct does not ask permission.
The invariant suite states the whole of it in one line, and runs it six ways over two hundred and fifty-six runs at five hundred calls deep:
address(cr).balance >= vaultCash + stakePool + feesOwed — the contract never owes more than it holds.Why one judgement is load-bearing
Listing is curated rather than permissionless, and the reason is arithmetic rather than taste. With LEVERAGE above one, anybody who could list themselves could stake S, self-attest, draw S × LEVERAGE, default, forfeit S, and walk away with S × (LEVERAGE − 1).
Open listing and leverage above one cannot both hold. One of them has to give, and this protocol gives up open listing, because leverage above one is the only thing that makes staking behind somebody else’s receivable worth doing at all.
So there is exactly one place where a human judgement is load-bearing, it is named as such in the contract, and its blast radius is bounded by a constant: a malicious curator can list a fraudulent attestor who draws stake × LEVERAGE and defaults, costing lenders stake × (LEVERAGE − 1), and MAX_BOOK_BPS caps that at a quarter of the pool. That is the trust assumption. It is the only one, and it is written here rather than in an audit response.
The chain, measured rather than quoted
Two of the contract’s constants are durations, and a duration only becomes a number of blocks once somebody measures the chain. Rather than quote a block time from a documentation page, this site reads two block timestamps six hundred blocks apart and divides. Everything in the table below was read while this page was open; if an endpoint throttles, the row says so instead of showing a plausible figure.
| Reading | Value | How |
|---|---|---|
| Head block | — | eth_blockNumber |
| Chain id | — | eth_chainId, not a constant in this page |
| Blocks per second | — | two block timestamps, 600 blocks apart |
DEFAULT_GRACE in blocks | — | 24 h in the contract × the pace measured above |
Asking the chain…
A grace period written in blocks would have been a duration in disguise, and it would have drifted the first time the sequencer changed pace. It is written in seconds in the contract; the block count above is only ever this site doing the conversion out loud.
The token, and a sink that ships unarmed
CREDENCE is launched on Montra, Elysium’s pad, like any other launch. There is no ERC-20 of ours in the repository, nothing to pre-mine and no allocation to argue about, because the pad does not have one to give: it mints a fixed supply of 1e27 and refuses any other.
So src/Sink.sol ships unarmed. Protocol fees pile up in HYPE and burn() refuses to do anything at all. arm(token, gauge) is a one-shot, and the only thing it accepts is a token that answers factory() with the pad’s own factory — the one membership proof that does not depend on a list somebody keeps. A launch that is not the pad’s cannot be armed in, not even by the steward.
When it is armed, the buyback has a harder problem than most. Elysium has no Universal Router, so the sink calls PoolManager.unlock itself; and the pad’s pool carries a dynamic-fee hook, so the fee on the way in is whatever the hook says at that moment. The floor therefore comes from src/Gauge.sol, a pull TWAP with four density rules — the previous tick credited, a clamp, a minimum spacing, and consult() reverting outright unless the window is actually covered. If the record is too thin to answer, burn() reverts rather than guessing. Doing nothing is the correct behaviour: the HYPE is still there next block.
What is not done
Stated plainly, because the point of the project is not pretending. This section is longer than the one above it, and that is on purpose.
Nothing is deployed
No address on any chain. The only chain this code has ever touched is a fork, in test/ForkElysium.t.sol and test/ForkMontra.t.sol. Every address on this site that would be a deployment is printed as not deployed, and the word live appears only beside a read of somebody else’s chain.
The share price steps at each repayment
Because unpaid interest is not booked as an asset, a depositor who arrives in the block before a large repayment captures interest they did not wait for. Repayments are unpredictable and each is small relative to the pool, so this is a rounding-scale unfairness rather than an exploit — but it is real, it is not mitigated, and the conservative accounting that causes it is the same accounting that keeps the vault from marking up a receivable this chain cannot see.
A default is final, and a repayment is all-or-nothing
There is no cure period after declareDefault and no way for a borrower to make good afterwards: the loan is closed and the stake is gone. There is no partial repayment either — a loan is repaid in full or it defaults. A partial-repayment path is more accounting surface than it is worth at this size.
The rate does not respond to anything
Fixed at 10% APR. In a fully drawn pool borrowers are underpaying; in an idle pool lenders earn nothing. A curve would be better on both counts and would also be a parameter somebody has to steer. This version prefers the one that can be read.
Conservative to a fault in two places
latestMaturityOf only ever rises, so an attestor who once backed a ninety-day loan waits out that date on every later exit even if the loan was repaid on day two. And redemption can be refused outright: if utilisation is high there may not be cash for a large one, and redeem reverts with NotEnoughCash.
No per-obligor limits
obligorId is recorded and linkable, but nothing is enforced on it, so one attestor can stack their whole book against a single obligor hash. A real deployment would want a cap there and this one does not have it.
Not audited
151 tests and an invariant suite are not an audit, and this memorandum is not a prospectus in the legal sense, an offer, or advice. It is a description of code that anybody can read.
Schedule of terms
Every figure quoted in the twelve sections above is a named public constant of src/Credence.sol, src/Sink.sol or src/Gauge.sol, or a value read off the chain while the page was open. There is no third kind of number here.
The full schedule — each constant, its value, and the justification written next to it in the contract — is set out with the test ledger in the Schedule of terms. The raw reads are in Exhibit A. The source is in the repository, and the only thing this site adds to it is sentences.