From 2b15ae2d5a57e13a63e2a8294bb26ab66a85f8ce Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 11 Oct 2022 09:56:53 +0300 Subject: [PATCH] add ve address (#1633) --- src/config/Config.ts | 9 +++++++++ src/config/ConfigHelper.ts | 36 ++++++++++++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/config/Config.ts b/src/config/Config.ts index f48a67e7..f48cfe10 100644 --- a/src/config/Config.ts +++ b/src/config/Config.ts @@ -170,4 +170,13 @@ export class Config { * @type {number} */ gasFeeMultiplier: number + + veAllocate?: string + veOCEAN?: string + veDelegation?: string + veFeeDistributor?: string + veDelegationProxy?: string + DFRewards?: string + DFStrategyV1?: string + veFeeEstimate?: string } diff --git a/src/config/ConfigHelper.ts b/src/config/ConfigHelper.ts index 510c3d12..2ac32fb3 100644 --- a/src/config/ConfigHelper.ts +++ b/src/config/ConfigHelper.ts @@ -144,7 +144,15 @@ export class ConfigHelper { OPFCommunityFeeCollector, Ocean, chainId, - startBlock + startBlock, + veAllocate, + veOCEAN, + veDelegation, + veFeeDistributor, + veDelegationProxy, + DFRewards, + DFStrategyV1, + veFeeEstimate } = customAddresses[network] configAddresses = { nftFactoryAddress: ERC721Factory, @@ -154,6 +162,14 @@ export class ConfigHelper { oceanTokenAddress: Ocean, chainId, startBlock, + veAllocate, + veOCEAN, + veDelegation, + veFeeDistributor, + veDelegationProxy, + DFRewards, + DFStrategyV1, + veFeeEstimate, ...(process.env.AQUARIUS_URI && { metadataCacheUri: process.env.AQUARIUS_URI }) } } else { @@ -166,7 +182,15 @@ export class ConfigHelper { ERC721Factory, Ocean, chainId, - startBlock + startBlock, + veAllocate, + veOCEAN, + veDelegation, + veFeeDistributor, + veDelegationProxy, + DFRewards, + DFStrategyV1, + veFeeEstimate } = DefaultContractsAddresses[network] configAddresses = { nftFactoryAddress: ERC721Factory, @@ -176,6 +200,14 @@ export class ConfigHelper { oceanTokenAddress: Ocean, chainId, startBlock, + veAllocate, + veOCEAN, + veDelegation, + veFeeDistributor, + veDelegationProxy, + DFRewards, + DFStrategyV1, + veFeeEstimate, ...(process.env.AQUARIUS_URI && { metadataCacheUri: process.env.AQUARIUS_URI }) } }