@paraswap/dex-lib 4.1.16 → 4.1.17-arena
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/.eslintrc.js +8 -0
- 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-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/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/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-v2/config.js +8 -0
- package/build/dex/uniswap-v2/config.js.map +1 -1
- package/build/dex/uniswap-v3/config.js +2 -1
- package/build/dex/uniswap-v3/config.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/generic-rfq/example-api.test.ts +12 -1
- package/src/dex/generic-rfq/generic-rfq-e2e.test.ts +5 -47
- package/src/dex/generic-rfq/generic-rfq-local-e2e.test.ts +8 -22
- package/src/dex/uniswap-v2/config.ts +9 -0
- package/src/dex/uniswap-v2/uniswap-v2-e2e-avalanche.test.ts +105 -1
- package/src/dex/uniswap-v3/config.ts +2 -1
- package/tests/constants-e2e.ts +7 -53
- package/tests/{tenderly-simulation-new.test.ts → tenderly-simulation.test.ts} +2 -2
- package/tests/tenderly-simulation.ts +650 -241
- package/tests/token-storage-slots.json +166 -0
- package/tests/utils-e2e.ts +198 -712
- package/tests/v6/utils-e2e-v6.ts +60 -134
- 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/uniswap-v4/quoter.abi.json +0 -461
- package/build/abi/uniswap-v4/router.abi.json +0 -230
- 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/erc4626/scripts/validate-state.d.ts +0 -0
- package/build/dex/erc4626/scripts/validate-state.js +0 -146
- package/build/dex/erc4626/scripts/validate-state.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/uniswap-v4/config.d.ts +0 -3
- package/build/dex/uniswap-v4/config.js +0 -15
- package/build/dex/uniswap-v4/config.js.map +0 -1
- package/build/dex/uniswap-v4/encoder.d.ts +0 -16
- package/build/dex/uniswap-v4/encoder.js +0 -94
- package/build/dex/uniswap-v4/encoder.js.map +0 -1
- package/build/dex/uniswap-v4/types.d.ts +0 -30
- package/build/dex/uniswap-v4/types.js +0 -3
- package/build/dex/uniswap-v4/types.js.map +0 -1
- package/build/dex/uniswap-v4/uniswap-v4.d.ts +0 -38
- package/build/dex/uniswap-v4/uniswap-v4.js +0 -187
- package/build/dex/uniswap-v4/uniswap-v4.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
- package/tests/augustus-approvals.test.ts +0 -628
- package/tests/smart-tokens.ts +0 -112
- package/tests/tenderly-simulation-new.ts +0 -698
- package/tests/v6/executors.test.ts +0 -110
- package/tests/v6/price-routes/arbitrum/sell-0.1-ETH-USDC.json +0 -104
- package/tests/v6/price-routes/arbitrum/sell-1_000-ETH-DAI.json +0 -294
- package/tests/v6/price-routes/arbitrum/sell-1_000-WETH-wstETH.json +0 -121
- package/tests/v6/price-routes/arbitrum/sell-1_000_000-ARB-DAI.json +0 -270
- package/tests/v6/price-routes/arbitrum/sell-1_000_000-ARB-ETH.json +0 -326
- package/tests/v6/price-routes/arbitrum/sell-1_000_000-DAI-ARB.json +0 -434
- package/tests/v6/price-routes/arbitrum/sell-250_000-LINK-USDC.json +0 -182
- package/tests/v6/price-routes/arbitrum/sell-3_000-BAL-UNI.json +0 -154
- package/tests/v6/price-routes/avalanche/sell-100_000-WAVAX-USDC.json +0 -315
- package/tests/v6/price-routes/avalanche/sell-40-BTC-AVAX.json +0 -207
- package/tests/v6/price-routes/mainnet/buy-3200-ETH-DAI.json +0 -228
- package/tests/v6/price-routes/mainnet/sell-1-USDC-USDT.json +0 -78
- package/tests/v6/price-routes/mainnet/sell-1-WBTC-BAL.json +0 -158
- package/tests/v6/price-routes/mainnet/sell-100-tBTC-WBTC.json +0 -100
- package/tests/v6/price-routes/mainnet/sell-1000-eth-dai.json +0 -340
- package/tests/v6/price-routes/mainnet/sell-1000-wbtc-eth-uniswapv3-balancerv2.json +0 -162
- package/tests/v6/price-routes/mainnet/sell-100_000-USDC-USDT-2-univ2-pools.json +0 -86
- package/tests/v6/price-routes/mainnet/sell-10_000-ETH-USDC-balancer.json +0 -383
- package/tests/v6/price-routes/mainnet/sell-10_000-ETH-stETH.json +0 -168
- package/tests/v6/price-routes/mainnet/sell-10_000-USDC-USDT-BalancerV2.json +0 -68
- package/tests/v6/price-routes/mainnet/sell-10_000-eth-usdc-uniswapv3-balancerv2.json +0 -348
- package/tests/v6/price-routes/mainnet/sell-1_000-stETH-ETH.json +0 -100
- package/tests/v6/price-routes/mainnet/sell-50-eth-usdc.json +0 -153
- package/tests/v6/price-routes/polygon/sell-100-WBTC-MATIC-1.json +0 -571
- package/tests/v6/price-routes/polygon/sell-100-WBTC-MATIC.json +0 -559
- package/tests/v6/price-routes/polygon/sell-1_000_000-DAI-MATIC-2.json +0 -447
- package/tests/v6/price-routes/polygon/sell-1_000_000-DAI-MATIC-3.json +0 -472
- package/tests/v6/price-routes/polygon/sell-1_000_000-DAI-MATIC.json +0 -628
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import dotenv from 'dotenv';
|
|
2
|
-
dotenv.config();
|
|
3
|
-
|
|
4
|
-
import { OptimalRate } from '@paraswap/core';
|
|
5
|
-
import {
|
|
6
|
-
ContractsAugustusV6,
|
|
7
|
-
runE2ETest as runForkE2ETest,
|
|
8
|
-
} from './utils-e2e-v6';
|
|
9
|
-
import axios from 'axios';
|
|
10
|
-
import fs from 'fs';
|
|
11
|
-
import path from 'path';
|
|
12
|
-
import { Holders, Tokens } from '../constants-e2e';
|
|
13
|
-
|
|
14
|
-
jest.setTimeout(1000 * 120);
|
|
15
|
-
|
|
16
|
-
type ForkMetadata = {
|
|
17
|
-
forkId: string;
|
|
18
|
-
lastTx: string;
|
|
19
|
-
blockNumber: number;
|
|
20
|
-
network: number;
|
|
21
|
-
contracts: ContractsAugustusV6;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const forceNewDeployment = false;
|
|
25
|
-
// const network = 'polygon';
|
|
26
|
-
// const network = 'arbitrum';
|
|
27
|
-
// const network = 'avalanche';
|
|
28
|
-
const network = 'mainnet';
|
|
29
|
-
|
|
30
|
-
async function deployAugustusOnFork(
|
|
31
|
-
network: number,
|
|
32
|
-
blockNumber: number,
|
|
33
|
-
): Promise<ForkMetadata> {
|
|
34
|
-
console.log(
|
|
35
|
-
`Locally deploying fork for block ${blockNumber} with AugustusV6 contracts`,
|
|
36
|
-
);
|
|
37
|
-
const { data } = await axios.post<ForkMetadata>(
|
|
38
|
-
// local server from contracts-v6
|
|
39
|
-
`http://localhost:3000/deploy-fork`,
|
|
40
|
-
{
|
|
41
|
-
network,
|
|
42
|
-
blockNumber,
|
|
43
|
-
forceNewDeployment,
|
|
44
|
-
},
|
|
45
|
-
);
|
|
46
|
-
return data;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
describe('Executors: Price Route Tests', () => {
|
|
50
|
-
// Dynamically load and test each price route file in the directory
|
|
51
|
-
const routePath = `./price-routes/${network}`;
|
|
52
|
-
const priceRoutesDir = path.join(__dirname, routePath);
|
|
53
|
-
const priceRouteFiles = fs.readdirSync(priceRoutesDir);
|
|
54
|
-
|
|
55
|
-
priceRouteFiles.forEach(file => {
|
|
56
|
-
if (file === 'balancer-v2-2.test.json')
|
|
57
|
-
it(`file: ${file}`, async () => {
|
|
58
|
-
const {
|
|
59
|
-
priceRoute,
|
|
60
|
-
metadata,
|
|
61
|
-
}: {
|
|
62
|
-
priceRoute: OptimalRate;
|
|
63
|
-
metadata: ForkMetadata;
|
|
64
|
-
} = require(path.join(priceRoutesDir, file));
|
|
65
|
-
let forkMetadata: ForkMetadata = metadata;
|
|
66
|
-
if (!forkMetadata?.contracts || forceNewDeployment) {
|
|
67
|
-
forkMetadata = await deployAugustusOnFork(
|
|
68
|
-
priceRoute.network,
|
|
69
|
-
priceRoute.blockNumber,
|
|
70
|
-
);
|
|
71
|
-
saveForkMetadata(
|
|
72
|
-
forkMetadata,
|
|
73
|
-
priceRoute as OptimalRate,
|
|
74
|
-
`${routePath}/${file}`,
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const srcTokenSymbol = Object.entries(Tokens[priceRoute.network]).find(
|
|
79
|
-
([key, token]) =>
|
|
80
|
-
token.address.toLowerCase() === priceRoute.srcToken.toLowerCase(),
|
|
81
|
-
)?.[0];
|
|
82
|
-
|
|
83
|
-
if (!srcTokenSymbol) throw new Error('srcTokenSymbol not found');
|
|
84
|
-
|
|
85
|
-
await runForkE2ETest(
|
|
86
|
-
priceRoute as OptimalRate,
|
|
87
|
-
Holders[priceRoute.network][srcTokenSymbol],
|
|
88
|
-
forkMetadata.forkId,
|
|
89
|
-
forkMetadata.lastTx,
|
|
90
|
-
forkMetadata.contracts,
|
|
91
|
-
);
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
function saveForkMetadata(
|
|
97
|
-
metadata: ForkMetadata,
|
|
98
|
-
priceRoute: OptimalRate,
|
|
99
|
-
relativeFilePath: string,
|
|
100
|
-
) {
|
|
101
|
-
try {
|
|
102
|
-
const absoluteFilePath = path.join(__dirname, relativeFilePath);
|
|
103
|
-
fs.writeFileSync(
|
|
104
|
-
absoluteFilePath,
|
|
105
|
-
JSON.stringify({ metadata, priceRoute }, null, 2),
|
|
106
|
-
);
|
|
107
|
-
} catch (err) {
|
|
108
|
-
console.error(`Error writing file to disk: ${err}`);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"metadata": {
|
|
3
|
-
"network": 42161,
|
|
4
|
-
"blockNumber": 183307861,
|
|
5
|
-
"forkId": "d5027311-c443-4013-9b26-adcc8ded0784",
|
|
6
|
-
"lastTx": "6a08d644-b7fd-4bfb-9b0b-c55e924bb9de",
|
|
7
|
-
"contracts": {
|
|
8
|
-
"AugustusV6": "0x86cD67898aA4cbDa87A1e1026A84ACC33823bBe2",
|
|
9
|
-
"Executor01": "0x732E7EcD401718E03af169e697b070F9Bf5Bd9Eb",
|
|
10
|
-
"Executor02": "0xd5d820457fc43dd1aBfee26e631fd6ca88C93FE2",
|
|
11
|
-
"Executor03": "0xabCf6477cE24F0298103B433Cf6932B5352E7974"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"priceRoute": {
|
|
15
|
-
"blockNumber": 183307861,
|
|
16
|
-
"network": 42161,
|
|
17
|
-
"srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
18
|
-
"srcDecimals": 18,
|
|
19
|
-
"srcAmount": "100000000000000000",
|
|
20
|
-
"destToken": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
21
|
-
"destDecimals": 6,
|
|
22
|
-
"destAmount": "301082524",
|
|
23
|
-
"bestRoute": [
|
|
24
|
-
{
|
|
25
|
-
"percent": 100,
|
|
26
|
-
"swaps": [
|
|
27
|
-
{
|
|
28
|
-
"srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
29
|
-
"srcDecimals": 18,
|
|
30
|
-
"destToken": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
31
|
-
"destDecimals": 6,
|
|
32
|
-
"swapExchanges": [
|
|
33
|
-
{
|
|
34
|
-
"exchange": "Camelot",
|
|
35
|
-
"srcAmount": "100000000000000000",
|
|
36
|
-
"destAmount": "301082524",
|
|
37
|
-
"percent": 100,
|
|
38
|
-
"poolAddresses": ["0x84652bb2539513BAf36e225c930Fdd8eaa63CE27"],
|
|
39
|
-
"data": {
|
|
40
|
-
"router": "0x1Be46c7A40906c19d91d07B3AE69Ef5893268F25",
|
|
41
|
-
"path": [
|
|
42
|
-
"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
43
|
-
"0xff970a61a04b1ca14834a43f5de4533ebddb5cc8"
|
|
44
|
-
],
|
|
45
|
-
"factory": "0x6EcCab422D763aC031210895C81787E87B43A652",
|
|
46
|
-
"initCode": "0xa856464ae65f7619087bc369daaf7e387dae1e5af69cfa7935850ebf754b04c1",
|
|
47
|
-
"feeFactor": 100000,
|
|
48
|
-
"isFeeTokenInRoute": false,
|
|
49
|
-
"pools": [
|
|
50
|
-
{
|
|
51
|
-
"address": "0x84652bb2539513BAf36e225c930Fdd8eaa63CE27",
|
|
52
|
-
"fee": 300,
|
|
53
|
-
"direction": true
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"gasUSD": "0.459247"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"gasCostUSD": "1.111425",
|
|
65
|
-
"gasCost": "271600",
|
|
66
|
-
"others": [
|
|
67
|
-
{
|
|
68
|
-
"exchange": "Camelot",
|
|
69
|
-
"srcAmount": "100000000000000000",
|
|
70
|
-
"destAmount": "301082524",
|
|
71
|
-
"unit": "2995835373",
|
|
72
|
-
"data": {
|
|
73
|
-
"router": "0x1Be46c7A40906c19d91d07B3AE69Ef5893268F25",
|
|
74
|
-
"path": [
|
|
75
|
-
"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
76
|
-
"0xff970a61a04b1ca14834a43f5de4533ebddb5cc8"
|
|
77
|
-
],
|
|
78
|
-
"factory": "0x6EcCab422D763aC031210895C81787E87B43A652",
|
|
79
|
-
"initCode": "0xa856464ae65f7619087bc369daaf7e387dae1e5af69cfa7935850ebf754b04c1",
|
|
80
|
-
"feeFactor": 100000,
|
|
81
|
-
"isFeeTokenInRoute": false,
|
|
82
|
-
"pools": [
|
|
83
|
-
{
|
|
84
|
-
"address": "0x84652bb2539513BAf36e225c930Fdd8eaa63CE27",
|
|
85
|
-
"fee": 300,
|
|
86
|
-
"direction": true
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"gasUSD": "1.111426"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"side": "SELL",
|
|
94
|
-
"tokenTransferProxy": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
|
|
95
|
-
"contractAddress": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
|
|
96
|
-
"contractMethod": "simpleSwap",
|
|
97
|
-
"partnerFee": 0,
|
|
98
|
-
"srcUSD": "301.3430000000",
|
|
99
|
-
"destUSD": "300.8103453983",
|
|
100
|
-
"partner": "paraswap.io",
|
|
101
|
-
"maxImpactReached": false,
|
|
102
|
-
"hmac": "5f4cb96af0e8be56c8b57a65056bbe655016f9a7"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"metadata": {
|
|
3
|
-
"network": 42161,
|
|
4
|
-
"blockNumber": 182407407,
|
|
5
|
-
"forkId": "81ff52d3-56b6-4b0a-9443-fc7fabd75c2a",
|
|
6
|
-
"lastTx": "a6244db2-ff0d-492f-8061-5a3f43c9a588",
|
|
7
|
-
"contracts": {
|
|
8
|
-
"AugustusV6": "0xCB6844DE51d15c2e79a4B5C9f8B0987c414C5699",
|
|
9
|
-
"Executor01": "0xDE1943213eEBf71e2FAA103A7B20ad71EC9f9F9a",
|
|
10
|
-
"Executor02": "0x31aDdA03097fcd27ce632Cf9C756f1A41c71C802",
|
|
11
|
-
"Executor03": "0xfA8952230F76C3Ca6c1d396Cd17C86279235967B"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"priceRoute": {
|
|
15
|
-
"blockNumber": 182407407,
|
|
16
|
-
"network": 42161,
|
|
17
|
-
"srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
18
|
-
"srcDecimals": 18,
|
|
19
|
-
"srcAmount": "1000000000000000000000",
|
|
20
|
-
"destToken": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
21
|
-
"destDecimals": 18,
|
|
22
|
-
"destAmount": "2920670034356294528839915",
|
|
23
|
-
"bestRoute": [
|
|
24
|
-
{
|
|
25
|
-
"percent": 18,
|
|
26
|
-
"swaps": [
|
|
27
|
-
{
|
|
28
|
-
"srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
29
|
-
"srcDecimals": 18,
|
|
30
|
-
"destToken": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
31
|
-
"destDecimals": 18,
|
|
32
|
-
"swapExchanges": [
|
|
33
|
-
{
|
|
34
|
-
"exchange": "GMX",
|
|
35
|
-
"srcAmount": "180000000000000000000",
|
|
36
|
-
"destAmount": "526404481200000000000000",
|
|
37
|
-
"percent": 100,
|
|
38
|
-
"poolAddresses": ["0x489ee077994B6658eAfA855C308275EAd8097C4A"],
|
|
39
|
-
"data": {
|
|
40
|
-
"gasUSD": "0.399026"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"percent": 78,
|
|
49
|
-
"swaps": [
|
|
50
|
-
{
|
|
51
|
-
"srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
52
|
-
"srcDecimals": 18,
|
|
53
|
-
"destToken": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
54
|
-
"destDecimals": 6,
|
|
55
|
-
"swapExchanges": [
|
|
56
|
-
{
|
|
57
|
-
"exchange": "TraderJoeV2.1",
|
|
58
|
-
"srcAmount": "99996000000000000000",
|
|
59
|
-
"destAmount": "291664938994",
|
|
60
|
-
"percent": 12.82,
|
|
61
|
-
"poolAddresses": ["0x69f1216cB2905bf0852f74624D5Fa7b5FC4dA710"],
|
|
62
|
-
"data": {
|
|
63
|
-
"tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
64
|
-
"tokenOut": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
65
|
-
"binStep": "15",
|
|
66
|
-
"gasUSD": "0.569235"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"exchange": "UniswapV3",
|
|
71
|
-
"srcAmount": "120042000000000000000",
|
|
72
|
-
"destAmount": "350567370828",
|
|
73
|
-
"percent": 15.39,
|
|
74
|
-
"poolAddresses": ["0xc6962004f452be9203591991d15f6b388e09e8d0"],
|
|
75
|
-
"data": {
|
|
76
|
-
"path": [
|
|
77
|
-
{
|
|
78
|
-
"tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
79
|
-
"tokenOut": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
80
|
-
"fee": "500",
|
|
81
|
-
"currentFee": "500"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"gasUSD": "0.572461"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"exchange": "RamsesV2",
|
|
89
|
-
"srcAmount": "19968000000000000000",
|
|
90
|
-
"destAmount": "58412308909",
|
|
91
|
-
"percent": 2.56,
|
|
92
|
-
"poolAddresses": ["0x30afbcf9458c3131a6d051c621e307e6278e4110"],
|
|
93
|
-
"data": {
|
|
94
|
-
"path": [
|
|
95
|
-
{
|
|
96
|
-
"tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
97
|
-
"tokenOut": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
98
|
-
"fee": "500",
|
|
99
|
-
"currentFee": "500"
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"gasUSD": "0.541493"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"exchange": "CamelotV3",
|
|
107
|
-
"srcAmount": "199992000000000000000",
|
|
108
|
-
"destAmount": "583902222420",
|
|
109
|
-
"percent": 25.64,
|
|
110
|
-
"poolAddresses": ["0xb1026b8e7276e7ac75410f1fcbbe21796e8f7526"],
|
|
111
|
-
"data": {
|
|
112
|
-
"feeOnTransfer": false,
|
|
113
|
-
"path": [
|
|
114
|
-
{
|
|
115
|
-
"tokenIn": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
116
|
-
"tokenOut": "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
"gasUSD": "1.730557"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"exchange": "WooFiV2",
|
|
124
|
-
"srcAmount": "340002000000000000000",
|
|
125
|
-
"destAmount": "992865513708",
|
|
126
|
-
"percent": 43.59,
|
|
127
|
-
"poolAddresses": ["0xeff23b4be1091b53205e35f3afcd9c7182bf3062"],
|
|
128
|
-
"data": {
|
|
129
|
-
"gasUSD": "0.377911"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"srcToken": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
136
|
-
"srcDecimals": 6,
|
|
137
|
-
"destToken": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
138
|
-
"destDecimals": 18,
|
|
139
|
-
"swapExchanges": [
|
|
140
|
-
{
|
|
141
|
-
"exchange": "UniswapV3",
|
|
142
|
-
"srcAmount": "1635409812024",
|
|
143
|
-
"destAmount": "1635351237119052137203297",
|
|
144
|
-
"percent": 71.81,
|
|
145
|
-
"poolAddresses": ["0x7cf803e8d82a50504180f417b8bc7a493c0a0503"],
|
|
146
|
-
"data": {
|
|
147
|
-
"path": [
|
|
148
|
-
{
|
|
149
|
-
"tokenIn": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
150
|
-
"tokenOut": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
151
|
-
"fee": "100",
|
|
152
|
-
"currentFee": "100"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"gasUSD": "0.510524"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"exchange": "CamelotV3",
|
|
160
|
-
"srcAmount": "291736522658",
|
|
161
|
-
"destAmount": "291798679567571453556081",
|
|
162
|
-
"percent": 12.81,
|
|
163
|
-
"poolAddresses": ["0x45fae8d0d2ace73544baab452f9020925afccc75"],
|
|
164
|
-
"data": {
|
|
165
|
-
"feeOnTransfer": false,
|
|
166
|
-
"path": [
|
|
167
|
-
{
|
|
168
|
-
"tokenIn": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
169
|
-
"tokenOut": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"gasUSD": "1.730557"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"exchange": "BalancerV2",
|
|
177
|
-
"srcAmount": "350266020177",
|
|
178
|
-
"destAmount": "350159409695884793612929",
|
|
179
|
-
"percent": 15.38,
|
|
180
|
-
"poolAddresses": ["0x423a1323c871abc9d89eb06855bf5347048fc4a5"],
|
|
181
|
-
"data": {
|
|
182
|
-
"swaps": [
|
|
183
|
-
{
|
|
184
|
-
"poolId": "0x423a1323c871abc9d89eb06855bf5347048fc4a5000000000000000000000496",
|
|
185
|
-
"amount": "350266020177"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"gasUSD": "1.225617"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"percent": 4,
|
|
197
|
-
"swaps": [
|
|
198
|
-
{
|
|
199
|
-
"srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
200
|
-
"srcDecimals": 18,
|
|
201
|
-
"destToken": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
202
|
-
"destDecimals": 6,
|
|
203
|
-
"swapExchanges": [
|
|
204
|
-
{
|
|
205
|
-
"exchange": "UniswapV3",
|
|
206
|
-
"srcAmount": "40000000000000000000",
|
|
207
|
-
"destAmount": "117014157024",
|
|
208
|
-
"percent": 100,
|
|
209
|
-
"poolAddresses": ["0xc31e54c7a869b9fcbecc14363cf510d1c41fa443"],
|
|
210
|
-
"data": {
|
|
211
|
-
"path": [
|
|
212
|
-
{
|
|
213
|
-
"tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
214
|
-
"tokenOut": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
215
|
-
"fee": "500",
|
|
216
|
-
"currentFee": "500"
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
"gasUSD": "0.526008"
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"srcToken": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
226
|
-
"srcDecimals": 6,
|
|
227
|
-
"destToken": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
228
|
-
"destDecimals": 18,
|
|
229
|
-
"swapExchanges": [
|
|
230
|
-
{
|
|
231
|
-
"exchange": "UniswapV3",
|
|
232
|
-
"srcAmount": "57582666671",
|
|
233
|
-
"destAmount": "57533854977893728242565",
|
|
234
|
-
"percent": 49.21,
|
|
235
|
-
"poolAddresses": ["0xd37af656abf91c7f548fffc0133175b5e4d3d5e6"],
|
|
236
|
-
"data": {
|
|
237
|
-
"path": [
|
|
238
|
-
{
|
|
239
|
-
"tokenIn": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
|
|
240
|
-
"tokenOut": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
|
|
241
|
-
"fee": "500",
|
|
242
|
-
"currentFee": "500"
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"gasUSD": "0.526008"
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"exchange": "Hashflow",
|
|
250
|
-
"srcAmount": "57582666672",
|
|
251
|
-
"destAmount": "57570150676147586254330",
|
|
252
|
-
"percent": 49.21,
|
|
253
|
-
"poolAddresses": ["0x55084eE0fEf03f14a305cd24286359A35D735151"],
|
|
254
|
-
"data": {
|
|
255
|
-
"mm": "mm9_3",
|
|
256
|
-
"gasUSD": "0.889807"
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"exchange": "BalancerV2",
|
|
261
|
-
"srcAmount": "1848823681",
|
|
262
|
-
"destAmount": "1852221119744829970713",
|
|
263
|
-
"percent": 1.58,
|
|
264
|
-
"poolAddresses": ["0x1533a3278f3f9141d5f820a184ea4b017fce2382"],
|
|
265
|
-
"data": {
|
|
266
|
-
"swaps": [
|
|
267
|
-
{
|
|
268
|
-
"poolId": "0x1533a3278f3f9141d5f820a184ea4b017fce2382000000000000000000000016",
|
|
269
|
-
"amount": "1848823681"
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"gasUSD": "1.225617"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
]
|
|
276
|
-
}
|
|
277
|
-
]
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"gasCostUSD": "13.398886",
|
|
281
|
-
"gasCost": "6008300",
|
|
282
|
-
"others": [],
|
|
283
|
-
"side": "SELL",
|
|
284
|
-
"version": "6",
|
|
285
|
-
"contractAddress": "0x6d9D0F49A229d5431ffAB4631631b81712ae4E88",
|
|
286
|
-
"contractMethod": "swapExactAmountIn",
|
|
287
|
-
"partnerFee": 0,
|
|
288
|
-
"srcUSD": "2932630.0000000000",
|
|
289
|
-
"destUSD": "2918587.5966217985",
|
|
290
|
-
"partner": "paraswap.io",
|
|
291
|
-
"maxImpactReached": false,
|
|
292
|
-
"hmac": "79510cc41dbf96471f1c502ae9d7c6e95cbfadc7"
|
|
293
|
-
}
|
|
294
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"metadata": {
|
|
3
|
-
"network": 42161,
|
|
4
|
-
"blockNumber": 182996900,
|
|
5
|
-
"forkId": "89324baf-e2ad-417d-a214-fcd017a4b74d",
|
|
6
|
-
"lastTx": "72557c29-1eb2-42e9-ba22-e59d6d7426d3",
|
|
7
|
-
"contracts": {
|
|
8
|
-
"AugustusV6": "0x0862F519AB03450569160beB7f973043Ace15d09",
|
|
9
|
-
"Executor01": "0x30102e9dfdd6caA3632271f239fc4636707aC178",
|
|
10
|
-
"Executor02": "0x94216782114c446931A93A4B74b59155BC08e0f2",
|
|
11
|
-
"Executor03": "0xB0d7C6c74cD7d8509e3cD36B93D760A3a8F429B5"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"priceRoute": {
|
|
15
|
-
"blockNumber": 182996900,
|
|
16
|
-
"network": 42161,
|
|
17
|
-
"srcToken": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
18
|
-
"srcDecimals": 18,
|
|
19
|
-
"srcAmount": "1000000000000000000000",
|
|
20
|
-
"destToken": "0x5979d7b546e38e414f7e9822514be443a4800529",
|
|
21
|
-
"destDecimals": 18,
|
|
22
|
-
"destAmount": "864019103041345362958",
|
|
23
|
-
"bestRoute": [
|
|
24
|
-
{
|
|
25
|
-
"percent": 100,
|
|
26
|
-
"swaps": [
|
|
27
|
-
{
|
|
28
|
-
"srcToken": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
29
|
-
"srcDecimals": 18,
|
|
30
|
-
"destToken": "0x5979d7b546e38e414f7e9822514be443a4800529",
|
|
31
|
-
"destDecimals": 18,
|
|
32
|
-
"swapExchanges": [
|
|
33
|
-
{
|
|
34
|
-
"exchange": "UniswapV3",
|
|
35
|
-
"srcAmount": "760000000000000000000",
|
|
36
|
-
"destAmount": "656647368152969977508",
|
|
37
|
-
"percent": 76,
|
|
38
|
-
"poolAddresses": ["0x35218a1cbac5bbc3e57fd9bd38219d37571b3537"],
|
|
39
|
-
"data": {
|
|
40
|
-
"path": [
|
|
41
|
-
{
|
|
42
|
-
"tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
43
|
-
"tokenOut": "0x5979d7b546e38e414f7e9822514be443a4800529",
|
|
44
|
-
"fee": "100",
|
|
45
|
-
"currentFee": "100"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"gasUSD": "0.435590"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"exchange": "RamsesV2",
|
|
53
|
-
"srcAmount": "80000000000000000000",
|
|
54
|
-
"destAmount": "69124185423539870703",
|
|
55
|
-
"percent": 8,
|
|
56
|
-
"poolAddresses": ["0x2ed095289b2116d7a3399e278d603a4e4015b19d"],
|
|
57
|
-
"data": {
|
|
58
|
-
"path": [
|
|
59
|
-
{
|
|
60
|
-
"tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
61
|
-
"tokenOut": "0x5979d7b546e38e414f7e9822514be443a4800529",
|
|
62
|
-
"fee": "50",
|
|
63
|
-
"currentFee": "55"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"gasUSD": "0.435590"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"exchange": "CamelotV3",
|
|
71
|
-
"srcAmount": "20000000000000000000",
|
|
72
|
-
"destAmount": "17280745577734903588",
|
|
73
|
-
"percent": 2,
|
|
74
|
-
"poolAddresses": ["0xdeb89de4bb6ecf5bfed581eb049308b52d9b2da7"],
|
|
75
|
-
"data": {
|
|
76
|
-
"feeOnTransfer": false,
|
|
77
|
-
"path": [
|
|
78
|
-
{
|
|
79
|
-
"tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
80
|
-
"tokenOut": "0x5979d7b546e38e414f7e9822514be443a4800529"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"gasUSD": "0.435590"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"exchange": "BalancerV2",
|
|
88
|
-
"srcAmount": "140000000000000000000",
|
|
89
|
-
"destAmount": "120966803887100611159",
|
|
90
|
-
"percent": 14,
|
|
91
|
-
"poolAddresses": ["0x9791d590788598535278552eecd4b211bfc790cb"],
|
|
92
|
-
"data": {
|
|
93
|
-
"swaps": [
|
|
94
|
-
{
|
|
95
|
-
"poolId": "0x9791d590788598535278552eecd4b211bfc790cb000000000000000000000498",
|
|
96
|
-
"amount": "140000000000000000000"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"gasUSD": "1.034413"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"gasCostUSD": "3.003201",
|
|
108
|
-
"gasCost": "585600",
|
|
109
|
-
"others": [],
|
|
110
|
-
"side": "SELL",
|
|
111
|
-
"tokenTransferProxy": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
|
|
112
|
-
"contractAddress": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
|
|
113
|
-
"contractMethod": "simpleSwap",
|
|
114
|
-
"partnerFee": 0,
|
|
115
|
-
"srcUSD": "2906330.0000000000",
|
|
116
|
-
"destUSD": "2905825.8463935007",
|
|
117
|
-
"partner": "paraswap.io",
|
|
118
|
-
"maxImpactReached": false,
|
|
119
|
-
"hmac": "5e521091c7c0c58008db5cf1d25faf057df92786"
|
|
120
|
-
}
|
|
121
|
-
}
|