├── .eslintignore ├── .eslintrc.json ├── .gitattributes ├── .github └── workflows │ └── run-test.yml ├── .gitignore ├── .gitmodules ├── .prettierignore ├── .prettierrc ├── .snx ├── .gitignore ├── config.json ├── feeds.json ├── futures-markets.json ├── owner-actions.json ├── params.json ├── rewards.json ├── shorting-rewards.json └── synths.json ├── .solcover.js ├── .solhint.json ├── .solhintignore ├── README.md ├── contracts ├── BaseExchangeAdapter.sol ├── GMXAdapter.sol ├── GMXFuturesPoolHedger.sol ├── LiquidityPool.sol ├── LiquidityToken.sol ├── OptionGreekCache.sol ├── OptionMarket.sol ├── OptionMarketPricer.sol ├── OptionToken.sol ├── SNXPerpV2Adapter.sol ├── SNXPerpsV2PoolHedger.sol ├── ShortCollateral.sol ├── governance-wrapper │ ├── BaseGovernanceWrapper.sol │ ├── GovernanceWrapperViewerGMX.sol │ └── modules │ │ ├── LiquidityPoolGovernanceWrapper.sol │ │ ├── OptionGreekCacheGovernanceWrapper.sol │ │ ├── OptionMarketGovernanceWrapper.sol │ │ ├── OptionMarketPricerGovernanceWrapper.sol │ │ ├── OptionTokenGovernanceWrapper.sol │ │ ├── gmx │ │ ├── GMXAdapterGovernanceWrapper.sol │ │ └── GMXHedgerGovernanceWrapper.sol │ │ └── snx │ │ ├── SNXAdapterGovernanceWrapper.sol │ │ └── SNXHedgerGovernanceWrapper.sol ├── interfaces │ ├── IAddressResolver.sol │ ├── IAggregatorV3.sol │ ├── ICollateralShort.sol │ ├── ICurve.sol │ ├── IDecimals.sol │ ├── IDelegateApprovals.sol │ ├── IERC20Decimals.sol │ ├── IExchangeRates.sol │ ├── IExchanger.sol │ ├── IFeeCounter.sol │ ├── IGWAVOracle.sol │ ├── ILiquidityPool.sol │ ├── ILiquidityTracker.sol │ ├── ILyraRegistry.sol │ ├── IOptionGreekCache.sol │ ├── IOptionMarket.sol │ ├── IOptionMarketPricer.sol │ ├── IOptionToken.sol │ ├── IShortCollateral.sol │ ├── ISwapRouter.sol │ ├── ISynthetix.sol │ ├── ISynthetixAdapter.sol │ ├── IUniswapV3Oracle.sol │ ├── IWETH.sol │ ├── gmx │ │ ├── IPositionRouter.sol │ │ ├── IPositionRouterCallbackReceiver.sol │ │ ├── IRouter.sol │ │ ├── IVault.sol │ │ ├── IVaultPriceFeed.sol │ │ └── IVaultUtils.sol │ └── perpsV2 │ │ ├── IFuturesMarketManager.sol │ │ ├── IFuturesMarketSettings.sol │ │ ├── IPerpsV2MarketBaseTypes.sol │ │ ├── IPerpsV2MarketConsolidated.sol │ │ ├── IPerpsV2MarketSettings.sol │ │ └── ISystemStatus.sol ├── libraries │ ├── BlackScholes.sol │ ├── ConvertDecimals.sol │ ├── FixedPointMathLib.sol │ ├── GWAV.sol │ ├── Math.sol │ ├── PoolHedger.sol │ └── SimpleInitializable.sol ├── periphery │ ├── BasicFeeCounter.sol │ ├── BasicLiquidityCounter.sol │ ├── GWAVOracle.sol │ ├── KeeperHelper.sol │ ├── LyraAdapter.sol │ ├── LyraRegistry.sol │ ├── MultistepSwapper.sol │ ├── OptionMarketViewer.sol │ └── Wrapper │ │ ├── BasicOptionMarketWrapper.sol │ │ ├── OptionMarketWrapper.sol │ │ └── OptionMarketWrapperWithSwaps.sol ├── synthetix │ ├── AbstractOwned.sol │ ├── DecimalMath.sol │ ├── Owned.sol │ ├── OwnedUpgradeable.sol │ └── SignedDecimalMath.sol └── test-helpers │ ├── BytesLib.sol │ ├── ITestERC20.sol │ ├── MathTest.sol │ ├── MockAggregatorV2V3.sol │ ├── OldBlackScholesMath.sol │ ├── Path.sol │ ├── ShortPoolHedger.sol │ ├── SynthetixAdapter.sol │ ├── TestBaseExchangeAdapter.sol │ ├── TestBlackScholes.sol │ ├── TestCurve.sol │ ├── TestERC20.sol │ ├── TestERC20Fail.sol │ ├── TestERC20SetDecimals.sol │ ├── TestERC20SetDecimalsFail.sol │ ├── TestFaucet.sol │ ├── TestGMXPoolHedger.sol │ ├── TestGWAV.sol │ ├── TestInaccurateSynthetixAdapter.sol │ ├── TestLyraAdapter.sol │ ├── TestShortPoolHedger.sol │ ├── TestSynthetixAdapterV2.sol │ ├── TestWETH.sol │ ├── gmx │ ├── GMXCompileImports.sol │ ├── TestGMXPositionRouter.sol │ ├── TestGMXRouter.sol │ └── TestGMXVaultChainlinkPrice.sol │ └── snx │ ├── CompileUniImports.sol │ ├── MockPerpsV2MarketConsolidated.sol │ ├── MockPyth.sol │ ├── MockSystemStatus.sol │ ├── SNXCompileImport.sol │ ├── TestAddressResolver.sol │ ├── TestCollateralShort.sol │ ├── TestDelegateApprovals.sol │ ├── TestExchangeRates.sol │ ├── TestExchanger.sol │ ├── TestFuturesMarketManager.sol │ ├── TestFuturesMarketSettings.sol │ ├── TestPerpsMarket.sol │ ├── TestSynthetix.sol │ └── TestSynthetixReturnZero.sol ├── deployments ├── .env.defaults ├── .env.private.example ├── .gitignore ├── goerli-arbi │ ├── .env.public │ ├── external.json │ ├── external.mocked.realPricingMockGmx.json │ ├── lyra.realPricingMockGmx.json │ ├── params.default.json │ ├── params.json │ └── params.realPricingMockGmx.json ├── goerli-ovm │ ├── .env.public │ ├── external.json │ ├── lyra.realSNX.json │ ├── params.realPricingMockSnx.json │ └── params.realSNX.json ├── local │ ├── .env.public │ ├── params.mockGmx.json │ └── params.mockSnx.json ├── mainnet-arbi │ ├── .env.public │ ├── external.json │ ├── lyra.realGMX.json │ ├── params.default.json │ ├── params.json │ └── params.realGMX.json └── mainnet-ovm │ ├── .env.public │ ├── external.json │ ├── lyra.realSNX.json │ ├── params.realSNX.json │ └── synthetix.json ├── examples ├── deployAndSeedLocal.ts └── goerliInteraction.ts ├── hardhat.config.ts ├── package.json ├── scripts ├── addMarketToRealGMX.ts ├── addMarketToTestGMX.ts ├── deploy │ ├── deployGMXContracts.ts │ ├── deployGMXGovernanceWrappers.ts │ ├── deploySNXContracts.ts │ ├── deployTestUSDC.ts │ ├── deployUniswap.ts │ ├── initGMXContracts.ts │ └── initSNXContracts.ts ├── deployOptionMarketWrapper.ts ├── deployRealGMX.ts ├── deployRealSNX.ts ├── deploySynthetixAdapter.ts ├── deployTestGMX.ts ├── deployTestSNX.ts ├── deployTestWithRealPricingGMX.ts ├── deployTestWithRealPricingSNX.ts ├── events │ └── index.ts ├── getEvents.ts ├── govWrapGMX.ts ├── govWrapTestGMX.ts ├── govWrapTestWithRealPricingGMX.ts ├── random-scripts │ └── realSNXIntegration.ts ├── runIntegrationTest.ts ├── seed │ ├── changeOwners.ts │ ├── createBoards.ts │ ├── exercisableBoardScenario.ts │ ├── hedgeDelta.ts │ ├── seedContracts.ts │ ├── seedDeposit.ts │ ├── seedLiquidations.ts │ ├── seedMint.ts │ ├── seedTrades.ts │ └── updateCaches.ts ├── seedRealGMX.ts ├── seedRealSNX.ts ├── seedTestGMX.ts ├── seedTestSNX.ts ├── seedTestWithRealPricing.ts ├── seedTestWithRealPricingGMX.ts └── util │ ├── index.ts │ ├── integrationFunctions.ts │ ├── maths.ts │ ├── parseFiles.ts │ ├── providers.ts │ ├── transactions.ts │ ├── verification.ts │ ├── web3utils.ts │ └── wrapperPacking.ts ├── slither.config.json ├── slither.db.json ├── test ├── contracts │ ├── BaseExchangeAdapter │ │ └── 1_Misc.ts │ ├── GMXAdapter │ │ └── 1_Misc.ts │ ├── GovernanceWrapper │ │ ├── 1_GMXHedger.ts │ │ ├── 2_GMXAdapter.ts │ │ ├── 3_GreekCache.ts │ │ ├── 4_OptionMarket.ts │ │ ├── 5_Liquiditypool.ts │ │ ├── 6_OptionToken.ts │ │ ├── 7_OptionMarketPricer.ts │ │ ├── 8_BaseGovernanceWrapper.ts │ │ └── utils.ts │ ├── GovernanceWrapperSNX │ │ ├── 1_SNXHedger.ts │ │ └── 2_SNXAdapter.ts │ ├── LiquidityPool │ │ ├── 10_Liquidity.ts │ │ ├── 11_PoolValue.ts │ │ ├── 12_TokenPriceAndSupply.ts │ │ ├── 13_LockCollateral.ts │ │ ├── 14_FreeCollateral.ts │ │ ├── 15_SwapHedger.ts │ │ ├── 16_ExchangeBase.ts │ │ ├── 17_ContractAdjustment.ts │ │ ├── 18_LiquidityPriority.ts │ │ ├── 19_Misc.ts │ │ ├── 1_Admin.ts │ │ ├── 20_EdgeCase.t.ts │ │ ├── 2_InitiateDeposit.ts │ │ ├── 3_ProcessDeposit.ts │ │ ├── 4_InitiateWithdrawal.ts │ │ ├── 5_ProcessWithdrawal.ts │ │ ├── 6_WithdrawalFee.ts │ │ ├── 7_LiquidityCB.ts │ │ ├── 8_VarianceCB.ts │ │ └── 9_OtherCB.ts │ ├── LiquidityTokens │ │ └── 1_LiquidityTokens.ts │ ├── OptionGreekCache │ │ ├── 1_Admin.ts │ │ ├── 2_SyncBoards.ts │ │ ├── 3_ForceClosePricing.ts │ │ ├── 4_MinCollatPricing.ts │ │ ├── 5_UpdateCachedGreeks.ts │ │ ├── 6_StaleCacheChecking.ts │ │ ├── 7_UpdateStrikeExposure.ts │ │ └── 8_NewStrikeGas.ts │ ├── OptionMarket │ │ ├── 10_ShortCallBase.ts │ │ ├── 1_Admin.ts │ │ ├── 2_RevertedOpen.ts │ │ ├── 3_SuccessfulOpen.ts │ │ ├── 4_RevertedClose.ts │ │ ├── 5_SuccessfulClose.ts │ │ ├── 6_ForceClose.ts │ │ ├── 7_SettleBoard.ts │ │ ├── 8_Claim.ts │ │ └── 9_LongSuccessfulOpen.ts │ ├── OptionMarketPricer │ │ ├── 1_Admin.ts │ │ ├── 2_IvImpact.ts │ │ ├── 3_TradeResult.ts │ │ ├── 4_VegaUtil.ts │ │ ├── 5_VarianceFee.ts │ │ ├── 6_Cutoffs.ts │ │ └── 7_TimeWeightFee.ts │ ├── OptionToken │ │ ├── 1_Admin.ts │ │ ├── 2_AdjustingPositions.ts │ │ ├── 3_AddCollateral.ts │ │ ├── 4_Liquidation.ts │ │ ├── 5_MinCollateral.ts │ │ ├── 6_Settle.ts │ │ ├── 7_Split.ts │ │ ├── 8_Merge.ts │ │ └── 9_Misc.ts │ ├── SNXFuturesPoolHedger │ │ ├── 1_Admin.ts │ │ ├── 2_HedgeDelta.ts │ │ ├── 3_Hedging.ts │ │ ├── 4_Collateral.ts │ │ ├── 5_SNXMock.ts │ │ └── 6_Curve.ts │ ├── SNXPerpV2Adapter │ │ ├── 1_Admin.ts │ │ └── 2_Exchange.ts │ ├── ShortCollateral │ │ ├── 1_CollateralTransfer.ts │ │ ├── 2_SettlePosition.ts │ │ ├── 3_Reclaim.ts │ │ └── 4_Excess.ts │ ├── SynthetixAdapter │ │ ├── 1_Admin.ts │ │ ├── 2_Getters.ts │ │ ├── 3_Pause.ts │ │ └── 4_Exchange.ts │ ├── USDC_quoteAsset │ │ ├── LiquidityPool │ │ │ ├── 10_Liquidity.ts │ │ │ ├── 11_PoolValue.ts │ │ │ ├── 12_TokenPriceAndSupply.ts │ │ │ ├── 13_LockCollateral.ts │ │ │ ├── 14_FreeCollateral.ts │ │ │ ├── 15_SwapHedger.ts │ │ │ ├── 16_ExchangeBase.ts │ │ │ ├── 17_ContractAdjustment.ts │ │ │ ├── 18_LiquidityPriority.ts │ │ │ ├── 1_Admin.ts │ │ │ ├── 2_InitiateDeposit.ts │ │ │ ├── 3_ProcessDeposit.ts │ │ │ ├── 4_InitiateWithdrawal.ts │ │ │ ├── 5_ProcessWithdrawal.ts │ │ │ ├── 6_WithdrawalFee.ts │ │ │ ├── 7_LiquidityCB.ts │ │ │ ├── 8_VarianceCB.ts │ │ │ └── 9_OtherCB.ts │ │ └── OptionMarket │ │ │ ├── 2_RevertedOpen.ts │ │ │ ├── 3_SuccessfulOpen.ts │ │ │ ├── 4_RevertedClose.ts │ │ │ ├── 5_SuccessfulClose.ts │ │ │ ├── 6_ForceClose.ts │ │ │ ├── 7_SettleBoard.ts │ │ │ └── 8_Claim.ts │ ├── externalChecks │ │ ├── MechanismChecks.ts │ │ └── mechanismTestResults.ts │ ├── gmx_integration │ │ └── IntegrationTestsGMX.ts │ ├── libraries │ │ ├── BlackScholes.ts │ │ ├── GWAV.ts │ │ └── MathTest.ts │ └── periphery │ │ ├── GWAVOracle.ts │ │ ├── KeeperHelper │ │ ├── 1_packedFunctions.ts │ │ ├── 2_settlePositions.ts │ │ └── 3_updateCache.ts │ │ ├── LyraAdapter.ts │ │ ├── LyraRegistry.ts │ │ ├── MiscPeriphery.ts │ │ ├── MultistepSwapper.ts │ │ ├── OptionMarketViewer.ts │ │ └── OptionMarketWrapper │ │ ├── 1_LongPositions.ts │ │ ├── 2_ShortCallBase.ts │ │ ├── 3_ShortCallQuote.ts │ │ ├── 4_ShortPutQuote.ts │ │ ├── 5_MiscFunctions.ts │ │ ├── 6_EthShortCallBaseGMX.ts │ │ └── 7_EnsureConvertRounding.ts ├── integration │ ├── integrationTests.ts │ ├── integrationTestsSNX.ts │ ├── snxPerpIntegration.ts │ └── util │ │ ├── cannonHelpers.ts │ │ ├── externals.json │ │ └── writeExternals.ts └── utils │ ├── arrayCombiner.ts │ ├── assert.ts │ ├── blackScholes.ts │ ├── contractHelpers │ ├── boards.ts │ ├── fees.ts │ ├── hedging.ts │ ├── index.ts │ ├── keeperHelperPacking.ts │ ├── liquidity.ts │ ├── openClose.ts │ ├── parameters.ts │ ├── synthetix.ts │ └── wrapper.ts │ ├── defaultParams.ts │ ├── deployTestSystem.ts │ ├── deployTestSystemGMX.ts │ ├── evm.ts │ ├── fixture.ts │ ├── gmxHelpers.ts │ ├── package │ ├── index-artifacts.ts │ ├── index-paths.ts │ ├── index.ts │ ├── merge.ts │ ├── parseFiles.ts │ ├── prepare-artifacts.ts │ ├── realGMXUtils.ts │ └── realSynthetixUtils.ts │ ├── seedTestSystem.ts │ ├── seedTestSystemGMX.ts │ └── testSetup.ts ├── tsconfig.json ├── types.d.ts └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.github/workflows/run-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.github/workflows/run-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.gitmodules -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.prettierrc -------------------------------------------------------------------------------- /.snx/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.snx/.gitignore -------------------------------------------------------------------------------- /.snx/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.snx/config.json -------------------------------------------------------------------------------- /.snx/feeds.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.snx/feeds.json -------------------------------------------------------------------------------- /.snx/futures-markets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.snx/futures-markets.json -------------------------------------------------------------------------------- /.snx/owner-actions.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.snx/params.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /.snx/rewards.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.snx/rewards.json -------------------------------------------------------------------------------- /.snx/shorting-rewards.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.snx/shorting-rewards.json -------------------------------------------------------------------------------- /.snx/synths.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.snx/synths.json -------------------------------------------------------------------------------- /.solcover.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.solcover.js -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.solhint.json -------------------------------------------------------------------------------- /.solhintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/.solhintignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/README.md -------------------------------------------------------------------------------- /contracts/BaseExchangeAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/BaseExchangeAdapter.sol -------------------------------------------------------------------------------- /contracts/GMXAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/GMXAdapter.sol -------------------------------------------------------------------------------- /contracts/GMXFuturesPoolHedger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/GMXFuturesPoolHedger.sol -------------------------------------------------------------------------------- /contracts/LiquidityPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/LiquidityPool.sol -------------------------------------------------------------------------------- /contracts/LiquidityToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/LiquidityToken.sol -------------------------------------------------------------------------------- /contracts/OptionGreekCache.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/OptionGreekCache.sol -------------------------------------------------------------------------------- /contracts/OptionMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/OptionMarket.sol -------------------------------------------------------------------------------- /contracts/OptionMarketPricer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/OptionMarketPricer.sol -------------------------------------------------------------------------------- /contracts/OptionToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/OptionToken.sol -------------------------------------------------------------------------------- /contracts/SNXPerpV2Adapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/SNXPerpV2Adapter.sol -------------------------------------------------------------------------------- /contracts/SNXPerpsV2PoolHedger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/SNXPerpsV2PoolHedger.sol -------------------------------------------------------------------------------- /contracts/ShortCollateral.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/ShortCollateral.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/BaseGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/BaseGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/GovernanceWrapperViewerGMX.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/GovernanceWrapperViewerGMX.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/LiquidityPoolGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/LiquidityPoolGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/OptionGreekCacheGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/OptionGreekCacheGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/OptionMarketGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/OptionMarketGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/OptionMarketPricerGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/OptionMarketPricerGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/OptionTokenGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/OptionTokenGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/gmx/GMXAdapterGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/gmx/GMXAdapterGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/gmx/GMXHedgerGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/gmx/GMXHedgerGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/snx/SNXAdapterGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/snx/SNXAdapterGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/governance-wrapper/modules/snx/SNXHedgerGovernanceWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/governance-wrapper/modules/snx/SNXHedgerGovernanceWrapper.sol -------------------------------------------------------------------------------- /contracts/interfaces/IAddressResolver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IAddressResolver.sol -------------------------------------------------------------------------------- /contracts/interfaces/IAggregatorV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IAggregatorV3.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICollateralShort.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ICollateralShort.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICurve.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ICurve.sol -------------------------------------------------------------------------------- /contracts/interfaces/IDecimals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IDecimals.sol -------------------------------------------------------------------------------- /contracts/interfaces/IDelegateApprovals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IDelegateApprovals.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC20Decimals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IERC20Decimals.sol -------------------------------------------------------------------------------- /contracts/interfaces/IExchangeRates.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IExchangeRates.sol -------------------------------------------------------------------------------- /contracts/interfaces/IExchanger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IExchanger.sol -------------------------------------------------------------------------------- /contracts/interfaces/IFeeCounter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IFeeCounter.sol -------------------------------------------------------------------------------- /contracts/interfaces/IGWAVOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IGWAVOracle.sol -------------------------------------------------------------------------------- /contracts/interfaces/ILiquidityPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ILiquidityPool.sol -------------------------------------------------------------------------------- /contracts/interfaces/ILiquidityTracker.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ILiquidityTracker.sol -------------------------------------------------------------------------------- /contracts/interfaces/ILyraRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ILyraRegistry.sol -------------------------------------------------------------------------------- /contracts/interfaces/IOptionGreekCache.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IOptionGreekCache.sol -------------------------------------------------------------------------------- /contracts/interfaces/IOptionMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IOptionMarket.sol -------------------------------------------------------------------------------- /contracts/interfaces/IOptionMarketPricer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IOptionMarketPricer.sol -------------------------------------------------------------------------------- /contracts/interfaces/IOptionToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IOptionToken.sol -------------------------------------------------------------------------------- /contracts/interfaces/IShortCollateral.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IShortCollateral.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwapRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ISwapRouter.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISynthetix.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ISynthetix.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISynthetixAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/ISynthetixAdapter.sol -------------------------------------------------------------------------------- /contracts/interfaces/IUniswapV3Oracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IUniswapV3Oracle.sol -------------------------------------------------------------------------------- /contracts/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/IWETH.sol -------------------------------------------------------------------------------- /contracts/interfaces/gmx/IPositionRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/gmx/IPositionRouter.sol -------------------------------------------------------------------------------- /contracts/interfaces/gmx/IPositionRouterCallbackReceiver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/gmx/IPositionRouterCallbackReceiver.sol -------------------------------------------------------------------------------- /contracts/interfaces/gmx/IRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/gmx/IRouter.sol -------------------------------------------------------------------------------- /contracts/interfaces/gmx/IVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/gmx/IVault.sol -------------------------------------------------------------------------------- /contracts/interfaces/gmx/IVaultPriceFeed.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/gmx/IVaultPriceFeed.sol -------------------------------------------------------------------------------- /contracts/interfaces/gmx/IVaultUtils.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/gmx/IVaultUtils.sol -------------------------------------------------------------------------------- /contracts/interfaces/perpsV2/IFuturesMarketManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/perpsV2/IFuturesMarketManager.sol -------------------------------------------------------------------------------- /contracts/interfaces/perpsV2/IFuturesMarketSettings.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/perpsV2/IFuturesMarketSettings.sol -------------------------------------------------------------------------------- /contracts/interfaces/perpsV2/IPerpsV2MarketBaseTypes.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/perpsV2/IPerpsV2MarketBaseTypes.sol -------------------------------------------------------------------------------- /contracts/interfaces/perpsV2/IPerpsV2MarketConsolidated.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/perpsV2/IPerpsV2MarketConsolidated.sol -------------------------------------------------------------------------------- /contracts/interfaces/perpsV2/IPerpsV2MarketSettings.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/perpsV2/IPerpsV2MarketSettings.sol -------------------------------------------------------------------------------- /contracts/interfaces/perpsV2/ISystemStatus.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/interfaces/perpsV2/ISystemStatus.sol -------------------------------------------------------------------------------- /contracts/libraries/BlackScholes.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/libraries/BlackScholes.sol -------------------------------------------------------------------------------- /contracts/libraries/ConvertDecimals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/libraries/ConvertDecimals.sol -------------------------------------------------------------------------------- /contracts/libraries/FixedPointMathLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/libraries/FixedPointMathLib.sol -------------------------------------------------------------------------------- /contracts/libraries/GWAV.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/libraries/GWAV.sol -------------------------------------------------------------------------------- /contracts/libraries/Math.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/libraries/Math.sol -------------------------------------------------------------------------------- /contracts/libraries/PoolHedger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/libraries/PoolHedger.sol -------------------------------------------------------------------------------- /contracts/libraries/SimpleInitializable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/libraries/SimpleInitializable.sol -------------------------------------------------------------------------------- /contracts/periphery/BasicFeeCounter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/BasicFeeCounter.sol -------------------------------------------------------------------------------- /contracts/periphery/BasicLiquidityCounter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/BasicLiquidityCounter.sol -------------------------------------------------------------------------------- /contracts/periphery/GWAVOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/GWAVOracle.sol -------------------------------------------------------------------------------- /contracts/periphery/KeeperHelper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/KeeperHelper.sol -------------------------------------------------------------------------------- /contracts/periphery/LyraAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/LyraAdapter.sol -------------------------------------------------------------------------------- /contracts/periphery/LyraRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/LyraRegistry.sol -------------------------------------------------------------------------------- /contracts/periphery/MultistepSwapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/MultistepSwapper.sol -------------------------------------------------------------------------------- /contracts/periphery/OptionMarketViewer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/OptionMarketViewer.sol -------------------------------------------------------------------------------- /contracts/periphery/Wrapper/BasicOptionMarketWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/Wrapper/BasicOptionMarketWrapper.sol -------------------------------------------------------------------------------- /contracts/periphery/Wrapper/OptionMarketWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/Wrapper/OptionMarketWrapper.sol -------------------------------------------------------------------------------- /contracts/periphery/Wrapper/OptionMarketWrapperWithSwaps.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/periphery/Wrapper/OptionMarketWrapperWithSwaps.sol -------------------------------------------------------------------------------- /contracts/synthetix/AbstractOwned.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/synthetix/AbstractOwned.sol -------------------------------------------------------------------------------- /contracts/synthetix/DecimalMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/synthetix/DecimalMath.sol -------------------------------------------------------------------------------- /contracts/synthetix/Owned.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/synthetix/Owned.sol -------------------------------------------------------------------------------- /contracts/synthetix/OwnedUpgradeable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/synthetix/OwnedUpgradeable.sol -------------------------------------------------------------------------------- /contracts/synthetix/SignedDecimalMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/synthetix/SignedDecimalMath.sol -------------------------------------------------------------------------------- /contracts/test-helpers/BytesLib.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/BytesLib.sol -------------------------------------------------------------------------------- /contracts/test-helpers/ITestERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/ITestERC20.sol -------------------------------------------------------------------------------- /contracts/test-helpers/MathTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/MathTest.sol -------------------------------------------------------------------------------- /contracts/test-helpers/MockAggregatorV2V3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/MockAggregatorV2V3.sol -------------------------------------------------------------------------------- /contracts/test-helpers/OldBlackScholesMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/OldBlackScholesMath.sol -------------------------------------------------------------------------------- /contracts/test-helpers/Path.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/Path.sol -------------------------------------------------------------------------------- /contracts/test-helpers/ShortPoolHedger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/ShortPoolHedger.sol -------------------------------------------------------------------------------- /contracts/test-helpers/SynthetixAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/SynthetixAdapter.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestBaseExchangeAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestBaseExchangeAdapter.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestBlackScholes.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestBlackScholes.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestCurve.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestCurve.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestERC20.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestERC20Fail.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestERC20Fail.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestERC20SetDecimals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestERC20SetDecimals.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestERC20SetDecimalsFail.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestERC20SetDecimalsFail.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestFaucet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestFaucet.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestGMXPoolHedger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestGMXPoolHedger.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestGWAV.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestGWAV.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestInaccurateSynthetixAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestInaccurateSynthetixAdapter.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestLyraAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestLyraAdapter.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestShortPoolHedger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestShortPoolHedger.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestSynthetixAdapterV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestSynthetixAdapterV2.sol -------------------------------------------------------------------------------- /contracts/test-helpers/TestWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/TestWETH.sol -------------------------------------------------------------------------------- /contracts/test-helpers/gmx/GMXCompileImports.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/gmx/GMXCompileImports.sol -------------------------------------------------------------------------------- /contracts/test-helpers/gmx/TestGMXPositionRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/gmx/TestGMXPositionRouter.sol -------------------------------------------------------------------------------- /contracts/test-helpers/gmx/TestGMXRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/gmx/TestGMXRouter.sol -------------------------------------------------------------------------------- /contracts/test-helpers/gmx/TestGMXVaultChainlinkPrice.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/gmx/TestGMXVaultChainlinkPrice.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/CompileUniImports.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/CompileUniImports.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/MockPerpsV2MarketConsolidated.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/MockPerpsV2MarketConsolidated.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/MockPyth.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/MockPyth.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/MockSystemStatus.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/MockSystemStatus.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/SNXCompileImport.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/SNXCompileImport.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestAddressResolver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestAddressResolver.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestCollateralShort.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestCollateralShort.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestDelegateApprovals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestDelegateApprovals.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestExchangeRates.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestExchangeRates.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestExchanger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestExchanger.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestFuturesMarketManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestFuturesMarketManager.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestFuturesMarketSettings.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestFuturesMarketSettings.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestPerpsMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestPerpsMarket.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestSynthetix.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestSynthetix.sol -------------------------------------------------------------------------------- /contracts/test-helpers/snx/TestSynthetixReturnZero.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/contracts/test-helpers/snx/TestSynthetixReturnZero.sol -------------------------------------------------------------------------------- /deployments/.env.defaults: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/.env.defaults -------------------------------------------------------------------------------- /deployments/.env.private.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/.env.private.example -------------------------------------------------------------------------------- /deployments/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/.gitignore -------------------------------------------------------------------------------- /deployments/goerli-arbi/.env.public: -------------------------------------------------------------------------------- 1 | RPC_URL=https://arbitrum-goerli.io/ 2 | -------------------------------------------------------------------------------- /deployments/goerli-arbi/external.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-arbi/external.json -------------------------------------------------------------------------------- /deployments/goerli-arbi/external.mocked.realPricingMockGmx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-arbi/external.mocked.realPricingMockGmx.json -------------------------------------------------------------------------------- /deployments/goerli-arbi/lyra.realPricingMockGmx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-arbi/lyra.realPricingMockGmx.json -------------------------------------------------------------------------------- /deployments/goerli-arbi/params.default.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /deployments/goerli-arbi/params.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /deployments/goerli-arbi/params.realPricingMockGmx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-arbi/params.realPricingMockGmx.json -------------------------------------------------------------------------------- /deployments/goerli-ovm/.env.public: -------------------------------------------------------------------------------- 1 | RPC_URL=https://optimism-goerli.io/ 2 | -------------------------------------------------------------------------------- /deployments/goerli-ovm/external.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-ovm/external.json -------------------------------------------------------------------------------- /deployments/goerli-ovm/lyra.realSNX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-ovm/lyra.realSNX.json -------------------------------------------------------------------------------- /deployments/goerli-ovm/params.realPricingMockSnx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-ovm/params.realPricingMockSnx.json -------------------------------------------------------------------------------- /deployments/goerli-ovm/params.realSNX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/goerli-ovm/params.realSNX.json -------------------------------------------------------------------------------- /deployments/local/.env.public: -------------------------------------------------------------------------------- 1 | RPC_URL=http://localhost:8545 2 | GAS_PRICE=0 3 | -------------------------------------------------------------------------------- /deployments/local/params.mockGmx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/local/params.mockGmx.json -------------------------------------------------------------------------------- /deployments/local/params.mockSnx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/local/params.mockSnx.json -------------------------------------------------------------------------------- /deployments/mainnet-arbi/.env.public: -------------------------------------------------------------------------------- 1 | RPC_URL=https://arbitrum-mainnet.io 2 | -------------------------------------------------------------------------------- /deployments/mainnet-arbi/external.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/mainnet-arbi/external.json -------------------------------------------------------------------------------- /deployments/mainnet-arbi/lyra.realGMX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/mainnet-arbi/lyra.realGMX.json -------------------------------------------------------------------------------- /deployments/mainnet-arbi/params.default.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /deployments/mainnet-arbi/params.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /deployments/mainnet-arbi/params.realGMX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/mainnet-arbi/params.realGMX.json -------------------------------------------------------------------------------- /deployments/mainnet-ovm/.env.public: -------------------------------------------------------------------------------- 1 | RPC_URL=https://optimism-mainnet.infura.io/ 2 | -------------------------------------------------------------------------------- /deployments/mainnet-ovm/external.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/mainnet-ovm/external.json -------------------------------------------------------------------------------- /deployments/mainnet-ovm/lyra.realSNX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/mainnet-ovm/lyra.realSNX.json -------------------------------------------------------------------------------- /deployments/mainnet-ovm/params.realSNX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/mainnet-ovm/params.realSNX.json -------------------------------------------------------------------------------- /deployments/mainnet-ovm/synthetix.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/deployments/mainnet-ovm/synthetix.json -------------------------------------------------------------------------------- /examples/deployAndSeedLocal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/examples/deployAndSeedLocal.ts -------------------------------------------------------------------------------- /examples/goerliInteraction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/examples/goerliInteraction.ts -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/package.json -------------------------------------------------------------------------------- /scripts/addMarketToRealGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/addMarketToRealGMX.ts -------------------------------------------------------------------------------- /scripts/addMarketToTestGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/addMarketToTestGMX.ts -------------------------------------------------------------------------------- /scripts/deploy/deployGMXContracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploy/deployGMXContracts.ts -------------------------------------------------------------------------------- /scripts/deploy/deployGMXGovernanceWrappers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploy/deployGMXGovernanceWrappers.ts -------------------------------------------------------------------------------- /scripts/deploy/deploySNXContracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploy/deploySNXContracts.ts -------------------------------------------------------------------------------- /scripts/deploy/deployTestUSDC.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploy/deployTestUSDC.ts -------------------------------------------------------------------------------- /scripts/deploy/deployUniswap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploy/deployUniswap.ts -------------------------------------------------------------------------------- /scripts/deploy/initGMXContracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploy/initGMXContracts.ts -------------------------------------------------------------------------------- /scripts/deploy/initSNXContracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploy/initSNXContracts.ts -------------------------------------------------------------------------------- /scripts/deployOptionMarketWrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deployOptionMarketWrapper.ts -------------------------------------------------------------------------------- /scripts/deployRealGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deployRealGMX.ts -------------------------------------------------------------------------------- /scripts/deployRealSNX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deployRealSNX.ts -------------------------------------------------------------------------------- /scripts/deploySynthetixAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deploySynthetixAdapter.ts -------------------------------------------------------------------------------- /scripts/deployTestGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deployTestGMX.ts -------------------------------------------------------------------------------- /scripts/deployTestSNX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deployTestSNX.ts -------------------------------------------------------------------------------- /scripts/deployTestWithRealPricingGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deployTestWithRealPricingGMX.ts -------------------------------------------------------------------------------- /scripts/deployTestWithRealPricingSNX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/deployTestWithRealPricingSNX.ts -------------------------------------------------------------------------------- /scripts/events/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/events/index.ts -------------------------------------------------------------------------------- /scripts/getEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/getEvents.ts -------------------------------------------------------------------------------- /scripts/govWrapGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/govWrapGMX.ts -------------------------------------------------------------------------------- /scripts/govWrapTestGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/govWrapTestGMX.ts -------------------------------------------------------------------------------- /scripts/govWrapTestWithRealPricingGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/govWrapTestWithRealPricingGMX.ts -------------------------------------------------------------------------------- /scripts/random-scripts/realSNXIntegration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/random-scripts/realSNXIntegration.ts -------------------------------------------------------------------------------- /scripts/runIntegrationTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/runIntegrationTest.ts -------------------------------------------------------------------------------- /scripts/seed/changeOwners.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/changeOwners.ts -------------------------------------------------------------------------------- /scripts/seed/createBoards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/createBoards.ts -------------------------------------------------------------------------------- /scripts/seed/exercisableBoardScenario.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/exercisableBoardScenario.ts -------------------------------------------------------------------------------- /scripts/seed/hedgeDelta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/hedgeDelta.ts -------------------------------------------------------------------------------- /scripts/seed/seedContracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/seedContracts.ts -------------------------------------------------------------------------------- /scripts/seed/seedDeposit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/seedDeposit.ts -------------------------------------------------------------------------------- /scripts/seed/seedLiquidations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/seedLiquidations.ts -------------------------------------------------------------------------------- /scripts/seed/seedMint.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/seedMint.ts -------------------------------------------------------------------------------- /scripts/seed/seedTrades.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/seedTrades.ts -------------------------------------------------------------------------------- /scripts/seed/updateCaches.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seed/updateCaches.ts -------------------------------------------------------------------------------- /scripts/seedRealGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seedRealGMX.ts -------------------------------------------------------------------------------- /scripts/seedRealSNX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seedRealSNX.ts -------------------------------------------------------------------------------- /scripts/seedTestGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seedTestGMX.ts -------------------------------------------------------------------------------- /scripts/seedTestSNX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seedTestSNX.ts -------------------------------------------------------------------------------- /scripts/seedTestWithRealPricing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seedTestWithRealPricing.ts -------------------------------------------------------------------------------- /scripts/seedTestWithRealPricingGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/seedTestWithRealPricingGMX.ts -------------------------------------------------------------------------------- /scripts/util/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/index.ts -------------------------------------------------------------------------------- /scripts/util/integrationFunctions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/integrationFunctions.ts -------------------------------------------------------------------------------- /scripts/util/maths.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/maths.ts -------------------------------------------------------------------------------- /scripts/util/parseFiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/parseFiles.ts -------------------------------------------------------------------------------- /scripts/util/providers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/providers.ts -------------------------------------------------------------------------------- /scripts/util/transactions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/transactions.ts -------------------------------------------------------------------------------- /scripts/util/verification.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/verification.ts -------------------------------------------------------------------------------- /scripts/util/web3utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/web3utils.ts -------------------------------------------------------------------------------- /scripts/util/wrapperPacking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/scripts/util/wrapperPacking.ts -------------------------------------------------------------------------------- /slither.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/slither.config.json -------------------------------------------------------------------------------- /slither.db.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/slither.db.json -------------------------------------------------------------------------------- /test/contracts/BaseExchangeAdapter/1_Misc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/BaseExchangeAdapter/1_Misc.ts -------------------------------------------------------------------------------- /test/contracts/GMXAdapter/1_Misc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GMXAdapter/1_Misc.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/1_GMXHedger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/1_GMXHedger.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/2_GMXAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/2_GMXAdapter.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/3_GreekCache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/3_GreekCache.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/4_OptionMarket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/4_OptionMarket.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/5_Liquiditypool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/5_Liquiditypool.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/6_OptionToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/6_OptionToken.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/7_OptionMarketPricer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/7_OptionMarketPricer.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/8_BaseGovernanceWrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/8_BaseGovernanceWrapper.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapper/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapper/utils.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapperSNX/1_SNXHedger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapperSNX/1_SNXHedger.ts -------------------------------------------------------------------------------- /test/contracts/GovernanceWrapperSNX/2_SNXAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/GovernanceWrapperSNX/2_SNXAdapter.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/10_Liquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/10_Liquidity.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/11_PoolValue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/11_PoolValue.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/12_TokenPriceAndSupply.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/12_TokenPriceAndSupply.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/13_LockCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/13_LockCollateral.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/14_FreeCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/14_FreeCollateral.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/15_SwapHedger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/15_SwapHedger.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/16_ExchangeBase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/16_ExchangeBase.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/17_ContractAdjustment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/17_ContractAdjustment.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/18_LiquidityPriority.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/18_LiquidityPriority.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/19_Misc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/19_Misc.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/20_EdgeCase.t.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/20_EdgeCase.t.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/2_InitiateDeposit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/2_InitiateDeposit.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/3_ProcessDeposit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/3_ProcessDeposit.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/4_InitiateWithdrawal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/4_InitiateWithdrawal.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/5_ProcessWithdrawal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/5_ProcessWithdrawal.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/6_WithdrawalFee.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/6_WithdrawalFee.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/7_LiquidityCB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/7_LiquidityCB.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/8_VarianceCB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/8_VarianceCB.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityPool/9_OtherCB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityPool/9_OtherCB.ts -------------------------------------------------------------------------------- /test/contracts/LiquidityTokens/1_LiquidityTokens.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/LiquidityTokens/1_LiquidityTokens.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/2_SyncBoards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/2_SyncBoards.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/3_ForceClosePricing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/3_ForceClosePricing.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/4_MinCollatPricing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/4_MinCollatPricing.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/5_UpdateCachedGreeks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/5_UpdateCachedGreeks.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/6_StaleCacheChecking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/6_StaleCacheChecking.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/7_UpdateStrikeExposure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/7_UpdateStrikeExposure.ts -------------------------------------------------------------------------------- /test/contracts/OptionGreekCache/8_NewStrikeGas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionGreekCache/8_NewStrikeGas.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/10_ShortCallBase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/10_ShortCallBase.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/2_RevertedOpen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/2_RevertedOpen.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/3_SuccessfulOpen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/3_SuccessfulOpen.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/4_RevertedClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/4_RevertedClose.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/5_SuccessfulClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/5_SuccessfulClose.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/6_ForceClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/6_ForceClose.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/7_SettleBoard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/7_SettleBoard.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/8_Claim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/8_Claim.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarket/9_LongSuccessfulOpen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarket/9_LongSuccessfulOpen.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarketPricer/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarketPricer/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarketPricer/2_IvImpact.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarketPricer/2_IvImpact.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarketPricer/3_TradeResult.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarketPricer/3_TradeResult.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarketPricer/4_VegaUtil.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarketPricer/4_VegaUtil.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarketPricer/5_VarianceFee.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarketPricer/5_VarianceFee.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarketPricer/6_Cutoffs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarketPricer/6_Cutoffs.ts -------------------------------------------------------------------------------- /test/contracts/OptionMarketPricer/7_TimeWeightFee.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionMarketPricer/7_TimeWeightFee.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/2_AdjustingPositions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/2_AdjustingPositions.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/3_AddCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/3_AddCollateral.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/4_Liquidation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/4_Liquidation.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/5_MinCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/5_MinCollateral.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/6_Settle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/6_Settle.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/7_Split.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/7_Split.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/8_Merge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/8_Merge.ts -------------------------------------------------------------------------------- /test/contracts/OptionToken/9_Misc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/OptionToken/9_Misc.ts -------------------------------------------------------------------------------- /test/contracts/SNXFuturesPoolHedger/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXFuturesPoolHedger/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/SNXFuturesPoolHedger/2_HedgeDelta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXFuturesPoolHedger/2_HedgeDelta.ts -------------------------------------------------------------------------------- /test/contracts/SNXFuturesPoolHedger/3_Hedging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXFuturesPoolHedger/3_Hedging.ts -------------------------------------------------------------------------------- /test/contracts/SNXFuturesPoolHedger/4_Collateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXFuturesPoolHedger/4_Collateral.ts -------------------------------------------------------------------------------- /test/contracts/SNXFuturesPoolHedger/5_SNXMock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXFuturesPoolHedger/5_SNXMock.ts -------------------------------------------------------------------------------- /test/contracts/SNXFuturesPoolHedger/6_Curve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXFuturesPoolHedger/6_Curve.ts -------------------------------------------------------------------------------- /test/contracts/SNXPerpV2Adapter/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXPerpV2Adapter/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/SNXPerpV2Adapter/2_Exchange.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SNXPerpV2Adapter/2_Exchange.ts -------------------------------------------------------------------------------- /test/contracts/ShortCollateral/1_CollateralTransfer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/ShortCollateral/1_CollateralTransfer.ts -------------------------------------------------------------------------------- /test/contracts/ShortCollateral/2_SettlePosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/ShortCollateral/2_SettlePosition.ts -------------------------------------------------------------------------------- /test/contracts/ShortCollateral/3_Reclaim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/ShortCollateral/3_Reclaim.ts -------------------------------------------------------------------------------- /test/contracts/ShortCollateral/4_Excess.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/ShortCollateral/4_Excess.ts -------------------------------------------------------------------------------- /test/contracts/SynthetixAdapter/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SynthetixAdapter/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/SynthetixAdapter/2_Getters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SynthetixAdapter/2_Getters.ts -------------------------------------------------------------------------------- /test/contracts/SynthetixAdapter/3_Pause.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SynthetixAdapter/3_Pause.ts -------------------------------------------------------------------------------- /test/contracts/SynthetixAdapter/4_Exchange.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/SynthetixAdapter/4_Exchange.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/10_Liquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/10_Liquidity.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/11_PoolValue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/11_PoolValue.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/12_TokenPriceAndSupply.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/12_TokenPriceAndSupply.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/13_LockCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/13_LockCollateral.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/14_FreeCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/14_FreeCollateral.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/15_SwapHedger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/15_SwapHedger.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/16_ExchangeBase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/16_ExchangeBase.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/17_ContractAdjustment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/17_ContractAdjustment.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/18_LiquidityPriority.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/18_LiquidityPriority.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/1_Admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/1_Admin.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/2_InitiateDeposit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/2_InitiateDeposit.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/3_ProcessDeposit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/3_ProcessDeposit.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/4_InitiateWithdrawal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/4_InitiateWithdrawal.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/5_ProcessWithdrawal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/5_ProcessWithdrawal.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/6_WithdrawalFee.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/6_WithdrawalFee.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/7_LiquidityCB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/7_LiquidityCB.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/8_VarianceCB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/8_VarianceCB.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/LiquidityPool/9_OtherCB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/LiquidityPool/9_OtherCB.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/OptionMarket/2_RevertedOpen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/OptionMarket/2_RevertedOpen.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/OptionMarket/3_SuccessfulOpen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/OptionMarket/3_SuccessfulOpen.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/OptionMarket/4_RevertedClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/OptionMarket/4_RevertedClose.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/OptionMarket/5_SuccessfulClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/OptionMarket/5_SuccessfulClose.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/OptionMarket/6_ForceClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/OptionMarket/6_ForceClose.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/OptionMarket/7_SettleBoard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/OptionMarket/7_SettleBoard.ts -------------------------------------------------------------------------------- /test/contracts/USDC_quoteAsset/OptionMarket/8_Claim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/USDC_quoteAsset/OptionMarket/8_Claim.ts -------------------------------------------------------------------------------- /test/contracts/externalChecks/MechanismChecks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/externalChecks/MechanismChecks.ts -------------------------------------------------------------------------------- /test/contracts/externalChecks/mechanismTestResults.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/externalChecks/mechanismTestResults.ts -------------------------------------------------------------------------------- /test/contracts/gmx_integration/IntegrationTestsGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/gmx_integration/IntegrationTestsGMX.ts -------------------------------------------------------------------------------- /test/contracts/libraries/BlackScholes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/libraries/BlackScholes.ts -------------------------------------------------------------------------------- /test/contracts/libraries/GWAV.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/libraries/GWAV.ts -------------------------------------------------------------------------------- /test/contracts/libraries/MathTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/libraries/MathTest.ts -------------------------------------------------------------------------------- /test/contracts/periphery/GWAVOracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/GWAVOracle.ts -------------------------------------------------------------------------------- /test/contracts/periphery/KeeperHelper/1_packedFunctions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/KeeperHelper/1_packedFunctions.ts -------------------------------------------------------------------------------- /test/contracts/periphery/KeeperHelper/2_settlePositions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/KeeperHelper/2_settlePositions.ts -------------------------------------------------------------------------------- /test/contracts/periphery/KeeperHelper/3_updateCache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/KeeperHelper/3_updateCache.ts -------------------------------------------------------------------------------- /test/contracts/periphery/LyraAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/LyraAdapter.ts -------------------------------------------------------------------------------- /test/contracts/periphery/LyraRegistry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/LyraRegistry.ts -------------------------------------------------------------------------------- /test/contracts/periphery/MiscPeriphery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/MiscPeriphery.ts -------------------------------------------------------------------------------- /test/contracts/periphery/MultistepSwapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/MultistepSwapper.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketViewer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketViewer.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketWrapper/1_LongPositions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketWrapper/1_LongPositions.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketWrapper/2_ShortCallBase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketWrapper/2_ShortCallBase.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketWrapper/3_ShortCallQuote.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketWrapper/3_ShortCallQuote.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketWrapper/4_ShortPutQuote.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketWrapper/4_ShortPutQuote.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketWrapper/5_MiscFunctions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketWrapper/5_MiscFunctions.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketWrapper/6_EthShortCallBaseGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketWrapper/6_EthShortCallBaseGMX.ts -------------------------------------------------------------------------------- /test/contracts/periphery/OptionMarketWrapper/7_EnsureConvertRounding.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/contracts/periphery/OptionMarketWrapper/7_EnsureConvertRounding.ts -------------------------------------------------------------------------------- /test/integration/integrationTests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/integration/integrationTests.ts -------------------------------------------------------------------------------- /test/integration/integrationTestsSNX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/integration/integrationTestsSNX.ts -------------------------------------------------------------------------------- /test/integration/snxPerpIntegration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/integration/snxPerpIntegration.ts -------------------------------------------------------------------------------- /test/integration/util/cannonHelpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/integration/util/cannonHelpers.ts -------------------------------------------------------------------------------- /test/integration/util/externals.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/integration/util/externals.json -------------------------------------------------------------------------------- /test/integration/util/writeExternals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/integration/util/writeExternals.ts -------------------------------------------------------------------------------- /test/utils/arrayCombiner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/arrayCombiner.ts -------------------------------------------------------------------------------- /test/utils/assert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/assert.ts -------------------------------------------------------------------------------- /test/utils/blackScholes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/blackScholes.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/boards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/boards.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/fees.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/fees.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/hedging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/hedging.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/index.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/keeperHelperPacking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/keeperHelperPacking.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/liquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/liquidity.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/openClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/openClose.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/parameters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/parameters.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/synthetix.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/synthetix.ts -------------------------------------------------------------------------------- /test/utils/contractHelpers/wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/contractHelpers/wrapper.ts -------------------------------------------------------------------------------- /test/utils/defaultParams.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/defaultParams.ts -------------------------------------------------------------------------------- /test/utils/deployTestSystem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/deployTestSystem.ts -------------------------------------------------------------------------------- /test/utils/deployTestSystemGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/deployTestSystemGMX.ts -------------------------------------------------------------------------------- /test/utils/evm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/evm.ts -------------------------------------------------------------------------------- /test/utils/fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/fixture.ts -------------------------------------------------------------------------------- /test/utils/gmxHelpers.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/utils/package/index-artifacts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/index-artifacts.ts -------------------------------------------------------------------------------- /test/utils/package/index-paths.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/index-paths.ts -------------------------------------------------------------------------------- /test/utils/package/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/index.ts -------------------------------------------------------------------------------- /test/utils/package/merge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/merge.ts -------------------------------------------------------------------------------- /test/utils/package/parseFiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/parseFiles.ts -------------------------------------------------------------------------------- /test/utils/package/prepare-artifacts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/prepare-artifacts.ts -------------------------------------------------------------------------------- /test/utils/package/realGMXUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/realGMXUtils.ts -------------------------------------------------------------------------------- /test/utils/package/realSynthetixUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/package/realSynthetixUtils.ts -------------------------------------------------------------------------------- /test/utils/seedTestSystem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/seedTestSystem.ts -------------------------------------------------------------------------------- /test/utils/seedTestSystemGMX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/seedTestSystemGMX.ts -------------------------------------------------------------------------------- /test/utils/testSetup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/test/utils/testSetup.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/types.d.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derivexyz/v1-core/HEAD/yarn.lock --------------------------------------------------------------------------------