Skip to content

Commit

Permalink
chore: get router factory address from config (#1858)
Browse files Browse the repository at this point in the history
Co-authored-by: Bogdan Fazakas <[email protected]>
  • Loading branch information
AdriGeorge and bogdanfazakas authored Oct 8, 2024
1 parent e6d7d7c commit 9cb2ea0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export class Config {
*/
public nftFactoryAddress?: string

/**
* Router Factory address
* @type {string}
*/
public routerFactoryAddress?: string

/**
* datatokens ABI
* @type {string}
Expand Down
4 changes: 4 additions & 0 deletions src/config/ConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export class ConfigHelper {
DFRewards,
DFStrategyV1,
veFeeEstimate,
Router,
AccessListFactory
} = customAddresses[network]
configAddresses = {
Expand All @@ -214,6 +215,7 @@ export class ConfigHelper {
fixedRateExchangeAddress: FixedPrice,
dispenserAddress: Dispenser,
oceanTokenAddress: Ocean,
routerFactoryAddress: Router,
chainId,
startBlock,
veAllocate,
Expand Down Expand Up @@ -247,6 +249,7 @@ export class ConfigHelper {
DFRewards,
DFStrategyV1,
veFeeEstimate,
Router,
AccessListFactory
} = DefaultContractsAddresses[network]
configAddresses = {
Expand All @@ -255,6 +258,7 @@ export class ConfigHelper {
fixedRateExchangeAddress: FixedPrice,
dispenserAddress: Dispenser,
oceanTokenAddress: Ocean,
routerFactoryAddress: Router,
chainId,
startBlock,
veAllocate,
Expand Down

0 comments on commit 9cb2ea0

Please sign in to comment.