@mercurial-finance/farming-sdk
Advanced tools
Comparing version 1.0.11-a1.0 to 1.0.11-a12.1
@@ -1042,14 +1042,15 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __defProp = Object.defineProperty; | ||
); | ||
const claimAllIxs = yield Promise.all( | ||
const claimAllTxs = yield Promise.all( | ||
poolFarmsImpl.map((poolFarmImpl) => __async(this, null, function* () { | ||
const claimMethod = yield poolFarmImpl.claimMethodBuilder(owner); | ||
return [ | ||
yield claimMethod.method.instruction(), | ||
...claimMethod.preInstructions | ||
]; | ||
return yield claimMethod.method.transaction(); | ||
})) | ||
); | ||
const chunkedClaimAllIx = chunks(claimAllIxs.flat(), MAX_CLAIM_ALL_ALLOWED); | ||
const chunkedClaimAllTx = chunks(claimAllTxs, MAX_CLAIM_ALL_ALLOWED); | ||
console.log( | ||
"\u{1F680} ~ file: farm.ts:226 ~ PoolFarmImpl ~ chunkedClaimAllIx:", | ||
chunkedClaimAllTx | ||
); | ||
return Promise.all( | ||
chunkedClaimAllIx.map((claimAllIx) => __async(this, null, function* () { | ||
chunkedClaimAllTx.map((claimAllTx) => __async(this, null, function* () { | ||
return new (0, _web3js.Transaction)(__spreadValues({ | ||
@@ -1059,3 +1060,3 @@ feePayer: owner | ||
"finalized" | ||
))).add(...claimAllIx).add(_web3js.ComputeBudgetProgram.setComputeUnitLimit({ units: 14e5 })); | ||
))).add(...claimAllTx).add(_web3js.ComputeBudgetProgram.setComputeUnitLimit({ units: 14e5 })); | ||
})) | ||
@@ -1062,0 +1063,0 @@ ); |
{ | ||
"name": "@mercurial-finance/farming-sdk", | ||
"version": "1.0.11-a1.0", | ||
"version": "1.0.11-a12.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
242291
3230