msg.sender
: The account which shall deposit the asset, and own the minted pTokens.mintAmount
: The amount of the asset to be deposited, in units of the underlying asset.msg.value
(payable): The amount of ether to be deposited, in wei.msg.sender
: The account which shall deposit the ether, and own the minted pTokens.RETURN
: No return, reverts on error.msg.sender
: The account to which redeemed funds shall be transferred.redeemTokens
: The number of pTokens to be redeemed.msg.sender
: The account to which redeemed funds shall be transferred.redeemAmount
: The amount of underlying to be redeemed.msg.sender
: The account to which borrowed funds shall be transferred.borrowAmount
: The amount of the underlying asset to be borrowed.msg.sender
: The account which borrowed the asset, and shall repay the borrow.repayAmount
: The amount of the underlying borrowed asset to be repaid. A value of -1 (i.e. 2^256 - 1) can be used to repay the full amount.msg.value
(payable): The amount of ether to be repaid, in wei.msg.sender
: The account which borrowed the asset, and shall repay the borrow.RETURN
: No return, reverts on error.msg.sender
: The account which shall repay the borrow.borrower
: The account which borrowed the asset to be repaid.repayAmount
: The amount of the underlying borrowed asset to be repaid. A value of -1 (i.e. 2^256 - 1) can be used to repay the full amount.msg.value
(payable): The amount of ether to be repaid, in wei.msg.sender:
The account which shall repay the borrow.borrower
: The account which borrowed the asset to be repaid.RETURN
: No return, reverts on error.recipient
: The transfer recipient address.amount
: The amount of pTokens to transfer.RETURN
: Returns a boolean value indicating whether or not the operation succeeded.msg.sender
: The account which shall liquidate the borrower by repaying their debt and seizing their collateral.borrower
: The account with negative account liquidity that shall be liquidated.repayAmount
: The amount of the borrowed asset to be repaid and converted into collateral, specified in units of the underlying borrowed asset.pTokenCollateral
: The address of the pToken currently held as collateral by a borrower, that the liquidator shall seize.msg.value
(payable): The amount of ether to be repaid and converted into collateral, in wei.msg.sender
: The account which shall liquidate the borrower by repaying their debt and seizing their collateral.borrower
: The account with negative account liquidity that shall be liquidated.pTokenCollateral
: The address of the pToken currently held as collateral by a borrower, that the liquidator shall seize.RETURN
: No return, reverts on error.Mint(address minter,
uint mintAmount, uint mintTokens)
Redeem(address redeemer,
uint redeemAmount, uint redeemTokens)
Borrow(address borrower,
uint borrowAmount, uint accountBorrows,
uint totalBorrows)
RepayBorrow(address payer,
address borrower, uint repayAmount,
uint accountBorrows, uint totalBorrows)
LiquidateBorrow(address liquidator,
address borrower, uint repayAmount,
address pTokenCollateral,
uint seizeTokens)
NO_ERROR
UNAUTHORIZED
BAD_INPUT
CONTROLLER_REJECTION
CONTROLLER_CALCULATION_ERROR
INTEREST_RATE_MODEL_ERROR
INVALID_ACCOUNT_PAIR
INVALID_CLOSE_AMOUNT_REQUESTED
INVALID_COLLATERAL_FACTOR
MATH_ERROR
MARKET_NOT_FRESH
MARKET_NOT_LISTED
TOKEN_INSUFFICIENT_ALLOWANCE
TOKEN_INSUFFICIENT_BALANCE
TOKEN_INSUFFICIENT_CASH
TOKEN_TRANSFER_IN_FAILED
TOKEN_TRANSFER_OUT_FAILED
ACCEPT_ADMIN_PENDING_ADMIN_CHECK
ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED
ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED
ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED
ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED
ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED
ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED
BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED
BORROW_ACCRUE_INTEREST_FAILED
BORROW_CASH_NOT_AVAILABLE
BORROW_FRESHNESS_CHECK
BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED
BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED
BORROW_MARKET_NOT_LISTED
BORROW_CONTROLLER_REJECTION
LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED
LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED
LIQUIDATE_COLLATERAL_FRESHNESS_CHECK
LIQUIDATE_CONTROLLER_REJECTION
RETURN
: The current exchange rate as an unsigned integer, scaled by 1e18.call
vs. send
to invoke the function from off-chain without incurring gas costs.RETURN
: The quantity of underlying asset owned by the contract.RETURN
: The total amount of borrowed underlying, with interest.account
: The account which borrowed the assets.RETURN
: The user's current borrow balance (with interest) in units of the underlying asset.RETURN
: The current borrow rate as an unsigned integer, scaled by 1e18.RETURN
: The total number of tokens in circulation for the market.account
: The account to get the underlying balance of.RETURN
: The amount of underlying currently owned by the account.RETURN
: The current supply rate as an unsigned integer, scaled by 1e18.RETURN
: The total amount of reserves held in the pool.RETURN
: The current reserve factor as an unsigned integer, scaled by 1e18.