feat(indexer): virtual CG/GT pairs so native LUNC and USTC can be priced #1437

Closed
opened 2026-10-07 02:39:21 +00:00 by PlasticDigits · 1 comment
Owner

Summary

Add five listing-only virtual pairs to the CoinGecko (/cg/*) and GeckoTerminal (/gt/*) adapters so those crawlers can price native Terra Classic assets. The pairs are not factory pools, must not be stored as pairs, and must not appear on any other API.

CoinGecko and GeckoTerminal build that price from the swap and event feeds, not from pair metadata alone. Each published virtual market must show swap rows on GET /gt/events and buy/sell prints on GET /cg/historical_trades, in the same JSON shapes as a factory pair. Ticker volume, high, low, and last price are those swaps.

Legs (base / target):

Virtual market Base Target
Wrap peg cLUNC CW20 terra1437qslye72t7qmmahn4t5chz50r8a62g45phwkquwpyu2l62u6ksqssgdg bank uluna
Wrap peg cUSTC CW20 terra1nap4dxh9tv35v0ynd9m4k6zt6c0dq6weszc4j5m564kjls56hu7qcr56ch bank uusd
Native cross bank uluna bank uusd
Native vs pinned USDT bank uluna USDT CW20 terra1z0xe7t5ymmltg4vju8tghkq0pewy4et548ta23nlu9zxtl950uyqkv8mv4 (18 decimals)
Wrapped LUNC vs native USTC cLUNC CW20 (same pin) bank uusd

Identity is the contract or denom above, not the ticker string. cLUNC / clunc in the request are the same CW20.

Current codebase

Factory pairs are CW20/CW20. Native LUNC and USTC enter pools only after the wrap mapper turns uluna into cLUNC and uusd into cUSTC. Create-pair does not list uluna or uusd as selectable legs. Indexed rows live in pairs and are served by GET /api/v1/pairs.

CoinGecko exchange shape (indexer/src/api/cg.rs, docs in docs/CG_CMC_COMPLIANCE.md):

  • GET /cg/pairs walks get_all_pairs, skips gem / ALPHA / USTRIX / SpaceUSD via pair_is_listing_excluded, and returns a top-level array of { ticker_id, base, target, pool_id }. ticker_id is {asset_0.symbol}_{asset_1.symbol}. pool_id is pairs.contract_address.
  • GET /cg/tickers uses the set-based aggregator snapshot (default limit 100, 60s cache). base_currency / target_currency are the CW20 address or the bank denom. last_price / bid / ask / high / low and liquidity_in_usd come from indexed swap stats, reserve stamps, and pair_liquidity_usd. Volumes are consolidated swap totals. cl8y_extensions is always present.
  • GET /cg/orderbook and GET /cg/historical_trades resolve ticker_id through find_pair_by_ticker (indexer/src/api/mod.rs), which maps symbol pairs onto pairs.contract_address and skips duplicate tickers (L685-7). Historical trades then load swap_events for that pair id and split buy/sell with offer_asset_id == asset_1 (buy = offer is the target). Volumes and trade_id are the stored swap row. The orderbook path can call LCD for the pair contract. limit max is 500.

GeckoTerminal Integration API (indexer/src/api/gt.rs, #646 / #684 / #694):

  • GET /gt/pair?id= loads pairs by contract address. Unknown or excluded ids are 404. Response is { pair: { id, dexKey: "cl8y", asset0Id, asset1Id, createdAtBlockNumber, createdAtBlockTimestamp, feeBps } }. Asset ids are CW20 addresses or denoms. There is no pair-list route.
  • GET /gt/events is how GT discovers pools and prices them. Rows are real swap_events and liquidity_events only. A swap carries txnId, txnIndex, eventIndex, maker, pairId, asset0In / asset1In / asset0Out / asset1Out, priceNative, and post-event reserves. Amounts are decimalized. reserves are persisted post-event AMM reserves (#684). Combined factory rows are capped at 5000 (over-cap is HTTP 400, no truncation). Block span max is 2000.
  • Wrap and unwrap are indexed as mapper fees (notify_deposit / unwrap on the pinned mapper), not as swap_events. They never appear on /gt/events or /cg/historical_trades.
  • GET /gt/asset?id= loads assets by contract or denom. coinGeckoId is set for the CL8Y CW20 (ceramicliberty-com) and otherwise from assets.coingecko_id.

Native asset symbols in the indexer are LUNC and USTC, not the denoms (#630). A real cLUNC/cUSTC pool is the economic source for an LUNC/USTC cross. Columbus-5 form pin: terra15rl8g308yzzt5kxu4skgwlahrvm8adyv0s2cupsmvte0akgs2ttsszau38. USDT pricing elsewhere is an advisory $1 catalog pin (#1258) and must not be reused as a DEX print.

/cmc/*, GET /api/v1/pairs, DeFiLlama daily, route solve, candles, trader volume, and protocol_pair_tvl all read the same pairs / swap_events tables. Anything inserted there becomes a real market.

Why this is needed

CoinGecko and GeckoTerminal build a token price by walking pool edges. Our traded markets are denominated in cLUNC and cUSTC. The crawlers have no edge from those CW20s to bank uluna and uusd, so they cannot publish a native LUNC or USTC price from CL8Y liquidity. They also asked for uluna/uusd, uluna/usdt, and cLUNC/uusd so the native coins connect to each other and to pinned USDT.

Those five markets do not exist on-chain. The adapters have to present them in the same JSON shapes the crawlers already parse, including the swap objects inside /gt/events and /cg/historical_trades. A pair row with no swaps is invisible to their pricer. The rest of the DEX keeps treating the markets as absent.

Constraints and guardrails

  1. Listing surfaces only. Emit the five markets from GET /cg/pairs, GET /cg/tickers, GET /cg/orderbook, GET /cg/historical_trades, GET /gt/pair, GET /gt/asset (ids and coinGeckoId only), and GET /gt/events. Do not add them to /cmc/*, /api/v1/pairs, pair detail, candles, trades, stats, route solve, DeFiLlama, protocol TVL, protocol fees, hub prices, or the dApp.
  2. No factory row. Do not insert into pairs, swap_events, liquidity_events, pair_reserves, pair_liquidity_usd, or candles. Pair discovery must ignore the virtual ids. A listing-only projection table is allowed for wrap principal that is not already stored. Fee routes, trader volume, and DeFiLlama must not read it.
  3. Same JSON, no extra discriminator. Each virtual object uses the existing response struct and the same field names and types as a factory pair. Do not add virtual, synthetic, or a wrapper object. /cg/pairs and /cg/tickers stay top-level arrays. /gt/pair stays { "pair": { ... } } with dexKey cl8y.
  4. Stable opaque ids. pool_id and GT pair.id are fixed strings, one per market: cl8y-virtual:clunc-uluna, cl8y-virtual:custc-uusd, cl8y-virtual:uluna-uusd, cl8y-virtual:uluna-usdt, cl8y-virtual:clunc-uusd. They are not bech32 and must never equal a pairs.contract_address. Every handler that loads a pair by address rejects the cl8y-virtual: prefix with the same 404 it uses for an unknown contract, before LCD or SQL.
  5. Allowlist by pin, not by symbol. Legs are the columbus-5 pins in indexer/src/config.rs (DEFAULT_HUB_CLUNC_ADDRESS, DEFAULT_HUB_CUSTC_ADDRESS, DEFAULT_USDT_CW20_ADDRESS) plus denoms uluna and uusd. Env overrides that the indexer already uses for those pins apply. A CW20 whose symbol is cLUNC, LUNC, or USDT at any other address is not a leg. LocalTerra addresses that are not in assets cause that one virtual market to be omitted, not a 500.
  6. Ticker strings match real rows. /cg/pairs base, target, and ticker_id use assets.symbol on the pinned rows (natives are LUNC and USTC, so the expected ids are cLUNC_LUNC, cUSTC_USTC, LUNC_USTC, LUNC_USDT, cLUNC_USTC). /cg/tickers base_currency and target_currency are the contract or denom, same as factory rows. Do not put uluna in base when the indexed symbol is LUNC.
  7. Honest price, no second convention. last_price is human target-per-base, the same orientation as close_price for a factory pair with that asset order. Bid/ask use listing_spread (reserve mid ± fee, BigDecimal). No f64. No scientific notation (format_dec). USDT’s 18 decimals stay on the USDT side.
  8. Swaps use the existing event objects. This is the feed CoinGecko and GeckoTerminal asked for.
    • GET /gt/events includes eventType: "swap" for each projected fill. The object is GtEventBody::Swap: txnId, txnIndex, eventIndex, maker, pairId, asset0In / asset1In / asset0Out / asset1Out, priceNative, reserves. pairId is the opaque virtual id. Amounts go through the same decimalize + format_dec path as factory swaps. priceNative is the same human target-per-base number as ticker last_price for that print. reserves are the virtual pool balances after that swap. No extra fields. Do not emit a zero-amount join in place of a swap.
    • GET /cg/historical_trades returns buy and sell arrays of CgTradeEntry for the virtual ticker. Buy/sell uses the factory rule (offer is the target leg → buy). type and limit (max 500) behave as they do now. trade_timestamp stays Unix seconds. Build the entry with the same field assignment as cg_historical_trades, so raw-vs-human units cannot drift from factory rows.
    • GET /cg/tickers base_volume, target_volume, high, low, and last_price are the 24h projected swaps, aggregated the same way as factory consolidated volume (each projected swap once). cl8y_extensions stays the same struct: consolidated: true, book leg "0", pool-only count and pool leg equal to the projected swaps. liquidity_in_usd is the in-memory USD of the virtual reserves using the factory stamp helper. Do not write that number into pair_liquidity_usd.
    • txnId is the real chain tx hash. maker is that tx’s sender. Block height and timestamp are that tx’s block. trade_id is stable for the source event and unique within the virtual ticker.
  9. One real tx, one projected swap per market. Do not invent a fill that has no indexed source tx.
    • Peg markets (cLUNC/uluna, cUSTC/uusd). Each real wrap or unwrap at the pinned mapper is one swap. Wrap is native in, wrapped out. Unwrap is wrapped in, native out. Amounts are principal, not the captured fee. Human price is the principal rate (1 per 1). A notify_deposit / unwrap from any other contract is ignored, same fail-closed rule as protocol-fee ingest.
    • Cross markets. Each factory swap on the source pair is one virtual swap in the same block and tx. Translate amounts through the peg rates into the virtual leg order. uluna/uusd and cLUNC/uusd use the pinned cLUNC/cUSTC pool. uluna/usdt uses the pinned cLUNC/USDT pool. A reversed source asset order inverts once. An 18-dec USDT leg stays on the USDT side.
    • The factory row for that tx is unchanged and still emitted. The virtual row is additional: same txnId, different pairId. eventIndex is unique per (block, txnId) across the combined response.
    • No swap with a zero amount or zero price. No copy of source joins/exits. No second copy of the same source swap.
    • The #694 cap counts factory rows only (event_count > 5000 is HTTP 400). A window at or under 5000 factory rows stays HTTP 200, then the projected swaps for source events inside that window are appended. Those extra rows must not flip the window to 400 and must not drop a factory row. A window above 5000 factory rows stays 400 and includes no virtual rows.
  10. Price sources, fail closed.
    • cLUNC/uluna and cUSTC/uusd. Human price is the wrap principal rate. Principal wrap is 1 human wrapped per 1 human native; the captured mapper fee is not a second price. GT feeBps is omitted unless the mapper’s configured wrap fee is already known without an LCD call on the request path. Reserves are the mapper’s custodied native balance on one side and the same human amount on the other (1:1 backing). Unset mapper, zero custody, or missing asset → omit the market. Do not publish price 1 with zero reserves.
    • uluna/uusd. Source is the factory pair whose legs are the pinned cLUNC and cUSTC contracts, highest pair_liquidity_usd, excluding listing-excluded pairs. Price is that pool’s human price composed with the two peg rates. Read asset order from pairs; do not assume cLUNC is asset_0. Missing source or either peg → omit.
    • cLUNC/uusd. Same cLUNC/cUSTC source, composed with the cUSTC/uusd peg only.
    • uluna/usdt. Source is the factory pair whose legs are pinned cLUNC and pinned USDT, highest pair_liquidity_usd. Compose with the cLUNC/uluna peg. No such pool → omit. Do not price this market from the #1258 advisory $1, the LUNC CEX oracle, or hub prices.
  11. CoinGecko ids on /gt/asset only. uluna → terra-luna-classic. uusd → terraclassicusd. Pinned USDT → tether. Do not use terra-luna, terra-luna-2, or terrausd. Do not copy the native id onto cLUNC or cUSTC. Other assets stay as they are.
  12. Exclude list stays lockstep. Virtual legs must not be gems, ALPHA, USTRIX, or SpaceUSD. Virtual rows do not bypass pair_is_listing_excluded for real pairs.
  13. Pagination and cache. Append virtual rows after the real /cg/pairs list in the fixed table order, then apply the existing limit/offset. On /cg/tickers, append only markets that are published, after the volume-sorted real page, without changing the real rows’ order, and include them in the 60s aggregator cache payload. Ticker-map cache must resolve virtual ticker ids to the opaque id and must not let a virtual id replace a real pair or the reverse.
  14. Ticker collision. If a real pair already owns that ticker_id with different legs, keep the real pair, omit the virtual market from CG ticker lookup, and log once. Do not shadow a factory market. Today none of the five symbol pairs should exist as factory pairs.
  15. No new admin knobs. Prices are derived. No HTTP route edits reserves, volume, or the allowlist.

Relevant files

  • indexer/src/api/cg.rs — pairs, tickers, orderbook, historical trades
  • indexer/src/api/gt.rs — pair, asset, events, row cap
  • indexer/src/api/mod.rs — find_pair_by_ticker, route table
  • indexer/src/api/aggregator_snapshot.rs — set-based ticker load and cache key
  • indexer/src/api/listing_spread.rs — bid/ask and liquidity_in_usd
  • indexer/src/api/consolidated_stats.rs — cl8y_extensions
  • indexer/src/api/cmc.rs — must stay free of virtual rows
  • indexer/src/indexer/listing_exclude.rs — shared exclude list
  • indexer/src/config.rs — hub and USDT pins, WRAP_MAPPER_ADDRESS
  • indexer/src/db/queries/pairs.rs — factory pair load; do not persist virtual ids here
  • docs/CG_CMC_COMPLIANCE.md, docs/indexer-invariants.md
  • docs/listings/forms/geckoterminal.md — list the five opaque ids in the remark so GT can bind them
  • Tests beside indexer/tests/api_aggregator_batch.rs, GT adapter tests, and listing_exclude tests

Add a small pure module, for example indexer/src/api/listing_virtual_pairs.rs, that holds the five definitions and builds responses from pins plus already-loaded factory state. Call it only from the CG and GT handlers after the real query succeeds.

  • Project peg swaps from indexed wrap and unwrap principal at the pinned mapper (custodied balance is the reserve). If principal is not stored, extend that ingest into the listing-only projection. Do not LCD-query inside /cg/tickers, /cg/historical_trades, or /gt/events.
  • Project cross swaps from the source factory pair’s swap_events. Translate each fill’s amounts, price, and post-swap reserves into the virtual leg order. The source row stays in the factory event stream.
  • Teach find_pair_by_ticker to return the opaque id for a published virtual ticker. cg_orderbook and cg_historical_trades must branch on the cl8y-virtual: prefix before simulate_orderbook_cached or any LCD client. Orderbook: same CgOrderbookResponse shape, timestamp in Unix milliseconds, one bid and one ask at the latest projected price, sizes from the post-swap reserves, depth still capped by cap_orderbook_depth. Historical trades: the projected swaps for that ticker, mapped by the existing buy/sell loop (HTTP 200). An unpublished ticker stays 404.
  • gt_events maps projected swaps through the existing swap arm (GtEventBody::Swap). gt_pair returns the GtPair struct for a known virtual id (created block/timestamp from the first projected swap, else the source pair, else the indexed tip). feeBps omitted unless rule 10 supplies it.
  • Keep CMC on find_pair_by_ticker only for real pairs. Split the lookup or filter the prefix inside the CMC handlers so /cmc/ticker and /cmc/orderbook 404 these ticker ids.
  • Document the five ids and the swap projection in docs/CG_CMC_COMPLIANCE.md and add an invariants row. State that /gt/events swaps and /cg/historical_trades prints are a translated view of real wrap/unwrap and source-pool swaps, and that swap_events, protocol TVL, and DeFiLlama do not include them.

Acceptance criteria

  1. Each published virtual market appears on /cg/pairs and /cg/tickers with the same keys as a factory row and pool_id equal to its opaque id. Currencies are the pinned contract or denom. base_volume and target_volume equal the 24h projected swaps. last_price is the newest projected swap.
  2. Peg swap price is 1 in human units. A wrap of 5 uluna emits one cLUNC/uluna swap with principal 5 on each side, not the fee. Cross swap prices match the source fill composed with the pegs, including a reversed source asset order and a 6/18 USDT leg.
  3. A market with a missing pin, missing source pool, excluded source, or zero peg backing is absent. The handler still returns 200 for the list. It does not return price "0" for that market, and it does not emit a swap for it.
  4. /cg/orderbook?ticker_id= for a published virtual ticker returns 200 in the existing shape and does not call LCD. /cg/historical_trades returns 200 with one CgTradeEntry per projected swap, buy/sell split the factory way, limit capped at 500. An unpublished ticker stays 404. Malformed ticker ids stay 400.
  5. /gt/pair?id=cl8y-virtual:… returns the same shape as a factory pair, dexKey cl8y, and asset ids equal to the contracts or denoms. /gt/asset serves coinGeckoId terra-luna-classic, terraclassicusd, and tether for uluna, uusd, and the pinned USDT only.
  6. /gt/events emits one eventType: "swap" per projected fill whose source tx is inside the window, with the factory field set, the real tx hash, the real sender, and the virtual pairId. The factory swap for that tx is still present and unchanged. A factory window of 5000 rows stays 200 and includes the extra virtual swaps. A factory window of 5001 rows stays 400 and includes none. No virtual join is required.
  7. GET /api/v1/pairs, pair detail, candles, trades, /cmc/summary, /cmc/ticker, /cmc/assets, DeFiLlama daily, and route solve do not list the opaque ids or the five ticker ids. protocol_pair_tvl and trader volume are unchanged.
  8. Spoofed symbols and a non-pinned USDT contract do not change legs, ids, or prices. A real pair that already owns the ticker id is unchanged; the virtual market is omitted from ticker lookup.
  9. Existing listing tests for #685, #646, #684, #694, #631, and #655 still pass.

Test plan

Postgres integration tests, no chain. Seed factory assets for the pins, uluna, uusd, a cLUNC/cUSTC pair with known reserves and at least two swaps, a cLUNC/USDT pair with 6/18 decimals and one swap, indexed wrap and unwrap principal on the pinned mapper, a fee-only fake wrap from another contract, and one gem pair.

  • Pairs list. /cg/pairs includes the five opaque ids in allowlist order after real non-excluded pairs. Gem pairs still absent. limit / offset slice the combined list. Offset above 10000 is still 400. Empty page when offset is past the end.
  • Tickers. Virtual base_volume / target_volume / high / low / last_price match the projected swaps. cl8y_extensions is present. Cache hit returns the same payload. The source pair’s own ticker volume is unchanged.
  • Peg swaps. A wrap of 5 uluna with fee 0.01 produces one GT swap and one CG trade on cLUNC/uluna: both sides principal 5, priceNative 1, txnId the chain hash, maker the sender. The fee is not the amount. Unwrap flips the in/out legs. Zero principal → that peg emits no swap.
  • Cross swaps. One source swap on cLUNC/cUSTC produces one uluna/uusd swap and one cLUNC/uusd swap in the same block, same hash, different pairId. Price 2 with unit pegs stays 2. Reversed source asset order inverts once. The USDT swap uses the same human amount string the factory GT swap would. A second request does not duplicate the projection.
  • Omit paths. Delete the source pair, point the source at a gem, unset the mapper, or use a LocalTerra pin with no asset row. That market disappears and its swaps disappear. The other markets and the HTTP status stay valid.
  • Orderbook and trades. Virtual orderbook has one level per side at the latest swap price, millisecond timestamp, depth cap honored. Historical trades list those swaps under buy or sell using the factory offer-is-target rule. limit=1 returns one. type=buy drops sells. LCD client mock records zero calls. Unknown ticker 404; A_B_C 400.
  • GT pair and asset. Each opaque id returns dexKey cl8y and the right asset ids. terra-luna and terrausd are not emitted. cLUNC’s coinGeckoId is not terra-luna-classic.
  • GT events. The window that contains the source tx includes the factory swap unchanged plus the virtual swap rows. A window that does not contain the tx has neither. Factory reserves on the real pair are unchanged. A 5001-row factory window still 400s and contains no virtual swaps. A 5000-row window stays 200 and includes the virtual swaps. eventIndex does not collide inside one tx.
  • Isolation. /api/v1/pairs, /api/v1/pairs/{opaque}, candles, trades, /cmc/summary, /cmc/ticker, /cmc/orderbook/{ticker} do not return the markets (404 on detail). DeFiLlama fixture totals and pair_liquidity_usd sums ignore virtual reserves.
  • Collision. Insert a factory pair with symbols LUNC/USTC on different contracts. Real ticker wins. Virtual uluna/uusd is absent from ticker lookup. A second CW20 named USDT is not the USDT leg.

Attack, hack, and abuse tests

  • Id injection. GET /api/v1/pairs/cl8y-virtual:clunc-uluna, route solve with that hop, candles, and trades return 404 and issue no LCD query. Pair discovery fed that string does not insert a pairs row. A body field or query that repeats the prefix (cl8y-virtual:cl8y-virtual:…, encoded slash, uppercase) does not bypass the prefix check.
  • LCD amplification. Orderbook, historical trades, tickers, and events for virtual ids perform zero LCD calls, including when depth is the maximum and when the ticker is repeated.
  • Retail volume inflation. After a large cLUNC/cUSTC swap, the virtual CG ticker shows that swap and the source ticker still shows it once. swap_events row count, trader volume, pair rolling volume, protocol fees, and DeFiLlama daily do not increase. pair_liquidity_usd does not gain a virtual row.
  • Forged swaps. A wrap attribute set from a contract that is not the pinned mapper does not appear. A virtual swap whose txnId is not an indexed wrap, unwrap, or source swap_events hash does not appear. Query parameters cannot add a swap. The same source tx cannot emit two swaps on one virtual market.
  • Maker leak. maker on the virtual swap is the source sender, and that fact does not create a trader_positions row or a /api/v1 trade for the opaque pair id.
  • Cap evasion. Projected swaps cannot push a 4999-row window to 400, and they cannot replace a factory row to hide it. An over-cap window returns 400 with an empty body, not a virtual-only list.
  • Price oracle laundering. With the CEX LUNC price and the USDT advisory $1 set to values different from the pool, uluna/usdt still matches the factory pool. Hub UST1 $1 does not appear.
  • Symbol spoof. A new CW20 with symbol cLUNC or LUNC and a pool against uusd does not change virtual base_currency or pool_id. Listing exclude still drops the gem pool.
  • Division and scale. Zero source reserve omits the cross market (no panic, no Infinity). Dust reserves stay inside format_dec. A hostile 18-dec amount does not overflow the decimal string or flip the side.
  • Cache poisoning. Fill the ticker cache with a colliding real pair, then request the virtual ticker: the real address is returned. Fill it with the virtual id, then request a real ticker: the factory address is returned. /cmc/ticker never receives the virtual object from the shared cache.
  • Pagination shuffle. Inserting a new factory pair does not change virtual pool_ids or their relative order.

Verification

  • New make verify-issue-<this> runs the Postgres integration tests above plus a source check that listing_virtual_pairs is referenced from cg.rs and gt.rs only, and that cmc.rs, DeFiLlama, and pairs.rs do not reference the opaque prefix except the shared 404 guard if that guard lives in one place.
  • make verify-issue-685, make verify-issue-646, make verify-issue-684, make verify-issue-694, make verify-issue-631, and make verify-issue-655 stay green.
  • Docs row in docs/indexer-invariants.md and the CG/GT section of docs/CG_CMC_COMPLIANCE.md name the five ids and state that /gt/events and /cg/historical_trades carry one projected swap per real wrap, unwrap, or source-pool swap.
  • This issue does not deploy the indexer and does not submit the GeckoTerminal form. Production is unchanged until a later rollout.
## Summary Add five **listing-only virtual pairs** to the CoinGecko (`/cg/*`) and GeckoTerminal (`/gt/*`) adapters so those crawlers can price **native** Terra Classic assets. The pairs are not factory pools, must not be stored as pairs, and must not appear on any other API. CoinGecko and GeckoTerminal build that price from the **swap and event feeds**, not from pair metadata alone. Each published virtual market must show `swap` rows on `GET /gt/events` and buy/sell prints on `GET /cg/historical_trades`, in the same JSON shapes as a factory pair. Ticker volume, high, low, and last price are those swaps. Legs (base / target): | Virtual market | Base | Target | | --- | --- | --- | | Wrap peg | cLUNC CW20 `terra1437qslye72t7qmmahn4t5chz50r8a62g45phwkquwpyu2l62u6ksqssgdg` | bank `uluna` | | Wrap peg | cUSTC CW20 `terra1nap4dxh9tv35v0ynd9m4k6zt6c0dq6weszc4j5m564kjls56hu7qcr56ch` | bank `uusd` | | Native cross | bank `uluna` | bank `uusd` | | Native vs pinned USDT | bank `uluna` | USDT CW20 `terra1z0xe7t5ymmltg4vju8tghkq0pewy4et548ta23nlu9zxtl950uyqkv8mv4` (18 decimals) | | Wrapped LUNC vs native USTC | cLUNC CW20 (same pin) | bank `uusd` | Identity is the contract or denom above, not the ticker string. `cLUNC` / `clunc` in the request are the same CW20. ## Current codebase Factory pairs are CW20/CW20. Native LUNC and USTC enter pools only after the wrap mapper turns `uluna` into cLUNC and `uusd` into cUSTC. Create-pair does not list `uluna` or `uusd` as selectable legs. Indexed rows live in `pairs` and are served by `GET /api/v1/pairs`. CoinGecko exchange shape (`indexer/src/api/cg.rs`, docs in `docs/CG_CMC_COMPLIANCE.md`): - `GET /cg/pairs` walks `get_all_pairs`, skips gem / ALPHA / USTRIX / SpaceUSD via `pair_is_listing_excluded`, and returns a top-level array of `{ ticker_id, base, target, pool_id }`. `ticker_id` is `{asset_0.symbol}_{asset_1.symbol}`. `pool_id` is `pairs.contract_address`. - `GET /cg/tickers` uses the set-based aggregator snapshot (default limit 100, 60s cache). `base_currency` / `target_currency` are the CW20 address or the bank denom. `last_price` / `bid` / `ask` / `high` / `low` and `liquidity_in_usd` come from indexed swap stats, reserve stamps, and `pair_liquidity_usd`. Volumes are consolidated swap totals. `cl8y_extensions` is always present. - `GET /cg/orderbook` and `GET /cg/historical_trades` resolve `ticker_id` through `find_pair_by_ticker` (`indexer/src/api/mod.rs`), which maps symbol pairs onto `pairs.contract_address` and skips duplicate tickers (L685-7). Historical trades then load `swap_events` for that pair id and split buy/sell with `offer_asset_id == asset_1` (buy = offer is the target). Volumes and `trade_id` are the stored swap row. The orderbook path can call LCD for the pair contract. `limit` max is 500. GeckoTerminal Integration API (`indexer/src/api/gt.rs`, #646 / #684 / #694): - `GET /gt/pair?id=` loads `pairs` by contract address. Unknown or excluded ids are 404. Response is `{ pair: { id, dexKey: "cl8y", asset0Id, asset1Id, createdAtBlockNumber, createdAtBlockTimestamp, feeBps } }`. Asset ids are CW20 addresses or denoms. There is no pair-list route. - `GET /gt/events` is how GT discovers pools and prices them. Rows are real `swap_events` and `liquidity_events` only. A swap carries `txnId`, `txnIndex`, `eventIndex`, `maker`, `pairId`, `asset0In` / `asset1In` / `asset0Out` / `asset1Out`, `priceNative`, and post-event `reserves`. Amounts are decimalized. `reserves` are persisted post-event AMM reserves (#684). Combined factory rows are capped at 5000 (over-cap is HTTP 400, no truncation). Block span max is 2000. - Wrap and unwrap are indexed as mapper **fees** (`notify_deposit` / `unwrap` on the pinned mapper), not as `swap_events`. They never appear on `/gt/events` or `/cg/historical_trades`. - `GET /gt/asset?id=` loads `assets` by contract or denom. `coinGeckoId` is set for the CL8Y CW20 (`ceramicliberty-com`) and otherwise from `assets.coingecko_id`. Native asset symbols in the indexer are **LUNC** and **USTC**, not the denoms (#630). A real cLUNC/cUSTC pool is the economic source for an LUNC/USTC cross. Columbus-5 form pin: `terra15rl8g308yzzt5kxu4skgwlahrvm8adyv0s2cupsmvte0akgs2ttsszau38`. USDT pricing elsewhere is an advisory $1 **catalog** pin (#1258) and must not be reused as a DEX print. `/cmc/*`, `GET /api/v1/pairs`, DeFiLlama daily, route solve, candles, trader volume, and `protocol_pair_tvl` all read the same `pairs` / `swap_events` tables. Anything inserted there becomes a real market. ## Why this is needed CoinGecko and GeckoTerminal build a token price by walking pool edges. Our traded markets are denominated in cLUNC and cUSTC. The crawlers have no edge from those CW20s to bank `uluna` and `uusd`, so they cannot publish a native LUNC or USTC price from CL8Y liquidity. They also asked for `uluna/uusd`, `uluna/usdt`, and `cLUNC/uusd` so the native coins connect to each other and to pinned USDT. Those five markets do not exist on-chain. The adapters have to present them in the **same JSON shapes** the crawlers already parse, including the swap objects inside `/gt/events` and `/cg/historical_trades`. A pair row with no swaps is invisible to their pricer. The rest of the DEX keeps treating the markets as absent. ## Constraints and guardrails 1. **Listing surfaces only.** Emit the five markets from `GET /cg/pairs`, `GET /cg/tickers`, `GET /cg/orderbook`, `GET /cg/historical_trades`, `GET /gt/pair`, `GET /gt/asset` (ids and `coinGeckoId` only), and `GET /gt/events`. Do not add them to `/cmc/*`, `/api/v1/pairs`, pair detail, candles, trades, stats, route solve, DeFiLlama, protocol TVL, protocol fees, hub prices, or the dApp. 2. **No factory row.** Do not insert into `pairs`, `swap_events`, `liquidity_events`, `pair_reserves`, `pair_liquidity_usd`, or candles. Pair discovery must ignore the virtual ids. A listing-only projection table is allowed for wrap principal that is not already stored. Fee routes, trader volume, and DeFiLlama must not read it. 3. **Same JSON, no extra discriminator.** Each virtual object uses the existing response struct and the same field names and types as a factory pair. Do not add `virtual`, `synthetic`, or a wrapper object. `/cg/pairs` and `/cg/tickers` stay top-level arrays. `/gt/pair` stays `{ "pair": { ... } }` with `dexKey` `cl8y`. 4. **Stable opaque ids.** `pool_id` and GT `pair.id` are fixed strings, one per market: `cl8y-virtual:clunc-uluna`, `cl8y-virtual:custc-uusd`, `cl8y-virtual:uluna-uusd`, `cl8y-virtual:uluna-usdt`, `cl8y-virtual:clunc-uusd`. They are not bech32 and must never equal a `pairs.contract_address`. Every handler that loads a pair by address rejects the `cl8y-virtual:` prefix with the same 404 it uses for an unknown contract, before LCD or SQL. 5. **Allowlist by pin, not by symbol.** Legs are the columbus-5 pins in `indexer/src/config.rs` (`DEFAULT_HUB_CLUNC_ADDRESS`, `DEFAULT_HUB_CUSTC_ADDRESS`, `DEFAULT_USDT_CW20_ADDRESS`) plus denoms `uluna` and `uusd`. Env overrides that the indexer already uses for those pins apply. A CW20 whose symbol is `cLUNC`, `LUNC`, or `USDT` at any other address is not a leg. LocalTerra addresses that are not in `assets` cause that one virtual market to be omitted, not a 500. 6. **Ticker strings match real rows.** `/cg/pairs` `base`, `target`, and `ticker_id` use `assets.symbol` on the pinned rows (natives are `LUNC` and `USTC`, so the expected ids are `cLUNC_LUNC`, `cUSTC_USTC`, `LUNC_USTC`, `LUNC_USDT`, `cLUNC_USTC`). `/cg/tickers` `base_currency` and `target_currency` are the contract or denom, same as factory rows. Do not put `uluna` in `base` when the indexed symbol is `LUNC`. 7. **Honest price, no second convention.** `last_price` is human target-per-base, the same orientation as `close_price` for a factory pair with that asset order. Bid/ask use `listing_spread` (reserve mid ± fee, BigDecimal). No `f64`. No scientific notation (`format_dec`). USDT’s 18 decimals stay on the USDT side. 8. **Swaps use the existing event objects.** This is the feed CoinGecko and GeckoTerminal asked for. - `GET /gt/events` includes `eventType: "swap"` for each projected fill. The object is `GtEventBody::Swap`: `txnId`, `txnIndex`, `eventIndex`, `maker`, `pairId`, `asset0In` / `asset1In` / `asset0Out` / `asset1Out`, `priceNative`, `reserves`. `pairId` is the opaque virtual id. Amounts go through the same `decimalize` + `format_dec` path as factory swaps. `priceNative` is the same human target-per-base number as ticker `last_price` for that print. `reserves` are the virtual pool balances after that swap. No extra fields. Do not emit a zero-amount `join` in place of a swap. - `GET /cg/historical_trades` returns `buy` and `sell` arrays of `CgTradeEntry` for the virtual ticker. Buy/sell uses the factory rule (`offer` is the target leg → buy). `type` and `limit` (max 500) behave as they do now. `trade_timestamp` stays Unix seconds. Build the entry with the same field assignment as `cg_historical_trades`, so raw-vs-human units cannot drift from factory rows. - `GET /cg/tickers` `base_volume`, `target_volume`, `high`, `low`, and `last_price` are the 24h projected swaps, aggregated the same way as factory consolidated volume (each projected swap once). `cl8y_extensions` stays the same struct: `consolidated: true`, book leg `"0"`, pool-only count and pool leg equal to the projected swaps. `liquidity_in_usd` is the in-memory USD of the virtual reserves using the factory stamp helper. Do not write that number into `pair_liquidity_usd`. - `txnId` is the real chain tx hash. `maker` is that tx’s sender. Block height and timestamp are that tx’s block. `trade_id` is stable for the source event and unique within the virtual ticker. 9. **One real tx, one projected swap per market.** Do not invent a fill that has no indexed source tx. - **Peg markets (cLUNC/uluna, cUSTC/uusd).** Each real wrap or unwrap at the pinned mapper is one swap. Wrap is native in, wrapped out. Unwrap is wrapped in, native out. Amounts are principal, not the captured fee. Human price is the principal rate (1 per 1). A `notify_deposit` / `unwrap` from any other contract is ignored, same fail-closed rule as protocol-fee ingest. - **Cross markets.** Each factory swap on the source pair is one virtual swap in the same block and tx. Translate amounts through the peg rates into the virtual leg order. `uluna/uusd` and `cLUNC/uusd` use the pinned cLUNC/cUSTC pool. `uluna/usdt` uses the pinned cLUNC/USDT pool. A reversed source asset order inverts once. An 18-dec USDT leg stays on the USDT side. - The factory row for that tx is unchanged and still emitted. The virtual row is additional: same `txnId`, different `pairId`. `eventIndex` is unique per `(block, txnId)` across the combined response. - No swap with a zero amount or zero price. No copy of source joins/exits. No second copy of the same source swap. - The #694 cap counts **factory** rows only (`event_count > 5000` is HTTP 400). A window at or under 5000 factory rows stays HTTP 200, then the projected swaps for source events inside that window are appended. Those extra rows must not flip the window to 400 and must not drop a factory row. A window above 5000 factory rows stays 400 and includes no virtual rows. 10. **Price sources, fail closed.** - **cLUNC/uluna and cUSTC/uusd.** Human price is the wrap principal rate. Principal wrap is 1 human wrapped per 1 human native; the captured mapper fee is not a second price. GT `feeBps` is omitted unless the mapper’s configured wrap fee is already known without an LCD call on the request path. Reserves are the mapper’s custodied native balance on one side and the same human amount on the other (1:1 backing). Unset mapper, zero custody, or missing asset → omit the market. Do not publish price `1` with zero reserves. - **uluna/uusd.** Source is the factory pair whose legs are the pinned cLUNC and cUSTC contracts, highest `pair_liquidity_usd`, excluding listing-excluded pairs. Price is that pool’s human price composed with the two peg rates. Read asset order from `pairs`; do not assume cLUNC is `asset_0`. Missing source or either peg → omit. - **cLUNC/uusd.** Same cLUNC/cUSTC source, composed with the cUSTC/uusd peg only. - **uluna/usdt.** Source is the factory pair whose legs are pinned cLUNC and pinned USDT, highest `pair_liquidity_usd`. Compose with the cLUNC/uluna peg. No such pool → omit. Do not price this market from the #1258 advisory $1, the LUNC CEX oracle, or hub prices. 11. **CoinGecko ids on `/gt/asset` only.** `uluna` → `terra-luna-classic`. `uusd` → `terraclassicusd`. Pinned USDT → `tether`. Do not use `terra-luna`, `terra-luna-2`, or `terrausd`. Do not copy the native id onto cLUNC or cUSTC. Other assets stay as they are. 12. **Exclude list stays lockstep.** Virtual legs must not be gems, ALPHA, USTRIX, or SpaceUSD. Virtual rows do not bypass `pair_is_listing_excluded` for real pairs. 13. **Pagination and cache.** Append virtual rows after the real `/cg/pairs` list in the fixed table order, then apply the existing limit/offset. On `/cg/tickers`, append only markets that are published, after the volume-sorted real page, without changing the real rows’ order, and include them in the 60s aggregator cache payload. Ticker-map cache must resolve virtual ticker ids to the opaque id and must not let a virtual id replace a real pair or the reverse. 14. **Ticker collision.** If a real pair already owns that `ticker_id` with different legs, keep the real pair, omit the virtual market from CG ticker lookup, and log once. Do not shadow a factory market. Today none of the five symbol pairs should exist as factory pairs. 15. **No new admin knobs.** Prices are derived. No HTTP route edits reserves, volume, or the allowlist. ## Relevant files - `indexer/src/api/cg.rs` — pairs, tickers, orderbook, historical trades - `indexer/src/api/gt.rs` — pair, asset, events, row cap - `indexer/src/api/mod.rs` — `find_pair_by_ticker`, route table - `indexer/src/api/aggregator_snapshot.rs` — set-based ticker load and cache key - `indexer/src/api/listing_spread.rs` — bid/ask and `liquidity_in_usd` - `indexer/src/api/consolidated_stats.rs` — `cl8y_extensions` - `indexer/src/api/cmc.rs` — must stay free of virtual rows - `indexer/src/indexer/listing_exclude.rs` — shared exclude list - `indexer/src/config.rs` — hub and USDT pins, `WRAP_MAPPER_ADDRESS` - `indexer/src/db/queries/pairs.rs` — factory pair load; do not persist virtual ids here - `docs/CG_CMC_COMPLIANCE.md`, `docs/indexer-invariants.md` - `docs/listings/forms/geckoterminal.md` — list the five opaque ids in the remark so GT can bind them - Tests beside `indexer/tests/api_aggregator_batch.rs`, GT adapter tests, and `listing_exclude` tests ## Recommended direction Add a small pure module, for example `indexer/src/api/listing_virtual_pairs.rs`, that holds the five definitions and builds responses from pins plus already-loaded factory state. Call it only from the CG and GT handlers after the real query succeeds. - Project peg swaps from indexed wrap and unwrap principal at the pinned mapper (custodied balance is the reserve). If principal is not stored, extend that ingest into the listing-only projection. Do not LCD-query inside `/cg/tickers`, `/cg/historical_trades`, or `/gt/events`. - Project cross swaps from the source factory pair’s `swap_events`. Translate each fill’s amounts, price, and post-swap reserves into the virtual leg order. The source row stays in the factory event stream. - Teach `find_pair_by_ticker` to return the opaque id for a published virtual ticker. `cg_orderbook` and `cg_historical_trades` must branch on the `cl8y-virtual:` prefix **before** `simulate_orderbook_cached` or any LCD client. Orderbook: same `CgOrderbookResponse` shape, timestamp in Unix milliseconds, one bid and one ask at the latest projected price, sizes from the post-swap reserves, depth still capped by `cap_orderbook_depth`. Historical trades: the projected swaps for that ticker, mapped by the existing buy/sell loop (HTTP 200). An unpublished ticker stays 404. - `gt_events` maps projected swaps through the existing swap arm (`GtEventBody::Swap`). `gt_pair` returns the `GtPair` struct for a known virtual id (created block/timestamp from the first projected swap, else the source pair, else the indexed tip). `feeBps` omitted unless rule 10 supplies it. - Keep CMC on `find_pair_by_ticker` only for real pairs. Split the lookup or filter the prefix inside the CMC handlers so `/cmc/ticker` and `/cmc/orderbook` 404 these ticker ids. - Document the five ids and the swap projection in `docs/CG_CMC_COMPLIANCE.md` and add an invariants row. State that `/gt/events` swaps and `/cg/historical_trades` prints are a translated view of real wrap/unwrap and source-pool swaps, and that `swap_events`, protocol TVL, and DeFiLlama do not include them. ## Acceptance criteria 1. Each published virtual market appears on `/cg/pairs` and `/cg/tickers` with the same keys as a factory row and `pool_id` equal to its opaque id. Currencies are the pinned contract or denom. `base_volume` and `target_volume` equal the 24h projected swaps. `last_price` is the newest projected swap. 2. Peg swap price is `1` in human units. A wrap of 5 `uluna` emits one cLUNC/`uluna` swap with principal 5 on each side, not the fee. Cross swap prices match the source fill composed with the pegs, including a reversed source asset order and a 6/18 USDT leg. 3. A market with a missing pin, missing source pool, excluded source, or zero peg backing is absent. The handler still returns 200 for the list. It does not return price `"0"` for that market, and it does not emit a swap for it. 4. `/cg/orderbook?ticker_id=` for a published virtual ticker returns 200 in the existing shape and does not call LCD. `/cg/historical_trades` returns 200 with one `CgTradeEntry` per projected swap, buy/sell split the factory way, `limit` capped at 500. An unpublished ticker stays 404. Malformed ticker ids stay 400. 5. `/gt/pair?id=cl8y-virtual:…` returns the same shape as a factory pair, `dexKey` `cl8y`, and asset ids equal to the contracts or denoms. `/gt/asset` serves `coinGeckoId` `terra-luna-classic`, `terraclassicusd`, and `tether` for `uluna`, `uusd`, and the pinned USDT only. 6. `/gt/events` emits one `eventType: "swap"` per projected fill whose source tx is inside the window, with the factory field set, the real tx hash, the real sender, and the virtual `pairId`. The factory swap for that tx is still present and unchanged. A factory window of 5000 rows stays 200 and includes the extra virtual swaps. A factory window of 5001 rows stays 400 and includes none. No virtual `join` is required. 7. `GET /api/v1/pairs`, pair detail, candles, trades, `/cmc/summary`, `/cmc/ticker`, `/cmc/assets`, DeFiLlama daily, and route solve do not list the opaque ids or the five ticker ids. `protocol_pair_tvl` and trader volume are unchanged. 8. Spoofed symbols and a non-pinned USDT contract do not change legs, ids, or prices. A real pair that already owns the ticker id is unchanged; the virtual market is omitted from ticker lookup. 9. Existing listing tests for #685, #646, #684, #694, #631, and #655 still pass. ## Test plan Postgres integration tests, no chain. Seed factory assets for the pins, `uluna`, `uusd`, a cLUNC/cUSTC pair with known reserves and at least two swaps, a cLUNC/USDT pair with 6/18 decimals and one swap, indexed wrap and unwrap principal on the pinned mapper, a fee-only fake wrap from another contract, and one gem pair. - **Pairs list.** `/cg/pairs` includes the five opaque ids in allowlist order after real non-excluded pairs. Gem pairs still absent. `limit` / `offset` slice the combined list. Offset above 10000 is still 400. Empty page when offset is past the end. - **Tickers.** Virtual `base_volume` / `target_volume` / `high` / `low` / `last_price` match the projected swaps. `cl8y_extensions` is present. Cache hit returns the same payload. The source pair’s own ticker volume is unchanged. - **Peg swaps.** A wrap of 5 `uluna` with fee 0.01 produces one GT swap and one CG trade on cLUNC/`uluna`: both sides principal 5, `priceNative` `1`, `txnId` the chain hash, `maker` the sender. The fee is not the amount. Unwrap flips the in/out legs. Zero principal → that peg emits no swap. - **Cross swaps.** One source swap on cLUNC/cUSTC produces one `uluna/uusd` swap and one `cLUNC/uusd` swap in the same block, same hash, different `pairId`. Price 2 with unit pegs stays 2. Reversed source asset order inverts once. The USDT swap uses the same human amount string the factory GT swap would. A second request does not duplicate the projection. - **Omit paths.** Delete the source pair, point the source at a gem, unset the mapper, or use a LocalTerra pin with no asset row. That market disappears and its swaps disappear. The other markets and the HTTP status stay valid. - **Orderbook and trades.** Virtual orderbook has one level per side at the latest swap price, millisecond timestamp, depth cap honored. Historical trades list those swaps under `buy` or `sell` using the factory offer-is-target rule. `limit=1` returns one. `type=buy` drops sells. LCD client mock records zero calls. Unknown ticker 404; `A_B_C` 400. - **GT pair and asset.** Each opaque id returns `dexKey` `cl8y` and the right asset ids. `terra-luna` and `terrausd` are not emitted. cLUNC’s `coinGeckoId` is not `terra-luna-classic`. - **GT events.** The window that contains the source tx includes the factory swap unchanged plus the virtual `swap` rows. A window that does not contain the tx has neither. Factory `reserves` on the real pair are unchanged. A 5001-row factory window still 400s and contains no virtual swaps. A 5000-row window stays 200 and includes the virtual swaps. `eventIndex` does not collide inside one tx. - **Isolation.** `/api/v1/pairs`, `/api/v1/pairs/{opaque}`, candles, trades, `/cmc/summary`, `/cmc/ticker`, `/cmc/orderbook/{ticker}` do not return the markets (404 on detail). DeFiLlama fixture totals and `pair_liquidity_usd` sums ignore virtual reserves. - **Collision.** Insert a factory pair with symbols `LUNC`/`USTC` on different contracts. Real ticker wins. Virtual `uluna/uusd` is absent from ticker lookup. A second CW20 named `USDT` is not the USDT leg. ## Attack, hack, and abuse tests - **Id injection.** `GET /api/v1/pairs/cl8y-virtual:clunc-uluna`, route solve with that hop, candles, and trades return 404 and issue no LCD query. Pair discovery fed that string does not insert a `pairs` row. A body field or query that repeats the prefix (`cl8y-virtual:cl8y-virtual:…`, encoded slash, uppercase) does not bypass the prefix check. - **LCD amplification.** Orderbook, historical trades, tickers, and events for virtual ids perform zero LCD calls, including when `depth` is the maximum and when the ticker is repeated. - **Retail volume inflation.** After a large cLUNC/cUSTC swap, the virtual CG ticker shows that swap and the source ticker still shows it once. `swap_events` row count, trader volume, pair rolling volume, protocol fees, and DeFiLlama daily do not increase. `pair_liquidity_usd` does not gain a virtual row. - **Forged swaps.** A wrap attribute set from a contract that is not the pinned mapper does not appear. A virtual swap whose `txnId` is not an indexed wrap, unwrap, or source `swap_events` hash does not appear. Query parameters cannot add a swap. The same source tx cannot emit two swaps on one virtual market. - **Maker leak.** `maker` on the virtual swap is the source sender, and that fact does not create a `trader_positions` row or a `/api/v1` trade for the opaque pair id. - **Cap evasion.** Projected swaps cannot push a 4999-row window to 400, and they cannot replace a factory row to hide it. An over-cap window returns 400 with an empty body, not a virtual-only list. - **Price oracle laundering.** With the CEX LUNC price and the USDT advisory $1 set to values different from the pool, `uluna/usdt` still matches the factory pool. Hub UST1 `$1` does not appear. - **Symbol spoof.** A new CW20 with symbol `cLUNC` or `LUNC` and a pool against `uusd` does not change virtual `base_currency` or `pool_id`. Listing exclude still drops the gem pool. - **Division and scale.** Zero source reserve omits the cross market (no panic, no `Infinity`). Dust reserves stay inside `format_dec`. A hostile 18-dec amount does not overflow the decimal string or flip the side. - **Cache poisoning.** Fill the ticker cache with a colliding real pair, then request the virtual ticker: the real address is returned. Fill it with the virtual id, then request a real ticker: the factory address is returned. `/cmc/ticker` never receives the virtual object from the shared cache. - **Pagination shuffle.** Inserting a new factory pair does not change virtual `pool_id`s or their relative order. ## Verification - New `make verify-issue-<this>` runs the Postgres integration tests above plus a source check that `listing_virtual_pairs` is referenced from `cg.rs` and `gt.rs` only, and that `cmc.rs`, DeFiLlama, and `pairs.rs` do not reference the opaque prefix except the shared 404 guard if that guard lives in one place. - `make verify-issue-685`, `make verify-issue-646`, `make verify-issue-684`, `make verify-issue-694`, `make verify-issue-631`, and `make verify-issue-655` stay green. - Docs row in `docs/indexer-invariants.md` and the CG/GT section of `docs/CG_CMC_COMPLIANCE.md` name the five ids and state that `/gt/events` and `/cg/historical_trades` carry one projected swap per real wrap, unwrap, or source-pool swap. - This issue does not deploy the indexer and does not submit the GeckoTerminal form. Production is unchanged until a later rollout.
Author
Owner

PR #1445 merged to main with hosted CI already successful. No merge conflict.

Production rollout and the GeckoTerminal form receipt stay recorded in docs/qa/issue-1437/production-listing.md. Remaining external acceptance, attested historical replay, and the optional #655 browser check are tracked on #1446. Closing this issue because the implementation and rollout commits are on main.

PR #1445 merged to main with hosted CI already successful. No merge conflict. Production rollout and the GeckoTerminal form receipt stay recorded in docs/qa/issue-1437/production-listing.md. Remaining external acceptance, attested historical replay, and the optional #655 browser check are tracked on #1446. Closing this issue because the implementation and rollout commits are on main.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic#1437
No description provided.