@triadxyz/triad-protocol 1.0.8-beta → 1.0.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
|
@@ -234,7 +234,7 @@ class Stake {
|
|
|
234
234
|
*/
|
|
235
235
|
claimStakeRewards({ wallet, collections, ranks, verifier }, options) {
|
|
236
236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
-
const stakes = yield this.getUserStakes(wallet);
|
|
237
|
+
const stakes = (yield this.getUserStakes(wallet)).sort((a, b) => a.claimedTs - b.claimedTs);
|
|
238
238
|
const ixs = [];
|
|
239
239
|
for (const stake of stakes) {
|
|
240
240
|
const rank = (0, getRarityRank_1.default)(ranks, stake.mint, stake.name);
|
|
@@ -25,8 +25,7 @@ const sendVersionedTransaction = (provider, ixs, options, payer) => __awaiter(vo
|
|
|
25
25
|
if (payer) {
|
|
26
26
|
tx.sign([payer]);
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
return provider.sendAndConfirm(newTx, payer ? [payer] : [], {
|
|
28
|
+
return provider.sendAndConfirm(tx, payer ? [payer] : [], {
|
|
30
29
|
skipPreflight: options === null || options === void 0 ? void 0 : options.skipPreflight,
|
|
31
30
|
commitment: 'confirmed'
|
|
32
31
|
});
|