chore(treasury): remove obsolete SwapDeposit / swap_contract (#8) #30
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!30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/remove-swap-deposit-8"
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
SwapDeposit/SetSwapContract/Config.swap_contractand the treasury-localSwapExecuteMsg::NotifyDepositpath (audit MB-1 / #8).migraterewrites legacy config (dropsswap_contract, defaults missingwrapping_paused) so the #5 treasury wasm bump cannot re-arm the footgun.skills/treasury-swap-removaldocument the live path: user → ustc-swapSwap→BankMsg::SendUSTC to treasury; wrapNotifyDepositunchanged.Closes #8
Acceptance criteria (#8)
SwapDeposit/SetSwapContract/swap_contractremoved from treasury ExecuteMsg, Config, state, and handlersSwapExecuteMsg/ NotifyDeposit-to-swap path removedNotifyDepositto ustc-swapARCHITECTURE.md,CONTRACTS.md,DEPLOYMENT.md, plans, skills)Test plan
cargo test --package treasury --lib(140 passed)cargo test --package wrap-mapper --lib(100 passed)swap_contract(Some/None) + preserveswrapping_pausedtest_existing_features_after_migrateuses WrapDeposit (not SwapDeposit)Not in this MR
NotifyDeposit/ treasuryWrapDepositkeptchanged the description
changed the description
mentioned in commit
5ecee9d082