fix(schedule-transactions): derive magic fee vault from effective validator authority#1126
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes update the PDA seed derivation in the fee vault logic and introduce test infrastructure to validate fee vault behavior under validator authority overrides. The main production change modifies Suggested reviewers
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
When a validator authority override is active, delegated fee-vault validation should derive the MagicBlock fee-vault PDA from the effective validator authority, not the base validator authority.
This change updates the delegated fee-vault path to use
effective_validator_authority_id(), preserving the existing delegated payer flow when no override is set and making the override path consistent with the rest of the authority-handling logic.It also adds regression coverage for delegated payer schedule commits under validator authority override, including a negative case showing that base-authority fee vaults are rejected while an override is active.
Testing
Summary by CodeRabbit
Release Notes
Chores
Tests