Skip to content

Commit

Permalink
Add setConversionFee() which inherited from BancorConverter.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
masaun committed Feb 5, 2020
1 parent 659eb4c commit ac08cbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions contracts/NewBancorPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 2 additions & 3 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ac08cbd

Please sign in to comment.