Skip to content

Add Satsuma token prices on Citrea#2

Open
MiguelBits wants to merge 10000 commits into
0xsis:masterfrom
MiguelBits:add-satsuma-citrea-coins
Open

Add Satsuma token prices on Citrea#2
MiguelBits wants to merge 10000 commits into
0xsis:masterfrom
MiguelBits:add-satsuma-citrea-coins

Conversation

@MiguelBits

Copy link
Copy Markdown

Summary

Adds a coins adapter that prices all 12 Citrea tokens held by Satsuma DEX (pools + ICHI vaults). Without this, Satsuma TVL on DefiLlama is ~$0 because no Citrea-native token has a coins API price.

  • Stablecoins (ctUSD, USDC.e, USDT.e, GUSD) anchored at $1
  • Volatile tokens (WCBTC, WBTC.e, wKcBTC, CTR, SUMA, SHITREA, ZNT, s33) derived on-chain from Satsuma Algebra pool globalState() sqrtPriceX96, chaining off $1 anchors

Test plan

  • Verified on-chain: WCBTC ≈ $59.8k, CTR ≈ $0.0108, SUMA ≈ $0.047, GUSD = $1
  • Prices match Satsuma analytics subgraph v1.0.3
  • ts-node coins/src/test.ts other satsuma (run after merge in CI)

Related

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.