You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the bot has an amount of sell_token based on which it queries the fee,
it subtracts the fee_amount from the sell_amount to create the order
the resulting order has a smaller sell amount than what we originally queried the fee for so the minimum fee could be higher
From api perspective it is a little annoying that there is no way to get the actual "maximum sell amount" you can set taking the fee into account. We would have to do some kind of estimation like using more fee or using only half the initial balance for the sell amount so that the fee is very likely to fit into the other half.
I think this is what happened in some trading bot runs that failed because the order got rejected because of insufficient fee like https://logs.gnosisdev.com/goto/5c0850bae0139dda90896a9c4a11739a .
The problem is that:
From api perspective it is a little annoying that there is no way to get the actual "maximum sell amount" you can set taking the fee into account. We would have to do some kind of estimation like using more fee or using only half the initial balance for the sell amount so that the fee is very likely to fit into the other half.
The text was updated successfully, but these errors were encountered: