GIP-0060: Early allocation closure

An initial implementation of this GIP can be found here: feat: remove minimum allocation duration restriction by tmigone · Pull Request #902 · graphprotocol/contracts · GitHub

One thing worth noting: in accordance with the GIP this implementation will not distribute rewards when an allocation that is less than 1 epoch old is closed, even if the POI presented is valid. There are some edge cases where this could happen with subgraphs indexing Ethereum mainnet or Arbitrum One, however for simplicity and consistency we won’t be distributing rewards in this case.

For clarity, in order to get rewards the conditions that have to be met are:

  • the indexer or operator is closing the allocation
  • a valid POI is presented when closing the allocation
  • the allocation is at least 1 epoch old (i.e startEpoch < endEpoch)
4 Likes