CDelegatorInterface
NewImplementation
Inputs
Parameter | Type | Description |
---|---|---|
oldImplementation | address | |
newImplementation | address |
Outputs
CErc20Delegator
CErc20Delegator
Inputs
Parameter | Type | Description |
---|---|---|
underlying_ | address | |
comptroller_ | address | |
interestRateModel_ | address | |
initialExchangeRateMantissa_ | uint256 | |
name_ | string | |
symbol_ | string | |
decimals_ | uint8 | |
admin_ | address | |
implementation_ | address | |
becomeImplementationData | bytes |
Outputs
(fallback)
Inputs
Outputs
transferFrom
Inputs
Parameter | Type | Description |
---|---|---|
src | address | |
dst | address | |
amount | uint256 |
Outputs
Type | Description |
---|---|
bool |
transfer
Inputs
Parameter | Type | Description |
---|---|---|
dst | address | |
amount | uint256 |
Outputs
Type | Description |
---|---|
bool |
totalBorrowsCurrent
Inputs
Outputs
Type | Description |
---|---|
uint256 |
seize
Inputs
Parameter | Type | Description |
---|---|---|
liquidator | address | |
borrower | address | |
seizeTokens | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
repayBorrowBehalf
Inputs
Parameter | Type | Description |
---|---|---|
borrower | address | |
repayAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
repayBorrow
Inputs
Parameter | Type | Description |
---|---|---|
repayAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
redeemUnderlying
Inputs
Parameter | Type | Description |
---|---|---|
redeemAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
redeem
Inputs
Parameter | Type | Description |
---|---|---|
redeemTokens | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
mint
Inputs
Parameter | Type | Description |
---|---|---|
mintAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
liquidateBorrow
Inputs
Parameter | Type | Description |
---|---|---|
borrower | address | |
repayAmount | uint256 | |
cTokenCollateral | address |
Outputs
Type | Description |
---|---|
uint256 |
exchangeRateCurrent
Inputs
Outputs
Type | Description |
---|---|
uint256 |
delegateToImplementation
Inputs
Parameter | Type | Description |
---|---|---|
data | bytes |
Outputs
Type | Description |
---|---|
bytes |
borrowBalanceCurrent
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
Type | Description |
---|---|
uint256 |
borrow
Inputs
Parameter | Type | Description |
---|---|---|
borrowAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
balanceOfUnderlying
Inputs
Parameter | Type | Description |
---|---|---|
owner | address |
Outputs
Type | Description |
---|---|
uint256 |
approve
Inputs
Parameter | Type | Description |
---|---|---|
spender | address | |
amount | uint256 |
Outputs
Type | Description |
---|---|
bool |
accrueInterest
Inputs
Outputs
Type | Description |
---|---|
uint256 |
_setReserveFactor
Inputs
Parameter | Type | Description |
---|---|---|
newReserveFactorMantissa | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
_setPendingAdmin
Inputs
Parameter | Type | Description |
---|---|---|
newPendingAdmin | address |
Outputs
Type | Description |
---|---|
uint256 |
_setInterestRateModel
Inputs
Parameter | Type | Description |
---|---|---|
newInterestRateModel | address |
Outputs
Type | Description |
---|---|
uint256 |
_setImplementation
Inputs
Parameter | Type | Description |
---|---|---|
implementation_ | address | |
allowResign | bool | |
becomeImplementationData | bytes |
Outputs
_setComptroller
Inputs
Parameter | Type | Description |
---|---|---|
newComptroller | address |
Outputs
Type | Description |
---|---|
uint256 |
_reduceReserves
Inputs
Parameter | Type | Description |
---|---|---|
reduceAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
_addReserves
Inputs
Parameter | Type | Description |
---|---|---|
addAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
_acceptAdmin
Inputs
Outputs
Type | Description |
---|---|
uint256 |
supplyRatePerBlock
Inputs
Outputs
Type | Description |
---|---|
uint256 |
getCash
Inputs
Outputs
Type | Description |
---|---|
uint256 |
getAccountSnapshot
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 | |
uint256 | |
uint256 |
exchangeRateStored
Inputs
Outputs
Type | Description |
---|---|
uint256 |
delegateToViewImplementation
Inputs
Parameter | Type | Description |
---|---|---|
data | bytes |
Outputs
Type | Description |
---|---|
bytes |
borrowRatePerBlock
Inputs
Outputs
Type | Description |
---|---|
uint256 |
borrowBalanceStored
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
Type | Description |
---|---|
uint256 |
balanceOf
Inputs
Parameter | Type | Description |
---|---|---|
owner | address |
Outputs
Type | Description |
---|---|
uint256 |
allowance
Inputs
Parameter | Type | Description |
---|---|---|
owner | address | |
spender | address |
Outputs
Type | Description |
---|---|
uint256 |
CTokenInterface
Transfer
Inputs
Parameter | Type | Description |
---|---|---|
from | address | |
to | address | |
amount | uint256 |
Outputs
ReservesReduced
Inputs
Parameter | Type | Description |
---|---|---|
admin | address | |
reduceAmount | uint256 | |
newTotalReserves | uint256 |
Outputs
ReservesAdded
Inputs
Parameter | Type | Description |
---|---|---|
benefactor | address | |
addAmount | uint256 | |
newTotalReserves | uint256 |
Outputs
RepayBorrow
Inputs
Parameter | Type | Description |
---|---|---|
payer | address | |
borrower | address | |
repayAmount | uint256 | |
accountBorrows | uint256 | |
totalBorrows | uint256 |
Outputs
Redeem
Inputs
Parameter | Type | Description |
---|---|---|
redeemer | address | |
redeemAmount | uint256 | |
redeemTokens | uint256 |
Outputs
NewReserveFactor
Inputs
Parameter | Type | Description |
---|---|---|
oldReserveFactorMantissa | uint256 | |
newReserveFactorMantissa | uint256 |
Outputs
NewPendingAdmin
Inputs
Parameter | Type | Description |
---|---|---|
oldPendingAdmin | address | |
newPendingAdmin | address |
Outputs
NewMarketInterestRateModel
Inputs
Parameter | Type | Description |
---|---|---|
oldInterestRateModel | address | |
newInterestRateModel | address |
Outputs
NewComptroller
Inputs
Parameter | Type | Description |
---|---|---|
oldComptroller | address | |
newComptroller | address |
Outputs
NewAdmin
Inputs
Parameter | Type | Description |
---|---|---|
oldAdmin | address | |
newAdmin | address |
Outputs
Mint
Inputs
Parameter | Type | Description |
---|---|---|
minter | address | |
mintAmount | uint256 | |
mintTokens | uint256 |
Outputs
LiquidateBorrow
Inputs
Parameter | Type | Description |
---|---|---|
liquidator | address | |
borrower | address | |
repayAmount | uint256 | |
cTokenCollateral | address | |
seizeTokens | uint256 |
Outputs
Failure
Inputs
Parameter | Type | Description |
---|---|---|
error | uint256 | |
info | uint256 | |
detail | uint256 |
Outputs
Borrow
Inputs
Parameter | Type | Description |
---|---|---|
borrower | address | |
borrowAmount | uint256 | |
accountBorrows | uint256 | |
totalBorrows | uint256 |
Outputs
Approval
Inputs
Parameter | Type | Description |
---|---|---|
owner | address | |
spender | address | |
amount | uint256 |
Outputs
AccrueInterest
Inputs
Parameter | Type | Description |
---|---|---|
cashPrior | uint256 | |
interestAccumulated | uint256 | |
borrowIndex | uint256 | |
totalBorrows | uint256 |
Outputs
underlying
Inputs
Outputs
Type | Description |
---|---|
address |
totalSupply
Inputs
Outputs
Type | Description |
---|---|
uint256 |
totalReserves
Inputs
Outputs
Type | Description |
---|---|
uint256 |
totalBorrows
Inputs
Outputs
Type | Description |
---|---|
uint256 |
symbol
Inputs
Outputs
Type | Description |
---|---|
string |
reserveFactorMantissa
Inputs
Outputs
Type | Description |
---|---|
uint256 |
pendingAdmin
Inputs
Outputs
Type | Description |
---|---|
address |
name
Inputs
Outputs
Type | Description |
---|---|
string |
isCToken
Inputs
Outputs
Type | Description |
---|---|
bool |
interestRateModel
Inputs
Outputs
Type | Description |
---|---|
address |
implementation
Inputs
Outputs
Type | Description |
---|---|
address |
decimals
Inputs
Outputs
Type | Description |
---|---|
uint8 |
comptroller
Inputs
Outputs
Type | Description |
---|---|
address |
borrowIndex
Inputs
Outputs
Type | Description |
---|---|
uint256 |
admin
Inputs
Outputs
Type | Description |
---|---|
address |
accrualBlockNumber
Inputs
Outputs
Type | Description |
---|---|
uint256 |