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
{{ message }}
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
The following conditions have to be met in order for the bot to get an op_underfunded error:
current levels needs to be > 1
bot is currently hitting capacity limits
bot tries to increase order size of first level but reduce total size of orders such that it will not be hitting capacity limits anymore
Expected behavior
I think the correct behavior in this situation is for the bot to handle these cases correctly without having to manually delete all the offers as a workaround
Frequency
The frequency is: Always in the described situation
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
Set up the bot to use two levels with the first level being small and the second level consuming the remaining balance so it hits capacity limits
once the orderbook is updated to this setting, stop the bot and update the levels such that the first level is bigger and the second level is less then what remains from the balance such that the bot will no longer hit capacity limits.
Start the bot, you will see the op_underfunded error because the bot tries to increase the first level before trying to reduce the second level which leaves it in a state where it cannot fund the first operation.
Possible Solution
This bug can be fixed by reordering operations when we modify a level that will reduce the size of an order even if we will not hit capacity limits.
Describe the bug
The following conditions have to be met in order for the bot to get an op_underfunded error:
Expected behavior
I think the correct behavior in this situation is for the bot to handle these cases correctly without having to manually delete all the offers as a workaround
Frequency
The frequency is: Always in the described situation
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
op_underfunded
error because the bot tries to increase the first level before trying to reduce the second level which leaves it in a state where it cannot fund the first operation.Possible Solution
This bug can be fixed by reordering operations when we modify a level that will reduce the size of an order even if we will not hit capacity limits.
Your Environment
The text was updated successfully, but these errors were encountered: