Here, w1 loses some lovelace to paying a deposit to the UTxO created in the first transaction. This is, of course, tracked by fee tracker - so it's all good. However, in the next transaction, w2 actually gains this deposit. But this is not tracked at all! So there is an unexpected gain.
This PR also adds a bunch of tests for feetracker.
This lets the feetracker track gains from min ada deposits consumed from inputs.
Previously, tests like these would fail:
Here,
w1
loses some lovelace to paying a deposit to the UTxO created in the first transaction. This is, of course, tracked by fee tracker - so it's all good. However, in the next transaction,w2
actually gains this deposit. But this is not tracked at all! So there is an unexpected gain.This PR also adds a bunch of tests for feetracker.