[ developer docs · Arbitrum One index + Sepolia PoC · unaudited ]
Architecture & interfaces
v2.0 · October 2026 · the Arbitrum One index this site reads, plus the Sepolia mint/redeem PoC; §5–§6 are explicit about what is NOT deployed
1. Stack · 2. Live contracts · 3. The oracle flow · 4. Token, mint & redeem · 5. The fund · 6. Governance · 7. Public API · 8. Run it yourself · 9. Verification checklist · 10. Security
1. Stack
off-chain on-chain (Arbitrum, Solidity)
───────── ────────────────────────────────────
Yahoo primary + Sina/Tencent/ PlanetCore ──► PlanetToken (PLT, ERC-20)
Eastmoney confirmations ──► GitHub │ basket, on-chain index, fees, collateral
Actions (hourly) ├──► PlanetTimelock (delayed owner actions)
└──► SignedPriceOracle (M-of-N verifier)
The EVM core is deliberately small: it holds the basket, accepts prices from its authorised relayer, computes the index, and accounts fees. Everything that does not need to be atomic with that lives in a separate contract. Every privileged action is owner-gated, and the owner can be migrated to a timelock (§6) so changes are proposed, delayed, then executed.
2. Live contracts
Arbitrum One (42161) — the live index this site reads
| PlanetCore | 0x61de052af7cb7dc957a07b1e6298152bb851cbbb |
|---|---|
| PLT token | 0xee270802969f0689e3085331d47679bdc5bf4512 |
| Timelock (6 h) | 0xa1fdb9f95210af1d968872f6fc86f623a3e3017c |
| SignedPriceOracle (2-of-3) | 0x0daf541ef7e41402070bc549f91475ab368d1824 |
Minting is disabled on this deployment: it is index-only. Verify on arbiscan.io.
Arbitrum Sepolia (421614) — the mint/redeem proof of concept
Test USDC, no value, nothing listed anywhere.
| PlanetCore | 0xCEcad784A6cEB1aF12c69639a5027D935651F946 |
|---|---|
| PLT token | 0x1Cc00D99F81DBAAAa3734594377b1781f427d12B |
| Timelock | 0xd71CD916A237aB294230D0056ef4BD240e232Cb5 |
| PriceOracle (M-of-N verifier) | 0x116Ca153eA8EdFFBf578C3D8452A3DDBC593eF70 |
Open the Sepolia addresses on sepolia.arbiscan.io, or call eth_call yourself with
the selectors in §9 — no library required.
3. The oracle flow
Planet does not depend on a third-party oracle network. The core accepts prices, checks them and
recomputes the index on-chain. Two ways to authorise a price exist, and which one is live depends on the
deployment: a single relayer key (msg.sender == core.relayer) on the Sepolia PoC, and a
2-of-3 signed pull path (updatePriceSigned) on Arbitrum One, where the relayer slot is locked
to address(0).
- The relayer builds a payload
{index, price, volatility, liquidity, riskState, timestamp}. - On EVM there are two paths. Relayer: no signature is involved — the relayer calls
updatePrice(index, price, volatility, liquidity, riskState, timestamp)directly and authorisation ismsg.sender == core.relayer. Signed pull: anyone may submit a payload plus a quorum of signatures;updatePriceSignedverifies them against the oracle's signer set before the core accepts the price. - The strictly increasing
timestampis the replay guard: every call setslastOracleUpdate, so a repeated timestamp revertsBadTimestamp. Anyone may call it, but only the relayer's call is accepted. - The core checks: caller is the relayer, timestamp is strictly increasing, index in range, basket weights sum to 100%, and the price-jump guard.
- It recomputes the index over the active basket and stores the new value.
On the Sepolia PoC the push runs hourly from GitHub Actions (.github/workflows/evm-push.yml);
on Arbitrum One the pull model means whoever consumes a signed price carries it on-chain. The 6-hour rule
is not cosmetic:
MAX_ORACLE_AGE is 6 hours and mint() reverts StaleOracle past it (measured from
oldestActiveUpdate()), so minting would be closed most of the day on a daily schedule. redeem()
deliberately has no freshness guard: an exit is not blocked by a stale feed.
Which channels, and what happens when they disagree
Four independent venues are read per asset where they cover it: Yahoo (primary), Sina, Tencent and Eastmoney. Today that is 34 channel reads across 14 assets — 12 assets have two or more channels, five have four. Tencent is what makes the four ETFs (lumber/lithium/water/carbon) checkable at all, since Sina does not quote them.
The rule is not "median of everything". The primary sets the price; another channel only
counts as a confirmation if it lands within 0.5%. With no confirmation the reading is
published as riskState=1 (caution) at the primary's price. Averaging a dissenter is how
natgas once ended up at 3.276 when the front month was 3.05: a 1% gap between venues is usually two
contract expiries, not a disagreement about the same instrument. Natgas is now single-source for that
reason, and soybean's Tencent quote (1% off) is rejected rather than blended — both show up as caution.
This is inspectable, not just described: /api/v1/sources lists every channel that answered, its raw reading, the confirmation count and any rejected channel with how far off it was.
The live Arbitrum One write path is the 2-of-3 signed oracle; the single-relayer path is disabled there (locked to address(0)). The Sepolia reference keeps the single-relayer demo path.
The M-of-N verifier is deployed and wired in (updatePriceSigned), and its signer set
is configured with setSigners(address[], uint8) on the oracle. Today it is
2-of-3 with threshold 2 on Arbitrum One; it was raised via setSigners() —
no redeploy.
4. Token, mint & redeem
On EVM, PLT is a plain ERC-20 (PlanetToken). The core is its only minter
(token.minter == core), and the core keeps the supply accounting.
- Mint:
mint(uint64 deposit)pullsdepositof the collateral token (Circle test USDC, 6 decimals) from the caller withtransferFrom, computesdeposit·(1−fee)/indexand mints PLT. It revertsNoTokenwhen no PLT token is wired andNoDepositTokenwhen no collateral is wired, so the core cannot mint against a number it never received, nor take a deposit it cannot tokenise. - Burn/redeem:
redeem(uint64 burnAmount)burns the caller's PLT, pays backburnAmount·index·(1−fee)of the collateral, and decrementstotalReserveby exactly that payout — the fee stays in the reserve. Both calls are on , which previews the contract's own arithmetic.
Fees are band-based (0.5% near the index, 1% at 3–5% off, 2% beyond, plus a below-peg redemption penalty) and split 90% to the reserve / 10% to the risk fund. Nothing is burned and nothing is staked, because no burn function and no staking contract exist.
5. The fund — design, not deployed
PlanetFund is the "real product" shape: subscribers deposit, a custodian set
confirms the purchase at the attested NAV (M-of-N, and shares are minted only on
that confirmation — never on a deposit alone), and redemption is two-phase. Redemption is
trustless about the shares: the subscriber transfers shares to the fund's own
balance, the receipt must come from that balance, the shares are burned, and only then can
the custodian confirm the payout. Shares that never left the subscriber cannot be paid out.
Status: design; there is no Fund contract in the Arbitrum deployment.
6. Governance — timelock live; PLTG is design
- PLTG / PlanetGov — design. There is no governance token or staking contract in the Arbitrum deployment; the reward-per-share and voting mechanics are documented but not live.
- Basket changes are owner actions on the core: append a commodity, re-weight one (15% cap), or retire one by setting its weight to 0. Base prices can never be changed.
- Delay: on testnet the core owner is a 60-second
PlanetTimelock, so every privileged call ispropose → wait → execute. Production intends a multisig as the timelock's owner and a longer delay.
7. Public API
GET /api/v1/status | Live index + full basket + accounting as JSON. Versioned path, ETag + 304, one error envelope, 503+Retry-After when the RPC is rate-limited. |
|---|---|
GET /api/v1/oracle | Is the price feed alive and sane? The age of the last push against the 6-hour limit, the relayer address (single key, no threshold), whether base prices are locked, and — with ?full=1 — the weights check plus frozen/caution commodities and the signer keys. Cheap by default so a monitor can poll it. 503 means "could not read the chain", never a false "healthy". |
GET /api/v1/sources | Every price channel, its reading, and whether it confirmed the primary — the raw material behind each pushed price. |
GET /openapi.json | The OpenAPI 3.1 contract — generate a client from it instead of hand-parsing. |
/api/status | Deprecated alias; replies 308 with Deprecation / Sunset / Link headers. |
The API is read-only by design. There is no endpoint that signs or submits a transaction for you: minting and redeeming happen on-chain, signed by the user's own wallet. A custodial write API would be a funds-risk liability, so it does not exist.
8. Run it yourself
repo layout
monad/ Solidity contracts + tests (Foundry) — the Arbitrum deployment this site reads
src/ PlanetCore, PlanetToken, PlanetTimelock, SignedPriceOracle, PlanetBond
script/ Deploy.s.sol, ConfigureBasket.s.sol
test/ 70 Foundry tests
relayer/ EVM price relayer (node, no third-party oracle)
web/ this site + /dashboard + /faq + /docs + /app + the v1 API
- Contracts:
cd monad && forge test -vv(70 tests; CI runs on every push). - EVM push:
node push-evm.mjs [--dry-run](Yahoo primary + confirmations →updatePrice). - Site/app: static + serverless;
/appinjects the user's wallet and callsmint/redeemdirectly.
9. Verification checklist
- Call
currentPpi(),assetCount(),assets(i),baseLocked(),oldestActiveUpdate()on PlanetCore. - Check
weightSum() == 1000000and no weight exceeds150000(MAX_ASSET_WEIGHT). - Recompute the index from
assets(i)with the formula in methodology §5 and compare tocurrentPpi(). - Compare
oldestActiveUpdate()against the wall clock — it should be minutes, never days, old; that is the timestamp minting gates on. - Confirm
owner()is the timelock, not a plain wallet. - Fetch
/api/v1/statusand confirm the numbers match your own contract reads.
10. Security & disclosure
- Non-custodial. Planet never holds keys or seed phrases; the app asks the user's own wallet to sign. Any message asking for a seed phrase is not us.
- Unaudited. No third-party audit has been completed; that is the gate before any mainnet deployment. Treat the code as research software.
- Known failure modes are tested: fee-bucket totals, token-required mint/redeem, collateral pulled before state changes, signed-payload domain separation, non-positive amount rejection, and a staleness guard on minting.
- Disclosure: see
/.well-known/security.txt.