I hereby claim:
- I am ps2-controller on github.
- I am ps2_controller (https://keybase.io/ps2_controller) on keybase.
- I have a public key ASCQCd-Uc0lgRwA-Z_WCQstPHT498sHycevODLFRFvSO1Qo
To claim this, I am signing this object:
function redeem(uint256 amount) public { | |
ERC20 thisContract = ERC20(address(this)); | |
require(thisContract.transferFrom(msg.sender, address(this), amount), 'Please redeem'); | |
if(_closed) { | |
uint256 toTransfer = amount * _lenderEth / _totalSupply; | |
msg.sender.transfer(toTransfer); | |
toTransfer = amount * _lenderCollateral / _totalSupply; | |
daiContract.transfer(msg.sender, toTransfer); | |
} | |
} |
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++) { |
struct Offer { | |
// sorting information | |
uint next; // points to id of next higher offer | |
uint previous; // points to id of previous lower offer | |
// economic information | |
uint rate; // (minimum) fixed rate for which this offer is valid | |
uint amount; // amount of ether associated with this offer | |
address owner; | |
} |
I hereby claim:
To claim this, I am signing this object: