@paraswap/dex-lib 4.0.16 → 4.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/abi/Aave_GSM.json +751 -0
- package/build/abi/Balancer.json +257 -0
- package/build/abi/BalancerV2.json +1179 -0
- package/build/abi/RamsesV2Pool.abi.json +1554 -0
- package/build/abi/RamsesV2Quoter.abi.json +274 -0
- package/build/abi/{aavev3statav2/Token.json → USDM.json} +271 -461
- package/build/abi/UniswapV2Router.json +397 -0
- package/build/abi/{wombat/pool.json → angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json} +594 -637
- package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
- package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
- package/build/abi/curve-v1/CurveTokenV1.json +305 -0
- package/build/abi/curve-v1/CurveTokenV2.json +318 -0
- package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
- package/build/abi/curve-v1/CurveV2Swap.json +700 -0
- package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
- package/build/abi/curve-v1/FactoryRegistry.json +508 -0
- package/build/abi/curve-v1/StableSwapAave.json +1152 -0
- package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
- package/build/abi/curve-v1/StableSwapCompound.json +814 -0
- package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
- package/build/abi/curve-v1/StableSwapPax.json +865 -0
- package/build/abi/curve-v1/StableSwapSnow.json +900 -0
- package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
- package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
- package/build/abi/curve-v1/StableSwapY.json +814 -0
- package/build/abi/inception/inception-ineth.json +609 -0
- package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
- package/build/abi/kyberdmm.abi.json +1148 -0
- package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
- package/build/abi/nerve/nerve-metapool.json +790 -0
- package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
- package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
- package/build/dex/aave-v1/aave-v1.js +0 -1
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/balancer-v1/balancer-pools.json +33333 -0
- package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
- package/build/dex/bebop/websocket-fetcher.js +87 -0
- package/build/dex/bebop/websocket-fetcher.js.map +1 -0
- package/build/dex/fluid-dex/fluid-dex.d.ts +1 -0
- package/build/dex/fluid-dex/fluid-dex.js +7 -2
- package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
- package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
- package/build/dex/idle-dao/idle-dao-pool.js +176 -0
- package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
- package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
- package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
- package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
- package/build/dex/idle-dao/scripts.d.ts +9 -0
- package/build/dex/idle-dao/scripts.js +552 -0
- package/build/dex/idle-dao/scripts.js.map +1 -0
- package/build/dex/inception/inception-event-pool.d.ts +4 -4
- package/build/dex/inception/inception-event-pool.js +9 -7
- package/build/dex/inception/inception-event-pool.js.map +1 -1
- package/build/dex/inception/inception-native.d.ts +43 -0
- package/build/dex/inception/inception-native.js +131 -0
- package/build/dex/inception/inception-native.js.map +1 -0
- package/build/dex/inception/inception-pool.d.ts +18 -0
- package/build/dex/inception/inception-pool.js +32 -0
- package/build/dex/inception/inception-pool.js.map +1 -0
- package/build/dex/inception/inception-price-feed.d.ts +19 -0
- package/build/dex/inception/inception-price-feed.js +51 -0
- package/build/dex/inception/inception-price-feed.js.map +1 -0
- package/build/dex/inception/inception.d.ts +6 -6
- package/build/dex/inception/inception.js +40 -16
- package/build/dex/inception/inception.js.map +1 -1
- package/build/dex/inception/utils.d.ts +0 -1
- package/build/dex/inception/utils.js +1 -22
- package/build/dex/inception/utils.js.map +1 -1
- package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +9 -3
- package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
- package/build/dex/platypus/platypus.js +3 -17
- package/build/dex/platypus/platypus.js.map +1 -1
- package/build/dex/swaap-v1/swaap-v1.js +0 -4
- package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
- package/build/dex/uniswap-v3/config.js +0 -25
- package/build/dex/uniswap-v3/config.js.map +1 -1
- package/build/dex/uniswap-v3/uniswap-v3-pool.js +9 -3
- package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
- package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
- package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
- package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
- package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
- package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
- package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
- package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
- package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
- package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
- package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
- package/package.json +1 -1
- package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +18 -0
- package/src/dex/fluid-dex/fluid-dex.ts +14 -3
- package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +9 -9
- package/src/dex/uniswap-v3/config.ts +0 -26
- package/src/dex/uniswap-v3/uniswap-v3-pool.ts +9 -9
- package/tests/constants-e2e.ts +5 -0
- package/.vscode/launch.json +0 -53
- package/.vscode/settings.json +0 -2
- package/.vscode/tasks.json +0 -15
- package/build/abi/aavev3statav2/Factory.json +0 -131
- package/build/abi/aavev3statav2/Pool.json +0 -1459
- package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
- package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
- package/build/dex/aave-v2/tokenlist.json +0 -904
- package/build/dex/aave-v2/tokens-avalanche.json +0 -44
- package/build/dex/aave-v2/tokens-mainnet.json +0 -188
- package/build/dex/aave-v2/tokens-polygon.json +0 -44
- package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.d.ts +0 -49
- package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +0 -384
- package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +0 -1
- package/build/dex/aave-v3-stata-v2/config.d.ts +0 -3
- package/build/dex/aave-v3-stata-v2/config.js +0 -21
- package/build/dex/aave-v3-stata-v2/config.js.map +0 -1
- package/build/dex/aave-v3-stata-v2/tokens.d.ts +0 -10
- package/build/dex/aave-v3-stata-v2/tokens.js +0 -43
- package/build/dex/aave-v3-stata-v2/tokens.js.map +0 -1
- package/build/dex/aave-v3-stata-v2/types.d.ts +0 -49
- package/build/dex/aave-v3-stata-v2/types.js +0 -25
- package/build/dex/aave-v3-stata-v2/types.js.map +0 -1
- package/build/dex/aave-v3-stata-v2/utils.d.ts +0 -4
- package/build/dex/aave-v3-stata-v2/utils.js +0 -67
- package/build/dex/aave-v3-stata-v2/utils.js.map +0 -1
- package/build/dex/bProtocol.d.ts +0 -18
- package/build/dex/bProtocol.js +0 -39
- package/build/dex/bProtocol.js.map +0 -1
- package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
- package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
- package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
- package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
- package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
- package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
- package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
- package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
- package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
- package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
- package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
- package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
- package/build/dex/bancor.d.ts +0 -26
- package/build/dex/bancor.js +0 -58
- package/build/dex/bancor.js.map +0 -1
- package/build/dex/compound.d.ts +0 -18
- package/build/dex/compound.js +0 -46
- package/build/dex/compound.js.map +0 -1
- package/build/dex/curve-v2.d.ts +0 -58
- package/build/dex/curve-v2.js +0 -180
- package/build/dex/curve-v2.js.map +0 -1
- package/build/dex/dodo-v1.d.ts +0 -33
- package/build/dex/dodo-v1.js +0 -63
- package/build/dex/dodo-v1.js.map +0 -1
- package/build/dex/lido.d.ts +0 -19
- package/build/dex/lido.js +0 -42
- package/build/dex/lido.js.map +0 -1
- package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
- package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
- package/build/dex/maker-psm/scripts/validate-state.js +0 -185
- package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
- package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
- package/build/dex/onebit.d.ts +0 -25
- package/build/dex/onebit.js +0 -42
- package/build/dex/onebit.js.map +0 -1
- package/build/dex/smoothy.d.ts +0 -26
- package/build/dex/smoothy.js +0 -48
- package/build/dex/smoothy.js.map +0 -1
- package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
- package/build/dex/stable-pool.d.ts +0 -28
- package/build/dex/stable-pool.js +0 -55
- package/build/dex/stable-pool.js.map +0 -1
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
- package/build/dex/trader-joe-v2.1.d.ts +0 -43
- package/build/dex/trader-joe-v2.1.js +0 -79
- package/build/dex/trader-joe-v2.1.js.map +0 -1
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
- package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
- package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
- package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
- package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
- package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
- package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
- package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
- package/build/dex/usual/usual-m-smart-m.js +0 -50
- package/build/dex/usual/usual-m-smart-m.js.map +0 -1
- package/build/dex/usual-m-smart-m/config.d.ts +0 -3
- package/build/dex/usual-m-smart-m/config.js +0 -13
- package/build/dex/usual-m-smart-m/config.js.map +0 -1
- package/build/dex/usual-m-smart-m/types.d.ts +0 -7
- package/build/dex/usual-m-smart-m/types.js +0 -3
- package/build/dex/usual-m-smart-m/types.js.map +0 -1
- package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
- package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
- package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
- package/build/dex/usual-m-usd0/config.d.ts +0 -3
- package/build/dex/usual-m-usd0/config.js +0 -14
- package/build/dex/usual-m-usd0/config.js.map +0 -1
- package/build/dex/usual-m-usd0/types.d.ts +0 -8
- package/build/dex/usual-m-usd0/types.js +0 -3
- package/build/dex/usual-m-usd0/types.js.map +0 -1
- package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
- package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
- package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
|
@@ -118,6 +118,24 @@ describe('FluidDex E2E', () => {
|
|
|
118
118
|
describe('Mainnet', () => {
|
|
119
119
|
const network = Network.MAINNET;
|
|
120
120
|
|
|
121
|
+
// TODO: Uncomment & test when the issue is resolved. Currently no price as expected.
|
|
122
|
+
// describe.only('FLUID -> ETH', () => {
|
|
123
|
+
// const tokenASymbol: string = 'FLUID';
|
|
124
|
+
// const tokenBSymbol: string = 'ETH';
|
|
125
|
+
//
|
|
126
|
+
// const tokenAAmount: string = '160097047322810379';
|
|
127
|
+
// const tokenBAmount: string = '79923068733005505624';
|
|
128
|
+
//
|
|
129
|
+
// testForNetwork(
|
|
130
|
+
// network,
|
|
131
|
+
// dexKey,
|
|
132
|
+
// tokenASymbol,
|
|
133
|
+
// tokenBSymbol,
|
|
134
|
+
// tokenAAmount,
|
|
135
|
+
// tokenBAmount,
|
|
136
|
+
// );
|
|
137
|
+
// });
|
|
138
|
+
|
|
121
139
|
describe('ETH -> INST', () => {
|
|
122
140
|
const tokenASymbol: string = 'ETH';
|
|
123
141
|
const tokenBSymbol: string = 'INST';
|
|
@@ -48,6 +48,11 @@ export class FluidDex extends SimpleExchange implements IDex<FluidDexData> {
|
|
|
48
48
|
|
|
49
49
|
pools: FluidDexPool[] = [];
|
|
50
50
|
|
|
51
|
+
// temporarily limit FLUID-ETH Dex Pool.
|
|
52
|
+
restrictedIds: string[] = [
|
|
53
|
+
'FluidDex_0xc800b0e15c40a1ff0539218100c86f4c1bac8d9c',
|
|
54
|
+
];
|
|
55
|
+
|
|
51
56
|
eventPools: FluidDexEventPool[] = [];
|
|
52
57
|
|
|
53
58
|
readonly factory: FluidDexFactory;
|
|
@@ -110,8 +115,9 @@ export class FluidDex extends SimpleExchange implements IDex<FluidDexData> {
|
|
|
110
115
|
// implement this function
|
|
111
116
|
async initializePricing(blockNumber: number) {
|
|
112
117
|
await this.factory.initialize(blockNumber);
|
|
113
|
-
this.pools = await this.fetchFluidDexPools(blockNumber)
|
|
114
|
-
|
|
118
|
+
this.pools = (await this.fetchFluidDexPools(blockNumber)).filter(
|
|
119
|
+
pool => !this.restrictedIds.includes(pool.id),
|
|
120
|
+
);
|
|
115
121
|
this.eventPools = await Promise.all(
|
|
116
122
|
this.pools.map(async pool => {
|
|
117
123
|
const eventPool = new FluidDexEventPool(
|
|
@@ -134,7 +140,9 @@ export class FluidDex extends SimpleExchange implements IDex<FluidDexData> {
|
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
protected onPoolCreatedUpdatePools(poolsFromFactory: readonly Pool[]) {
|
|
137
|
-
this.pools = this.generateFluidDexPoolsFromPoolsFactory(
|
|
143
|
+
this.pools = this.generateFluidDexPoolsFromPoolsFactory(
|
|
144
|
+
poolsFromFactory,
|
|
145
|
+
).filter(pool => !this.restrictedIds.includes(pool.id));
|
|
138
146
|
this.logger.info(`${this.dexKey}: pools list was updated ...`);
|
|
139
147
|
}
|
|
140
148
|
|
|
@@ -174,6 +182,9 @@ export class FluidDex extends SimpleExchange implements IDex<FluidDexData> {
|
|
|
174
182
|
// A pair must have 2 different tokens.
|
|
175
183
|
if (srcAddress === destAddress) return [];
|
|
176
184
|
|
|
185
|
+
this.pools = this.pools.filter(
|
|
186
|
+
pool => !this.restrictedIds.includes(pool.id),
|
|
187
|
+
);
|
|
177
188
|
const pools = this.pools.filter(
|
|
178
189
|
pool =>
|
|
179
190
|
(srcAddress === pool.token0 && destAddress === pool.token1) ||
|
|
@@ -265,15 +265,15 @@ export class PancakeSwapV3EventPool extends StatefulEventSubscriber<PoolState> {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
_setState(state: any, blockNumber: number, reason?: string): void {
|
|
268
|
-
if (this.parentName === 'PancakeswapV3') {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
268
|
+
// if (this.parentName === 'PancakeswapV3') {
|
|
269
|
+
// this.logger.info(
|
|
270
|
+
// `PancakeV3: Setting state: ${!!state ? 'non-empty' : 'empty'} for '${
|
|
271
|
+
// this.name
|
|
272
|
+
// }' for bn: '${blockNumber}' due to reason: '${
|
|
273
|
+
// reason ?? 'outside_of_event_subscriber'
|
|
274
|
+
// }'`,
|
|
275
|
+
// );
|
|
276
|
+
// }
|
|
277
277
|
super._setState(state, blockNumber);
|
|
278
278
|
}
|
|
279
279
|
|
|
@@ -359,32 +359,6 @@ export const UniswapV3Config: DexConfigMap<DexParams> = {
|
|
|
359
359
|
subgraphURL: 'Dimv1udMsJu1DqirVM4G2vNRvH8CWzWTn7GffQQCGAaq',
|
|
360
360
|
},
|
|
361
361
|
},
|
|
362
|
-
VelodromeSlipstream: {
|
|
363
|
-
[Network.OPTIMISM]: {
|
|
364
|
-
factory: '0x548118C7E0B865C2CfA94D15EC86B666468ac758',
|
|
365
|
-
quoter: '0xA2DEcF05c16537C702779083Fe067e308463CE45',
|
|
366
|
-
router: '0x93A3b44C38A8557E935B3e2549B2809a582c28EE',
|
|
367
|
-
supportedFees: SUPPORTED_FEES,
|
|
368
|
-
tickSpacings: [1n, 50n, 100n, 200n, 2000n],
|
|
369
|
-
tickSpacingsToFees: {
|
|
370
|
-
'1': 100n,
|
|
371
|
-
'50': 500n,
|
|
372
|
-
'100': 500n,
|
|
373
|
-
'200': 3000n,
|
|
374
|
-
'2000': 10000n,
|
|
375
|
-
},
|
|
376
|
-
stateMulticall: '0xc055b23319b3a140D4De2d0001bd0A885B3d7DbB',
|
|
377
|
-
stateMultiCallAbi: VelodromeSlipstreamMulticallABi as AbiItem[],
|
|
378
|
-
eventPoolImplementation: VelodromeSlipstreamEventPool,
|
|
379
|
-
factoryImplementation: VelodromeSlipstreamFactory,
|
|
380
|
-
decodeStateMultiCallResultWithRelativeBitmaps:
|
|
381
|
-
decodeStateMultiCallResultWithRelativeBitmapsForVelodromeSlipstream,
|
|
382
|
-
uniswapMulticall: '0x1F98415757620B543A52E61c46B32eB19261F984',
|
|
383
|
-
chunksCount: 10,
|
|
384
|
-
initRetryFrequency: 10,
|
|
385
|
-
initHash: '0xE0A596c403E854FFb9C828aB4f07eEae04A05D37', // pool implementation address from factory contract is used instead of initHash here
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
362
|
VelodromeSlipstreamNewFactory: {
|
|
389
363
|
[Network.OPTIMISM]: {
|
|
390
364
|
factory: '0xCc0bDDB707055e04e497aB22a59c2aF4391cd12F',
|
|
@@ -269,15 +269,15 @@ export class UniswapV3EventPool extends StatefulEventSubscriber<PoolState> {
|
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
_setState(state: any, blockNumber: number, reason?: string): void {
|
|
272
|
-
if (this.parentName === 'UniswapV3') {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
272
|
+
// if (this.parentName === 'UniswapV3') {
|
|
273
|
+
// this.logger.info(
|
|
274
|
+
// `UniV3: Setting state: '${!!state ? 'non-empty' : 'empty'}' for '${
|
|
275
|
+
// this.name
|
|
276
|
+
// }' for bn: '${blockNumber}' due to reason: '${
|
|
277
|
+
// reason ?? 'outside_of_event_subscriber'
|
|
278
|
+
// }'`,
|
|
279
|
+
// );
|
|
280
|
+
// }
|
|
281
281
|
super._setState(state, blockNumber);
|
|
282
282
|
}
|
|
283
283
|
|
package/tests/constants-e2e.ts
CHANGED
|
@@ -446,6 +446,10 @@ export const Tokens: {
|
|
|
446
446
|
decimals: 18,
|
|
447
447
|
symbol: 'EURA',
|
|
448
448
|
},
|
|
449
|
+
FLUID: {
|
|
450
|
+
address: '0x6f40d4A6237C257fff2dB00FA0510DeEECd303eb',
|
|
451
|
+
decimals: 18,
|
|
452
|
+
},
|
|
449
453
|
EUROC: {
|
|
450
454
|
address: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
|
|
451
455
|
decimals: 6,
|
|
@@ -1703,6 +1707,7 @@ export const Holders: {
|
|
|
1703
1707
|
[network: number]: { [tokenAddress: string]: Address };
|
|
1704
1708
|
} = {
|
|
1705
1709
|
[Network.MAINNET]: {
|
|
1710
|
+
FLUID: '0x2d675D4C52a8aE117b935fF98c6F9f29A15827F0',
|
|
1706
1711
|
USDS: '0xB1796E8f1eEcF23027c1E3C00fE303629A189d10',
|
|
1707
1712
|
sUSDS: '0xd564B3aE673CAa49D054Bf185bD72a6853763eE7',
|
|
1708
1713
|
SKY: '0x0ddda327A6614130CCb20bc0097313A282176A01',
|
package/.vscode/launch.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.2.0",
|
|
3
|
-
"configurations": [
|
|
4
|
-
{
|
|
5
|
-
"type": "node",
|
|
6
|
-
"request": "launch",
|
|
7
|
-
"name": "Current",
|
|
8
|
-
"program": "${file}",
|
|
9
|
-
"preLaunchTask": "npm: build",
|
|
10
|
-
"sourceMaps": true,
|
|
11
|
-
"smartStep": true,
|
|
12
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
13
|
-
"outFiles": ["${workspaceFolder}/build/**/*.js"]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "node",
|
|
17
|
-
"request": "launch",
|
|
18
|
-
"name": "Debug dex integration",
|
|
19
|
-
"program": "${workspaceFolder}/node_modules/ts-node/dist/bin.js",
|
|
20
|
-
"args": [
|
|
21
|
-
"--project",
|
|
22
|
-
"tsconfig.json",
|
|
23
|
-
// "${workspaceFolder}/src/dex/algebra/scripts/validate-state.ts",
|
|
24
|
-
"${workspaceFolder}/src/dex/camelot/camelot-pool-discovery.test.ts",
|
|
25
|
-
// "${workspaceFolder}/src/dex/solidly-v3/scripts/check-event-pool-event.ts",
|
|
26
|
-
// "${workspaceFolder}/scripts/dex-integration.ts",
|
|
27
|
-
"test",
|
|
28
|
-
"wombat"
|
|
29
|
-
],
|
|
30
|
-
"console": "integratedTerminal",
|
|
31
|
-
"internalConsoleOptions": "neverOpen",
|
|
32
|
-
"runtimeArgs": ["--nolazy"],
|
|
33
|
-
"sourceMaps": true,
|
|
34
|
-
"smartStep": true,
|
|
35
|
-
"skipFiles": ["<node_internals>/**"],
|
|
36
|
-
"cwd": "${workspaceFolder}"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"type": "node",
|
|
40
|
-
"name": "Jest file",
|
|
41
|
-
"request": "launch",
|
|
42
|
-
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
|
|
43
|
-
// "program": "${workspaceFolder}/src/dex/camelot/scripts/validate-state.ts",
|
|
44
|
-
// "args": ["src/dex/balancer-v1/balancer-v1-e2e.test.ts"],
|
|
45
|
-
// "args": ["${relativeFile}"],
|
|
46
|
-
"args": ["${file}"],
|
|
47
|
-
"cwd": "${workspaceRoot}",
|
|
48
|
-
"console": "integratedTerminal",
|
|
49
|
-
"internalConsoleOptions": "neverOpen",
|
|
50
|
-
"sourceMaps": true
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
package/.vscode/settings.json
DELETED
package/.vscode/tasks.json
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [
|
|
4
|
-
{ "internalType": "contract IPool", "name": "pool", "type": "address" },
|
|
5
|
-
{ "internalType": "address", "name": "proxyAdmin", "type": "address" },
|
|
6
|
-
{
|
|
7
|
-
"internalType": "contract ITransparentProxyFactory",
|
|
8
|
-
"name": "transparentProxyFactory",
|
|
9
|
-
"type": "address"
|
|
10
|
-
},
|
|
11
|
-
{ "internalType": "address", "name": "stataTokenImpl", "type": "address" }
|
|
12
|
-
],
|
|
13
|
-
"stateMutability": "nonpayable",
|
|
14
|
-
"type": "constructor"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"inputs": [
|
|
18
|
-
{ "internalType": "address", "name": "underlying", "type": "address" }
|
|
19
|
-
],
|
|
20
|
-
"name": "NotListedUnderlying",
|
|
21
|
-
"type": "error"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"anonymous": false,
|
|
25
|
-
"inputs": [
|
|
26
|
-
{
|
|
27
|
-
"indexed": false,
|
|
28
|
-
"internalType": "uint8",
|
|
29
|
-
"name": "version",
|
|
30
|
-
"type": "uint8"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"name": "Initialized",
|
|
34
|
-
"type": "event"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"anonymous": false,
|
|
38
|
-
"inputs": [
|
|
39
|
-
{
|
|
40
|
-
"indexed": true,
|
|
41
|
-
"internalType": "address",
|
|
42
|
-
"name": "stataToken",
|
|
43
|
-
"type": "address"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"indexed": true,
|
|
47
|
-
"internalType": "address",
|
|
48
|
-
"name": "underlying",
|
|
49
|
-
"type": "address"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"name": "StataTokenCreated",
|
|
53
|
-
"type": "event"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"inputs": [],
|
|
57
|
-
"name": "POOL",
|
|
58
|
-
"outputs": [
|
|
59
|
-
{ "internalType": "contract IPool", "name": "", "type": "address" }
|
|
60
|
-
],
|
|
61
|
-
"stateMutability": "view",
|
|
62
|
-
"type": "function"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"inputs": [],
|
|
66
|
-
"name": "PROXY_ADMIN",
|
|
67
|
-
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
68
|
-
"stateMutability": "view",
|
|
69
|
-
"type": "function"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"inputs": [],
|
|
73
|
-
"name": "STATA_TOKEN_IMPL",
|
|
74
|
-
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
75
|
-
"stateMutability": "view",
|
|
76
|
-
"type": "function"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"inputs": [],
|
|
80
|
-
"name": "TRANSPARENT_PROXY_FACTORY",
|
|
81
|
-
"outputs": [
|
|
82
|
-
{
|
|
83
|
-
"internalType": "contract ITransparentProxyFactory",
|
|
84
|
-
"name": "",
|
|
85
|
-
"type": "address"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"stateMutability": "view",
|
|
89
|
-
"type": "function"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"inputs": [
|
|
93
|
-
{
|
|
94
|
-
"internalType": "address[]",
|
|
95
|
-
"name": "underlyings",
|
|
96
|
-
"type": "address[]"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"name": "createStataTokens",
|
|
100
|
-
"outputs": [
|
|
101
|
-
{ "internalType": "address[]", "name": "", "type": "address[]" }
|
|
102
|
-
],
|
|
103
|
-
"stateMutability": "nonpayable",
|
|
104
|
-
"type": "function"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"inputs": [
|
|
108
|
-
{ "internalType": "address", "name": "underlying", "type": "address" }
|
|
109
|
-
],
|
|
110
|
-
"name": "getStataToken",
|
|
111
|
-
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
112
|
-
"stateMutability": "view",
|
|
113
|
-
"type": "function"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"inputs": [],
|
|
117
|
-
"name": "getStataTokens",
|
|
118
|
-
"outputs": [
|
|
119
|
-
{ "internalType": "address[]", "name": "", "type": "address[]" }
|
|
120
|
-
],
|
|
121
|
-
"stateMutability": "view",
|
|
122
|
-
"type": "function"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [],
|
|
126
|
-
"name": "initialize",
|
|
127
|
-
"outputs": [],
|
|
128
|
-
"stateMutability": "nonpayable",
|
|
129
|
-
"type": "function"
|
|
130
|
-
}
|
|
131
|
-
]
|