Switcheo / zilswap-sdk

Zilswap Typescript SDK
https://docs.zilswap.org
MIT License
18 stars 14 forks source link

fix approve tx trying to increase allowance above uint128 limit #6

Closed stevenkhong closed 4 years ago

stevenkhong commented 4 years ago

...for existing users who did approve tokens before, we will need to fetch their current approval amount for that particular token for the ZilSwap contract, and then tabulate: (2**128 - existing_amount - 1)

Else, there will be this error of overflow