feat(frontend): show protocol LP positions as treasury assets with USD and include in CR #33
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!33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "14-feat-frontend-show-protocol-lp-positions-as-treasury-assets-with-usd-and-include-in-cr"
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
tokenlist.jsontype: "lp"shares (UST1/USTR/cUSTC/cLUNC pairs) appear as treasury assets with reserve NAV USD, not LP-mintsimulate_swap.crUsdonly: UST1 legs at $1, USTR/other legs at market, pinned wrap legs haircut so native LUNC/USTC is not double-counted.incomplete).Closes #14.
Test plan
cd frontend && npm test(49 tests; includes UST1/USTR $200, UST1/cUSTC $101/$100, CR 210% fixture)npm run type-check && npm run linttype: "lp"+ treasury balance > 0: row shows pair label, full NAV, finder on the pair; wrap haircut footnote if applicable(spotAssetsUsd + Σ crUsd) / whole UST1 × 100; unpriced LP marks incomplete, not $0getTokenPriceUsdis not called with an LP mint; skip-list still exactUSTR|UST1|CLUNC|CUSTCCloses #14
added 1 commit
c38ae700- feat(frontend): count allowlisted protocol LP shares in treasury CRCompare with previous version
marked this merge request as ready
mentioned in issue #14
mentioned in commit
4482924766