Skip to content

Commit

Permalink
Merge pull request #59 from MeteoraAg/fix-claim-all-2
Browse files Browse the repository at this point in the history
Fix/claim all
  • Loading branch information
00xSam authored Nov 23, 2023
2 parents 717fa0b + 57440b8 commit 4ae50cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ts-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mercurial-finance/farming-sdk",
"version": "1.0.12",
"version": "1.0.13",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
11 changes: 1 addition & 10 deletions ts-client/src/farm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,9 @@ export class PoolFarmImpl {
) {
const { program } = getFarmProgram(connection);

const userBalanceMap = await PoolFarmImpl.getUserBalances(
connection,
owner,
farmMints
);
const farmMintWithBalance = Array.from(userBalanceMap.keys()).map(
(farmMint) => new PublicKey(farmMint)
);

const poolFarmsImpl = await PoolFarmImpl.createMultiple(
connection,
farmMintWithBalance,
farmMints,
{ cluster: opt?.cluster }
);

Expand Down

0 comments on commit 4ae50cc

Please sign in to comment.