feat: Raise Delegation & Commit Fees 10x - #204
Conversation
|
Warning Review limit reached
Next review available in: 35 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds current and legacy funding modes to PDA creation. Fast commit, delegation, and undelegation processors now pass explicit account-space values. Legacy rent calculations and delegation account balances receive test coverage. Public commit and delegation-session fees increase tenfold, while the legacy rent percentage remains for compatibility. 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 |
| /// The delegation session fees (extracted in percentage from the delegation PDAs rent on closure). | ||
| pub const RENT_FEES_PERCENTAGE: u8 = 10; | ||
|
|
There was a problem hiding this comment.
Removed because it was unused.
Implements MIMD-0030 fee changes:
SESSION_FEE_LAMPORTS:300_000->3_000_000COMMIT_FEE_LAMPORTS:100_000->1_000_000AccountSpaceso PDA creation can use either current rent or legacy rent for funding.AccountSpace::LegacyRent(usize)fromDelegate*instructions only.AccountSpace::CurrentRent(usize)from all other places.Legacy Rent is computed using information provided in SIMD 0194.