fix(fees): treat zero-budget chain allocations as absent 🐛 - #47
Conversation
- Consensus resolves only allocation keys with a nonzero stored budget, so a zero-budget exact key now falls through to the per-recipient `call_key` wildcard, and a zero-budget wildcard to no allocation, instead of trapping on its budget - Synthetic recipient wildcards keep matching regardless of budget; keys exhausted by the execution's own emissions still never spill - Cover both internal emission paths end to end, the external unallocated fallback, phase interaction and the synthetic wildcard
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: genlayerlabs/genvm-executor/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe allocation matching function now skips recipient-specific allocations with explicitly zero budgets. Tests cover internal and external matching, wildcard selection, budget consumption, and exhaustion. ChangesAllocation matching
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Zero-budget chain-key allocations are now treated as absent, so matching falls through to a wildcard or yields no allocation. Tests cover the intended cases and no merge-blocking risk was identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Clippy (1.98.1)Clippy execution failed 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 |
Auto-opened executor mirror of genlayerlabs/genvm-manager#54.
Carries the executor-side work for that manager PR. The manager branch update fast-forwards
v0.3-devto its pinned commit after landing.Summary by CodeRabbit