Skip to content

Enabling rails to start from some future timestamp #109

@lordshashank

Description

@lordshashank

It would be good improvement to enable starting rails from some future timestamp rather than current.
Currently modifyRailPayment when called would start vesting funds on per epoch basis from the timestamp when the function was called with non-zero newRate, this prompts user to call the function exactly at the instant from which he wants to start payments. Ideally it would be good to have generic function where one can specify the epoch from which he wants the payment to get vested, which can even be block.timestamp which would then represent the current implementation.

Generic use-cases:
lets say a grant aggrement is signed between entities with specific starting date in future. The funder would be able to configure the payment before hand to start vesting from some particular epoch rather than waiting until that and calling the function exactly at start epoch.

Filecoin use-case:

  • it can help in pre-funding storage deal with some future activation epochs with rail being registered on-chain giving guarantee to SP of payments and he can onboard data before the activation epoch.
  • With DDO, as we don't have notifications yet that would callback to contracts at the time sector is on-boarded which can start the rail, this would enable the rail creation while allocation is made with vesting scheduled at some future time which could then be validated/arbitrated if the SP actually on-boarded data or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🐱 Todo

    Status

    🐱 Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions