bug: Swap fails out of gas — SWAP_GAS_LIMIT 400k too low #14
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#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Description
Swap transaction fails with out of gas error. The hardcoded SWAP_GAS_LIMIT (400000) is insufficient — actual usage was 434150.
Error
Transaction failed: out of gas in location: Loading CosmWasm module: execute; gasWanted: 400000, gasUsed: 434150: out of gasExpected
Gas limit for swaps should accommodate actual usage. Suggest bumping to 600000 to match REMOVE_LIQUIDITY_GAS_LIMIT.
Location
frontend-dapp/src/services/terraclassic/transactions.ts line 7:
const SWAP_GAS_LIMIT = 400000;Steps to Reproduce
mentioned in issue #1
mentioned in issue #18
mentioned in commit
06a9ae5310mentioned in merge request !719
Fix implemented in !719: bumped SWAP_GAS_LIMIT from 400k to 600k to accommodate actual usage (~434k). Requesting review from @Brouie.
mentioned in commit
ed535637a7Verified fixed — SWAP_GAS_LIMIT bumped to 600000 in latest commit.
mentioned in issue #49
mentioned in issue #50