Skip to content

Commit 7f1c8dd

Browse files
authored
remove call to get coinbase exchange rate (#700)
1 parent c9ee9b7 commit 7f1c8dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

routes/base.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,12 @@ func (fes *APIServer) UpdateUSDCentsToDeSoExchangeRate() {
364364
glog.Errorf("UpdateUSDCentsToDeSoExchangeRate: Error fetching exchange rate from blockchain.com: %v", err)
365365
}
366366

367-
// Fetch price from coinbase
368-
coinbasePrice, err := fes.GetCoinbaseExchangeRate()
369-
glog.V(2).Infof("Coinbase price (USD Cents): %v", coinbasePrice)
370-
if err != nil {
371-
glog.Errorf("UpdateUSDCentsToDeSoExchangeRate: Error fetching exchange rate from coinbase: %v", err)
372-
}
367+
// DEPRECATED: Fetch price from coinbase
368+
// coinbasePrice, err := fes.GetCoinbaseExchangeRate()
369+
// glog.V(2).Infof("Coinbase price (USD Cents): %v", coinbasePrice)
370+
// if err != nil {
371+
// glog.Errorf("UpdateUSDCentsToDeSoExchangeRate: Error fetching exchange rate from coinbase: %v", err)
372+
// }
373373

374374
// Fetch price from gate
375375
gatePrice, err := fes.GetGateExchangeRate()

0 commit comments

Comments
 (0)