Skip to content

Commit

Permalink
Hotfix BUSD price
Browse files Browse the repository at this point in the history
  • Loading branch information
SvineruS committed Sep 28, 2023
1 parent 2d58f61 commit 9d3d5b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions relay/pkg/price/price_kucoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ type kucoinResponse struct {
}

func GetKucoin(token *TokenInfo) (price float64, err error) {
// hotfix for BUSD
if token.Symbol == "BUSD" {
token.Symbol = "USDT"
}

resp, err := http.Get(fmt.Sprintf(kucoinPriceUrlFormat, token.Symbol))
if err != nil {
return 0, err
Expand Down

0 comments on commit 9d3d5b4

Please sign in to comment.