CollateralPool
π¦ CollateralPool.sol
CollateralPool.solπ§© What It Does
π οΈ Public & External Functions
depositCollateral(uint256 amount)
depositCollateral(uint256 amount)withdrawCollateral(uint256 amount)
withdrawCollateral(uint256 amount)liquidateContract(address user, address market, uint256 contractId)
liquidateContract(address user, address market, uint256 contractId)claimRewards(uint256 index, uint256 id, uint256 substractCount)
claimRewards(uint256 index, uint256 id, uint256 substractCount)π View Functions
getUserInfos(address user) β uint256
getUserInfos(address user) β uint256getUserFees(address user) β uint256
getUserFees(address user) β uint256balanceOf(address user) β uint256
balanceOf(address user) β uint256getRewardsForLP(uint256 index, uint256 id) β uint256
getRewardsForLP(uint256 index, uint256 id) β uint256canOpenContract(address user, uint256 rent) β bool
canOpenContract(address user, uint256 rent) β boolneedLiquidation(address user) β bool
needLiquidation(address user) β boolgetCollateralToken() β address
getCollateralToken() β addressgetMain() β address
getMain() β addressπ§ How It Works
π Summary
Feature
Purpose
Last updated