MultiLiquidate transaction. #877
Replies: 2 comments 4 replies
-
We talked a couple month ago about limiting liquidation to the protocol only. The reasoning was to give more source of funds to the EF, and also prevents the behaviors from solana happening on our chain:
|
Beta Was this translation helpful? Give feedback.
-
I think the ante handler which consumes gas based on TX size makes this unprofitable long term. I run a test scenario, sending Counting auth's default I think attempting to always liquidate every position, every block, will become unprofitable quite fast (depending on our tx fees). If we deem this to still be a problem I would not add a penalty fee for failing liquidations as liquidations are a race by default and I would not want to be punished because someone's liquidation got included before mine when I am behaving fairly. We could instead introduce a parameter (or keep it as a constant) which limits the amount of liquidations that can be done in a single TX [it needs to be done at TX level and not Msg level as I could send multiple msg multi liq txs, possibly solvable through an ante handler]. |
Beta Was this translation helpful? Give feedback.
-
It is possible, depending on how the multi liquidation transaction is defined that it can become more profitable to run it on every block with all the positions (paying the fees) and eventually some liquidations will happen than to have an ultra optimized algorithm.
I open this in order to discuss the fairness of this approach and posible problems.
Beta Was this translation helpful? Give feedback.
All reactions