├── .editorconfig ├── .env.example ├── .gas-snapshot ├── .gitattributes ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitmodules ├── .prettierignore ├── .prettierrc.yml ├── .solhint.json ├── .vscode └── settings.json ├── Makefile ├── README.md ├── foundry.toml ├── package.json ├── pnpm-lock.yaml ├── remappings.txt ├── script ├── 01_DeployPerpsEngine.s.sol ├── 02_ConfigurePerpsEngine.s.sol ├── 03_CreatePerpMarkets.s.sol ├── Base.s.sol ├── dev │ └── DeployMockTokens.s.sol ├── margin-collaterals │ ├── MarginCollaterals.sol │ ├── Usdc.sol │ ├── Usdz.sol │ ├── WBtc.sol │ ├── WEth.sol │ ├── WeEth.sol │ └── WstEth.sol ├── markets │ ├── ArbUsd.sol │ ├── BnbUsd.sol │ ├── BtcUsd.sol │ ├── DogeUsd.sol │ ├── EthUsd.sol │ ├── FtmUsd.sol │ ├── LinkUsd.sol │ ├── LtcUsd.sol │ ├── Markets.sol │ ├── MaticUsd.sol │ └── SolUsd.sol ├── sequencer-uptime-feeds │ ├── Arbitrum.sol │ └── SequencerUptimeFeeds.sol ├── testnet │ ├── DeployTestnetTokens.s.sol │ ├── UpgradeBranches.s.sol │ └── UpgradeUUPS.s.sol └── utils │ ├── ChainlinkAutomationUtils.sol │ ├── DisperseETH.s.sol │ ├── DisperseTokens.s.sol │ ├── ProtocolConfiguration.sol │ ├── SetForwarders.s.sol │ ├── TreeProxyUtils.sol │ ├── UpdatePerpMarketConfiguration.s.sol │ └── UpdateSettlementConfiguration.s.sol ├── slither.config.json ├── src ├── account-nft │ ├── AccountNFT.sol │ └── interfaces │ │ └── IAccountNFT.sol ├── external │ └── chainlink │ │ ├── ChainlinkUtil.sol │ │ ├── interfaces │ │ ├── IAggregatorV3.sol │ │ ├── IAutomationCompatible.sol │ │ ├── IFeeManager.sol │ │ ├── ILogAutomation.sol │ │ ├── IOffchainAggregator.sol │ │ ├── IStreamsLookupCompatible.sol │ │ └── IVerifierProxy.sol │ │ └── keepers │ │ ├── BaseKeeper.sol │ │ ├── liquidation │ │ └── LiquidationKeeper.sol │ │ └── market-order │ │ └── MarketOrderKeeper.sol ├── perpetuals │ ├── PerpsEngine.sol │ ├── branches │ │ ├── GlobalConfigurationBranch.sol │ │ ├── LiquidationBranch.sol │ │ ├── OrderBranch.sol │ │ ├── PerpMarketBranch.sol │ │ ├── SettlementBranch.sol │ │ └── TradingAccountBranch.sol │ └── leaves │ │ ├── CustomReferralConfiguration.sol │ │ ├── FeeRecipients.sol │ │ ├── GlobalConfiguration.sol │ │ ├── MarginCollateralConfiguration.sol │ │ ├── MarketConfiguration.sol │ │ ├── MarketOrder.sol │ │ ├── OffchainOrder.sol │ │ ├── OrderFees.sol │ │ ├── PerpMarket.sol │ │ ├── Position.sol │ │ ├── Referral.sol │ │ ├── SettlementConfiguration.sol │ │ └── TradingAccount.sol ├── tree-proxy │ ├── RootProxy.sol │ ├── branches │ │ ├── LookupBranch.sol │ │ └── UpgradeBranch.sol │ └── leaves │ │ ├── Branch.sol │ │ ├── LookupTable.sol │ │ └── RootUpgrade.sol ├── usd │ └── USDToken.sol └── utils │ ├── Constants.sol │ ├── Errors.sol │ └── Math.sol ├── test ├── Base.t.sol ├── harnesses │ └── perpetuals │ │ └── leaves │ │ ├── GlobalConfigurationHarness.sol │ │ ├── MarginCollateralConfigurationHarness.sol │ │ ├── MarketConfigurationHarness.sol │ │ ├── MarketOrderHarness.sol │ │ ├── PerpMarketHarness.sol │ │ ├── PositionHarness.sol │ │ ├── SettlementConfigurationHarness.sol │ │ └── TradingAccountHarness.sol ├── integration │ ├── external │ │ └── chainlink │ │ │ └── keepers │ │ │ ├── liquidation │ │ │ ├── checkUpkeep │ │ │ │ ├── checkUpkeep.t.sol │ │ │ │ └── checkUpkeep.tree │ │ │ ├── getConfig │ │ │ │ ├── getConfig.t.sol │ │ │ │ └── getConfig.tree │ │ │ ├── initialize │ │ │ │ ├── initialize.t.sol │ │ │ │ └── initialize.tree │ │ │ ├── performUpkeep │ │ │ │ ├── performUpkeep.t.sol │ │ │ │ └── performUpkeep.tree │ │ │ └── setConfig │ │ │ │ ├── setConfig.t.sol │ │ │ │ └── setConfig.tree │ │ │ └── market-order │ │ │ ├── checkCallback │ │ │ ├── checkCallback.t.sol │ │ │ └── checkCallback.tree │ │ │ ├── checkLog │ │ │ ├── checkLog.t.sol │ │ │ └── checkLog.tree │ │ │ ├── getConfig │ │ │ ├── getConfig.t.sol │ │ │ └── getConfig.tree │ │ │ ├── initialize │ │ │ ├── initialize.t.sol │ │ │ └── initialize.tree │ │ │ ├── performUpkeep │ │ │ ├── performUpkeep.t.sol │ │ │ └── performUpkeep.tree │ │ │ └── updateConfig │ │ │ ├── updateConfig.t.sol │ │ │ └── updateConfig.tree │ ├── perpetuals │ │ ├── global-configuration-branch │ │ │ ├── configureCollateralLiquidationPriority │ │ │ │ ├── configureCollateralLiquidationPriority.t.sol │ │ │ │ └── configureCollateralLiquidationPriority.tree │ │ │ ├── configureLiquidators │ │ │ │ ├── configureLiquidators.t.sol │ │ │ │ └── configureLiquidators.tree │ │ │ ├── configureMarginCollateral │ │ │ │ ├── configureMarginCollateral.t.sol │ │ │ │ └── configureMarginCollateral.tree │ │ │ ├── configureSystemParameters │ │ │ │ ├── configureSystemParameters.t.sol │ │ │ │ └── configureSystemParameters.tree │ │ │ ├── createCustomReferralCode │ │ │ │ ├── createCustomReferralCode.t.sol │ │ │ │ └── createCustomReferralCode.tree │ │ │ ├── createPerpMarket │ │ │ │ ├── createPerpMarket.t.sol │ │ │ │ └── createPerpMarket.tree │ │ │ ├── getAccountsWithActivePositions │ │ │ │ ├── getAccountsWithActivePositions.t.sol │ │ │ │ └── getAccountsWithActivePositions.tree │ │ │ ├── getCustomReferralCodeReferrer │ │ │ │ ├── getCustomReferralCodeReferrer.t.sol │ │ │ │ └── getCustomReferralCodeReferrer.tree │ │ │ ├── getMarginCollateralConfiguration │ │ │ │ ├── getMarginCollateralConfiguration.t.sol │ │ │ │ └── getMarginCollateralConfiguration.tree │ │ │ ├── removeCollateralFromLiquidationPriority │ │ │ │ ├── removeCollateralFromLiquidationPriority.t.sol │ │ │ │ └── removeCollateralFromLiquidationPriority.tree │ │ │ ├── setTradingAccountToken │ │ │ │ ├── setTradingAccountToken.t.sol │ │ │ │ └── setTradingAccountToken.tree │ │ │ ├── setUsdToken │ │ │ │ ├── setUsdToken.t.sol │ │ │ │ └── setUsdToken.tree │ │ │ ├── updatePerpMarketConfiguration │ │ │ │ ├── updatePerpMarketConfiguration.t.sol │ │ │ │ └── updatePerpMarketConfiguration.tree │ │ │ ├── updatePerpMarketStatus │ │ │ │ ├── updatePerpMarketStatus.t.sol │ │ │ │ └── updatePerpMarketStatus.tree │ │ │ └── updateSettlementConfiguration │ │ │ │ ├── updateSettlementConfiguration.t.sol │ │ │ │ └── updateSettlementConfiguration.tree │ │ ├── liquidation-branch │ │ │ ├── checkLiquidatableAccounts │ │ │ │ ├── checkLiquidatableAccounts.t.sol │ │ │ │ └── checkLiquidatableAccounts.tree │ │ │ └── liquidateAccounts │ │ │ │ ├── liquidateAccounts.t.sol │ │ │ │ └── liquidateAccounts.tree │ │ ├── order-branch │ │ │ ├── cancelAllOffchainOrders │ │ │ │ ├── cancelAllOffchainOrders.t.sol │ │ │ │ └── cancelAllOffchainOrders.tree │ │ │ ├── cancelMarketOrder │ │ │ │ ├── cancelMarketOrder.t.sol │ │ │ │ └── cancelMarketOrder.tree │ │ │ ├── createMarketOrder │ │ │ │ ├── createMarketOrder.t.sol │ │ │ │ └── createMarketOrder.tree │ │ │ ├── getActiveMarketOrder │ │ │ │ ├── getActiveMarketOrder.t.sol │ │ │ │ └── getActiveMarketOrder.tree │ │ │ ├── getConfiguredOrderFees │ │ │ │ ├── getConfiguredOrderFees.t.sol │ │ │ │ └── getConfiguredOrderFees.tree │ │ │ ├── getMarginRequirementForTrade │ │ │ │ ├── getMarginRequirementForTrade.t.sol │ │ │ │ └── getMarginRequirementForTrade.tree │ │ │ └── simulateTrade │ │ │ │ ├── simulateTrade.t.sol │ │ │ │ └── simulateTrade.tree │ │ ├── perp-market-branch │ │ │ ├── getFundingRate │ │ │ │ ├── getFundingRate.t.sol │ │ │ │ └── getFundingRate.tree │ │ │ ├── getFundingVelocity │ │ │ │ ├── getFundingVelocity.t.sol │ │ │ │ └── getFundingVelocity.tree │ │ │ ├── getMarkPrice │ │ │ │ ├── getMarkPrice.t.sol │ │ │ │ └── getMarkPrice.tree │ │ │ ├── getMaxOpenInterest │ │ │ │ ├── getMaxOpenInterest.t.sol │ │ │ │ └── getMaxOpenInterest.tree │ │ │ ├── getMaxSkew │ │ │ │ ├── getMaxSkew.t.sol │ │ │ │ └── getMaxSkew.tree │ │ │ ├── getName │ │ │ │ ├── getName.t.sol │ │ │ │ └── getName.tree │ │ │ ├── getOpenInterest │ │ │ │ ├── getOpenInterest.t.sol │ │ │ │ └── getOpenInterest.tree │ │ │ ├── getPerpMarketConfiguration │ │ │ │ ├── getPerpMarketConfiguration.t.sol │ │ │ │ └── getPerpMarketConfiguration.tree │ │ │ ├── getSettlementConfiguration │ │ │ │ ├── getSettlementConfiguration.t.sol │ │ │ │ └── getSettlementConfiguration.tree │ │ │ ├── getSkew │ │ │ │ ├── getSkew.t.sol │ │ │ │ └── getSkew.tree │ │ │ └── getSymbol │ │ │ │ ├── getSymbol.t.sol │ │ │ │ └── getSymbol.tree │ │ ├── settlement-branch │ │ │ ├── fillMarketOrder │ │ │ │ ├── fillMarketOrder.t.sol │ │ │ │ └── fillMarketOrder.tree │ │ │ └── fillOffchainOrders │ │ │ │ ├── fillOffchainOrders.t.sol │ │ │ │ └── fillOffchainOrders.tree │ │ └── trading-account-branch │ │ │ ├── createTradingAccount │ │ │ ├── createTradingAccount.t.sol │ │ │ └── createTradingAccount.tree │ │ │ ├── createTradingAccountAndMulticall │ │ │ ├── createTradingAccountAndMulticall.t.sol │ │ │ └── createTradingAccountAndMulticall.tree │ │ │ ├── deductAccountMargin │ │ │ ├── deductAccountMargin.t.sol │ │ │ └── deductAccountMargin.tree │ │ │ ├── depositMargin │ │ │ ├── depositMargin.t.sol │ │ │ └── depositMargin.tree │ │ │ ├── getAccountEquityUsd │ │ │ ├── getAccountEquityUsd.t.sol │ │ │ └── getAccountEquityUsd.tree │ │ │ ├── getAccountMarginBalances │ │ │ └── getAccountMarginBalances.t.sol │ │ │ ├── getAccountMarginCollateralBalance │ │ │ └── getAccountMarginCollateralBalance.t.sol │ │ │ ├── getTotalAccountMarginCollateralValue │ │ │ └── getTotalAccountMarginCollateralValue.t.sol │ │ │ ├── getTradingAccountToken │ │ │ ├── getTradingAccountToken.t.sol │ │ │ └── getTradingAccountToken.tree │ │ │ ├── getUserReferralData │ │ │ ├── getUserReferralData.t.sol │ │ │ └── getUserReferralData.tree │ │ │ ├── notifyAccountTransfer │ │ │ ├── notifyAccountTransfer.t.sol │ │ │ └── notifyAccountTransfer.tree │ │ │ └── withdrawMargin │ │ │ ├── withdrawMargin.t.sol │ │ │ └── withdrawMargin.tree │ └── tree-proxy │ │ ├── lookup-branch │ │ ├── branchAddress │ │ │ ├── branchAddress.t.sol │ │ │ └── branchAddress.tree │ │ ├── branchAddresses │ │ │ ├── branchAddresses.t.sol │ │ │ └── branchAddresses.tree │ │ ├── branchFunctionSelectors │ │ │ ├── branchFunctionSelectors.t.sol │ │ │ └── branchFunctionSelectors.tree │ │ └── branches │ │ │ ├── branches.t.sol │ │ │ └── branches.tree │ │ ├── root-proxy │ │ ├── rootProxy.t.sol │ │ └── rootProxy.tree │ │ └── upgrade-branch │ │ └── upgrade │ │ ├── upgrade.t.sol │ │ └── upgrade.tree ├── invariant │ └── .gitkeep ├── mocks │ ├── MockAggregator.sol │ ├── MockChainlinkFeeManager.sol │ ├── MockChainlinkVerifier.sol │ ├── MockERC20.sol │ ├── MockERC20WithNoDecimals.sol │ ├── MockERC20WithZeroDecimals.sol │ ├── MockPriceFeed.sol │ ├── MockPriceFeedOldUpdatedAt.sol │ ├── MockPriceFeedWithInvalidReturn.sol │ ├── MockSequencerUptimeFeed.sol │ ├── MockSequencerUptimeFeedDown.sol │ ├── MockSequencerUptimeFeedGracePeriodNotOver.sol │ ├── MockSequencerUptimeFeedWithInvalidReturn.sol │ └── MockUSDToken.sol ├── unit │ ├── .gitkeep │ ├── perpetuals │ │ ├── global-configuration │ │ │ ├── addMarket │ │ │ │ ├── addMarket.t.sol │ │ │ │ └── addMarket.tree │ │ │ ├── checkMarketIsEnabled │ │ │ │ ├── checkMarketIsEnabled.t.sol │ │ │ │ └── checkMarketIsEnabled.tree │ │ │ ├── configureCollateralLiquidationPriority │ │ │ │ ├── configureCollateralLiquidationPriority.t.sol │ │ │ │ └── configureCollateralLiquidationPriority.tree │ │ │ ├── configureSequencerUptimeFeedbyChainId │ │ │ │ ├── configureSequencerUptimeFeedByChainId.t.sol │ │ │ │ └── configureSequencerUptimeFeedByChainId.tree │ │ │ ├── removeCollateralFromLiquidationPriority │ │ │ │ ├── removeCollateralFromLiquidationPriority.t.sol │ │ │ │ └── removeCollateralFromLiquidationPriority.tree │ │ │ └── removeMarket │ │ │ │ ├── removeMarket.t.sol │ │ │ │ └── removeMarket.tree │ │ ├── margin-collateral-configuration │ │ │ ├── configure │ │ │ │ ├── configure.t.sol │ │ │ │ └── configure.tree │ │ │ ├── convertTokenAmountToUd60x18 │ │ │ │ ├── convertTokenAmountToUd60x18.t.sol │ │ │ │ └── convertTokenAmountToUd60x18.tree │ │ │ ├── convertUd60x18ToTokenAmount │ │ │ │ ├── convertUd60x18ToTokenAmount.t.sol │ │ │ │ └── convertUd60x18ToTokenAmount.tree │ │ │ ├── getPrice │ │ │ │ ├── getPrice.t.sol │ │ │ │ └── getPrice.tree │ │ │ └── load │ │ │ │ ├── load.t.sol │ │ │ │ └── load.tree │ │ ├── perp-market │ │ │ ├── checkOpenInterestLimits │ │ │ │ ├── checkOpenInterestLimits.tree │ │ │ │ └── checkOpeninterestLimits.t.sol │ │ │ └── getOrderFeeUsd │ │ │ │ ├── getOrderFeeUsd.t.sol │ │ │ │ └── getOrderFeeUsd.tree │ │ ├── position │ │ │ ├── clear │ │ │ │ ├── clear.t.sol │ │ │ │ └── clear.tree │ │ │ ├── getAccruedFunding │ │ │ │ ├── getAccruedFunding.t.sol │ │ │ │ └── getAccruedFunding.tree │ │ │ ├── getMarginRequirement │ │ │ │ ├── getMarginRequirement.t.sol │ │ │ │ └── getMarginRequirement.tree │ │ │ ├── getNotionalValue │ │ │ │ ├── getNotionalValue.t.sol │ │ │ │ └── getNotionalValue.tree │ │ │ ├── getState │ │ │ │ ├── getState.t.sol │ │ │ │ └── getState.tree │ │ │ ├── getUnrealizedPnl │ │ │ │ ├── getUnrealizedPnl.t.sol │ │ │ │ └── getUnrealizedPnl.tree │ │ │ ├── load │ │ │ │ ├── load.t.sol │ │ │ │ └── load.tree │ │ │ └── update │ │ │ │ ├── update.t.sol │ │ │ │ └── update.tree │ │ ├── settlement-configuration │ │ │ ├── checkIsSettlementEnabled │ │ │ │ ├── checkIsSettlementEnabled.t.sol │ │ │ │ └── checkIsSettlementEnabled.tree │ │ │ └── verifyOffchainPrice │ │ │ │ ├── verifyOffchainPrice.t.sol │ │ │ │ └── verifyOffchainPrice.tree │ │ └── trading-account │ │ │ ├── withdraw │ │ │ ├── withdraw.t.sol │ │ │ └── withdraw.tree │ │ │ └── withdrawMarginUsd │ │ │ ├── withdrawMarginUsd.t.sol │ │ │ └── withdrawMarginUsd.tree │ └── usd │ │ └── usd-token │ │ ├── burn │ │ ├── burn.t.sol │ │ └── burn.tree │ │ └── mint │ │ ├── mint.t.sol │ │ └── mint.tree └── utils │ ├── Storage.sol │ └── Types.sol └── testnet ├── LimitedMintingERC20.sol ├── PerpsEngineTestnet.sol ├── branches ├── GlobalConfigurationBranchTestnet.sol └── TradingAccountBranchTestnet.sol └── leaves ├── CustomReferralConfigurationTestnet.sol ├── Points.sol ├── PointsConfig.sol └── ReferralTestnet.sol /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.env.example -------------------------------------------------------------------------------- /.gas-snapshot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.gas-snapshot -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | lib/** linguist-vendored 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.gitmodules -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.prettierrc.yml -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.solhint.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/README.md -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/foundry.toml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/remappings.txt -------------------------------------------------------------------------------- /script/01_DeployPerpsEngine.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/01_DeployPerpsEngine.s.sol -------------------------------------------------------------------------------- /script/02_ConfigurePerpsEngine.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/02_ConfigurePerpsEngine.s.sol -------------------------------------------------------------------------------- /script/03_CreatePerpMarkets.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/03_CreatePerpMarkets.s.sol -------------------------------------------------------------------------------- /script/Base.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/Base.s.sol -------------------------------------------------------------------------------- /script/dev/DeployMockTokens.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/dev/DeployMockTokens.s.sol -------------------------------------------------------------------------------- /script/margin-collaterals/MarginCollaterals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/margin-collaterals/MarginCollaterals.sol -------------------------------------------------------------------------------- /script/margin-collaterals/Usdc.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/margin-collaterals/Usdc.sol -------------------------------------------------------------------------------- /script/margin-collaterals/Usdz.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/margin-collaterals/Usdz.sol -------------------------------------------------------------------------------- /script/margin-collaterals/WBtc.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/margin-collaterals/WBtc.sol -------------------------------------------------------------------------------- /script/margin-collaterals/WEth.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/margin-collaterals/WEth.sol -------------------------------------------------------------------------------- /script/margin-collaterals/WeEth.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/margin-collaterals/WeEth.sol -------------------------------------------------------------------------------- /script/margin-collaterals/WstEth.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/margin-collaterals/WstEth.sol -------------------------------------------------------------------------------- /script/markets/ArbUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/ArbUsd.sol -------------------------------------------------------------------------------- /script/markets/BnbUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/BnbUsd.sol -------------------------------------------------------------------------------- /script/markets/BtcUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/BtcUsd.sol -------------------------------------------------------------------------------- /script/markets/DogeUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/DogeUsd.sol -------------------------------------------------------------------------------- /script/markets/EthUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/EthUsd.sol -------------------------------------------------------------------------------- /script/markets/FtmUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/FtmUsd.sol -------------------------------------------------------------------------------- /script/markets/LinkUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/LinkUsd.sol -------------------------------------------------------------------------------- /script/markets/LtcUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/LtcUsd.sol -------------------------------------------------------------------------------- /script/markets/Markets.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/Markets.sol -------------------------------------------------------------------------------- /script/markets/MaticUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/MaticUsd.sol -------------------------------------------------------------------------------- /script/markets/SolUsd.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/markets/SolUsd.sol -------------------------------------------------------------------------------- /script/sequencer-uptime-feeds/Arbitrum.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/sequencer-uptime-feeds/Arbitrum.sol -------------------------------------------------------------------------------- /script/sequencer-uptime-feeds/SequencerUptimeFeeds.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/sequencer-uptime-feeds/SequencerUptimeFeeds.sol -------------------------------------------------------------------------------- /script/testnet/DeployTestnetTokens.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/testnet/DeployTestnetTokens.s.sol -------------------------------------------------------------------------------- /script/testnet/UpgradeBranches.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/testnet/UpgradeBranches.s.sol -------------------------------------------------------------------------------- /script/testnet/UpgradeUUPS.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/testnet/UpgradeUUPS.s.sol -------------------------------------------------------------------------------- /script/utils/ChainlinkAutomationUtils.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/ChainlinkAutomationUtils.sol -------------------------------------------------------------------------------- /script/utils/DisperseETH.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/DisperseETH.s.sol -------------------------------------------------------------------------------- /script/utils/DisperseTokens.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/DisperseTokens.s.sol -------------------------------------------------------------------------------- /script/utils/ProtocolConfiguration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/ProtocolConfiguration.sol -------------------------------------------------------------------------------- /script/utils/SetForwarders.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/SetForwarders.s.sol -------------------------------------------------------------------------------- /script/utils/TreeProxyUtils.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/TreeProxyUtils.sol -------------------------------------------------------------------------------- /script/utils/UpdatePerpMarketConfiguration.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/UpdatePerpMarketConfiguration.s.sol -------------------------------------------------------------------------------- /script/utils/UpdateSettlementConfiguration.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/script/utils/UpdateSettlementConfiguration.s.sol -------------------------------------------------------------------------------- /slither.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/slither.config.json -------------------------------------------------------------------------------- /src/account-nft/AccountNFT.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/account-nft/AccountNFT.sol -------------------------------------------------------------------------------- /src/account-nft/interfaces/IAccountNFT.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/account-nft/interfaces/IAccountNFT.sol -------------------------------------------------------------------------------- /src/external/chainlink/ChainlinkUtil.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/ChainlinkUtil.sol -------------------------------------------------------------------------------- /src/external/chainlink/interfaces/IAggregatorV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/interfaces/IAggregatorV3.sol -------------------------------------------------------------------------------- /src/external/chainlink/interfaces/IAutomationCompatible.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/interfaces/IAutomationCompatible.sol -------------------------------------------------------------------------------- /src/external/chainlink/interfaces/IFeeManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/interfaces/IFeeManager.sol -------------------------------------------------------------------------------- /src/external/chainlink/interfaces/ILogAutomation.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/interfaces/ILogAutomation.sol -------------------------------------------------------------------------------- /src/external/chainlink/interfaces/IOffchainAggregator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/interfaces/IOffchainAggregator.sol -------------------------------------------------------------------------------- /src/external/chainlink/interfaces/IStreamsLookupCompatible.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/interfaces/IStreamsLookupCompatible.sol -------------------------------------------------------------------------------- /src/external/chainlink/interfaces/IVerifierProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/interfaces/IVerifierProxy.sol -------------------------------------------------------------------------------- /src/external/chainlink/keepers/BaseKeeper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/keepers/BaseKeeper.sol -------------------------------------------------------------------------------- /src/external/chainlink/keepers/liquidation/LiquidationKeeper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/keepers/liquidation/LiquidationKeeper.sol -------------------------------------------------------------------------------- /src/external/chainlink/keepers/market-order/MarketOrderKeeper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/external/chainlink/keepers/market-order/MarketOrderKeeper.sol -------------------------------------------------------------------------------- /src/perpetuals/PerpsEngine.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/PerpsEngine.sol -------------------------------------------------------------------------------- /src/perpetuals/branches/GlobalConfigurationBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/branches/GlobalConfigurationBranch.sol -------------------------------------------------------------------------------- /src/perpetuals/branches/LiquidationBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/branches/LiquidationBranch.sol -------------------------------------------------------------------------------- /src/perpetuals/branches/OrderBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/branches/OrderBranch.sol -------------------------------------------------------------------------------- /src/perpetuals/branches/PerpMarketBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/branches/PerpMarketBranch.sol -------------------------------------------------------------------------------- /src/perpetuals/branches/SettlementBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/branches/SettlementBranch.sol -------------------------------------------------------------------------------- /src/perpetuals/branches/TradingAccountBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/branches/TradingAccountBranch.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/CustomReferralConfiguration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/CustomReferralConfiguration.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/FeeRecipients.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/FeeRecipients.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/GlobalConfiguration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/GlobalConfiguration.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/MarginCollateralConfiguration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/MarginCollateralConfiguration.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/MarketConfiguration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/MarketConfiguration.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/MarketOrder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/MarketOrder.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/OffchainOrder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/OffchainOrder.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/OrderFees.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/OrderFees.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/PerpMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/PerpMarket.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/Position.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/Position.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/Referral.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/Referral.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/SettlementConfiguration.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/SettlementConfiguration.sol -------------------------------------------------------------------------------- /src/perpetuals/leaves/TradingAccount.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/perpetuals/leaves/TradingAccount.sol -------------------------------------------------------------------------------- /src/tree-proxy/RootProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/tree-proxy/RootProxy.sol -------------------------------------------------------------------------------- /src/tree-proxy/branches/LookupBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/tree-proxy/branches/LookupBranch.sol -------------------------------------------------------------------------------- /src/tree-proxy/branches/UpgradeBranch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/tree-proxy/branches/UpgradeBranch.sol -------------------------------------------------------------------------------- /src/tree-proxy/leaves/Branch.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/tree-proxy/leaves/Branch.sol -------------------------------------------------------------------------------- /src/tree-proxy/leaves/LookupTable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/tree-proxy/leaves/LookupTable.sol -------------------------------------------------------------------------------- /src/tree-proxy/leaves/RootUpgrade.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/tree-proxy/leaves/RootUpgrade.sol -------------------------------------------------------------------------------- /src/usd/USDToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/usd/USDToken.sol -------------------------------------------------------------------------------- /src/utils/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/utils/Constants.sol -------------------------------------------------------------------------------- /src/utils/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/utils/Errors.sol -------------------------------------------------------------------------------- /src/utils/Math.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/src/utils/Math.sol -------------------------------------------------------------------------------- /test/Base.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/Base.t.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/GlobalConfigurationHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/GlobalConfigurationHarness.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/MarginCollateralConfigurationHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/MarginCollateralConfigurationHarness.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/MarketConfigurationHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/MarketConfigurationHarness.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/MarketOrderHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/MarketOrderHarness.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/PerpMarketHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/PerpMarketHarness.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/PositionHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/PositionHarness.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/SettlementConfigurationHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/SettlementConfigurationHarness.sol -------------------------------------------------------------------------------- /test/harnesses/perpetuals/leaves/TradingAccountHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/harnesses/perpetuals/leaves/TradingAccountHarness.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/checkUpkeep/checkUpkeep.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/checkUpkeep/checkUpkeep.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/checkUpkeep/checkUpkeep.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/checkUpkeep/checkUpkeep.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/getConfig/getConfig.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/getConfig/getConfig.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/getConfig/getConfig.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/getConfig/getConfig.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/initialize/initialize.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/initialize/initialize.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/initialize/initialize.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/initialize/initialize.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/performUpkeep/performUpkeep.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/performUpkeep/performUpkeep.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/performUpkeep/performUpkeep.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/performUpkeep/performUpkeep.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/setConfig/setConfig.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/setConfig/setConfig.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/liquidation/setConfig/setConfig.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/liquidation/setConfig/setConfig.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/checkCallback/checkCallback.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/checkCallback/checkCallback.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/checkCallback/checkCallback.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/checkCallback/checkCallback.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/checkLog/checkLog.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/checkLog/checkLog.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/checkLog/checkLog.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/checkLog/checkLog.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/getConfig/getConfig.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/getConfig/getConfig.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/getConfig/getConfig.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/getConfig/getConfig.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/initialize/initialize.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/initialize/initialize.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/initialize/initialize.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/initialize/initialize.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/performUpkeep/performUpkeep.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/performUpkeep/performUpkeep.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/performUpkeep/performUpkeep.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/performUpkeep/performUpkeep.tree -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/updateConfig/updateConfig.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/updateConfig/updateConfig.t.sol -------------------------------------------------------------------------------- /test/integration/external/chainlink/keepers/market-order/updateConfig/updateConfig.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/external/chainlink/keepers/market-order/updateConfig/updateConfig.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureLiquidators/configureLiquidators.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureLiquidators/configureLiquidators.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureLiquidators/configureLiquidators.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureLiquidators/configureLiquidators.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureMarginCollateral/configureMarginCollateral.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureMarginCollateral/configureMarginCollateral.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureMarginCollateral/configureMarginCollateral.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureMarginCollateral/configureMarginCollateral.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureSystemParameters/configureSystemParameters.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureSystemParameters/configureSystemParameters.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/configureSystemParameters/configureSystemParameters.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/configureSystemParameters/configureSystemParameters.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/createCustomReferralCode/createCustomReferralCode.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/createCustomReferralCode/createCustomReferralCode.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/createCustomReferralCode/createCustomReferralCode.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/createCustomReferralCode/createCustomReferralCode.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/createPerpMarket/createPerpMarket.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/createPerpMarket/createPerpMarket.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/createPerpMarket/createPerpMarket.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/createPerpMarket/createPerpMarket.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/getAccountsWithActivePositions/getAccountsWithActivePositions.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/getAccountsWithActivePositions/getAccountsWithActivePositions.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/getAccountsWithActivePositions/getAccountsWithActivePositions.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/getAccountsWithActivePositions/getAccountsWithActivePositions.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/getCustomReferralCodeReferrer/getCustomReferralCodeReferrer.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/getCustomReferralCodeReferrer/getCustomReferralCodeReferrer.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/getCustomReferralCodeReferrer/getCustomReferralCodeReferrer.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/getCustomReferralCodeReferrer/getCustomReferralCodeReferrer.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/getMarginCollateralConfiguration/getMarginCollateralConfiguration.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/getMarginCollateralConfiguration/getMarginCollateralConfiguration.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/getMarginCollateralConfiguration/getMarginCollateralConfiguration.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/getMarginCollateralConfiguration/getMarginCollateralConfiguration.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/setTradingAccountToken/setTradingAccountToken.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/setTradingAccountToken/setTradingAccountToken.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/setTradingAccountToken/setTradingAccountToken.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/setTradingAccountToken/setTradingAccountToken.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/setUsdToken/setUsdToken.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/setUsdToken/setUsdToken.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/setUsdToken/setUsdToken.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/setUsdToken/setUsdToken.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/updatePerpMarketConfiguration/updatePerpMarketConfiguration.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/updatePerpMarketConfiguration/updatePerpMarketConfiguration.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/updatePerpMarketConfiguration/updatePerpMarketConfiguration.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/updatePerpMarketConfiguration/updatePerpMarketConfiguration.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/updatePerpMarketStatus/updatePerpMarketStatus.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/updatePerpMarketStatus/updatePerpMarketStatus.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/updatePerpMarketStatus/updatePerpMarketStatus.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/updatePerpMarketStatus/updatePerpMarketStatus.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/updateSettlementConfiguration/updateSettlementConfiguration.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/updateSettlementConfiguration/updateSettlementConfiguration.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/global-configuration-branch/updateSettlementConfiguration/updateSettlementConfiguration.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/global-configuration-branch/updateSettlementConfiguration/updateSettlementConfiguration.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/liquidation-branch/checkLiquidatableAccounts/checkLiquidatableAccounts.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/liquidation-branch/checkLiquidatableAccounts/checkLiquidatableAccounts.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/liquidation-branch/checkLiquidatableAccounts/checkLiquidatableAccounts.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/liquidation-branch/checkLiquidatableAccounts/checkLiquidatableAccounts.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/liquidation-branch/liquidateAccounts/liquidateAccounts.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/liquidation-branch/liquidateAccounts/liquidateAccounts.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/liquidation-branch/liquidateAccounts/liquidateAccounts.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/liquidation-branch/liquidateAccounts/liquidateAccounts.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/cancelAllOffchainOrders/cancelAllOffchainOrders.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/cancelAllOffchainOrders/cancelAllOffchainOrders.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/cancelAllOffchainOrders/cancelAllOffchainOrders.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/cancelAllOffchainOrders/cancelAllOffchainOrders.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/cancelMarketOrder/cancelMarketOrder.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/cancelMarketOrder/cancelMarketOrder.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/cancelMarketOrder/cancelMarketOrder.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/cancelMarketOrder/cancelMarketOrder.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/createMarketOrder/createMarketOrder.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/createMarketOrder/createMarketOrder.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/createMarketOrder/createMarketOrder.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/createMarketOrder/createMarketOrder.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/getActiveMarketOrder/getActiveMarketOrder.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/getActiveMarketOrder/getActiveMarketOrder.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/getActiveMarketOrder/getActiveMarketOrder.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/getActiveMarketOrder/getActiveMarketOrder.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/getConfiguredOrderFees/getConfiguredOrderFees.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/getConfiguredOrderFees/getConfiguredOrderFees.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/getConfiguredOrderFees/getConfiguredOrderFees.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/getConfiguredOrderFees/getConfiguredOrderFees.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/getMarginRequirementForTrade/getMarginRequirementForTrade.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/getMarginRequirementForTrade/getMarginRequirementForTrade.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/getMarginRequirementForTrade/getMarginRequirementForTrade.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/getMarginRequirementForTrade/getMarginRequirementForTrade.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/simulateTrade/simulateTrade.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/simulateTrade/simulateTrade.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/order-branch/simulateTrade/simulateTrade.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/order-branch/simulateTrade/simulateTrade.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getFundingRate/getFundingRate.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getFundingRate/getFundingRate.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getFundingRate/getFundingRate.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getFundingRate/getFundingRate.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getFundingVelocity/getFundingVelocity.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getFundingVelocity/getFundingVelocity.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getFundingVelocity/getFundingVelocity.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getFundingVelocity/getFundingVelocity.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getMarkPrice/getMarkPrice.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getMarkPrice/getMarkPrice.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getMarkPrice/getMarkPrice.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getMarkPrice/getMarkPrice.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getMaxOpenInterest/getMaxOpenInterest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getMaxOpenInterest/getMaxOpenInterest.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getMaxOpenInterest/getMaxOpenInterest.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getMaxOpenInterest/getMaxOpenInterest.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getMaxSkew/getMaxSkew.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getMaxSkew/getMaxSkew.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getMaxSkew/getMaxSkew.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getMaxSkew/getMaxSkew.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getName/getName.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getName/getName.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getName/getName.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getName/getName.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getOpenInterest/getOpenInterest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getOpenInterest/getOpenInterest.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getOpenInterest/getOpenInterest.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getOpenInterest/getOpenInterest.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getPerpMarketConfiguration/getPerpMarketConfiguration.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getPerpMarketConfiguration/getPerpMarketConfiguration.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getPerpMarketConfiguration/getPerpMarketConfiguration.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getPerpMarketConfiguration/getPerpMarketConfiguration.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getSettlementConfiguration/getSettlementConfiguration.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getSettlementConfiguration/getSettlementConfiguration.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getSettlementConfiguration/getSettlementConfiguration.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getSettlementConfiguration/getSettlementConfiguration.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getSkew/getSkew.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getSkew/getSkew.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getSkew/getSkew.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getSkew/getSkew.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getSymbol/getSymbol.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getSymbol/getSymbol.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/perp-market-branch/getSymbol/getSymbol.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/perp-market-branch/getSymbol/getSymbol.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/settlement-branch/fillMarketOrder/fillMarketOrder.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/settlement-branch/fillMarketOrder/fillMarketOrder.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/settlement-branch/fillMarketOrder/fillMarketOrder.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/settlement-branch/fillMarketOrder/fillMarketOrder.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/settlement-branch/fillOffchainOrders/fillOffchainOrders.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/settlement-branch/fillOffchainOrders/fillOffchainOrders.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/settlement-branch/fillOffchainOrders/fillOffchainOrders.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/settlement-branch/fillOffchainOrders/fillOffchainOrders.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/createTradingAccount/createTradingAccount.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/createTradingAccount/createTradingAccount.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/createTradingAccount/createTradingAccount.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/createTradingAccount/createTradingAccount.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/createTradingAccountAndMulticall/createTradingAccountAndMulticall.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/createTradingAccountAndMulticall/createTradingAccountAndMulticall.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/createTradingAccountAndMulticall/createTradingAccountAndMulticall.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/createTradingAccountAndMulticall/createTradingAccountAndMulticall.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/deductAccountMargin/deductAccountMargin.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/deductAccountMargin/deductAccountMargin.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/deductAccountMargin/deductAccountMargin.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/deductAccountMargin/deductAccountMargin.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/depositMargin/depositMargin.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/depositMargin/depositMargin.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/depositMargin/depositMargin.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/depositMargin/depositMargin.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getAccountEquityUsd/getAccountEquityUsd.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getAccountEquityUsd/getAccountEquityUsd.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getAccountEquityUsd/getAccountEquityUsd.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getAccountEquityUsd/getAccountEquityUsd.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getAccountMarginBalances/getAccountMarginBalances.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getAccountMarginBalances/getAccountMarginBalances.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getAccountMarginCollateralBalance/getAccountMarginCollateralBalance.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getAccountMarginCollateralBalance/getAccountMarginCollateralBalance.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getTotalAccountMarginCollateralValue/getTotalAccountMarginCollateralValue.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getTotalAccountMarginCollateralValue/getTotalAccountMarginCollateralValue.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getTradingAccountToken/getTradingAccountToken.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getTradingAccountToken/getTradingAccountToken.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getTradingAccountToken/getTradingAccountToken.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getTradingAccountToken/getTradingAccountToken.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getUserReferralData/getUserReferralData.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getUserReferralData/getUserReferralData.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/getUserReferralData/getUserReferralData.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/getUserReferralData/getUserReferralData.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/notifyAccountTransfer/notifyAccountTransfer.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/notifyAccountTransfer/notifyAccountTransfer.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/notifyAccountTransfer/notifyAccountTransfer.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/notifyAccountTransfer/notifyAccountTransfer.tree -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/withdrawMargin/withdrawMargin.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/withdrawMargin/withdrawMargin.t.sol -------------------------------------------------------------------------------- /test/integration/perpetuals/trading-account-branch/withdrawMargin/withdrawMargin.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/perpetuals/trading-account-branch/withdrawMargin/withdrawMargin.tree -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branchAddress/branchAddress.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branchAddress/branchAddress.t.sol -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branchAddress/branchAddress.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branchAddress/branchAddress.tree -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branchAddresses/branchAddresses.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branchAddresses/branchAddresses.t.sol -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branchAddresses/branchAddresses.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branchAddresses/branchAddresses.tree -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branchFunctionSelectors/branchFunctionSelectors.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branchFunctionSelectors/branchFunctionSelectors.t.sol -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branchFunctionSelectors/branchFunctionSelectors.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branchFunctionSelectors/branchFunctionSelectors.tree -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branches/branches.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branches/branches.t.sol -------------------------------------------------------------------------------- /test/integration/tree-proxy/lookup-branch/branches/branches.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/lookup-branch/branches/branches.tree -------------------------------------------------------------------------------- /test/integration/tree-proxy/root-proxy/rootProxy.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/root-proxy/rootProxy.t.sol -------------------------------------------------------------------------------- /test/integration/tree-proxy/root-proxy/rootProxy.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/root-proxy/rootProxy.tree -------------------------------------------------------------------------------- /test/integration/tree-proxy/upgrade-branch/upgrade/upgrade.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/upgrade-branch/upgrade/upgrade.t.sol -------------------------------------------------------------------------------- /test/integration/tree-proxy/upgrade-branch/upgrade/upgrade.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/integration/tree-proxy/upgrade-branch/upgrade/upgrade.tree -------------------------------------------------------------------------------- /test/invariant/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/mocks/MockAggregator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockAggregator.sol -------------------------------------------------------------------------------- /test/mocks/MockChainlinkFeeManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockChainlinkFeeManager.sol -------------------------------------------------------------------------------- /test/mocks/MockChainlinkVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockChainlinkVerifier.sol -------------------------------------------------------------------------------- /test/mocks/MockERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockERC20.sol -------------------------------------------------------------------------------- /test/mocks/MockERC20WithNoDecimals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockERC20WithNoDecimals.sol -------------------------------------------------------------------------------- /test/mocks/MockERC20WithZeroDecimals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockERC20WithZeroDecimals.sol -------------------------------------------------------------------------------- /test/mocks/MockPriceFeed.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockPriceFeed.sol -------------------------------------------------------------------------------- /test/mocks/MockPriceFeedOldUpdatedAt.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockPriceFeedOldUpdatedAt.sol -------------------------------------------------------------------------------- /test/mocks/MockPriceFeedWithInvalidReturn.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockPriceFeedWithInvalidReturn.sol -------------------------------------------------------------------------------- /test/mocks/MockSequencerUptimeFeed.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockSequencerUptimeFeed.sol -------------------------------------------------------------------------------- /test/mocks/MockSequencerUptimeFeedDown.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockSequencerUptimeFeedDown.sol -------------------------------------------------------------------------------- /test/mocks/MockSequencerUptimeFeedGracePeriodNotOver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockSequencerUptimeFeedGracePeriodNotOver.sol -------------------------------------------------------------------------------- /test/mocks/MockSequencerUptimeFeedWithInvalidReturn.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockSequencerUptimeFeedWithInvalidReturn.sol -------------------------------------------------------------------------------- /test/mocks/MockUSDToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/mocks/MockUSDToken.sol -------------------------------------------------------------------------------- /test/unit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/addMarket/addMarket.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/addMarket/addMarket.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/addMarket/addMarket.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/addMarket/addMarket.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/checkMarketIsEnabled/checkMarketIsEnabled.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/checkMarketIsEnabled/checkMarketIsEnabled.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/checkMarketIsEnabled/checkMarketIsEnabled.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/checkMarketIsEnabled/checkMarketIsEnabled.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/configureCollateralLiquidationPriority/configureCollateralLiquidationPriority.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/configureSequencerUptimeFeedbyChainId/configureSequencerUptimeFeedByChainId.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/configureSequencerUptimeFeedbyChainId/configureSequencerUptimeFeedByChainId.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/configureSequencerUptimeFeedbyChainId/configureSequencerUptimeFeedByChainId.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/configureSequencerUptimeFeedbyChainId/configureSequencerUptimeFeedByChainId.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/removeCollateralFromLiquidationPriority/removeCollateralFromLiquidationPriority.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/removeMarket/removeMarket.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/removeMarket/removeMarket.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/global-configuration/removeMarket/removeMarket.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/global-configuration/removeMarket/removeMarket.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/configure/configure.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/configure/configure.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/configure/configure.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/configure/configure.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/convertTokenAmountToUd60x18/convertTokenAmountToUd60x18.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/convertTokenAmountToUd60x18/convertTokenAmountToUd60x18.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/convertTokenAmountToUd60x18/convertTokenAmountToUd60x18.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/convertTokenAmountToUd60x18/convertTokenAmountToUd60x18.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/convertUd60x18ToTokenAmount/convertUd60x18ToTokenAmount.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/convertUd60x18ToTokenAmount/convertUd60x18ToTokenAmount.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/convertUd60x18ToTokenAmount/convertUd60x18ToTokenAmount.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/convertUd60x18ToTokenAmount/convertUd60x18ToTokenAmount.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/getPrice/getPrice.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/getPrice/getPrice.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/getPrice/getPrice.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/getPrice/getPrice.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/load/load.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/load/load.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/margin-collateral-configuration/load/load.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/margin-collateral-configuration/load/load.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/perp-market/checkOpenInterestLimits/checkOpenInterestLimits.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/perp-market/checkOpenInterestLimits/checkOpenInterestLimits.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/perp-market/checkOpenInterestLimits/checkOpeninterestLimits.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/perp-market/checkOpenInterestLimits/checkOpeninterestLimits.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/perp-market/getOrderFeeUsd/getOrderFeeUsd.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/perp-market/getOrderFeeUsd/getOrderFeeUsd.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/perp-market/getOrderFeeUsd/getOrderFeeUsd.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/perp-market/getOrderFeeUsd/getOrderFeeUsd.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/clear/clear.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/clear/clear.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/clear/clear.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/clear/clear.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getAccruedFunding/getAccruedFunding.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getAccruedFunding/getAccruedFunding.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getAccruedFunding/getAccruedFunding.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getAccruedFunding/getAccruedFunding.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getMarginRequirement/getMarginRequirement.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getMarginRequirement/getMarginRequirement.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getMarginRequirement/getMarginRequirement.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getMarginRequirement/getMarginRequirement.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getNotionalValue/getNotionalValue.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getNotionalValue/getNotionalValue.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getNotionalValue/getNotionalValue.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getNotionalValue/getNotionalValue.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getState/getState.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getState/getState.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getState/getState.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getState/getState.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getUnrealizedPnl/getUnrealizedPnl.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getUnrealizedPnl/getUnrealizedPnl.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/getUnrealizedPnl/getUnrealizedPnl.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/getUnrealizedPnl/getUnrealizedPnl.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/load/load.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/load/load.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/load/load.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/load/load.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/position/update/update.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/update/update.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/position/update/update.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/position/update/update.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/settlement-configuration/checkIsSettlementEnabled/checkIsSettlementEnabled.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/settlement-configuration/checkIsSettlementEnabled/checkIsSettlementEnabled.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/settlement-configuration/checkIsSettlementEnabled/checkIsSettlementEnabled.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/settlement-configuration/checkIsSettlementEnabled/checkIsSettlementEnabled.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/settlement-configuration/verifyOffchainPrice/verifyOffchainPrice.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/settlement-configuration/verifyOffchainPrice/verifyOffchainPrice.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/settlement-configuration/verifyOffchainPrice/verifyOffchainPrice.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/settlement-configuration/verifyOffchainPrice/verifyOffchainPrice.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/trading-account/withdraw/withdraw.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/trading-account/withdraw/withdraw.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/trading-account/withdraw/withdraw.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/trading-account/withdraw/withdraw.tree -------------------------------------------------------------------------------- /test/unit/perpetuals/trading-account/withdrawMarginUsd/withdrawMarginUsd.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/trading-account/withdrawMarginUsd/withdrawMarginUsd.t.sol -------------------------------------------------------------------------------- /test/unit/perpetuals/trading-account/withdrawMarginUsd/withdrawMarginUsd.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/perpetuals/trading-account/withdrawMarginUsd/withdrawMarginUsd.tree -------------------------------------------------------------------------------- /test/unit/usd/usd-token/burn/burn.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/usd/usd-token/burn/burn.t.sol -------------------------------------------------------------------------------- /test/unit/usd/usd-token/burn/burn.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/usd/usd-token/burn/burn.tree -------------------------------------------------------------------------------- /test/unit/usd/usd-token/mint/mint.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/usd/usd-token/mint/mint.t.sol -------------------------------------------------------------------------------- /test/unit/usd/usd-token/mint/mint.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/unit/usd/usd-token/mint/mint.tree -------------------------------------------------------------------------------- /test/utils/Storage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/utils/Storage.sol -------------------------------------------------------------------------------- /test/utils/Types.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/test/utils/Types.sol -------------------------------------------------------------------------------- /testnet/LimitedMintingERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/LimitedMintingERC20.sol -------------------------------------------------------------------------------- /testnet/PerpsEngineTestnet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/PerpsEngineTestnet.sol -------------------------------------------------------------------------------- /testnet/branches/GlobalConfigurationBranchTestnet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/branches/GlobalConfigurationBranchTestnet.sol -------------------------------------------------------------------------------- /testnet/branches/TradingAccountBranchTestnet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/branches/TradingAccountBranchTestnet.sol -------------------------------------------------------------------------------- /testnet/leaves/CustomReferralConfigurationTestnet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/leaves/CustomReferralConfigurationTestnet.sol -------------------------------------------------------------------------------- /testnet/leaves/Points.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/leaves/Points.sol -------------------------------------------------------------------------------- /testnet/leaves/PointsConfig.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/leaves/PointsConfig.sol -------------------------------------------------------------------------------- /testnet/leaves/ReferralTestnet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/2024-07-zaros/HEAD/testnet/leaves/ReferralTestnet.sol --------------------------------------------------------------------------------