Uniswap / sdk-core

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

feat: Adds bypassChecksum to Token constructor to stop checksum validation by default #35

Closed ikedm closed 2 years ago

ikedm commented 2 years ago

Adds the option to not checksum addresses in the Token constructor by default. Alternatively we perform a soft check if the bypassChecksum flag is on.

Soft check: length === 42 && startsWith('0x') && isHex(address)