RPIP-47: Enable Forced Delegate Upgrades Source

Allows protocol governance to force upgrade node operators after a Rocket Pool protocol upgrade takes place, and a grace period has expired.
⚠️ This RPIP is not recommended for general use or implementation as it is likely to change.
RPIP47
AuthorLongForWisdom, Valdorff
StatusDraft
TypeProtocol
CategoryCore
Requires 43
Created2024-03-08
DiscussionLink

RPIP-47: Enable Forced Delegate Upgrades Source

Allows protocol governance to force upgrade node operators after a Rocket Pool protocol upgrade takes place, and a grace period has expired.

Abstract

Currently, node operators can choose to upgrade (or not) for their minipool delegate (the contract at the Ethereum withdrawal address that governs how funds are disbursed, among other things). This (a) means the protocol can only effect change in ways that are in the interest of individual NOs, and (b) makes it more challenging to design the protocol as it must remain backward compatible with every past minipool delegate.

This proposal suggests limiting that upgrade choice in the future. Users can opt-in to upgrade or use an “old” delegate for a defined period after a newer version is released. Once the defined period has passed, users will no longer be able to use the old delegate, and they may be permissionlessly upgraded to the latest version.

Motivation

Supporting many iterations of the same basic functionality as the protocol evolves makes protocol development slower, more risky, and more expensive, with no real limit on the degree to which this debt can accumulate. The ability to force upgrades allows the protocol to avoid this tax on efficiency and remain responsive to future development needs.

Additionally, the pDAO must have the ability to effect change in ways that benefit the protocol as a whole, but that may not benefit every individual node operator in isolation. What benefits individuals in the short term can lead to ruin in the long term for both that individual and the collective. The pDAO is unable to protect against this outcome without the ability to force upgrades.

This RPIP is part of a set of proposals motivated by a desire to rework Rocket Pool’s tokenomics to ensure the protocol’s continued value, development, and longevity. For more details, see the supporting documentation here.

Specification

Upgrade Buffer Enforcement

  • Each Megapool delegate contract SHALL have an execution layer expiration_block variable which should initialize to “no expiration”
  • Each Megapool delegate contract SHALL have a non-modifiable upgrade_buffer value
    • The Megapool delegate’s upgrade_buffer SHALL be 120 days
  • The only permitted modification to a Megapool delegate’s expiration_block variable SHALL be for any protocol contract to set its value to now + its upgrade_buffer

Upgrade Process

  • When a new megapool delegate is released, a protocol contract SHOULD update the expiration_block of all in-use megapool delegates to now + their upgrade_buffers
  • A node operator SHALL be able to upgrade their megapool delegate to the latest megapool delegate at any time
  • Functionality MAY be provided to allow a node operator to automatically use the latest megapool delegate
  • After a megapool delegate’s expiration_block has passed, any megapools using the expired megapool delegate SHALL be permissionlessly upgradeable to the latest megapool delegate

Rationale

Direct Upgrade versus Recovery Delegate
Initially, this specification included a ‘recovery delegate’ that would provide basic functionality for a node operator. In place of forcing an upgrade to the latest version, validators on expiring delegates would be shifted to the recovery delegate. This was dropped primarily due to scope and implementation complexity reasons.

Next Version versus Latest Version
Some debate covered whether the upgrade should push validators on expiring delegates to the latest delegate, or the next delegate. The latest was chosen to allow the skipping of bugged delegates to a fixed version and to improve UX (no need to cycle through to get to the latest version.)

All in-use delegates versus previous delegate version The wording covering the update of expiration blocks on a new delegate release was expanded from ‘previous delegate version’ to ‘all in-use delegate versions’ to avoid a situation in which a node operator is forcibly upgraded to a contract that they have not had sufficient time to examine. SHOULD is used over SHALL to allow flexibility in a situation where protocol governance does not wish to immediately start the timer to force an upgrade from a current version at the point of release of a new version.

Security Considerations

  • Part of the risk mitigation here depends on some users upgrading their megapool delegate well before the expiration block to build up “Lindy”
    • If this doesn’t happen naturally, it may be possible to incentivize early adopters with GMC funds

Copyright and related rights waived via CC0.

Citation

LongForWisdom, Valdorff, "RPIP-47: Enable Forced Delegate Upgrades [DRAFT]," Rocket Pool Improvement Proposals, no. 47, March 2024. [Online serial]. Available: https://rpips.rocketpool.net/RPIPs/rpip-47.