Skip to content

Commit 7c9e88a

Browse files
committed
fix: use network config gas price for unls instead of hardcoded 0.0025
The hardcoded fallback was 10x lower than the chain's actual minimum gas price (0.0025 vs 0.025), causing insufficient fee errors on IBC transfers paid in NLS.
1 parent 8b08ae4 commit 7c9e88a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

backend/src/refresh.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,10 +1214,14 @@ pub async fn refresh_gas_fee_config(state: &Arc<AppState>) {
12141214
}
12151215
}
12161216

1217-
// Always include unls as fallback (matching NolusWallet behavior)
1218-
gas_prices
1219-
.entry("unls".to_string())
1220-
.or_insert_with(|| "0.0025".to_string());
1217+
// Always include unls with gas price from network config (single source of truth)
1218+
if let Some(nolus) = gated.network_config.networks.get("NOLUS") {
1219+
let nls_price = nolus
1220+
.gas_price
1221+
.trim_end_matches(|c: char| c.is_alphabetic() || c == '_')
1222+
.to_string();
1223+
gas_prices.insert("unls".to_string(), nls_price);
1224+
}
12211225

12221226
// Gas multiplier from gated network config for NOLUS (single source of truth)
12231227
let gas_multiplier = gated

0 commit comments

Comments
 (0)