You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Committing the fee payer queues its pre-fee balance #1908
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.
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
fix: capture post-fee balances when scheduling commits