From ac08cbdb6a3e82486f64dc7edfef988478d170b1 Mon Sep 17 00:00:00 2001 From: masaun Date: Wed, 5 Feb 2020 20:17:34 +0100 Subject: [PATCH] Add setConversionFee() which inherited from BancorConverter.sol --- contracts/NewBancorPool.sol | 2 ++ truffle-config.js | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contracts/NewBancorPool.sol b/contracts/NewBancorPool.sol index e726229..78b18fa 100644 --- a/contracts/NewBancorPool.sol +++ b/contracts/NewBancorPool.sol @@ -90,7 +90,9 @@ contract NewBancorPool is BnStorage, BnConstants { // Step #3: Converter Deployment uint index = 0; uint32 reserveRatio = 10; // The case of this, I specify 10% as percentage of ratio. (After I need to divide by 100) + uint32 _conversionFee = 1000 bancorConverter.addConnector(IERC20Token(ERC20tokenAddr), reserveRatio, true); + bancorConverter.setConversionFee(_conversionFee); // Step #4: Funding & Initial Supply uint256 fundedAmount = 100; diff --git a/truffle-config.js b/truffle-config.js index 8d52f02..d90395e 100755 --- a/truffle-config.js +++ b/truffle-config.js @@ -12,9 +12,8 @@ module.exports = { //return new HDWalletProvider("Replace here with your mnemonic word", process.env.RPC_URL_ROPSTEN) }, network_id: '3', - gas: 2000000, // Gas limit used for deploys - //gas: 6721975, // Gas limit used for deploys - gasPrice: 20000000000, + //gas: 4600000, // Gas limit used for deploys + //gasPrice: 20000000000, skipDryRun: true }, development: {