I Comptroller

Methods

borrowAllowed

function borrowAllowed(address cToken, address borrower, uint256 borrowAmount) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

borrower

address

undefined

borrowAmount

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

borrowVerify

function borrowVerify(address cToken, address borrower, uint256 borrowAmount) external nonpayable

Parameters

NameTypeDescription

cToken

address

undefined

borrower

address

undefined

borrowAmount

uint256

undefined

checkMembership

function checkMembership(address account, address cToken) external view returns (bool)

Parameters

NameTypeDescription

account

address

undefined

cToken

address

undefined

Returns

NameTypeDescription

_0

bool

undefined

enterMarket

function enterMarket(address cToken, address borrower) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

borrower

address

undefined

Returns

NameTypeDescription

_0

uint256

undefined

enterMarkets

function enterMarkets(address[] cTokens) external nonpayable returns (uint256[])

Parameters

NameTypeDescription

cTokens

address[]

undefined

Returns

NameTypeDescription

_0

uint256[]

undefined

exitMarket

function exitMarket(address cToken) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

Returns

NameTypeDescription

_0

uint256

undefined

getAccountLiquidity

function getAccountLiquidity(address account) external view returns (uint256, uint256, uint256)

Parameters

NameTypeDescription

account

address

undefined

Returns

NameTypeDescription

_0

uint256

undefined

_1

uint256

undefined

_2

uint256

undefined

getAssetsIn

function getAssetsIn(address account) external view returns (address[])

Parameters

NameTypeDescription

account

address

undefined

Returns

NameTypeDescription

_0

address[]

undefined

getPrimaryIndexTokenAddress

function getPrimaryIndexTokenAddress() external view returns (address)

Returns

NameTypeDescription

_0

address

undefined

isComptroller

function isComptroller() external view returns (bool)

Indicator that this is a Comptroller contract (for inspection)

Returns

NameTypeDescription

_0

bool

undefined

liquidateBorrowAllowed

function liquidateBorrowAllowed(address cTokenBorrowed, address cTokenCollateral, address liquidator, address borrower, uint256 repayAmount) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cTokenBorrowed

address

undefined

cTokenCollateral

address

undefined

liquidator

address

undefined

borrower

address

undefined

repayAmount

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

liquidateBorrowVerify

function liquidateBorrowVerify(address cTokenBorrowed, address cTokenCollateral, address liquidator, address borrower, uint256 repayAmount, uint256 seizeTokens) external nonpayable

Parameters

NameTypeDescription

cTokenBorrowed

address

undefined

cTokenCollateral

address

undefined

liquidator

address

undefined

borrower

address

undefined

repayAmount

uint256

undefined

seizeTokens

uint256

undefined

liquidateCalculateSeizeTokens

function liquidateCalculateSeizeTokens(address cTokenBorrowed, address cTokenCollateral, uint256 repayAmount) external view returns (uint256, uint256)

Parameters

NameTypeDescription

cTokenBorrowed

address

undefined

cTokenCollateral

address

undefined

repayAmount

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

_1

uint256

undefined

mintAllowed

function mintAllowed(address cToken, address minter, uint256 mintAmount) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

minter

address

undefined

mintAmount

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

mintVerify

function mintVerify(address cToken, address minter, uint256 mintAmount, uint256 mintTokens) external nonpayable

Parameters

NameTypeDescription

cToken

address

undefined

minter

address

undefined

mintAmount

uint256

undefined

mintTokens

uint256

undefined

redeemAllowed

function redeemAllowed(address cToken, address redeemer, uint256 redeemTokens) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

redeemer

address

undefined

redeemTokens

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

redeemVerify

function redeemVerify(address cToken, address redeemer, uint256 redeemAmount, uint256 redeemTokens) external nonpayable

Parameters

NameTypeDescription

cToken

address

undefined

redeemer

address

undefined

redeemAmount

uint256

undefined

redeemTokens

uint256

undefined

repayBorrowAllowed

function repayBorrowAllowed(address cToken, address payer, address borrower, uint256 repayAmount) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

payer

address

undefined

borrower

address

undefined

repayAmount

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

repayBorrowVerify

function repayBorrowVerify(address cToken, address payer, address borrower, uint256 repayAmount, uint256 borrowerIndex) external nonpayable

Parameters

NameTypeDescription

cToken

address

undefined

payer

address

undefined

borrower

address

undefined

repayAmount

uint256

undefined

borrowerIndex

uint256

undefined

seizeAllowed

function seizeAllowed(address cTokenCollateral, address cTokenBorrowed, address liquidator, address borrower, uint256 seizeTokens) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cTokenCollateral

address

undefined

cTokenBorrowed

address

undefined

liquidator

address

undefined

borrower

address

undefined

seizeTokens

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

seizeVerify

function seizeVerify(address cTokenCollateral, address cTokenBorrowed, address liquidator, address borrower, uint256 seizeTokens) external nonpayable

Parameters

NameTypeDescription

cTokenCollateral

address

undefined

cTokenBorrowed

address

undefined

liquidator

address

undefined

borrower

address

undefined

seizeTokens

uint256

undefined

transferAllowed

function transferAllowed(address cToken, address src, address dst, uint256 transferTokens) external nonpayable returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

src

address

undefined

dst

address

undefined

transferTokens

uint256

undefined

Returns

NameTypeDescription

_0

uint256

undefined

transferVerify

function transferVerify(address cToken, address src, address dst, uint256 transferTokens) external nonpayable

Parameters

NameTypeDescription

cToken

address

undefined

src

address

undefined

dst

address

undefined

transferTokens

uint256

undefined

Last updated