Skip to content

fix: make feepayer commit + undelegate work again #551

@thlorenz

Description

@thlorenz

Problem

As part of the cloning pipeline rewrite we removed deprecated support for escrowed feepayer commit + undelegation.
It is a regression, even though no one is using this feature right now.

Solution

Add a specific instruction to the Magic Program that serves specifically to commit/undelegate escrowed fee payers.
It would take the following accounts:

payer: [signer] - the escrowed fee payer
escrow: [] - the escrow we are committing
magicprogram: []

We then check that the payer has signed the transaction and schedule a commit/undelegate for the escrow account which should be delegated.

Metadata

Metadata

Assignees

Labels

P1High priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions