Skip to content

Commit c08b797

Browse files
fix: remove duplicate PYTH_DEPENDENT_PROVIDERS definitions
Fixes merge conflict artifacts where PYTH_DEPENDENT_PROVIDERS was both imported and redefined locally in endpoints.ts and getCetusTradeData.ts. The constant is already properly exported from utils/constants.ts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 58684e7 commit c08b797

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

packages/swapper/src/swappers/CetusSwapper/endpoints.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ import { getTradeRate } from './swapperApi/getTradeRate'
2323
import { PYTH_DEPENDENT_PROVIDERS } from './utils/constants'
2424
import { findBestRoute, getAggregatorClient, getCoinType, getSuiClient } from './utils/helpers'
2525

26-
// DEX providers that require Pyth oracle price feeds for transaction construction
27-
// These are excluded to avoid failures when Pyth's public endpoint is unavailable
28-
// See: https://cetus-1.gitbook.io/cetus-developer-docs/developer/cetus-aggregator/features-available
29-
// Docs: "Some providers, such as Headalpmm and Metastable, rely on Pyth oracle prices"
30-
const PYTH_DEPENDENT_PROVIDERS = [
31-
'HAEDALPMM', // Haedal PMM (explicitly mentioned in docs)
32-
'HAEDALHMMV2', // Haedal HMM V2 (variant of HAEDALPMM)
33-
'METASTABLE', // Metastable pools (explicitly mentioned in docs)
34-
]
35-
3626
export const cetusApi: SwapperApi = {
3727
getTradeQuote: (
3828
input: CommonTradeQuoteInput,

packages/swapper/src/swappers/CetusSwapper/swapperApi/getCetusTradeData.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ import { getInputOutputRate, makeSwapErrorRight } from '../../../utils'
1212
import { isSupportedChainId, PYTH_DEPENDENT_PROVIDERS } from '../utils/constants'
1313
import { findBestRoute, getAggregatorClient, getCoinType } from '../utils/helpers'
1414

15-
// DEX providers that require Pyth oracle price feeds for transaction construction
16-
// These are excluded to avoid failures when Pyth's public endpoint is unavailable
17-
// See: https://cetus-1.gitbook.io/cetus-developer-docs/developer/cetus-aggregator/features-available
18-
// Docs: "Some providers, such as Headalpmm and Metastable, rely on Pyth oracle prices"
19-
const PYTH_DEPENDENT_PROVIDERS = [
20-
'HAEDALPMM', // Haedal PMM (explicitly mentioned in docs)
21-
'HAEDALHMMV2', // Haedal HMM V2 (variant of HAEDALPMM)
22-
'METASTABLE', // Metastable pools (explicitly mentioned in docs)
23-
]
24-
2515
type CetusTradeDataInput = {
2616
sellAsset: Asset
2717
buyAsset: Asset

0 commit comments

Comments
 (0)