ox-inet-resilience / resilience

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pay_matured_cash_commitments_or_default is not order independent

rht opened this issue · comments

commented

In particular this line:

self.fulfil_matured_requests()
. The step is nor order independent because pay_loan immediately updates the balance sheet of a bank and its creditor at the same time.

I have tested with delaying sending the cash to the creditor so that all creditors will receive their cash during the mailbox checking subround, but this results in the cash commitments being delayed by 1 day, and increases the standard deviation of the extent of systemic events plot.

commented

Fixed in 2fe9c13 by adding a separate substep, act_fulfil_contractual_obligations (essentially fulfil_matured_requests()).