@zebec-network/zebec-stake-sdk 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service.js +1 -1
- package/package.json +1 -1
package/dist/service.js
CHANGED
|
@@ -248,7 +248,7 @@ class StakeService {
|
|
|
248
248
|
const stakePda = (0, pda_1.deriveStakeAddress)(staker, lockup, params.nonce, this.program.programId);
|
|
249
249
|
const rewardVault = (0, pda_1.deriveRewardVaultAddress)(lockup, this.program.programId);
|
|
250
250
|
const stakeVault = (0, pda_1.deriveStakeVaultAddress)(lockup, this.program.programId);
|
|
251
|
-
const stakerTokenAccount = (0, solana_common_1.getAssociatedTokenAddressSync)(stakeToken, staker);
|
|
251
|
+
const stakerTokenAccount = (0, solana_common_1.getAssociatedTokenAddressSync)(stakeToken, staker, true);
|
|
252
252
|
const instruction = await this.getUnstakeInstruction(feeVault, lockup, stakePda, rewardToken, rewardVault, stakeToken, stakeVault, staker, stakerTokenAccount, new anchor_1.BN(params.nonce.toString()));
|
|
253
253
|
return this._createPayload(staker, [instruction]);
|
|
254
254
|
}
|