toTokenAmount
is "quote * (1 - slippage)".toTokenAmount
is calculated as "(fromTokenAmount - slippage) - XY fee - (toTokenAmount - slippage)".toTokenAmount
is 6 * 99% = 5.94 BNB.toTokenAmount
is less than quote*(1-slippage)
, in this case, 5.94 BNB as calculated above, the transaction itself will be revoked and then the bridge token will be returned to user.