diff --git a/embarkConfig/contracts.js b/embarkConfig/contracts.js index a40227c..815c304 100644 --- a/embarkConfig/contracts.js +++ b/embarkConfig/contracts.js @@ -201,7 +201,32 @@ module.exports = { }), // merges with the settings in default // used with "embark run livenet" - livenet: {}, + livenet: { + enabled: true, + dappConnection: [ + '$WEB3' + ], + strategy: 'explicit', + tracking: './livenet.chains.json', + contracts: { + LPVault: {}, + LiquidPledging: {}, + RecoveryVault: {}, + LPFactory: { + args: { + _vaultBase: '$LPVault', + _lpBase: '$LiquidPledging', + } + }, + SNT: { + address: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359' + } + }, + afterDeploy: async (dependencies) => { + await dependencies.contracts.LiquidPledging.methods.initialize(dependencies.contracts.LPVault.options.address).send({from: dependencies.web3.eth.defaultAccount, gas: 1000000}); + await dependencies.contracts.LPVault.methods.initialize(dependencies.contracts.LiquidPledging.options.address).send({from: dependencies.web3.eth.defaultAccount, gas: 1000000}); + } + }, // you can name an environment with specific settings and then specify with // "embark run custom_name" or "embark blockchain custom_name" diff --git a/src/utils/currencies.js b/src/utils/currencies.js index 11ff927..08a698d 100644 --- a/src/utils/currencies.js +++ b/src/utils/currencies.js @@ -6,7 +6,7 @@ export const TOKEN_COIN_API = 'https://raw.githubusercontent.com/TrustWallet/tok export const TOKEN_API = 'https://raw.githubusercontent.com/TrustWallet/tokens/master/tokens' export const currencies = [ { - value: 'WETH', + value: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', label: 'Wrapped Ether', img: `${TOKEN_COIN_API}/60.png`, width: '5%'