WIP: Draft: Persist post-event AMM reserves on GeckoTerminal /gt/events (#684) #1188
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!1188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "684-fix-geckoterminal-gt-events-must-emit-per-event-post-trade-reserves-not-the-live-pair-reserves-snapshot"
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?
Closes #684
Summary
/gt/eventsno longer JOINs the livepair_reservessnapshot onto every swap/join/exit.reserve_0/reserve_1onswap_eventsandliquidity_eventsat ingest (pool-leg math only; hybrid book notional does not move reserves).NULL→"0"). Offlinecl8y-dex-indexer backfill-gt-event-reservesreverse-applies from the current snapshot.Playbook:
skills/AGENTS_INDEXER_GT_EVENT_RESERVES.md(R684-1–R684-8). QA:make verify-issue-684. Parent adapters:make verify-issue-646.Test plan
make verify-issue-684(api_gt T1–T14, backfill I3/I5/I6/A14, invariant grep)make verify-issue-646(routes / form pack still green)cargo test --lib gt+ parser wasm-attr / #285 forged-contract testsindexer_ingestion_hardening,limit_fill_swap_linkage,swap_events_hybrid_columns20260827160000_gt_event_post_reserves.sql, redeploy indexercl8y-dex-indexer backfill-gt-event-reserveson productionreservesAcceptance criteria
reserves(T1)./gt/eventsdoes not SELECTpair_reserves(grep + tests). Solver snapshot loop unchanged."0"; backfill reverse-applies and does not stamp the tip snapshot on every row (I3 / A14).--cleanup-deriveddeletes tape rows atheight >= H(documented + test).scripts/geckoterminal/README.md,make verify-issue-684,#646still green.Not in this MR
reserve_0/reserve_1(optional gold-standard; parser already accepts#285-scoped attrs)./cg/tickersliquidity_in_usd(#685).Closes #684
Closing: --related-issue created an empty branch from main instead of fix/684-gt-event-reserves. Replacing with an MR from the implementation branch.
Pull request closed