Uniswap / sdk-core

⚙️ Code shared across TypeScript Uniswap SDK versions
MIT License
121 stars 354 forks source link

feat: lowercase address checking when doing token comparisons #47

Closed tinaszheng closed 1 year ago

tinaszheng commented 1 year ago

Because Tokens can now have non-checksummed addresses, we need to lowercase addresses before doing comparison checking because we could be comparing one with checksummed addresses to one without. Theoretically they're the same token, so its OK to not do case-sensitive comparisons here