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!772
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/318-315-deploy-fee-gas"
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?
Bundles the two deploy-path fixes (#318, #315) since both live in
deploy-dex-local.sh.Summary
LOCAL_PAIR_CREATION_FEE_ULUNAoverride). Fee is read back from factoryConfig;factory_create_pairattaches--amounton all threecreate_pairsites (Phase 4/4b/4c). Pre-flight checkstest1can coverfee × pairs.terrad_txandfunding.tsuse--gas-prices ${DEPLOY_GAS_PRICES:-28.325uluna}instead of flat--fees 500000000uluna. Treasury fund step exits non-zero on failure.main(d416518) — kept MR'sfactory_create_pair+ on-chain fee read-back over main's stalePAIR_CREATION_FEE_COINS+pair_creation_fee_uluna=0workaround.Verification checklist
bash -n scripts/deploy-dex-local.shbash scripts/qa/verify-issue-276.sh(deploy attach step)grep DEPLOY_GAS_PRICES scripts/deploy-dex-local.sh packages/localnet-trading-swarm/src/funding.tsgrep 'ERROR: Treasury fund tx failed' scripts/deploy-dex-local.shbash scripts/qa/verify-issue-276.shmake test-contracts(via verify-issue-276)cd packages/localnet-trading-swarm && npm run test:runglab mr view 54→has_conflicts: falsemake start && make build-optimized && make deploy-local#318 — attach the #276 pair-creation fee on every create_pair
Proven on a fresh post-#276 factory:
Configreturns the fee via the script's exact query path; a no-feecreate_pairis rejected ("Pair creation requires 100000000 uluna attached"); a fee-attachedcreate_pairsucceeds and treasury is credited (minus the ~0.5% Terra Classic transfer tax on the send).#315 — stop over-burning deploy fees on terrad v4
Checked live (prior commit): a tx now pays ~5.15M uluna (gas 182000 × 28.325) vs the old flat 500M — ~97% less per tx.
Follow-up
make start && make build-optimized && make deploy-local && make qa-verify-deployon a fresh LocalTerra volume to close #318/#315 acceptance criteria end-to-end.mentioned in issue #318
mentioned in issue #315
Security review
Commit reviewed:
f5747edbf0245aab072b6143228d0e0ca4e434caScope: MR !772 — local deploy pair-creation fee attachment (#318), terrad v4 gas-prices (#315), treasury fund fail-fast, docs/QA guard updates.
Summary
Reviewed all added/modified code in this diff:
scripts/deploy-dex-local.sh—factory_create_pairhelper, on-chain fee read-back, pre-flight balance check,--gas-pricesinstead of flat--fees, treasury fund abort on failurepackages/localnet-trading-swarm/src/funding.ts— matching gas-prices change (execFileSync, no shell)scripts/qa/verify-issue-276.sh, docs/skills updatesAnalysis
LOCAL_PAIR_CREATION_FEE_ULUNA,DEPLOY_GAS_PRICES, jq-derivedPAIR_CREATION_FEE_ULUNA)terrad/execFileSyncargv; no shell metacharacter expansion path identifiedraw_logto stderr (local operator diagnostics)PAIR_CREATION_FEE_ULUNAis read from the factory the script just instantiated (trusted source on fresh LocalTerra).LOCAL_PAIR_CREATION_FEE_ULUNA=0is an intentional local dev escape hatch documented in the MR; it does not affect mainnet.Treasury fund step changing from WARN-only to
exit 1is a fail-closed improvement for local E2E integrity.FINDINGS: 0 medium+
Outcome: Security review: no medium+ findings on this diff.
No inline threads — nothing met the reporting threshold.
added 19 commits
PlasticDigits:maind416518c- merge: resolve main into qa/318-315-deploy-fee-gasCompare with previous version
changed the description
Security review
Commit reviewed:
d416518c94e97b2eefbaf3eaad01e9114f86031fScope: MR !772 — local deploy pair-creation fee attachment (#318), terrad v4
--gas-prices(#315), treasury fund fail-fast, docs/QA guard updates. Re-reviewed after merge ofmainintoqa/318-315-deploy-fee-gas.Files reviewed
scripts/deploy-dex-local.sh—factory_create_pairhelper, on-chain fee read-back, pre-flight balance check,--gas-pricesinstead of flat--fees, treasury fund abort on failurepackages/localnet-trading-swarm/src/funding.ts— matching gas-prices change (execFileSync, no shell)scripts/qa/verify-issue-276.sh, docs/skills updatesAnalysis
LOCAL_PAIR_CREATION_FEE_ULUNA,DEPLOY_GAS_PRICES, jq-derivedPAIR_CREATION_FEE_ULUNA)"$@"/execFileSyncargv arrays; noeval/sh -cpath; no shell metacharacter expansion identifiedraw_logto stderr (local operator diagnostics only)PAIR_CREATION_FEE_ULUNAis read from the factory the script just instantiated (trusted source on fresh LocalTerra).LOCAL_PAIR_CREATION_FEE_ULUNA=0is an intentional local dev escape hatch; it does not affect mainnet.Treasury fund step changing from WARN-only to
exit 1is a fail-closed improvement for local E2E integrity.Merge commit
d416518retains MR'sfactory_create_pair+ on-chain fee read-back over main's stale zero-fee workaround; no new attack surface beyond the prior review off5747ed.FINDINGS: 0 medium+
Outcome: Security review: no medium+ findings on this diff.
No inline threads — nothing met the reporting threshold.
mentioned in commit
019ded61e2