feat(treasury): 24h InstantWithdrawCw20 pull limit per spender+CW20 (#7) #28
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!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/cw20-pull-limit-24h-7"
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
Implements #7: governance-configurable tumbling 24h pull limits for
InstantWithdrawCw20, keyed by(token, spender).Cw20PullLimitNotSet)Cw20PullLimitExceededwith no TransferSetCw20Spender { limit_24h? },SetCw20SpenderLimit/RemoveCw20SpenderLimit, queryCw20SpenderLimit0.2.0→0.2.1Closes audit follow-ups H-2 / M-1 from
audits/INTERNAL_COMPOSER_1785465508.md.Acceptance criteria (#7)
(spender, token)pair; non-gov cannotInstantWithdrawCw20enforces the limit; exceed fails with clear error and no TransferNot in this MR
limit_24hops executionSetCw20Spender(still product choice from #6)Test plan
cd contracts && cargo test --package treasury --lib→ 150 passedcd contracts && cargo test --package wrap-mapper --lib→ 100 passed (native InstantWithdraw regression)SetCw20Spenderwithlimit_24hfor vFDUSD+window; queryCw20SpenderLimitwrapping_paused/ ProposeWithdraw unaffectedmentioned in commit
98fc4de2a0mentioned in commit
b164ea7523mentioned in issue #5