Skip to main content

CErc20Delegator

Functions

_setPendingAdmin

function _setPendingAdmin(
address payable newPendingAdmin
) external returns (uint256)

Parameters

NameTypeDescription
newPendingAdminaddress payable

_setInterestRateModel

function _setInterestRateModel(
contract InterestRateModel newInterestRateModel
) public returns (uint256)

Parameters

NameTypeDescription
newInterestRateModelcontract InterestRateModel

_setImplementationSafe

function _setImplementationSafe(
address implementation_,
bool allowResign,
bytes becomeImplementationData
) external

Parameters

NameTypeDescription
implementation_address
allowResignbool
becomeImplementationDatabytes

redeemUnderlying

function redeemUnderlying(
uint256 underlying
) external

Parameters

NameTypeDescription
underlyinguint256

_acceptAdmin

function _acceptAdmin() external returns (uint256)

mint

function mint(
uint256 mintAmount
) external returns (uint256)

Parameters

NameTypeDescription
mintAmountuint256

balanceOf

function balanceOf(
address owner
) external returns (uint256)

Parameters

NameTypeDescription
owneraddress

borrow

function borrow(
uint256 mintAmount
) external returns (uint256)

Parameters

NameTypeDescription
mintAmountuint256

balanceOfUnderlying

function balanceOfUnderlying(
address owner
) external returns (uint256)

Parameters

NameTypeDescription
owneraddress