CToken
Functions
redeemUnderlying
function redeemUnderlying(
uint256 redeemAmount
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
redeemAmount | uint256 |
exchangeRateStored
function exchangeRateStored() external returns (uint256)
balanceOf
function balanceOf(
address account
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
account | address |
MockCToken
Functions
constructor
function constructor(
contract IERC20 _token,
bool _isCEther
) public
Parameters
Name | Type | Description |
---|---|---|
_token | contract IERC20 | |
_isCEther | bool |
setError
function setError(
bool _error
) external
Parameters
Name | Type | Description |
---|---|---|
_error | bool |
isCToken
function isCToken() external returns (bool)
underlying
function underlying() external returns (address)
mint
function mint() external
mint
function mint(
uint256 amount
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 |
redeemUnderlying
function redeemUnderlying(
uint256 redeemAmount
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
redeemAmount | uint256 |
exchangeRateStored
function exchangeRateStored() external returns (uint256)