[x] when paying a forced-settlement from the global settlement fund, pay at margin call order price when applicable
When BSRM is individual_settlement_to_fund
[x] when paying a forced-settlement from an individual settlement fund, pay at margin call order price when applicable
When BSRM is individual_settlement_to_order
[x] store total collateral amount and debt amount in the ~settled-debt order~ (updated in #2748) individual_settlement_debt and individual_settlement_fund fields in bitasset object
NOTE:
This may break client applications which rely on the old logic "individual_settlement_debt and individual_settlement_fund are always zero when BSRM is individual_settlement_to_order".
[x] update order price on new feed / expired feed / updated price feed producer list / updated asset or bit-asset parameters, then check whether the order can be matched as taker after finished processing margin calls, if yes, process funds.
Note: no action is done on hard-fork time.
[x] when the settled-debt order is matched as maker, process funds
PR for #2591.
Changes:
BSRM
isglobal_settlement
BSRM
isindividual_settlement_to_fund
BSRM
isindividual_settlement_to_order
individual_settlement_debt
andindividual_settlement_fund
fields in bitasset object NOTE: This may break client applications which rely on the old logic "individual_settlement_debt
andindividual_settlement_fund
are always zero when BSRM isindividual_settlement_to_order
".