Skip to content

Instantly share code, notes, and snippets.

@ps2-controller
Last active August 27, 2019 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ps2-controller/35063f0d2b31ed0ab9c0a115b188173e to your computer and use it in GitHub Desktop.
Save ps2-controller/35063f0d2b31ed0ab9c0a115b188173e to your computer and use it in GitHub Desktop.
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