fix: ensure bonder fees are lower than amount
This commit is contained in:
parent
5ea8906dda
commit
b6a33089c8
|
@ -555,6 +555,10 @@ func (r *Router) suggestedRoutes(
|
|||
continue
|
||||
}
|
||||
|
||||
if bonderFees.Cmp(maxAmountIn.ToInt()) >= 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
gasLimit := uint64(0)
|
||||
if sendType.isTransfer() {
|
||||
gasLimit, err = bridge.EstimateGas(network, dest, token, amountIn)
|
||||
|
|
Loading…
Reference in New Issue