PolicyFacet
PolicyFacet
This facet contract contains all the external pre-hook functions related to vToken
Solidity API
mintAllowed
Checks if the account should be allowed to mint tokens in the given market
Parameters
Return Values
mintVerify
Validates mint and reverts on rejection. May emit logs.
Parameters
redeemAllowed
Checks if the account should be allowed to redeem tokens in the given market
Parameters
Return Values
redeemVerify
Validates redeem and reverts on rejection. May emit log
Parameters
borrowAllowed
Checks if the account should be allowed to borrow the underlying asset of the given market
Parameters
Return Values
borrowVerify
Validates borrow and reverts on rejection. May emit log
Parameters
repayBorrowAllowed
Checks if the account should be allowed to repay a borrow in the given market
Parameters
Return Values
repayBorrowVerify
Validates repayBorrow and reverts on rejection. May emit log
Parameters
liquidateBorrowAllowed
Checks if the liquidation should be allowed to occur
Parameters
liquidateBorrowVerify
Validates liquidateBorrow and reverts on rejection. May emit logs.
Parameters
seizeAllowed
Checks if the seizing of assets should be allowed to occur
Parameters
seizeVerify
Validates seize and reverts on rejection. May emit log
Parameters
transferAllowed
Checks if the account should be allowed to transfer tokens in the given market
Parameters
Return Values
transferVerify
Validates transfer and reverts on rejection. May emit log
Parameters
getAccountLiquidity
Determine the current account liquidity wrt collateral requirements
Return Values
getHypotheticalAccountLiquidity
Determine what the account liquidity would be if the given amounts were redeemed/borrowed
Parameters
Return Values
_setVenusSpeeds
Set XVS speed for a single market
Parameters
Last updated