Deploy: Treasury funding fails — script requests more uluna/uusd than test1 holds #29

Closed
opened 2026-03-18 04:45:01 +00:00 by Brouie · 3 comments
Brouie commented 2026-03-18 04:45:01 +00:00 (Migrated from gitlab.com)

Environment: LocalTerra, fresh deploy via deploy-dex-local.sh\n\nSteps to Reproduce:\n1. Run bash scripts/deploy-dex-local.sh\n2. Observe Phase 1b step [9b.10]\n\nExpected: Treasury funded with 10,000,000 LUNC + 40,000,000 USTC.\n\nGot:\n\nspendable balance 986491000000uluna is smaller than 10000000000000uluna: insufficient funds\n\n\ntest1 starts with ~1T uluna but prior steps (gas fees, wasm uploads) consume ~14B, leaving ~986B. Script requests 10T uluna (10,000,000 LUNC). uusd also fails — test1 has 10T uusd but script requests 40T.\n\nSuggested fix: Reduce funding amounts to fit within test1 post-deploy balance, e.g. 500,000 LUNC + 5,000,000 USTC. Or increase test1 genesis balance.

**Environment:** LocalTerra, fresh deploy via deploy-dex-local.sh\n\n**Steps to Reproduce:**\n1. Run bash scripts/deploy-dex-local.sh\n2. Observe Phase 1b step [9b.10]\n\n**Expected:** Treasury funded with 10,000,000 LUNC + 40,000,000 USTC.\n\n**Got:**\n```\nspendable balance 986491000000uluna is smaller than 10000000000000uluna: insufficient funds\n```\n\ntest1 starts with ~1T uluna but prior steps (gas fees, wasm uploads) consume ~14B, leaving ~986B. Script requests 10T uluna (10,000,000 LUNC). uusd also fails — test1 has 10T uusd but script requests 40T.\n\n**Suggested fix:** Reduce funding amounts to fit within test1 post-deploy balance, e.g. 500,000 LUNC + 5,000,000 USTC. Or increase test1 genesis balance.
PlasticDigits commented 2026-03-18 05:37:15 +00:00 (Migrated from gitlab.com)

mentioned in commit 86f148dcd8

mentioned in commit 86f148dcd82034ba83bd8efdce2c8cf8f962577c
PlasticDigits commented 2026-03-18 05:37:22 +00:00 (Migrated from gitlab.com)

Fixed in 86f148d — genesis balances for test1 bumped from 1T uluna / 10T uusd to 100T uluna / 100T uusd, so the treasury funding step (10T uluna + 40T uusd) now fits comfortably.

@Brouie please pull main and recreate the chain (make reset && make start) before re-running the deploy script, since the existing chain volume still has the old genesis baked in.

Fixed in 86f148d — genesis balances for test1 bumped from 1T uluna / 10T uusd to 100T uluna / 100T uusd, so the treasury funding step (10T uluna + 40T uusd) now fits comfortably. @Brouie please pull main and **recreate the chain** (`make reset && make start`) before re-running the deploy script, since the existing chain volume still has the old genesis baked in.
Brouie (Migrated from gitlab.com) closed this issue 2026-03-18 06:43:26 +00:00
Brouie commented 2026-03-18 06:55:30 +00:00 (Migrated from gitlab.com)

mentioned in issue #26

mentioned in issue #26
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#29
No description provided.