Skip to content

Commit

Permalink
chore: update supported sources
Browse files Browse the repository at this point in the history
  • Loading branch information
janndriessen committed May 6, 2024
1 parent 1f0912e commit 7a30822
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/quote/leveraged-extended/utils/zeroex.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { Exchange } from 'utils/swapData'

// 0x keys https://github.com/0xProject/protocol/blob/4f32f3174f25858644eae4c3de59c3a6717a757c/packages/asset-swapper/src/utils/market_operation_utils/types.ts#L38
// 0x keys: https://github.com/0xProject/protocol/blob/4f32f3174f25858644eae4c3de59c3a6717a757c/packages/asset-swapper/src/utils/market_operation_utils/types.ts#L38
function get0xEchangeKey(exchange: Exchange): string {
switch (exchange) {
case Exchange.Curve:
return 'Curve'
case Exchange.Quickswap:
return 'QuickSwap'
case Exchange.Sushiswap:
return 'SushiSwap'
case Exchange.UniV3:
Expand All @@ -18,8 +14,7 @@ function get0xEchangeKey(exchange: Exchange): string {

// Returns a comma separated string of sources to be included for 0x API calls
export function getIncludedSources(): string {
const quickswap = get0xEchangeKey(Exchange.Quickswap)
const sushi = get0xEchangeKey(Exchange.Sushiswap)
const uniswap = get0xEchangeKey(Exchange.UniV3)
return [quickswap, sushi, uniswap].toString()
return [sushi, uniswap].toString()
}

0 comments on commit 7a30822

Please sign in to comment.