Skip to content

Commit 5c07df0

Browse files
committed
fix(wasm-solana): don't add rent on top of staking amount
The intent's amount already includes rent-exempt minimum. The WASM builder was double-counting by adding STAKE_ACCOUNT_RENT on top. BTC-3025
1 parent 0342ddc commit 5c07df0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/wasm-solana/src/intent/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ fn build_stake(
226226
system_ix::create_account(
227227
&fee_payer,
228228
&stake_pubkey,
229-
amount + STAKE_ACCOUNT_RENT,
229+
amount,
230230
STAKE_ACCOUNT_SPACE,
231231
&solana_stake_interface::program::ID,
232232
),

0 commit comments

Comments
 (0)