Skip to content

Commit

Permalink
Merge pull request #378 from curvefi/fix/fixed-GaugePool
Browse files Browse the repository at this point in the history
fix: fixed _depositReward
  • Loading branch information
fedorovdg authored Aug 4, 2024
2 parents 230b7ac + 13777dc commit 049e589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/api",
"version": "2.61.11",
"version": "2.61.12",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"author": "Macket",
Expand Down
4 changes: 2 additions & 2 deletions src/pools/gaugePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ export class GaugePool implements IGaugePool {

const contract = curve.contracts[this.address].contract;

const gas = await contract.deposit_reward_token.estimateGas(rewardToken,amount, { ...curve.constantOptions });
const gas = await contract.deposit_reward_token.estimateGas(rewardToken,amount, epoch, { ...curve.constantOptions });
if (estimateGas) return smartNumber(gas);

const gasLimit = mulBy1_3(DIGas(gas));
return (await contract.deposit_reward_token(rewardToken, amount, { ...curve.options, gasLimit})).hash;
return (await contract.deposit_reward_token(rewardToken, amount, epoch, { ...curve.options, gasLimit})).hash;
}

async depositRewardEstimateGas(rewardToken: string, amount: string | number, epoch: number): Promise<number | number[]> {
Expand Down

0 comments on commit 049e589

Please sign in to comment.