Skip to content

Modification of rail lockup prevented unless same epoch as settlement #116

@anorth

Description

@anorth

Modifying a rail lockup requires isAccountLockupFullySettled, but this is a bit confusingly named. It checks that the last settlement epoch is this epoch, but that's much stricter than whether the fixed lockup is settled. The error message "insufficient funds to cover the current lockup" is not necessarily correct.

https://github.com/FilOzone/filecoin-services-payments/blob/182b414d31005e6002c43eddfe7c4db344d1cdce/src/Payments.sol#L592-L603

Consider proceeding to optimistically change the lockup, and revert if necessary after calculating the actual funds needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🐱 Todo

    Status

    🐱 Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions