1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add ve address (#1633)

This commit is contained in:
mihaisc 2022-10-11 09:56:53 +03:00 committed by GitHub
parent 13fc7bfe3a
commit 2b15ae2d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 2 deletions

View File

@ -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
}

View File

@ -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 })
}
}