From c44bd9d42d926d8548a68898fd1a5e6cd1491c4d Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Wed, 1 Dec 2021 14:19:49 +1000 Subject: [PATCH] Revert "chore: Curve added ETH/CRV pool" This reverts commit 90b441330b6a493ade2fa2dbe7c9a0c057186450. --- packages/asset-swapper/CHANGELOG.json | 8 -------- .../src/utils/market_operation_utils/constants.ts | 12 ------------ .../src/utils/market_operation_utils/types.ts | 4 +--- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/packages/asset-swapper/CHANGELOG.json b/packages/asset-swapper/CHANGELOG.json index 8851aa2a14..df0e525d13 100644 --- a/packages/asset-swapper/CHANGELOG.json +++ b/packages/asset-swapper/CHANGELOG.json @@ -1,12 +1,4 @@ [ - { - "version": "16.39.0", - "changes": [ - { - "note": "Curve ETH/CRV pool" - } - ] - }, { "version": "16.38.0", "changes": [ diff --git a/packages/asset-swapper/src/utils/market_operation_utils/constants.ts b/packages/asset-swapper/src/utils/market_operation_utils/constants.ts index e63648f4e4..7fdb15f03b 100644 --- a/packages/asset-swapper/src/utils/market_operation_utils/constants.ts +++ b/packages/asset-swapper/src/utils/market_operation_utils/constants.ts @@ -551,7 +551,6 @@ export const CURVE_POOLS = { cvxcrv: '0x9d0464996170c6b9e75eed71c68b99ddedf279e8', mim: '0x5a6a4d54456819380173272a5e8e9b9904bdf41b', eurt: '0xfd5db7463a3ab53fd211b4af195c5bccc1a03890', - ethcrv: '0x8301ae4fc9c624d1d396cbdaa1ed877821d7c511', }; export const CURVE_V2_POOLS = { @@ -1017,17 +1016,6 @@ export const CURVE_MAINNET_INFOS: { [name: string]: CurveInfo } = { pool: CURVE_POOLS.cvxcrv, gasSchedule: 105e3, }), - [CURVE_POOLS.ethcrv]: { - ...createCurveExchangePool({ - // This pool uses ETH - tokens: [MAINNET_TOKENS.WETH, MAINNET_TOKENS.CRV], - pool: CURVE_POOLS.ethcrv, - gasSchedule: 350e3, - }), - // This pool has a custom get_dy and exchange selector with uint256 - sellQuoteFunctionSelector: CurveFunctionSelectors.get_dy_uint256, - exchangeFunctionSelector: CurveFunctionSelectors.exchange_underlying_uint256, - }, }; export const CURVE_V2_MAINNET_INFOS: { [name: string]: CurveInfo } = { diff --git a/packages/asset-swapper/src/utils/market_operation_utils/types.ts b/packages/asset-swapper/src/utils/market_operation_utils/types.ts index 2cf1ae9de1..b1848459b7 100644 --- a/packages/asset-swapper/src/utils/market_operation_utils/types.ts +++ b/packages/asset-swapper/src/utils/market_operation_utils/types.ts @@ -116,10 +116,8 @@ export enum CurveFunctionSelectors { exchange_underlying = '0xa6417ed6', get_dy_underlying = '0x07211ef7', get_dx_underlying = '0x0e71d1b9', - get_dy = '0x5e0d443f', // get_dy(int128,int128,uint256) + get_dy = '0x5e0d443f', get_dx = '0x67df02ca', - get_dy_uint256 = '0x556d6e9f', // get_dy(uint256,uint256,uint256) - exchange_underlying_uint256 = '0x65b2489b', // exchange_underlying(uint256,uint256,uint256,uint256) // Curve V2 exchange_v2 = '0x5b41b908', exchange_underlying_v2 = '0x65b2489b',