Hi everyone!
I get balance of a token from account then calculate slippage with it but on sending tx gives me error invalid Bignumber. anyone can help? im using bignumber.js library

Jan 11, 2021, 11:14 PM
tokenBalance-( tokenbalane*(slippage/100))
resolved it by using correctly using bignumber library.
Jan 12, 2021, 12:27 AM
with BN its like safemath is solidity,, you cannot use + * -, but .add .mul .div
Jan 12, 2021, 7:55 AM

© 2024 Draquery.com All rights reserved.