Last active
August 27, 2019 11:52
-
-
Save ps2-controller/35063f0d2b31ed0ab9c0a115b188173e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constructor( | |
address daiAddress, | |
address[] memory providers, | |
uint256[] memory weights, | |
address payable borrower_) | |
public { | |
daiContract = ERC20(daiAddress); | |
fixedFeeCdp = new FixedFeeCdp(address(this)); | |
for (uint i = 0; i < providers.length; i++) { | |
_balances[providers[i]] = weights[i]; | |
_totalSupply += weights[i]; | |
} | |
borrower = borrower_; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment