@paraswap/dex-lib 4.0.16 → 4.0.17-statav2
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/USDM.json +807 -0
- 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-gsm/config.js +2 -2
- package/build/dex/aave-gsm/config.js.map +1 -1
- package/build/dex/aave-v1/aave-v1.js +0 -1
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/aave-v2/tokens.js +6 -4
- package/build/dex/aave-v2/tokens.js.map +1 -1
- package/build/dex/aave-v3/config.js +6 -6
- package/build/dex/aave-v3/config.js.map +1 -1
- package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +11 -18
- package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +1 -1
- package/build/dex/aave-v3-stata-v2/types.d.ts +4 -18
- package/build/dex/aave-v3-stata-v2/types.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/index.js +2 -0
- package/build/dex/index.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/stkgho/config.js +2 -2
- package/build/dex/stkgho/config.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 +2 -2
- package/src/abi/aavev3statav2/Factory.json +131 -0
- package/src/abi/aavev3statav2/Pool.json +1459 -0
- package/src/abi/aavev3statav2/Token.json +997 -0
- package/src/dex/aave-gsm/config.ts +3 -3
- package/src/dex/aave-v2/tokenlist.json +904 -0
- package/src/dex/aave-v2/tokens.ts +3 -4
- package/src/dex/aave-v3/config.ts +6 -7
- package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +397 -0
- package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-integration.test.ts +600 -0
- package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +477 -0
- package/src/dex/aave-v3-stata-v2/config.ts +24 -0
- package/src/dex/aave-v3-stata-v2/tokens.ts +48 -0
- package/src/dex/aave-v3-stata-v2/types.ts +41 -0
- package/src/dex/aave-v3-stata-v2/utils.ts +88 -0
- 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/index.ts +2 -0
- package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +9 -9
- package/src/dex/stkgho/config.ts +3 -3
- 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 +16 -1
- package/.vscode/launch.json +0 -53
- package/.vscode/settings.json +0 -2
- package/.vscode/tasks.json +0 -15
- 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/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/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
|
@@ -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) ||
|
package/src/dex/index.ts
CHANGED
|
@@ -85,6 +85,7 @@ import { EtherFi } from './etherfi';
|
|
|
85
85
|
import { Spark } from './spark/spark';
|
|
86
86
|
import { VelodromeSlipstream } from './uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream';
|
|
87
87
|
import { AaveV3Stata } from './aave-v3-stata/aave-v3-stata';
|
|
88
|
+
import { AaveV3StataV2 } from './aave-v3-stata-v2/aave-v3-stata-v2';
|
|
88
89
|
import { OSwap } from './oswap/oswap';
|
|
89
90
|
import { FluidDex } from './fluid-dex/fluid-dex';
|
|
90
91
|
import { ConcentratorArusd } from './concentrator-arusd/concentrator-arusd';
|
|
@@ -182,6 +183,7 @@ const Dexes = [
|
|
|
182
183
|
PharaohV1,
|
|
183
184
|
Spark,
|
|
184
185
|
AaveV3Stata,
|
|
186
|
+
AaveV3StataV2,
|
|
185
187
|
OSwap,
|
|
186
188
|
ConcentratorArusd,
|
|
187
189
|
FxProtocolRusd,
|
|
@@ -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
|
|
package/src/dex/stkgho/config.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { DexParams } from './types';
|
|
|
2
2
|
import { DexConfigMap } from '../../types';
|
|
3
3
|
import { Network } from '../../constants';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { GhoEthereum, AaveSafetyModule } from '@bgd-labs/aave-address-book';
|
|
6
6
|
|
|
7
7
|
export const StkGHOConfig: DexConfigMap<DexParams> = {
|
|
8
8
|
StkGHO: {
|
|
9
9
|
[Network.MAINNET]: {
|
|
10
|
-
stkGHO:
|
|
11
|
-
GHO:
|
|
10
|
+
stkGHO: AaveSafetyModule.STK_GHO,
|
|
11
|
+
GHO: GhoEthereum.GHO_TOKEN,
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
};
|
|
@@ -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,
|
|
@@ -532,6 +536,10 @@ export const Tokens: {
|
|
|
532
536
|
address: '0x862c57d48becb45583aeba3f489696d22466ca1b',
|
|
533
537
|
decimals: 6,
|
|
534
538
|
},
|
|
539
|
+
waEthUSDT: {
|
|
540
|
+
address: '0x7Bc3485026Ac48b6cf9BaF0A377477Fff5703Af8',
|
|
541
|
+
decimals: 6,
|
|
542
|
+
},
|
|
535
543
|
aaveUSDT: {
|
|
536
544
|
address: '0x23878914efe38d27c4d67ab83ed1b93a74d4086a',
|
|
537
545
|
decimals: 6,
|
|
@@ -1535,6 +1543,10 @@ export const Tokens: {
|
|
|
1535
1543
|
address: '0x773CDA0CADe2A3d86E6D4e30699d40bB95174ff2',
|
|
1536
1544
|
decimals: 18,
|
|
1537
1545
|
},
|
|
1546
|
+
waGnoGNO: {
|
|
1547
|
+
address: '0x7c16F0185A26Db0AE7a9377f23BC18ea7ce5d644',
|
|
1548
|
+
decimals: 18,
|
|
1549
|
+
},
|
|
1538
1550
|
aGnoUSDC: {
|
|
1539
1551
|
address: '0xc6b7aca6de8a6044e0e32d0c841a89244a10d284',
|
|
1540
1552
|
decimals: 6,
|
|
@@ -1703,6 +1715,7 @@ export const Holders: {
|
|
|
1703
1715
|
[network: number]: { [tokenAddress: string]: Address };
|
|
1704
1716
|
} = {
|
|
1705
1717
|
[Network.MAINNET]: {
|
|
1718
|
+
FLUID: '0x2d675D4C52a8aE117b935fF98c6F9f29A15827F0',
|
|
1706
1719
|
USDS: '0xB1796E8f1eEcF23027c1E3C00fE303629A189d10',
|
|
1707
1720
|
sUSDS: '0xd564B3aE673CAa49D054Bf185bD72a6853763eE7',
|
|
1708
1721
|
SKY: '0x0ddda327A6614130CCb20bc0097313A282176A01',
|
|
@@ -1806,7 +1819,8 @@ export const Holders: {
|
|
|
1806
1819
|
USDe: '0x74e6c48e667d698a4cf90665b6960a5bae39e603',
|
|
1807
1820
|
eETH: '0x0f1DfeF1a40557d279d0de6E49aB306891A638b8',
|
|
1808
1821
|
stataUSDT: '0x6803364AceD5181877abC11E865FB27cB654a426',
|
|
1809
|
-
aaveUSDT: '
|
|
1822
|
+
aaveUSDT: '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c',
|
|
1823
|
+
waEthUSDT: '0xbA1333333333a1BA1108E8412f11850A5C319bA9',
|
|
1810
1824
|
weETH: '0x267ed5f71EE47D3E45Bb1569Aa37889a2d10f91e',
|
|
1811
1825
|
rUSD: '0xEC2eda1C4F981E468ABF62424a10B69B738b498E',
|
|
1812
1826
|
arUSD: '0xeFc24206053a452e2299BF3b8f964512b041Db4C',
|
|
@@ -2058,6 +2072,7 @@ export const Holders: {
|
|
|
2058
2072
|
SWPR: '0x9467dcFD4519287e3878C018c02f5670465a9003',
|
|
2059
2073
|
waGnoWETH: '0x854B004700885A61107B458f11eCC169A019b764',
|
|
2060
2074
|
waGnowstETH: '0x854B004700885A61107B458f11eCC169A019b764',
|
|
2075
|
+
waGnoGNO: '0x9Ec6472Fc33D9a5D17613484aDF0295A001fDF32',
|
|
2061
2076
|
},
|
|
2062
2077
|
[Network.BASE]: {
|
|
2063
2078
|
WETH: '0x4bb6b2efe7036020ba6f02a05602546c9f25bf28',
|
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,52 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [
|
|
4
|
-
{
|
|
5
|
-
"components": [
|
|
6
|
-
{ "internalType": "bytes", "name": "path", "type": "bytes" },
|
|
7
|
-
{ "internalType": "address", "name": "recipient", "type": "address" },
|
|
8
|
-
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
9
|
-
{
|
|
10
|
-
"internalType": "uint256",
|
|
11
|
-
"name": "amountOutMinimum",
|
|
12
|
-
"type": "uint256"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"internalType": "struct ISwapRouter.ExactInputParams",
|
|
16
|
-
"name": "params",
|
|
17
|
-
"type": "tuple"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"name": "exactInput",
|
|
21
|
-
"outputs": [
|
|
22
|
-
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }
|
|
23
|
-
],
|
|
24
|
-
"stateMutability": "payable",
|
|
25
|
-
"type": "function"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"inputs": [
|
|
29
|
-
{
|
|
30
|
-
"components": [
|
|
31
|
-
{ "internalType": "bytes", "name": "path", "type": "bytes" },
|
|
32
|
-
{ "internalType": "address", "name": "recipient", "type": "address" },
|
|
33
|
-
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" },
|
|
34
|
-
{
|
|
35
|
-
"internalType": "uint256",
|
|
36
|
-
"name": "amountInMaximum",
|
|
37
|
-
"type": "uint256"
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"internalType": "struct ISwapRouter.ExactOutputParams",
|
|
41
|
-
"name": "params",
|
|
42
|
-
"type": "tuple"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"name": "exactOutput",
|
|
46
|
-
"outputs": [
|
|
47
|
-
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }
|
|
48
|
-
],
|
|
49
|
-
"stateMutability": "payable",
|
|
50
|
-
"type": "function"
|
|
51
|
-
}
|
|
52
|
-
]
|