@triadxyz/triad-protocol 1.2.8-beta → 1.2.9-beta
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/stake.js
CHANGED
|
@@ -166,6 +166,7 @@ class Stake {
|
|
|
166
166
|
requestWithdraw({ wallet, nfts }, options) {
|
|
167
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
168
|
const ixs = [];
|
|
169
|
+
const stakeVaultPDA = (0, stake_1.getStakeVaultPDA)(this.program.programId, this.stakeVaultName);
|
|
169
170
|
const userPDA = (0, pda_1.getUserPDA)(this.program.programId, wallet);
|
|
170
171
|
for (const nft of nfts) {
|
|
171
172
|
const stakePDA = (0, stake_1.getStakePDA)(this.program.programId, wallet, nft.name);
|
|
@@ -175,7 +176,8 @@ class Stake {
|
|
|
175
176
|
signer: wallet,
|
|
176
177
|
mint: nft.mint,
|
|
177
178
|
user: userPDA,
|
|
178
|
-
stake: stakePDA
|
|
179
|
+
stake: stakePDA,
|
|
180
|
+
stakeVault: stakeVaultPDA
|
|
179
181
|
})
|
|
180
182
|
.instruction());
|
|
181
183
|
}
|