Review: factory pair-creation BankMsg::Send to treasury (#313) #789
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!789
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cursor/gitlab-issue-workflow-c233"
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\n\nCloses the security review in GitLab #313 for factory pair-creation uluna fees sent to treasury via
BankMsg::Send(introduced in #276).\n\nNo factory contract logic changes \u2014 review found the implementation sound. This MR adds:\n\n- Written audit checklist:docs/audits/factory-treasury-bank-send.md\n- Adversarial integration testcreate_pair_fee_bank_send_adversarial_paths(stray denom rejection, overpay refund, treasury rotation viaUpdateConfig)\n-make verify-issue-313QA script\n- Cross-link on invariant F2 indocs/contracts-security-audit.md\n\n## Acceptance checklist\n\n| Criterion | Verification | Status |\n|-----------|--------------|--------|\n| Written review checklist with sign-off |docs/audits/factory-treasury-bank-send.md| PASS |\n| Issues found filed or fixed | None required (no contract bugs) | PASS |\n| Adversarial tests for gaps |create_pair_fee_bank_send_adversarial_paths| PASS |\n| No regression on happy path |make test-contracts; existing #276 tests | PASS |\n\n## Verification (third parties)\n\nbash\nmake verify-issue-313\n\n\n## Test plan\n\n| Path | Expected | Result |\n|------|----------|--------|\n| Exact fee | Treasury + pair | PASS |\n| Underpay |InsufficientPairCreationFee| PASS |\n| Overpay | Fee to treasury; refund to user | PASS |\n| Stray denom | Reject; no pair | PASS |\n| Zero fee | Free create; refund mistaken uluna | PASS |\n| Gov updates treasury | New addr receives fee | PASS |\n\nRelated: #276\n"mentioned in issue #313
changed the description
changed the description
Security review — MR !789
Commit reviewed:
c2b975b79f73c6fcab1e4b967a278971ef025640Scope: Added/modified diff only (
docs/audits/factory-treasury-bank-send.md,docs/contracts-security-audit.mdF2 cross-link,smartcontracts/tests/src/lib.rsadversarial testcreate_pair_fee_bank_send_adversarial_paths,scripts/qa/verify-issue-313.sh,Makefileverify-issue-313target). No factory contract logic changes in this MR.Method: Traced attacker-controlled inputs through changed paths; confirmed existing on-chain controls on the referenced
execute_create_pairfee/BankMsg::Sendflow (unchanged) — stray-denom rejection, underpay guard, governance-only treasury/fee mutation, refund/overpay handling,OnePairCreationPerBlockgate beforeResponse.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Changed artifacts are documentation, integration tests, and a fixed-path QA script (
set -euo pipefail, no external/user-controlled input, no command injection surface). No inline threads opened.Automated security review (Cursor Cloud Agent)
mentioned in commit
0d3c4eeacf