AdvancedTokenStorage
LoanToken
fallback
(fallback)
payable
Inputs
(void)
Outputs
(void)
function()
external
payable
{
address target = target_;
bytes memory data = msg.data;
assembly {
let result := delegatecall(gas, target, add(data, 0x20), mload(data), 0, 0)
let size := returndatasize
let ptr := mload(0x40)
returndatacopy(ptr, 0, size)
switch result
case 0 { revert(ptr, size) }
default { return(ptr, size) }
}
}
LoanTokenStorage
event
Borrow
Inputs
Parameter | Type | Description |
---|---|---|
borrower | address | |
borrowAmount | uint256 | |
interestRate | uint256 | |
collateralTokenAddress | address | |
tradeTokenToFillAddress | address | |
withdrawOnOpen | bool |
Outputs
(void)