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 bot does not check whether the capacity limit is hit for offers that could be modified and are not triggered by price or amount changes. It adds the liabilities correctly, which would exceed the balance but has no mechanism to reduce the offer.
Expected behavior
I think the correct behavior in this situation is for the bot to also constrain offers that do not need modification because of price or amount triggers. maybe introduce a new trigger called oversell
Frequency
The frequency is: Always
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
Create bot with balance of XLM equaling 5,000
Produce 2 levels at fixed price X and Y for amounts 2,500 XLM each
Take the first offer at price X for 1000 XLM
assume price of XLM does not change because we are using a fixed feed (or a feed that didn't change)
the bot tries to re-place the offer at level 1 for price X in the amount of 2,500 XLM, which it can do because the XLM balance is 4,000 XLM
the bot does not try and modify the level 2 offer even though it cannot support a 2,500 XLM offer at level 2 because there is no price or amount trigger for this level, which results in an op_underfunded error
...
Possible Solution
This bug can be fixed by introducing a new trigger called oversell which also triggers an update in offers. this is triggered when the offer's amount cannot be supported anymore.
Your Environment
version: master:v1.7.0-57-g8ea336c3
git branch: master
git hash: 8ea336c
build date: 20190820T124035Z
env: dev
GOOS: linux
GOARCH: amd64
Context
I am unable to reliably place offers and use kelp because of this bug.
nikhilsaraf
changed the title
op_underfunded issue when no price trigger for existing offer that is oversold
op_underfunded issue when no price or amount triggers for existing oversold offer
Aug 20, 2019
Describe the bug
The bot does not check whether the capacity limit is hit for offers that could be modified and are not triggered by
price
oramount
changes. It adds the liabilities correctly, which would exceed the balance but has no mechanism to reduce the offer.Expected behavior
I think the correct behavior in this situation is for the bot to also constrain offers that do not need modification because of
price
oramount
triggers. maybe introduce a new trigger calledoversell
Frequency
The frequency is: Always
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
op_underfunded
error...
Possible Solution
This bug can be fixed by introducing a new trigger called
oversell
which also triggers an update in offers. this is triggered when the offer's amount cannot be supported anymore.Your Environment
version: master:v1.7.0-57-g8ea336c3
git branch: master
git hash: 8ea336c
build date: 20190820T124035Z
env: dev
GOOS: linux
GOARCH: amd64
Context
I am unable to reliably place offers and use kelp because of this bug.
Attachments
The text was updated successfully, but these errors were encountered: