tac0turtle / Entropy

13 stars 1 forks source link

spec: add flow #17

Closed tac0turtle closed 3 years ago

tac0turtle commented 3 years ago

Description

Add flow charts.

Open Questions

rendered

cmwaters commented 3 years ago

when a users account is in the red they will need to follow a similar flow to liquidation, but it would sell off a smaller portion of the obligation. Should the user mark close the trade then notify a liquidation bot to handle closing the position? This is something I don't fully understand.

Yeah I guess so, or the user could do it as well. We give rewards for someone successfully executing a liquidation so it doesn't matter if it is the user as part of the close position or a liquidation bot.

I was thinking it might be better if, when the user closes a position in the red, that we always use all of the obligation to pay back the loan and thus only a portion of the tokens in the settle account. (i.e. the opposite of what you are saying)

(I find this such an annoying UX that you're constantly relying on these bots to try fulfil multiple parts of the contract and thus having to pay them fees in order to incentivise them)

tac0turtle commented 3 years ago

Going to merge this and amend later