assets
libraries
libraries
directory contains information about multiple assets, including:aToken
found in AssetATokenLib
cToken
found in AssetCTokenLib
yVault
found in AssetYVaultLib
pPool
found in AssetPPoolLib
MaxDebtRatio
, MaxLoanAmount
andMaxTVLLib
, which are all in their respective solidity files.**AssetSettingsDataFacet**
MaxTVL
& MaxLoanAmount
) of different assets.**AssetSettingsFacet**
isAssetSettingsInitialized
digs in the CacheLib
to check if it's respective asset settings existsgetMaxTVLAmount
gets the max total value locked of an assetcreateAssetSetting
creates settings for an asset in the CacheLib
updateAssetSetting
updates an asset with the given parameterpausable
PausableMods
paused
which is used by multiple files in the protocol to check if a facet is paused or notPausableFacet
pause
, which is required to be called by the PAUSER
role. It pauses the entire facet when passed true, un-pauses the asset when passed falseplatform
AppStorageLib
PlatformSettingsLib
contains functions that retrieve the percentage value for submissions, maximum tolerance value, safety interval value, response expiry length and morePlatformSettingsFacet
contains functions that create, update and get platform settings valuenames.sol
contains all the variables of platform settings names that are hashedSettingsFacet
addAuthorizedAddress
adds a wallet address to the list of authorized walletsaddAuthorizedAddressList
adds a list of wallet addresses to the list of authorized walletsremoveAuthorizedAddress
revokes the role of a wallet address from the list of authorized wallets by removing ithasAuthorization
checks whether an account has authorization by checking if it has the AUTHORIZED
rolesetNFTLiquidationController
sets a new address to which NFTs should be sent to when liquidating an NFTgetNFTLiquidationController
gets the new address where the NFTs are sent to be liquidated