mirror of
https://github.com/status-im/status-go.git
synced 2025-01-21 20:20:29 +00:00
fix: bonder fees must be lower than amount
This commit is contained in:
parent
3b0f4ee2c1
commit
1cb1c63e82
@ -554,8 +554,14 @@ func (r *Router) suggestedRoutes(
|
||||
continue
|
||||
}
|
||||
|
||||
if bonderFees.Cmp(maxAmountIn.ToInt()) >= 0 {
|
||||
continue
|
||||
if maxAmountIn.ToInt().Cmp(amountIn) >= 0 {
|
||||
if bonderFees.Cmp(amountIn) >= 0 {
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
if bonderFees.Cmp(maxAmountIn.ToInt()) >= 0 {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
gasLimit := uint64(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user