The engine fund pays for the repair bill so far as is possible, and then the balance is split four ways. After all that's the whole point in having an engine fund.
And this increases the market value of the aircraft - hopefully to somewhere near the sum of the value before the new engine + what the engine cost.