Skip to content

Commit

Permalink
Add contractAddress of cDAI (cToken)
Browse files Browse the repository at this point in the history
  • Loading branch information
masaun committed Feb 3, 2020
1 parent cbe46bd commit e91f1b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions contracts/NewBancorPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ contract NewBancorPool is BnStorage, BnConstants {

address BNTtoken;
address ERC20token;

address cDAI; // cToken from compound pool

constructor(
address _contractRegistry,
address _BNTtoken,
address _ERC20token
address _ERC20token,
address _cDAI
) public {
contractRegistry = ContractRegistry(_contractRegistry);

BNTtoken = _BNTtoken;
ERC20token = _ERC20token;
cDAI = _cDAI; // cToken from compound pool
}


Expand Down
12 changes: 10 additions & 2 deletions migrations/3_deploy_new_bancor_pool.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
var NewBancorPool = artifacts.require("NewBancorPool");

/***
* @notice - contract address of ContractRegistry on Ropsten
* @notice - This is ContractAddress on Ropsten
* @ref - https://support.bancor.network/hc/en-us/articles/360010410399-Ethereum-Ropsten-Network-
* @ref - https://compound.finance/developers
**/
const _contractRegistry = '0x8a69A7d7507F8c4a9dD5dEB9B687B30D2b30A011'
const _BNTtoken = '0x9C7d1F4a027C64Af951858FD0F9CB3C91e008829'
const _ERC20token = ''
const _cDAI = '0x2b536482a01e620ee111747f8334b395a42a555e'


module.exports = function(deployer) {
deployer.deploy(NewBancorPool, _contractRegistry);
deployer.deploy(
NewBancorPool,
_contractRegistry,
_BNTtoken,
_ERC20token,
_cDAI
);
};

1 comment on commit e91f1b0

@masaun
Copy link
Owner Author

@masaun masaun commented on e91f1b0 Feb 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ContractAddress of cToken on Ropsten from Compound

https://compound.finance/developers

Please sign in to comment.