feat: /protocol UST1 window mint/redeem treasury fees (#614) #1129
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!1129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/614-ust1-window-protocol-fees"
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
UST1_WINDOW_ADDRESSandFeeSourcekeysust1_mint/ust1_redeemso/protocolcan census UST1 window treasury fees beside wrap/unwrap and AMM.fee_amountplus token identity on the reserved window_contract_address. Never inferust1_notional × fee_bps. Empty/invalid pin omits window sources (no fake$0).$0, and omits rows whenust1_window_configuredis missing or false. Coolify example documents the indexer pin (Vite alone is not enough).Related to #614. Does not close the issue: columbus-5 window code 11566 currently emits
fee_*_bps/vfdusd_to_treasurywithoutfee_amount, so live txs stay dropped until upstream wasm lands.Test plan
make verify-issue-614(includes relatedverify-issue-586with E2E/related skipped in CI-style runs)cd indexer && cargo test --lib protocol_feescd indexer && cargo test --test indexer_protocol_fees -- --test-threads=1bash scripts/with-node.sh --cwd frontend-dapp -- npm test -- --run src/pages/ProtocolPage.test.tsxUST1_WINDOW_ADDRESS=terra1zxwpzpzpleatqn39r00grau4yt29sld8pw78s7ktvjafnj5nsaxq0h3rh2after merge (columbus-5)fee_amount+ token identity: confirm a captured deposit/withdraw incrementsprotocol_fee_eventsand/protocolSource rowsmentioned in issue #614
added 11 commits
maine1490bbf- Merge origin/main into issue/614-ust1-window-protocol-feesCompare with previous version
mentioned in commit
c37265dc48mentioned in issue #616