feat(frontend): pin CL8Y/cUSTC LP so treasury assets and CR include CMM’s position #39
No reviewers
Labels
No labels
bug
docs
documentation
duplicate
enhancement
frontend
good first issue
help wanted
invalid
missing-implementation
priority
medium
product
QA
question
testing
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/ustr-cmm!39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "20-feat-pin-cl8y-custc-lp"
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 #20.
Summary
1.3.3allowlists the live CL8Y DEX CL8Y-cb/cUSTC LP (terra1u277x…jen2c/ pairterra1tz5vw…89upc) plus a CL8Y-cb spot CW20 so the other-leg classifies asother./treasuryshows the LP row when CMMbalance > 0. Display USD is share × (CL8Y reserve × CL8Y USD + cUSTC reserve × USTC USD). CR counts only the CL8Y leg; cUSTC wrap is haircut (native USTC already in the numerator).{ pool: {} }reserve ratio (CL8Y hashybrid_simulation, not Terraswapsimulation) and never the historical 1e6 Garuda fallback.Test plan
cd frontend && npm test && npm run check(96 unit tests)npm run test:e2e(Playwright, 5 workers) — LP rowtreasury-asset-CL8Y-cb-cUSTCvisible; raw UST1/USTR/cLUNC/cUSTC absentnode scripts/verify-treasury-cr.mjsmatches Key Ratios when prices are completenode scripts/discover-cl8y-holdings.mjs—heldUnpinnedempty; CL8Y-cb/cUSTC inheldPinned/treasuryshowsLP CL8Y-cb/cUSTC,100% of pool, display NAV both legs,CR counts $… (cUSTC omitted)NAV incomplete · CL8Y-cb; Key Ratios staysprices not loaded…balance+{ pool: {} }matches the production rowAcceptance (#20)
/treasuryshows a CL8Y/cUSTC LP row when CMMbalance > 0(local Vite + e2e; production after Coolify)NAV incompleteline; Key Ratios stays gated per #16poolmatches the local row (post-deploy re-check still needed)Not done
AddCw20of the new LP CW20s (Cw20Whitelistis still empty; UI queries pins directly). Optional ops checklist.Closes #20
mentioned in commit
ff98806a1bmentioned in issue #21
mentioned in issue #20
mentioned in issue #18
mentioned in issue #22