Skip to content

Commit

Permalink
cleanup: remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
McSam94 committed Dec 21, 2023
1 parent 9d27246 commit 319f902
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions ts-client/src/farm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,36 +405,6 @@ export class PoolFarmImpl {
}).add(claimTx);
}

// async getClaimableReward(owner: PublicKey) {
// if (!this.eventParser) throw "EventParser not found";

// const claimMethodBuilder = await this.claimMethodBuilder(owner);

// const claimTransaction = await claimMethodBuilder.transaction();

// if (!claimTransaction) return;

// const blockhash = (
// await this.program.provider.connection.getLatestBlockhash("finalized")
// ).blockhash;
// const claimTx = new Transaction({
// recentBlockhash: blockhash,
// feePayer: SIMULATION_USER,
// });
// claimTransaction && claimTx.add(claimTransaction);

// const tx = await this.program.provider.connection.simulateTransaction(
// claimTx
// );

// const simulatedReward = (await parseLogs(
// this.eventParser,
// tx?.value?.logs ?? []
// )) as { amountA: BN; amountB: BN };

// return simulatedReward;
// }

static async getClaimableRewards(
owner: PublicKey,
farmMints: Array<PublicKey>,
Expand Down

0 comments on commit 319f902

Please sign in to comment.