Skip to content

Committing the fee payer queues its pre-fee balance #1908

Description

@bmuddha

Scope

When the fee payer is also one of the accounts passed to ScheduleCommit, we queue its balance before charging the commit fee. The ER account ends up with less money than the snapshot we send for settlement.

The local reproduction starts with 3,000,000 lamports and reserves commit ID 26, above the free limit. After the 1,000,000-lamport fee, the account has 2,000,000, but the queued CommittedAccount, committor task, and generated DLP instruction all still carry 3,000,000. Using a separate payer does not produce the mismatch. This was reproduced through instruction generation; base-layer settlement and financial loss were not tested.

Inspected Validator v2.0.0-rc.2, commit 377a086af0cffd72cb24a19ee94bafadbc4ed25a: snapshot capture happens before fee charging.

Outcome

Committing the payer queues its post-fee balance. Validate the accounts and determine the fee first, then charge before capturing settlement state. For undelegation, snapshots still need to precede the ownership transition. Keep payer/account aliasing supported rather than rejecting it or manually adjusting a copied balance.

Activity

  1. added theissue type on Nov 9, 2026
  2. added a commit that references this issue on Nov 10, 2026
    184c3a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions