Sunday, 25 October 2020

uniswap V2 invalid BigNumber value for JSBI negative value

Hi I was following uniswapV2 document to perform a trade transaction and I encounter error as follow invalid bignumber value

I got my input amount as 2941991120 and in JSBI form it is -1352976176, which gave me invalid bignumber value bug. Here is my code code screenshot. But I was following exactly what the tutorial says https://uniswap.org/docs/v2/javascript-SDK/trading/

Can anyone tell me where I did wrong ?



from uniswap V2 invalid BigNumber value for JSBI negative value

No comments:

Post a Comment