reimburse treasury for GAIA top-up + TRON & LTC refunds (replaces write-down)

🔎 Visual review of b831e07b: explainer, review flags and prompts to ask an AI about the change

What and why

Fold three treasury (tcso) reimbursements into Migrate20to21, replacing the earlier phantom-ATOM write-down. migrate20to21Mainnet pays tcso back from the Reserve, atomically (all-or-none), moving no vault, pool or Asgard balance and soft-skipping (returns nil) on insufficient Reserve — a total of 11,768.65313600 RUNE (1176865313600):

  • GAIA vault top-up — 1,161.59587071 RUNE. tcso restored the vault's ATOM backing directly (its books now match its Hub balance), so the old write-down is unnecessary and would strip real, fully-backed ATOM.
  • TRON TRX manual refund — 8,582.42578746 RUNE, the pro-rata portion of the RUNE tcso swapped that matches the TRX the user actually received (repaid in RUNE, no price reconversion).
  • LTC manual refund (ETH paid by Maya Secured Ops) — 2,024.63147783 RUNE, reimbursed to tcso per Itz's decision of 2026-11-05.

The GAIA and LTC amounts are the item's USD value at broadcast ÷ CoinGecko RUNE/USD at that moment; the TRON item is RUNE repaid pro-rata. No ConsensusVersion change — it rides the already-registered slot 20. Per-item txs, USD bases and prices are in the itemised table below.

Self-verification

  • go build -tags mainnet ./x/thorchain/ and -tags mocknet rc=0
  • Migrate20to21GaiaSuite (mainnet) + off-mainnet no-op suite green; gofmt clean; go.mod untouched

Risk

  • Changes consensus, state or funds handling — a Reserve to treasury RUNE send in a store migration
  • Changes Bifrost observation or signing
  • Docs, tests or tooling only

Rollout

Runs at the 20->21 consensus upgrade. No mimir, no new migration slot. Known red gates: goldens (until the goldens-reviewed label) and test-integrity (legitimate removal of the write-down unit tests, replaced by the reimbursement tests).

Reserve → treasury repayments (itemised)

Item Paid from Source tx USD basis RUNE (1e8)
GAIA vault solvency top-up treasury (tcso) ATOM send 025C8E56…04373480 $727 = 515.77 ATOM × CoinGecko ATOM/USD $1.41 1,161.59587071 (116159587071)
TRON TRX refund (board 117) tcso RUNE swap THOR 757BE4A5…290AE pro-rata: 9,000 × 19,357 / 20,298.806458 (TRX delivered/bought), truncated 8,582.42578746 (858242578746)
LTC refund (board 827) mso 0xA388…bC80 (ETH), reimbursed to tcso per Itz 2026-11-05 ETH 0xf47e9979…89b17 (0.48201341 ETH) $1,309.0933 = 0.48201341 ETH × CoinGecko ETH/USD $2715.8856 2,024.63147783 (202463147783)
Total 11,768.65313600 (1176865313600)

RUNE prices (CoinGecko, nearest 5-min point to each broadcast): GAIA RUNE/USD 0.6258631063781314 @ 2026-11-04 14:20Z; LTC RUNE/USD 0.6465834862093985 @ 2026-09-23 14:00Z. All amounts hardcoded in 1e8 for determinism.

Edited by Huginn Ai

Merge request reports

Loading
Loading