PoolLogic

Implements the logic for Pool specific functions

MintedToTreasury

event MintedToTreasury(address reserve, uint256 amountMinted)

executeInitReserve

function executeInitReserve(mapping(address => struct DataTypes.ReserveData) reservesData, mapping(uint256 => address) reservesList, struct DataTypes.InitReserveParams params) external returns (bool)

Initialize an asset reserve and add the reserve to the list of reserves

Parameters

Return Values

executeRescueTokens

function executeRescueTokens(enum DataTypes.AssetType assetType, address token, address to, uint256 amountOrTokenId) external

Rescue and transfer tokens locked in this contract

Parameters

executeMintToTreasury

function executeMintToTreasury(mapping(address => struct DataTypes.ReserveData) reservesData, address[] assets) external

Mints the assets accrued through the reserve factor to the treasury in the form of xTokens

Parameters

executeDropReserve

function executeDropReserve(mapping(address => struct DataTypes.ReserveData) reservesData, mapping(uint256 => address) reservesList, address asset) external

Drop a reserve

Parameters

executeGetUserAccountData

function executeGetUserAccountData(address user, struct DataTypes.PoolStorage ps, address oracle) external view returns (uint256 totalCollateralBase, uint256 totalDebtBase, uint256 availableBorrowsBase, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor, uint256 erc721HealthFactor)

Returns the user account data across all the reserves

Return Values

executeGetAssetLtvAndLT

function executeGetAssetLtvAndLT(struct DataTypes.PoolStorage ps, address asset, uint256 tokenId) external view returns (uint256 ltv, uint256 lt)