bitshares / bitshares-core

BitShares Blockchain node and command-line wallet
https://bitshares.github.io/
Other
1.17k stars 643 forks source link

Tighter peg when collateral price rises and settlement fund is not empty or settlement order exists #2591

Closed abitmore closed 1 year ago

abitmore commented 2 years ago

User Story

For a MPA, if there was a black swan event (so the global settlement fund or the individual settlement fund is not empty, or the individual settlement order exists), when the price (market value) of the collateral asset rises and passes a certain point (I.E. the settlement price of the corresponding fund), the MPA starts to be trading at a premium. In some cases, the premium can be substantial. This is not ideal. To mitigate this, when paying from the global / individual settlement fund or the individual settlement order, the price should be the same as the margin call order price (MCOP = feed_price / (MSSR - MCFR)).

Impacts Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.

CORE TEAM TASK LIST

abitmore commented 1 year ago

Done via #2721.

abitmore commented 1 year ago

Done via #2721 and #2727.