fix(frontend): raise ADD_LIQUIDITY_GAS_LIMIT above measured provide_liquidity gas #843
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!843
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/addliq-gas-limit"
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?
Finding (during #337 local QA pass)
Add-liquidity fails from the dapp with "Transaction needed more gas than estimated" on every attempt.
provide_liquidityreturns the fixedADD_LIQUIDITY_GAS_LIMIT = 500000, but the real cost is higher.Measured on a localnet EMBER/CORAL pair (terrad,
--gas auto):provide_liquiditywithdraw_liquidityThe limit is fixed (not simulated), and block variance is far below the ~7.5k shortfall, so the "try again" hint can't recover it — add-liquidity is effectively unusable from the UI. Contract path itself is fine (
provide_liquidity, transfer_from x2, mint, code 0).Fix
Raise
ADD_LIQUIDITY_GAS_LIMIT500000 -> 650000 (~28% over measured, in line with the headroom REMOVE already carries).transactions.test.tsassertion updated. REMOVE (600k) and CREATE_PAIR (800k) left as-is.Same gas-underestimate family as #343 (different path — no native/unwrap here). Found verifying #337 (PL-00-02).
mentioned in issue #337
mentioned in issue #345
mentioned in commit
71cbddbee5mentioned in issue #353