ErrorReporter
event
Failure
Inputs
Parameter | Type | Description |
---|---|---|
error | uint256 | |
info | uint256 | |
detail | uint256 |
Outputs
(void)
MoneyMarket
function
withdraw
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
requestedAmount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
supply
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
amount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
_acceptAdmin
nonpayable
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
liquidateBorrow
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
targetAccount | address | |
assetBorrow | address | |
assetCollateral | address | |
requestedAmountClose | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
_suspendMarket
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address |
Outputs
Type | Description |
---|---|
uint256 |
function
_setRiskParameters
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
collateralRatioMantissa | uint256 | |
liquidationDiscountMantissa | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
_supportMarket
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
interestRateModel | address |
Outputs
Type | Description |
---|---|
uint256 |
function
_setPendingAdmin
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
newPendingAdmin | address |
Outputs
Type | Description |
---|---|
uint256 |
function
repayBorrow
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
amount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
_setMarketInterestRateModel
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
interestRateModel | address |
Outputs
Type | Description |
---|---|
uint256 |
function
borrow
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
amount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
_withdrawEquity
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
amount | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
_setOracle
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
newOracle | address |
Outputs
Type | Description |
---|---|
uint256 |
function
_setPaused
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
requestedState | bool |
Outputs
Type | Description |
---|---|
uint256 |
function
_setOriginationFee
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
originationFeeMantissa | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
getSupplyBalance
view
Inputs
Parameter | Type | Description |
---|---|---|
account | address | |
asset | address |
Outputs
Type | Description |
---|---|
uint256 |
function
calculateAccountValues
view
Inputs
Parameter | Type | Description |
---|---|---|
userAddress | address |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 | |
uint256 |
function
getCollateralMarketsLength
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
getAccountLiquidity
view
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
Type | Description |
---|---|
int256 |
function
assetPrices
view
Inputs
Parameter | Type | Description |
---|---|---|
asset | address |
Outputs
Type | Description |
---|---|
uint256 |
function
getBorrowBalance
view
Inputs
Parameter | Type | Description |
---|---|---|
account | address | |
asset | address |
Outputs
Type | Description |
---|---|
uint256 |
constructor
MoneyMarket
nonpayable
Inputs
(void)
Outputs
(void)
fallback
(fallback)
payable
Inputs
(void)
Outputs
(void)
event
SetPaused
Inputs
Parameter | Type | Description |
---|---|---|
newState | bool |
Outputs
(void)
event
SuspendedMarket
Inputs
Parameter | Type | Description |
---|---|---|
asset | address |
Outputs
(void)
event
EquityWithdrawn
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
equityAvailableBefore | uint256 | |
amount | uint256 | |
owner | address |
Outputs
(void)
event
SetMarketInterestRateModel
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
interestRateModel | address |
Outputs
(void)
event
NewOriginationFee
Inputs
Parameter | Type | Description |
---|---|---|
oldOriginationFeeMantissa | uint256 | |
newOriginationFeeMantissa | uint256 |
Outputs
(void)
event
NewRiskParameters
Inputs
Parameter | Type | Description |
---|---|---|
oldCollateralRatioMantissa | uint256 | |
newCollateralRatioMantissa | uint256 | |
oldLiquidationDiscountMantissa | uint256 | |
newLiquidationDiscountMantissa | uint256 |
Outputs
(void)
event
SupportedMarket
Inputs
Parameter | Type | Description |
---|---|---|
asset | address | |
interestRateModel | address |
Outputs
(void)
event
NewOracle
Inputs
Parameter | Type | Description |
---|---|---|
oldOracle | address | |
newOracle | address |
Outputs
(void)
event
NewAdmin
Inputs
Parameter | Type | Description |
---|---|---|
oldAdmin | address | |
newAdmin | address |
Outputs
(void)
event
NewPendingAdmin
Inputs
Parameter | Type | Description |
---|---|---|
oldPendingAdmin | address | |
newPendingAdmin | address |
Outputs
(void)
event
BorrowLiquidated
Inputs
Parameter | Type | Description |
---|---|---|
targetAccount | address | |
assetBorrow | address | |
borrowBalanceBefore | uint256 | |
borrowBalanceAccumulated | uint256 | |
amountRepaid | uint256 | |
borrowBalanceAfter | uint256 | |
liquidator | address | |
assetCollateral | address | |
collateralBalanceBefore | uint256 | |
collateralBalanceAccumulated | uint256 | |
amountSeized | uint256 | |
collateralBalanceAfter | uint256 |
Outputs
(void)
event
BorrowRepaid
Inputs
Parameter | Type | Description |
---|---|---|
account | address | |
asset | address | |
amount | uint256 | |
startingBalance | uint256 | |
newBalance | uint256 |
Outputs
(void)
event
BorrowTaken
Inputs
Parameter | Type | Description |
---|---|---|
account | address | |
asset | address | |
amount | uint256 | |
startingBalance | uint256 | |
borrowAmountWithFee | uint256 | |
newBalance | uint256 |
Outputs
(void)
event
SupplyWithdrawn
Inputs
Parameter | Type | Description |
---|---|---|
account | address | |
asset | address | |
amount | uint256 | |
startingBalance | uint256 | |
newBalance | uint256 |
Outputs
(void)
event
SupplyReceived
Inputs
Parameter | Type | Description |
---|---|---|
account | address | |
asset | address | |
amount | uint256 | |
startingBalance | uint256 | |
newBalance | uint256 |
Outputs
(void)
function
borrowBalances
view
Inputs
Parameter | Type | Description |
---|---|---|
address | ||
address |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 |
function
admin
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
collateralMarkets
view
Inputs
Parameter | Type | Description |
---|---|---|
uint256 |
Outputs
Type | Description |
---|---|
address |
function
originationFee
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
supplyBalances
view
Inputs
Parameter | Type | Description |
---|---|---|
address | ||
address |
Outputs
Type | Description |
---|---|
uint256 | |
uint256 |
function
collateralRatio
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
markets
view
Inputs
Parameter | Type | Description |
---|---|---|
address |
Outputs
Type | Description |
---|---|
bool | |
uint256 | |
address | |
uint256 | |
uint256 | |
uint256 | |
uint256 | |
uint256 | |
uint256 |
function
liquidationDiscount
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
oracle
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
paused
view
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
function
pendingAdmin
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |