Tranches
— the contract'sTranche struct, field for field — scrolls sideways
| id | pair | denom_collaterallocked per note | denom_debtdrawn per note | live_notes | gen | index_collateral/ RAY | index_debt/ RAY | total_collateral | total_debt | health_bpsmin 12 500 | leverage_bpsshown as × | window | act |
|---|
—
Notes on this desk
— one row per leaf you appended — scrolls sideways| # | tranche | leaf_index | gen | commitment | owner_pkcommitted; revealed by a spend | noncepublished too | collateral nownote_collateral() | debt nownote_debt() | nullifier | state | act |
|---|
Simulator
THIS IS A SIMULATION — no chain, no node, nothing deployed the arithmetic isshield.cairo's, ported
Desk oracle — ETH/USD
Move the price and the two aggregates stop covering the debt. Under
LIQ_HEALTH_BPS = 11 000 anyone may
mark the tranche, which opens a window of
ABSORB_WINDOW_SECONDS = 900 seconds; while it
is open no note can enter, move or leave. Inside it a keeper may
absorb up to MAX_ABSORB_BPS = 2 500 bps
of the debt and is paid LIQ_DISCOUNT_BPS =
300 bps over the odds for it. Both indices move for every
live note at once, in proportion, which is why the keeper has no victim to choose.
Below BPS + LIQ_DISCOUNT_BPS = 10 300 bps a
discounted absorption would lower health, so the contract refuses it rather
than let the collapse be accelerated for a fee. The second button reaches that state
on purpose: the keeper path then reverts, in the contract's own words.
The shielded set
append-only,TREE_DEPTH = 20, 1 048 576 slots
—
Nullifiers burned on this desk
Poseidon / Merkle / engine diff
running in this tab…snforge test test_dump → tools/vectors/dump.txt
The hashes and the arithmetic on this page are only worth looking at if they are the contract's. So the Cairo was made to print every one of them, and this runs the JavaScript against that dump in your browser, now — the field layout, the sponge's padding, all twenty siblings of nineteen paths, the health rule over a price sweep, nine absorptions, and two absorptions followed by an exit settled against generation 0.
| group | assertions | agree | differ | first disagreement |
|---|
Live reads — Starknet mainnet
reading… through/api/rpc, results kept by position
Blackhole has deployed nothing, so there is nothing of ours to read. What is
readable is the two live contracts the Cairo is written against — Integrity's STARK fact
registry and Pragma's oracle — and whether they are there at all is a
starknet_getClassHashAt away. The price below is the one the desk's oracle
opened at.
Does the fact registry answer?
A fact is Poseidon(program_hash, Poseidon(output)). The registry says
whether one has been verified. There is no Blackhole fact and there cannot be
one — no circuit means no program hash and no prover run. These two reads show what a
registered fact and an unregistered one look like, so the shape the Cairo adapter decodes
is the shape mainnet actually sends.
The pad — Launchy v6, read live
The token launches on Launchy, on Starknet: the same chain as the protocol, so
there is no bridge and no second settlement layer between a position and the token that
names it. Read, not quoted — including the deployment fee, which is priced by a Pragma
oracle and moves between the read and the block, and the pool parameters, which
come out of pool_config() of somebody else's most recent launch.
🔴 Nothing here is Blackhole's, and nothing here launches anything.