If the beneficiary for a stakeholder changes between the first second distribution, within the test you need to calculate the difference between amount from cumDist and dist, which means tracking the first distribution.
The test should be able to handle much more robust and complicated examples.
If the beneficiary for a stakeholder changes between the first second distribution, within the test you need to calculate the difference between amount from
cumDist
anddist
, which means tracking the first distribution.The test should be able to handle much more robust and complicated examples.