Compound

MoneyMarket

0x3fda67f7583380e67ef93072294a7fac882fd7e7
ErrorReporter
event

Failure

Inputs

ParameterTypeDescription
erroruint256
infouint256
detailuint256

Outputs

(void)
MoneyMarket
function

withdraw

nonpayable

Inputs

ParameterTypeDescription
assetaddress
requestedAmountuint256

Outputs

TypeDescription
uint256
function

supply

nonpayable

Inputs

ParameterTypeDescription
assetaddress
amountuint256

Outputs

TypeDescription
uint256
function

_acceptAdmin

nonpayable

Inputs

(void)

Outputs

TypeDescription
uint256
function

liquidateBorrow

nonpayable

Inputs

ParameterTypeDescription
targetAccountaddress
assetBorrowaddress
assetCollateraladdress
requestedAmountCloseuint256

Outputs

TypeDescription
uint256
function

_suspendMarket

nonpayable

Inputs

ParameterTypeDescription
assetaddress

Outputs

TypeDescription
uint256
function

_setRiskParameters

nonpayable

Inputs

ParameterTypeDescription
collateralRatioMantissauint256
liquidationDiscountMantissauint256

Outputs

TypeDescription
uint256
function

_supportMarket

nonpayable

Inputs

ParameterTypeDescription
assetaddress
interestRateModeladdress

Outputs

TypeDescription
uint256
function

_setPendingAdmin

nonpayable

Inputs

ParameterTypeDescription
newPendingAdminaddress

Outputs

TypeDescription
uint256
function

repayBorrow

nonpayable

Inputs

ParameterTypeDescription
assetaddress
amountuint256

Outputs

TypeDescription
uint256
function

_setMarketInterestRateModel

nonpayable

Inputs

ParameterTypeDescription
assetaddress
interestRateModeladdress

Outputs

TypeDescription
uint256
function

borrow

nonpayable

Inputs

ParameterTypeDescription
assetaddress
amountuint256

Outputs

TypeDescription
uint256
function

_withdrawEquity

nonpayable

Inputs

ParameterTypeDescription
assetaddress
amountuint256

Outputs

TypeDescription
uint256
function

_setOracle

nonpayable

Inputs

ParameterTypeDescription
newOracleaddress

Outputs

TypeDescription
uint256
function

_setPaused

nonpayable

Inputs

ParameterTypeDescription
requestedStatebool

Outputs

TypeDescription
uint256
function

_setOriginationFee

nonpayable

Inputs

ParameterTypeDescription
originationFeeMantissauint256

Outputs

TypeDescription
uint256
function

getSupplyBalance

view

Inputs

ParameterTypeDescription
accountaddress
assetaddress

Outputs

TypeDescription
uint256
function

calculateAccountValues

view

Inputs

ParameterTypeDescription
userAddressaddress

Outputs

TypeDescription
uint256
uint256
uint256
function

getCollateralMarketsLength

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

getAccountLiquidity

view

Inputs

ParameterTypeDescription
accountaddress

Outputs

TypeDescription
int256
function

assetPrices

view

Inputs

ParameterTypeDescription
assetaddress

Outputs

TypeDescription
uint256
function

getBorrowBalance

view

Inputs

ParameterTypeDescription
accountaddress
assetaddress

Outputs

TypeDescription
uint256
constructor

MoneyMarket

nonpayable

Inputs

(void)

Outputs

(void)
fallback

(fallback)

payable

Inputs

(void)

Outputs

(void)
event

SetPaused

Inputs

ParameterTypeDescription
newStatebool

Outputs

(void)
event

SuspendedMarket

Inputs

ParameterTypeDescription
assetaddress

Outputs

(void)
event

EquityWithdrawn

Inputs

ParameterTypeDescription
assetaddress
equityAvailableBeforeuint256
amountuint256
owneraddress

Outputs

(void)
event

SetMarketInterestRateModel

Inputs

ParameterTypeDescription
assetaddress
interestRateModeladdress

Outputs

(void)
event

NewOriginationFee

Inputs

ParameterTypeDescription
oldOriginationFeeMantissauint256
newOriginationFeeMantissauint256

Outputs

(void)
event

NewRiskParameters

Inputs

ParameterTypeDescription
oldCollateralRatioMantissauint256
newCollateralRatioMantissauint256
oldLiquidationDiscountMantissauint256
newLiquidationDiscountMantissauint256

Outputs

(void)
event

SupportedMarket

Inputs

ParameterTypeDescription
assetaddress
interestRateModeladdress

Outputs

(void)
event

NewOracle

Inputs

ParameterTypeDescription
oldOracleaddress
newOracleaddress

Outputs

(void)
event

NewAdmin

Inputs

ParameterTypeDescription
oldAdminaddress
newAdminaddress

Outputs

(void)
event

NewPendingAdmin

Inputs

ParameterTypeDescription
oldPendingAdminaddress
newPendingAdminaddress

Outputs

(void)
event

BorrowLiquidated

Inputs

ParameterTypeDescription
targetAccountaddress
assetBorrowaddress
borrowBalanceBeforeuint256
borrowBalanceAccumulateduint256
amountRepaiduint256
borrowBalanceAfteruint256
liquidatoraddress
assetCollateraladdress
collateralBalanceBeforeuint256
collateralBalanceAccumulateduint256
amountSeizeduint256
collateralBalanceAfteruint256

Outputs

(void)
event

BorrowRepaid

Inputs

ParameterTypeDescription
accountaddress
assetaddress
amountuint256
startingBalanceuint256
newBalanceuint256

Outputs

(void)
event

BorrowTaken

Inputs

ParameterTypeDescription
accountaddress
assetaddress
amountuint256
startingBalanceuint256
borrowAmountWithFeeuint256
newBalanceuint256

Outputs

(void)
event

SupplyWithdrawn

Inputs

ParameterTypeDescription
accountaddress
assetaddress
amountuint256
startingBalanceuint256
newBalanceuint256

Outputs

(void)
event

SupplyReceived

Inputs

ParameterTypeDescription
accountaddress
assetaddress
amountuint256
startingBalanceuint256
newBalanceuint256

Outputs

(void)
function

borrowBalances

view

Inputs

ParameterTypeDescription
address
address

Outputs

TypeDescription
uint256
uint256
function

admin

view

Inputs

(void)

Outputs

TypeDescription
address
function

collateralMarkets

view

Inputs

ParameterTypeDescription
uint256

Outputs

TypeDescription
address
function

originationFee

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

supplyBalances

view

Inputs

ParameterTypeDescription
address
address

Outputs

TypeDescription
uint256
uint256
function

collateralRatio

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

markets

view

Inputs

ParameterTypeDescription
address

Outputs

TypeDescription
bool
uint256
address
uint256
uint256
uint256
uint256
uint256
uint256
function

liquidationDiscount

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

oracle

view

Inputs

(void)

Outputs

TypeDescription
address
function

paused

view

Inputs

(void)

Outputs

TypeDescription
bool
function

pendingAdmin

view

Inputs

(void)

Outputs

TypeDescription
address