msg.sender:
The account which shall supply the asset, and own the minted cTokens.mintAmount
: The amount of the asset to be supplied, in units of the underlying asset.RETURN:
0 on success, otherwise an Error codemsg.valuepayable:
The amount of ether to be supplied, in wei.msg.sender:
The account which shall supply the ether, and own the minted cTokens.RETURN:
No return, reverts on error.msg.sender:
The account to which redeemed funds shall be transferred.redeemTokens:
The number of cTokens to be redeemed.RETURN:
0 on success, otherwise an Error codemsg.sender:
The account to which redeemed funds shall be transferred.borrowAmount:
The number of crTokens to be borrowedRETURN:
0 on success, otherwise an Error codemsg.sender:
The account to which borrowed the asset, and shall repay the borrow.borrowAmount:
The amount of the underlying borrowed asset to be repaid. A value of -1 (i.e. 2^256 - 1) can be used to repay the full amount.RETURN:
0 on success, otherwise an Error codemsg.value
payable: The amount of ether to be repaid, in wei.msg.sender:
The account which borrowed the asset, and shall repay the borrowRETURN:
0 on success, otherwise an Error codemsg.sender:
The account to which shall repay the borrowborrowAmount:
The account which borrowed the asset to be repaid.repayAmount
: The amount of the underlying borrowed asset to be repaid. A value of -1 (i.e. 2^256 - 1) can be used to repay the full amount.RETURN:
0 on success, otherwise an Error codemsg.valuepayable:
The amount of ether to be repaid, in wei.msg.sender:
The account which shall repay the borrow.borrower:
The account which borrowed the asset to be repaid.RETURN:
No return, reverts on error.msg.sender:
The account which shall liquidate the borrower by repaying their debt and seizing their collateral.borrower:
The account with negative account liquidity that shall be liquidated.repayAmount:
The amount of the borrowed asset to be repaid and converted into collateral, specified in units of the underlying borrowed asset.cTokenCollateral:
The address of the crToken currently held as collateral by a borrower, that the liquidator shall seize.RETURN:
0 on success, otherwise an Error codemsg.valuepayable:
The amount of ether to be repaid and converted into collateral, in wei.msg.sender:
The account which shall liquidate the borrower by repaying their debt and seizing their collateral.crTokenCollateral:
The address of the crToken currently held as collateral by a borrower, that the liquidator shall seize.RETURN:
No return, reverts on error.RETURN:
The quantity of underlying asset owned by the contract.RETURN:
The total amount of borrowed underlying, with interest.RETURN:
The total amount of borrowed underlying, with interest.RETURN:
The total amount of borrowed underlying, with interest.RETURN:
The total number of tokens in circulation for the market.account:
The account to get the underlying balance of.RETURN:
The amount of underlying currently owned by the account.RETURN:
The current supply rate as an unsigned integer, scaled by 1e18.RETURN:
The total amount of reserves held in the marketRETURN:
The current reserve factor as an unsigned itneger, scaled by 1e18.