Skip to content

Commit 14ff9b8

Browse files
@0x/asset-swapper: Drop Y and BUSD curve pools (0xProject#161)
1 parent 598dc2c commit 14ff9b8

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

packages/asset-swapper/CHANGELOG.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
[
2+
{
3+
"version": "6.2.0",
4+
"changes": [
5+
{
6+
"note": "drop curve Y and BUSD pools",
7+
"pr": 161
8+
}
9+
]
10+
},
211
{
312
"version": "6.1.0",
413
"changes": [

packages/asset-swapper/src/utils/market_operation_utils/constants.ts

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ export const POOLS = {
170170
curve_compound: '0xa2b47e3d5c44877cca798226b7b8118f9bfb7a56', // 0.Compound
171171
// 1.USDT is dead
172172
curve_PAX: '0x06364f10b501e868329afbc005b3492902d6c763', // 2.PAX
173-
curve_y: '0x45f783cce6b7ff23b2ab2d70e416cdb7d6055f51', // 3.Y
174-
curve_BUSD: '0x79a8c46dea5ada233abaffd40f3a0a2b1e5a4f27', // 4.BUSD
173+
// 3. 0x45f783cce6b7ff23b2ab2d70e416cdb7d6055f51 y-pool is dead
174+
// 4. 0x79a8c46dea5ada233abaffd40f3a0a2b1e5a4f27 BUSD is dead
175175
curve_sUSD: '0xa5407eae9ba41422680e2e00537571bcc53efbfd', // 5.sUSD
176176
curve_renBTC: '0x93054188d876f558f4a66b2ef1d97d16edf0895b', // 6.ren
177177
curve_sBTC: '0x7fc77b5c7614e1533320ea6ddc2eb61fa00a9714', // 7.sbtc
@@ -233,22 +233,6 @@ export const MAINNET_CURVE_INFOS: { [name: string]: CurveInfo } = {
233233
tokens: [TOKENS.DAI, TOKENS.USDC, TOKENS.USDT, TOKENS.PAX],
234234
metaToken: undefined,
235235
},
236-
[POOLS.curve_y]: {
237-
exchangeFunctionSelector: CurveFunctionSelectors.exchange_underlying,
238-
sellQuoteFunctionSelector: CurveFunctionSelectors.get_dy_underlying,
239-
buyQuoteFunctionSelector: CurveFunctionSelectors.get_dx_underlying,
240-
poolAddress: POOLS.curve_y,
241-
tokens: [TOKENS.DAI, TOKENS.USDC, TOKENS.USDT, TOKENS.TUSD],
242-
metaToken: undefined,
243-
},
244-
[POOLS.curve_BUSD]: {
245-
exchangeFunctionSelector: CurveFunctionSelectors.exchange_underlying,
246-
sellQuoteFunctionSelector: CurveFunctionSelectors.get_dy_underlying,
247-
buyQuoteFunctionSelector: CurveFunctionSelectors.get_dx_underlying,
248-
poolAddress: POOLS.curve_BUSD,
249-
tokens: [TOKENS.DAI, TOKENS.USDC, TOKENS.USDT, TOKENS.BUSD],
250-
metaToken: undefined,
251-
},
252236
[POOLS.curve_sUSD]: {
253237
exchangeFunctionSelector: CurveFunctionSelectors.exchange_underlying,
254238
sellQuoteFunctionSelector: CurveFunctionSelectors.get_dy_underlying,
@@ -555,8 +539,6 @@ export const DEFAULT_GAS_SCHEDULE: Required<FeeSchedule> = {
555539
case POOLS.curve_aave:
556540
return 800e3;
557541
case POOLS.curve_PAX:
558-
case POOLS.curve_y:
559-
case POOLS.curve_BUSD:
560542
return 850e3;
561543
// case POOLS.curve_seth:
562544
default:

0 commit comments

Comments
 (0)