From 9cb2ea0a02ec7e720071dd53b9551ac51c103b46 Mon Sep 17 00:00:00 2001 From: AdriGeorge <49452066+AdriGeorge@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:59:36 +0300 Subject: [PATCH] chore: get router factory address from config (#1858) Co-authored-by: Bogdan Fazakas --- src/config/Config.ts | 6 ++++++ src/config/ConfigHelper.ts | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/config/Config.ts b/src/config/Config.ts index 8a33bc796..cb9013182 100644 --- a/src/config/Config.ts +++ b/src/config/Config.ts @@ -44,6 +44,12 @@ export class Config { */ public nftFactoryAddress?: string + /** + * Router Factory address + * @type {string} + */ + public routerFactoryAddress?: string + /** * datatokens ABI * @type {string} diff --git a/src/config/ConfigHelper.ts b/src/config/ConfigHelper.ts index 546592c47..863fe3cb2 100644 --- a/src/config/ConfigHelper.ts +++ b/src/config/ConfigHelper.ts @@ -206,6 +206,7 @@ export class ConfigHelper { DFRewards, DFStrategyV1, veFeeEstimate, + Router, AccessListFactory } = customAddresses[network] configAddresses = { @@ -214,6 +215,7 @@ export class ConfigHelper { fixedRateExchangeAddress: FixedPrice, dispenserAddress: Dispenser, oceanTokenAddress: Ocean, + routerFactoryAddress: Router, chainId, startBlock, veAllocate, @@ -247,6 +249,7 @@ export class ConfigHelper { DFRewards, DFStrategyV1, veFeeEstimate, + Router, AccessListFactory } = DefaultContractsAddresses[network] configAddresses = { @@ -255,6 +258,7 @@ export class ConfigHelper { fixedRateExchangeAddress: FixedPrice, dispenserAddress: Dispenser, oceanTokenAddress: Ocean, + routerFactoryAddress: Router, chainId, startBlock, veAllocate,