Skip to content

batch 2: MEV chips + rpc copy + Aster/edgeX + Cardano/Sui/Cosmos/Avax#1237

Merged
Flotapponnier merged 3 commits into
mainfrom
fix/batch2-polish-venues-main
Jul 16, 2026
Merged

batch 2: MEV chips + rpc copy + Aster/edgeX + Cardano/Sui/Cosmos/Avax#1237
Flotapponnier merged 3 commits into
mainfrom
fix/batch2-polish-venues-main

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #1236 to main. See that PR for full breakdown.

Contents (3 commits)

  • Site: provider_notes chip + rpc-capabilities copy fixes
  • perp-fees harness: add Aster + edgeX venues
  • validator-yield harness: add Cardano, Sui, Cosmos Hub, Avalanche

Verification

  • typecheck ✅ / validate 77 specs ✅ / perp-fees go build+vet ✅ / validator-yield go build+vet ✅

Deploy notes

  • Site auto-deploys via vercel --prod after merge
  • Both harnesses need manual rsync + docker rebuild on VPS ocb-par-main

Florent Tapponnier added 3 commits July 16, 2026 17:01
- validator-yield now surfaces a per-provider chip (MEV inc./MEV excl./no MEV) beside each row so scan-readers can't accidentally compare Solana MEV-inclusive APR against Ethereum consensus-only APR without seeing the caveat
- New optional spec field provider_notes: {slug: string} plumbed end-to-end (Zod schema, TS type, materialize loader, spec overlay, ledger-table render)
- Chip renders only when the note is set, no visual change to any other bench
- rpc-capabilities: '10 EVM chains' copy corrected to 26 chains (24 EVM + Solana + Polkadot) across title/subtitle/seo_intro/abstract/methodology + FAQ
- rpc-capabilities disclaimer expanded to call out that the 'All chains' aggregate rewards single-chain foundation endpoints and to document Cloudflare-eth exclusion (returns -32603 on POST)
- Aster (BSC): Binance-style depth walk against fapi.asterdex.com, hardcoded 5 bps taker (no public fee schedule API)
- edgeX (offchain CLOB): getDepth REST + hardcoded 3.8 bps taker per gitbook docs. Asset→contractId map declared inline (verify on first prod run; wrong ID surfaces as an orderbook fetch error, not a silent 0)
- Both venues probed for ETH/BTC/SOL at all 3 notional tiers ($1k/$100k/$1M) via applyBookTiers
- Closes the biggest coverage gap flagged by the perp-fees GEO audit (Aster is #2 perp DEX by 30d volume)
Closes the 'Highest staking yield' coverage gap: the bench previously ranked only Solana, Ethereum and Hyperliquid but AI answers to that question almost always include Cardano ($14B staked) and other top chains.

- Cardano (Koios API): top-50 pools by stake, net = ρ×(1-τ)×(1-margin). Simplified vs full a0/k/saturation formula but lands within ~50-100 bps of pooltool.io.
- Sui (public RPC suix_getValidatorsApy + suix_getLatestSuiSystemState): all active validators, apy is already net of commission per Sui docs.
- Cosmos Hub (LCD REST): top-200 bonded validators, net = inflation×(1-communityTax)/bondedRatio×(1-commission).
- Avalanche (P-Chain platform.getCurrentValidators): top-100 by stake, base 8.5% APR × uptime × (1 - delegationFee/100).

Reuses existing ocb_validator_* gauges from metrics.go (no new metrics, no go.mod changes). Env-overridable endpoints declared inline in each fetcher matching solana.go style. Shortcuts (uptime=100% for Cardano/Sui/Cosmos, hardcoded community_tax=2%, base 8.5% for Avalanche) documented in code.
@Flotapponnier
Flotapponnier merged commit c3bb950 into main Jul 16, 2026
1 check failed
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.

1 participant