Docs · Concepts
What the chain shows
For every Mesa action, exactly what an observer of Solana can read, and what stays sealed.
Mesa runs on a public chain, so everything it does is a transaction anyone can fetch. This page lists what each of those transactions contains.
Deposit and withdrawal
The person’s address, with the amount encrypted.
Everything between
The Mesa address spending notes and creating notes for itself.
Each batch
Clearing prices, opened actions without owners, pool totals.
Never on chainWho placed an order, who holds a position, any balance.
Per action
| Action | Public | Sealed |
|---|---|---|
| Deposit into Mesa | The wallet's address. That it spent Privacy Rings notes. | The asset and the amount |
| Place | That an action entered batch n, and its commitment | The kind of action, its terms, who placed it |
| Open | The action's terms: kind, side, target, amounts, limit | Who placed it |
| Clear | Each market's clearing price and matched volume, the vault's trade, each pool's and perp market's new totals | |
| Settle | The amounts the opened terms imply, moving between notes and Mesa's public vault accounts | Whose notes received them |
| Renew | That a position in some pool or perp market renewed to an epoch's deadline, and the oracle price used | Which position, its collateral, its debt or size, its owner |
| Repay | The amount repaid to a pool | Which position, what remains |
| Close a borrow | The amount repaid to the pool | The collateral returned, the owner |
| Liquidate | The lapsed position's fields, the liquidator's repayment and bonus | The owner |
| Reclaim | That a sealed action of batch n was reclaimed | Its terms, its owner |
| Withdraw from Mesa | The recipient's address | The asset and the amount |
Between deposit and withdrawal
Every Mesa note is owned in the pool by one address, the Mesa authority. From the chain's side, everything between your deposit and your withdrawal is that one address spending notes and creating notes for itself. No instruction takes your address, and the relayer pays the fees, so your wallet signs nothing.
Spent notes are marked by nullifiers, and a nullifier does not reveal which note it spent. An observer cannot follow a balance from the note a deposit created to the order it later funded.
What opens, and when
An action's terms are sealed from the moment it is placed until its batch closes. After the close they are public for good. Nobody can act on an order before its price is fixed, and afterwards everyone can check the price against the orders that made it.
What opens is the action, without the account. Each action is placed from a holder key used once and settles to another used once, so two opened actions cannot be tied to each other.
A position's contents open only if it lapses.
The public accounts
These Solana accounts are readable by anyone, and are what the batch record and the market pages are built from.
| Account | Shows |
|---|---|
Config | Batch length, heartbeat, open window, protocol share, fee recipient, the timelock beacon |
Market | The pair, its vault, its fee, the last clearing price, cumulative volume |
Vault | Reserves, total shares, protocol fees owed |
Pool | Cash, borrows, indexes, total shares, reserves, the rate curve and risk parameters |
PerpMarket | Open interest long and short, the funding index, fees and limits |
Batch | Per target: opened count, clearing price, matched volume, vault trade, pool deltas, oracle price |
A total is the sum of sealed parts. The chain shows a pool's borrows and never a borrower, a vault's shares and never a holder.
At the edges
Moving funds between a public Solana account and a Privacy Rings private balance is a Privacy Rings deposit or withdrawal, and it shows the address, the asset and the amount. Moving between that private balance and Mesa shows the address and encrypts the asset and amount. Mesa on Privacy Rings covers both steps.
Never
The chain never shows who placed an order, who holds a position or a share, or any balance.