Arena prize routing: 100% podiums with 70/20/10 epoch tranches (#300) #440
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega!440
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/arena-prize-routing-300-957c"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements GitLab #300: 100% of DOUB buy proceeds route to podium prize vaults (zero admin take on buys). Each of the four categories receives 25% of every buy, split 70% / 20% / 10% across
podiumEpoch[cat],+1, and+2pools via newfuturePoolsandPodiumEpochFundedevents.topUpPodiumPools(#261) is unchanged.Onchain:
ArenaBuyRouting.splitBuyAmount,PodiumVaults.rollEpochTranches,TimeArena._routeDoubPrizeSplitIndexer:
podium_epochkind +target_epochcolumn, schema 2.7.0Frontend/docs: Fee transparency + AUDIT copy;
INV-ARENA-PRIZE-ROUTING-300-*invariantsRelated issues
Related to #300 · Parent epic #238 · Supersedes buy routing in #249
Layers touched
contracts/)indexer/)frontend/)scripts/,.cursor/, CI)bots/)Verification
forge test --match-test test_buy_routes_doub_splitforge test --match-contract ArenaPrizeRoutingforge test --match-test test_buy_routes_epoch_tranches_worked_exampleforge test --match-test testFuzz_splitBuy_no_dustbash scripts/verify-vault-funding-anvil.shbash scripts/verify-time-arena-buy-router-anvil.shbash scripts/verify-podium-live-anvil.shcd frontend && npm test -- FeeTransparencyforge test --match-test test_topUpPodiumPoolsbash scripts/check-doc-anchors.shcd contracts && forge test --no-match-contract DoubAirdropMegaethForkdoub.csv)cd indexer && cargo clippy --all-targets -- -D warnings && cargo testcd frontend && npm run typecheck && npm run lint && npm testBlockers: none
Verification checklist (3rd parties)
cd contracts && forge test --match-contract "ArenaPrizeRouting|TimeArenaTest::test_buy_routes|test_topUp|test_finalize_warbow|test_roll_promotes"bash scripts/verify-vault-funding-anvil.sh— expect 12podium_epochrows per DOUB buy, 0 admin rowscd frontend && npm test -- FeeTransparency— expect 100% / 70/20/10 copybash scripts/check-doc-anchors.shdocs/testing/invariants-and-business-logic.md#arena-prize-routing-gitlab-300Notes for reviewers
AdminSellVaultinflows post-#300.amount % 4wei → Time Booster (cat 1); within-category remainder → +2 tranche.INV-ARENA-PRIZE-ROUTING-300-*· play skillskills/play-time-arena-doub/SKILL.mdAuthor checklist
Security review (automation)
Commit reviewed:
8c522eda7cb3992e9dc201ab131e04faaee0e1d5Scope: GitLab #300 — 100% DOUB buy routing to podium epoch tranches (contracts
ArenaBuyRouting,PodiumVaults,TimeArena; indexerpodium_epoch/target_epochschema 2.7.0; frontend fee/AUDIT copy; docs/invariants).Outcome:
FINDINGS: 0medium or higher on this diff.Summary
Reviewed added/modified code for injection, authn/authz bypass, permission-boundary mistakes, secret leakage, SSRF/XSS, unsafe deserialization, and onchain fund-routing exploits. Prior MR discussions: none.
splitBuyAmountconservation (fuzz), buy-pathnonReentrant,rollEpochTranchesarena-only gate, zero admin on buyrollPodiumEpoch/ owner pool config (pre-existing governance model).target_epochpersist + API exposuretx_hashparam already normalized.Inline threads
None — no medium+ findings to anchor on specific diff lines.
Automated security review · MR !440 ·
cursor/arena-prize-routing-300-957c→mainmentioned in commit
2398a6a1fcmentioned in commit
574c16ea46