Skip to content

Commit

Permalink
Merge pull request #370 from curvefi/fix/fixed-getBasePools-mantle
Browse files Browse the repository at this point in the history
Fix/fixed get base pools mantle
  • Loading branch information
fedorovdg authored Jul 11, 2024
2 parents 625e106 + d238dea commit 0de9e70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.4",
"version": "2.61.5",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"author": "Macket",
Expand Down
4 changes: 2 additions & 2 deletions src/curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class Curve implements ICurve {
chainId: IChainId;
contracts: { [index: string]: { contract: Contract, multicallContract: MulticallContract } };
feeData: { gasPrice?: number, maxFeePerGas?: number, maxPriorityFeePerGas?: number };
constantOptions: { gasLimit: number };
constantOptions: { gasLimit?: number };
options: { gasPrice?: number | bigint, maxFeePerGas?: number | bigint, maxPriorityFeePerGas?: number | bigint };
L1WeightedGasPrice?: number;
constants: {
Expand Down Expand Up @@ -588,7 +588,7 @@ class Curve implements ICurve {
const customAbiTokens = [...cTokens, ...yTokens, ...ycTokens, ...aTokens];

if(this.chainId === 5000) {
this.constantOptions = { gasLimit: 9000000 }
this.constantOptions = {}
}

this.multicallProvider = new MulticallProvider(this.chainId, this.provider);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface ICurve {
chainId: number,
contracts: { [index: string]: { contract: Contract, multicallContract: MulticallContract } },
feeData: { gasPrice?: number, maxFeePerGas?: number, maxPriorityFeePerGas?: number },
constantOptions: { gasLimit: number },
constantOptions: { gasLimit?: number },
options: { gasPrice?: number | bigint, maxFeePerGas?: number | bigint, maxPriorityFeePerGas?: number | bigint },
constants: {
NATIVE_TOKEN: { symbol: string, wrappedSymbol: string, address: string, wrappedAddress: string },
Expand Down

0 comments on commit 0de9e70

Please sign in to comment.