Skip to content

Commit cd1b537

Browse files
authored
Merge pull request #401 from curvefi/feat/add-support-old-gauge-factory
Feat/add support old gauge factory
2 parents a0a672d + 2e2798b commit cd1b537

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@curvefi/api",
3-
"version": "2.63.9",
3+
"version": "2.63.10",
44
"description": "JavaScript library for curve.fi",
55
"main": "lib/index.js",
66
"author": "Macket",

src/factory/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ const _deployGaugeSidechain = async (pool: string, salt: string, estimateGas: bo
884884

885885
const _deployGaugeMirror = async (chainId: number, salt: string, estimateGas: boolean): Promise<ethers.ContractTransactionResponse | number | number[]> => {
886886
if (curve.chainId !== 1) throw Error("There is no deployGaugeMirror method on sidechain network");
887-
const rootGaugeFactory = chainId !== 42161? NETWORK_CONSTANTS[curve.chainId].root_gauge_factory: NETWORK_CONSTANTS[curve.chainId].root_gauge_factory_arbitrum;
887+
const rootGaugeFactory = chainId !== 42161? NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory: NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory_arbitrum;
888888
const contract = curve.contracts[rootGaugeFactory].contract;
889889
const _salt = ethers.encodeBytes32String(salt)
890890
const gas = await contract.deploy_gauge.estimateGas(chainId, Typed.bytes32(_salt), curve.constantOptions);
@@ -924,7 +924,7 @@ export const getDeployedGaugeMirrorAddressByTx = async (tx: ethers.ContractTrans
924924

925925
export const getDeployedGaugeMirrorAddress = async (chainId: number): Promise<string> => {
926926
if (curve.chainId !== 1) throw Error("There is no getDeployedGaugeMirrorAddress method on sidechain network");
927-
const rootGaugeFactory = chainId !== 42161? NETWORK_CONSTANTS[curve.chainId].root_gauge_factory: NETWORK_CONSTANTS[curve.chainId].root_gauge_factory_arbitrum;
927+
const rootGaugeFactory = chainId !== 42161? NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory: NETWORK_CONSTANTS[curve.chainId].ALIASES.root_gauge_factory_arbitrum;
928928
const contract = curve.contracts[rootGaugeFactory].contract;
929929
const gaugeCount = await contract.get_gauge_count(chainId);
930930
const currentIndex: number = Number(gaugeCount) - 1;

0 commit comments

Comments
 (0)