Skip to main content

CToken

Functions

redeemUnderlying

function redeemUnderlying(
uint256 redeemAmount
) external returns (uint256)

Parameters

NameTypeDescription
redeemAmountuint256

exchangeRateStored

function exchangeRateStored() external returns (uint256)

balanceOf

function balanceOf(
address account
) external returns (uint256)

Parameters

NameTypeDescription
accountaddress

MockCToken

Functions

constructor

function constructor(
contract IERC20 _token,
bool _isCEther
) public

Parameters

NameTypeDescription
_tokencontract IERC20
_isCEtherbool

setError

function setError(
bool _error
) external

Parameters

NameTypeDescription
_errorbool

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

NameTypeDescription
amountuint256

redeemUnderlying

function redeemUnderlying(
uint256 redeemAmount
) external returns (uint256)

Parameters

NameTypeDescription
redeemAmountuint256

exchangeRateStored

function exchangeRateStored() external returns (uint256)