Late Repayments

Some times loans are not repaid in the cycle they were meant to be repaid at.

To ensure we recover capital being repaid late and also account it to the correct Liquidity providers we implemented something called "Late Repayments".

This implementation involves more than just an account of the amount and cycle that has been repaid.

We shaped the whole accounting around being able to attribute the correct amount to each user.

By having relevant changes in balances of each cycle as well as the named balances per cycle we enable the computation of late repaid funds.

Additionally to withdraws and deposits, each transaction of pool tokens updates the balance of the impacted individuals and accounts at the end of the epoch for how many shares you held and how much of the late repayment you are able to claim.