Hi, multiple positions were margin-called today and couple of people in Telegram pointed out that when you get margin called, it will try to settle whole postion, not only part that is undercollaterized.
For example this is Stan's HERO position after some part was already bought back:
The algorithm buys back the asset but the collateral stays the same which leads to ever-increasing collateral ratio, even far beyond maintenance collateral ratio (MCR) which is not behavior that I would expect.
My suggestion would be to change margin call algorithm so that it stop when collateral ratio becomes higher that MCR. In the example above it would mean that the algorithm would stop buying HEROs as soon as the collateral ratio of position would be higher as 200% (MCR of HERO asset).
What do you think, does it make sense? IMHO it would help big holders of smart assets and still keep the system stable.