Audit reference: [FIL-1132b525-L05]
From audit:
In _settleSegmentGross (
|
require( |
|
payer.lockupCurrent >= grossSettledAmount, |
|
Errors.InsufficientLockupForSettlement(rail.token, rail.from, payer.lockupCurrent, grossSettledAmount) |
|
); |
) you check require( payer.lockupCurrent >= grossSettledAmount while it should be require( payer.lockupCurrent >= requiredLockup because requiredLockup is subtracted from lockupCurrent
Because grossSettledAmount is always >= requiredLockup the existing check should be safe. But the suggested modification is clearer.
Audit reference:
[FIL-1132b525-L05]From audit:
Because grossSettledAmount is always >= requiredLockup the existing check should be safe. But the suggested modification is clearer.