Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxc/binance: Fix polygon symbol conversion #3118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

martonp
Copy link
Contributor

@martonp martonp commented Dec 11, 2024

Since the conversion from MATIC -> POL (#2957), the symbol conversion for polygon and polygon tokens was not working properly. This is fixed.

Since the conversion from MATIC -> POL, the symbol conversion for polygon
and polygon tokens was not working properly. This is fixed.
@martonp martonp force-pushed the fixPolygonSymbolConv branch from 6e30960 to 5c4ae6e Compare December 11, 2024 11:34
}

var binanceToDexSymbol = make(map[string]string)

func convertBnCoin(coin string) string {
// convertBnCoin converts a binance coin symbol to a dex symbol.
func convertBnCoin(coin string, weth bool) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm scratching my head a little at the meaning of the weth bool argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it.

@martonp martonp force-pushed the fixPolygonSymbolConv branch from 00361d5 to efe1816 Compare January 16, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants