Skip to content

Commit d1289bb

Browse files
author
corey
committed
clean
1 parent 9daceac commit d1289bb

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

token-price-oracle/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,3 @@ go test ./client -run TestBitgetPriceFeed -v
171171
go test ./... -short
172172
```
173173

174-
## Documentation
175-
176-
- [PRICE_UPDATE.md](./PRICE_UPDATE.md) - Token price update 功能
177-
- [BITGET_PRICE_FEED.md](./BITGET_PRICE_FEED.md) - Bitget 价格源使用指南

token-price-oracle/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
func ValidPriceFeedTypes() []PriceFeedType {
2525
return []PriceFeedType{
2626
PriceFeedTypeBitget,
27-
PriceFeedTypeBinance,
27+
// PriceFeedTypeBinance, // TODO: Add back when Binance price feed is implemented
2828
}
2929
}
3030

token-price-oracle/updater/factory.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,9 @@ func createSinglePriceFeed(feedType config.PriceFeedType, cfg *config.Config) (c
119119
return feed, "bitget", nil
120120

121121
case config.PriceFeedTypeBinance:
122-
mapping, exists := cfg.TokenMappings[config.PriceFeedTypeBinance]
123-
if !exists || len(mapping) == 0 {
124-
return nil, "", fmt.Errorf("binance price feed requires token mapping, please configure --token-mapping-binance")
125-
}
126-
// TODO: Implement Binance price feed when ready
127-
return nil, "", fmt.Errorf("binance price feed not yet implemented")
122+
// Binance price feed is not yet implemented
123+
// This case should not be reached since Binance is not in ValidPriceFeedTypes
124+
return nil, "", fmt.Errorf("binance price feed is not supported yet")
128125

129126
default:
130127
return nil, "", fmt.Errorf("unsupported price feed type: %s", feedType)

0 commit comments

Comments
 (0)