Skip to content

Commit

Permalink
Explain weth param
Browse files Browse the repository at this point in the history
  • Loading branch information
martonp committed Jan 16, 2025
1 parent 5c4ae6e commit 00361d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/mm/libxc/binance.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ var dexToBinanceSymbol = map[string]string{
var binanceToDexSymbol = make(map[string]string)

// convertBnCoin converts a binance coin symbol to a dex symbol.
// On Binance there is no distinction between "eth" and "weth".
// If weth is true, this function will return "weth", otherwise
// it will return "eth".
func convertBnCoin(coin string, weth bool) string {
symbol := strings.ToLower(coin)
if convertedSymbol, found := binanceToDexSymbol[strings.ToUpper(coin)]; found {
Expand Down

0 comments on commit 00361d5

Please sign in to comment.