PerpetualBrokeragePosition📚LibMathSigned forint256📚LibMathUnsigned foruint256📚LibOrder forLibTypes.Side📚SafeERC20 forIERC20uint256totalAccountsaddressaccountListaddress=>boolaccountCreated__constructor__()setCashBalance()💰__fallback__()markPrice()setBroker()setBrokerFor()depositToAccount()depositFor()💰depositEtherFor()deposit()💰depositEther()depositAndSetBroker()💰depositEtherAndSetBroker()applyForWithdrawal()settleFor()settle()endGlobalSettlement()withdrawFromAccount()withdrawFor()withdraw()depositToInsuranceFund()💰depositEtherToInsuranceFund()withdrawFromInsuranceFund()positionMargin()maintenanceMargin()marginBalance()pnl()availableMargin()drawableBalance()isSafe()isSafeWithPrice()isBankrupt()isIMSafe()isIMSafeWithPrice()liquidateFrom()liquidate()tradePosition()transferCashBalance()Brokerage📚LibMathUnsigned foruint256address=>LibTypes.BrokerbrokerssetBroker()🔍currentBroker()🔍getBroker()PositionCollateralPerpetualGovernance📚LibMathSigned forint256📚LibMathUnsigned foruint256📚LibTypes forLibTypes.Sideint256insuranceFundBalanceuint256totalSizesaddress=>LibTypes.PositionAccountpositions__constructor__()🔍socialLossPerContract()🔍totalSize()🔍getPosition()calculateLiquidateAmount()addSocialLossPerContract()marginBalanceWithPrice()availableMarginWithPrice()🔍marginWithPrice()🔍maintenanceMarginWithPrice()drawableBalanceWithPrice()pnlWithPrice()increaseTotalSize()decreaseTotalSize()🔍socialLoss()🔍socialLossWithAmount()fundingLoss()fundingLossWithAmount()remargin()calculatePnl()open()close()trade()handleSocialLoss()liquidate()LibMathSignedLibMathUnsignedLibOrderSafeERC20Collateral📚LibMathSigned forint256📚LibMathUnsigned foruint256📚SafeERC20 forIERC20uint256MAX_DECIMALSint256scaleraddresscollateraladdress=>LibTypes.CollateralAccountcashBalances__constructor__()🔍getCashBalance()🔍isTokenizedCollateral()deposit()applyForWithdrawal()_withdraw()withdraw()depositToProtocol()withdrawFromProtocol()withdrawAll()updateBalance()ensurePositiveBalance()transferBalance()🔍toWad()🔍toCollateral()PerpetualGovernanceWhitelistedRole📚LibMathSigned forint256📚LibMathUnsigned foruint256IGlobalConfigglobalConfigIAMMammaddressdevAddressLibTypes.Statusstatusuint256settlementPriceLibTypes.PerpGovernanceConfiggovernanceint256socialLossPerContracts🔍getGovernance()setGovernanceParameter()setGovernanceAddress()beginGlobalSettlement()LibTypesWhitelistedRoleWhitelistAdminRole📚Roles forRoles.RoleRoles.Role_whitelisteds🔍isWhitelisted()addWhitelisted()removeWhitelisted()renounceWhitelisted()_addWhitelisted()_removeWhitelisted()Rolesadd()remove()🔍has()WhitelistAdminRole📚Roles forRoles.RoleRoles.Role_whitelistAdmins__constructor__()🔍isWhitelistAdmin()addWhitelistAdmin()renounceWhitelistAdmin()_addWhitelistAdmin()_removeWhitelistAdmin()for int256for uint256for LibTypes.Sidefor IERC20for uint256for int256for uint256for LibTypes.Sidefor int256for uint256for IERC20for int256for uint256for Roles.Rolefor Roles.Role