Skip to content

feat(wasm-solana): add Native StakingType and make StakePoolConfig fi…#159

Merged
lcovar merged 2 commits intomasterfrom
BTC-3025-sol-wasm-staking-fixes
Feb 12, 2026
Merged

feat(wasm-solana): add Native StakingType and make StakePoolConfig fi…#159
lcovar merged 2 commits intomasterfrom
BTC-3025-sol-wasm-staking-fixes

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Feb 12, 2026

…elds optional

Add Native variant to StakingType enum so WASM can handle native staking intents that pass stakingType: "NATIVE". Make StakePoolConfig fields (reserveStake, managerFeeAccount, poolMint) optional since not all staking contexts provide every field.

BTC-3025

@lcovar lcovar requested a review from a team as a code owner February 12, 2026 21:55
@lcovar lcovar force-pushed the BTC-3025-sol-wasm-staking-fixes branch from 67e6b29 to 7f5c42a Compare February 12, 2026 22:26
@lcovar lcovar enabled auto-merge February 12, 2026 22:54
The intent's amount already includes rent-exempt minimum. The WASM
builder was double-counting by adding STAKE_ACCOUNT_RENT on top.

BTC-3025
…elds optional

Add Native variant to StakingType enum so WASM can handle native staking
intents that pass stakingType: "NATIVE". Make StakePoolConfig fields
(reserveStake, managerFeeAccount, poolMint) optional since not all
staking contexts provide every field.

BTC-3025
@lcovar lcovar force-pushed the BTC-3025-sol-wasm-staking-fixes branch from 5e9b38b to d25b6cb Compare February 12, 2026 22:55
@lcovar lcovar merged commit 924b7f0 into master Feb 12, 2026
6 checks passed
@lcovar lcovar deleted the BTC-3025-sol-wasm-staking-fixes branch February 12, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants