FilOzone / FilOzone/filecoin-pay
When decreasing lockup, `modifyRailLockup` first performs `settleAccountLockup`
Open
bug
- Dominant language
- Solidity
- Stars
- 8
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Suppose the operator attempts to `modifyRailLockup` to reduce the `lockupPeriod`. I think we only need to do `settleAccountLockup` after and not before.
The impact is that if a user has enough funds for the `lockupPeriod` after but not before the modification, the operation will revert.
I think the same problem also applies to `modifyRailPayment`.
I think that we only really need to `settleAccountLockup` after the operation.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.