Submitted by 0xA5DF
Bot fees are used when a position is opened/closed via a bot. In that case a bot fee is subtracted from the DAO fee and sent to the closing bot.
A user can use that  to reduce the DAO fees for closing an order and keeping it to themselves.
Instead of closing the order via initiateClose(), the user can use a proxy contract to update the stop-loss value and then limitClose() the order.
Since that is done in one function call, no bot can run the limitClose() and the bot fee will go to the user.
The following PoC shows how a trade is closed by a proxy contract that sets the limit and closes it via limitClose():
MyTrader.sol:
Dont allow updating sl or tp and executing limitClose() at the same block.
TriHaz (Tigris Trade) confirmed and commented:
Alex the Entreprenerd (judge) decreased severity to QA and commented:
Alex the Entreprenerd (judge) increased severity to Medium and commented:
GainsGoblin (Tigris Trade) resolved:
