Skip to main content

admin_init_week

Function admin_init_week 

Source
pub fn admin_init_week(authority: Pubkey) -> Instruction
Expand description

Advance Treasury::current_week by 1. authority must be crate::consts::EXECUTOR_ADDRESS.

Call once at the start of each scoring week. All Ledger weekly stats reset lazily on next interaction — no sweep required.