bug: Withdraw liquidity fails — out of gas (400k limit too low) #11

Closed
opened 2026-03-12 04:54:22 +00:00 by Brouie · 6 comments
Brouie commented 2026-03-12 04:54:22 +00:00 (Migrated from gitlab.com)

Description

Withdrawing liquidity fails with out of gas error. The hardcoded gas limit (400000) is insufficient — actual usage was 449071.

Error

Transaction failed: out of gas in location: Loading CosmWasm module: execute; gasWanted: 400000, gasUsed: 449071: out of gas

Expected

Gas limit for withdraw liquidity should be set higher (e.g. 600000) to accommodate the transaction.

Steps to Reproduce

  1. Connect wallet
  2. Go to Pool page
  3. Select EMBER/CORAL pair
  4. Click Withdraw Liquidity tab
  5. Enter 1000 LP tokens
  6. Click Withdraw Liquidity
  7. TX fails with out of gas

Fix

In transactions.ts, increase REMOVE_LIQUIDITY_GAS_LIMIT from 400000 to 600000.

## Description Withdrawing liquidity fails with out of gas error. The hardcoded gas limit (400000) is insufficient — actual usage was 449071. ## Error `Transaction failed: out of gas in location: Loading CosmWasm module: execute; gasWanted: 400000, gasUsed: 449071: out of gas` ## Expected Gas limit for withdraw liquidity should be set higher (e.g. 600000) to accommodate the transaction. ## Steps to Reproduce 1. Connect wallet 2. Go to Pool page 3. Select EMBER/CORAL pair 4. Click Withdraw Liquidity tab 5. Enter 1000 LP tokens 6. Click Withdraw Liquidity 7. TX fails with out of gas ## Fix In transactions.ts, increase REMOVE_LIQUIDITY_GAS_LIMIT from 400000 to 600000.
PlasticDigits commented 2026-03-12 07:03:15 +00:00 (Migrated from gitlab.com)

Fix committed in 6835c4a: REMOVE_LIQUIDITY_GAS_LIMIT increased from 400k to 600k in frontend-dapp/src/services/terraclassic/transactions.ts. This should resolve the out-of-gas error (actual usage was ~449k). @Brouie please verify when you have a chance.

Fix committed in `6835c4a`: `REMOVE_LIQUIDITY_GAS_LIMIT` increased from 400k to 600k in `frontend-dapp/src/services/terraclassic/transactions.ts`. This should resolve the out-of-gas error (actual usage was ~449k). @Brouie please verify when you have a chance.
PlasticDigits commented 2026-03-12 11:49:15 +00:00 (Migrated from gitlab.com)

mentioned in commit 6835c4aeae

mentioned in commit 6835c4aeae9d7b4cfd02c8867e386ed9375bd944
Brouie (Migrated from gitlab.com) closed this issue 2026-03-13 01:56:38 +00:00
Brouie commented 2026-03-13 01:56:40 +00:00 (Migrated from gitlab.com)

Verified fixed — REMOVE_LIQUIDITY_GAS_LIMIT bumped to 600000, withdraw works.

Verified fixed — REMOVE_LIQUIDITY_GAS_LIMIT bumped to 600000, withdraw works.
Brouie commented 2026-03-13 02:02:26 +00:00 (Migrated from gitlab.com)

mentioned in issue #1

mentioned in issue #1
Brouie commented 2026-03-13 04:22:43 +00:00 (Migrated from gitlab.com)

mentioned in issue #18

mentioned in issue #18
PlasticDigits commented 2026-05-29 06:51:05 +00:00 (Migrated from gitlab.com)

mentioned in issue #225

mentioned in issue #225
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic#11
No description provided.