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#712
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
!1198 landed on
main(f54de4fd, source HEAD56e4c4f5). It implements opt-in greedy book-first swap plus leftovers #708 / #709 / #710.GitLab auto-closed those three on merge. Do not reopen them unless a merged invariant is wrong. Close this leftover when columbus-5 pair migrate + LocalTerra canary (and any should-fix you choose to land) are done.
Conflict resolution on !1198: only
Makefileconflicted with !1197 (#705 candles newest-N). Union keptverify-issue-708/709/710andverify-issue-705(.PHONY, recipes, Cloud Agent help).AGENTS.mdanddocs/testing.mdauto-merged cleanly.No automerge. Do not wait on GitLab CI (quota is not a product signal).
Merged MR
GreedySwapParams(no caller split).hybrid: Nonestays pool-only (G1). Quote/execute mutex (G11).greedy_stop=remainder_to_pool. Pool-spot overflow Skip (A7). Tax/pause/blacklist/AfterSwap L7 coverage.Skill:
skills/AGENTS_GREEDY_BOOK_FIRST.mdLocal verify (after
git pull)Merge-time check: #709 and #710 verify scripts PASS. #708 gas vitest was previously skipped in a worktree without
node_modules.Operator leftovers
Pair wasm migrate (G14)
Factory
pair_code_id+ pair migrate on columbus-5 (and LocalTerra if that stack is still on pre-greedy pair wasm). Do not fliphybrid: Noneto greedy. Official dApp stays onGET /route/solve.LocalTerra canary
On a pair with a strictly better live ask/bid: greedy hop emits
limit_order_fill+ positivebook_return_amount; pool-only control does not. Optional vsGET /route/solve(greedy may lose to an interior split — G4).Coolify
No indexer migration. Frontend gas map is already in-tree; rebuild is optional unless wallets start sending
greedy. Contract migrate is the product gate, not a frontend rebuild.Should-fix (not merge blockers; land here if cheap)
book_input=1error stringbook_input.ReverseSimulateSwapOperationsignoresgreedyHybridReverseSimulationhas nogreedyfield — error or document, do not silent pool-only.return_amount ≥pool-only on same offerMAX_SCAN_STEPS/ park-cap multitestgreedy_stop=scan_capemit test.SendHookGasDecodeError; swarm decode miss falls through toBASE_GAS.Out of scope (do not do here)
/route/solve.book_start_hinton-chain.Guardrails
marked as related to #708
marked as related to #709
marked as related to #710
mentioned in issue #708
mentioned in issue #709
mentioned in issue #710
mentioned in issue #718
marked as related to #718
Follow-up for the G1 owner note (greedy opt-out default, TerraSwap-compat bots): #718.
Do not land 718’s wasm migrate until this leftover’s pair 1.16.0 migrate is done. 718 also needs a router migrate; this ticket does not.
columbus-5 migrate smoke (G14) — PASS
LCD
https://terra-classic-lcd.publicnode.com. Factory stays 11629 / 1.10.0. Official dApp stays onGET /route/solve. G1 still opt-in (omitted greedy = pool-only). Default-greedy is #718, not this ticket.Store
data_hash47E383B8EF75C5F4731CF88909A03AFA26945D17A20320A2F5F26FD23A630427F12E6458…7D8AE74689EF0F31BCD6164DC8F2D78775DBA2BC49C1243B4BB4750654F194301ACC4E1C4EB0…86B9Uploader
cl8ydeploy. Instantiate permission Everybody.Router migrate was not required for this leftover (dApp never sends
greedy). It was done: router live 11576 → 11640, cw2 still 1.1.0 (no router version bump). Opt-in greedy hops now decode on the router.Factory + fleet
config.pair_code_idGetPairCountContractInfo.code_idcl8y-dex-pair1.16.0terra1zlmv2…hep7GetAssetCodeIds[10184, 10184]still factory-whitelistedHybridSimulation smoke
EMBER/CORAL offer
1000000EMBER:return_amountbook_return_amountgreedy_stopbook_input=09295740hybrid+greedy(G1)9295740greedy: { max_maker_fills: 8 }9295740worse_than_poolG11 mutex (both fields): pair query errors. Router hop mutex:
cannot set both hybrid and greedy on a hop.Router
SimulateSwapOperationsEMBER→CORAL: omitted hopamount=929574; greedy hop accepted (amount=929574). Pre-11640 router would have rejected unknowngreedy.Live-book canary (columbus-5, stands in for LocalTerra)
CL8Y/cUSTC
terra1tz5vwrungh6drd9nt95qym3k892vs3as8nqmu7sg4ypek7wxvv4qm89upc— heads bid288/ ask289. Offer1e15CL8Y:return_amountbook_return_amountlimit_book_offer_consumedgreedy_stop985380099440994401000000000000000filledGreedy strictly beats pool-only on the same offer (G4 “OK not perfect”). No execute tx (query-only).
UST1/USTR has a live book (heads
1851/2072) but greedy stoppedworse_than_poolat 1e6 UST1 — makers do not strictly beat pool spot.Not done here (by design)
Closing this leftover.
mentioned in issue #704