Skip to content

Commit

Permalink
Burn once per day
Browse files Browse the repository at this point in the history
  • Loading branch information
s0me0ne-unkn0wn committed Jul 16, 2024
1 parent 42854c9 commit 3a4206d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion system-parachains/coretime/coretime-kusama/src/coretime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ impl CoretimeInterface for CoretimeAllocator {
}
}

fn on_new_timeslice(_t: pallet_broker::Timeslice) {
fn on_new_timeslice(t: pallet_broker::Timeslice) {
// Burn roughly once per day. Unchecked math: RHS hardcoded as non-zero.
if t % 180 != 0 {
return
}

let stash = CoretimeBurnAccount::get();
let value =
Balances::reducible_balance(&stash, Preservation::Expendable, Fortitude::Polite);
Expand Down

0 comments on commit 3a4206d

Please sign in to comment.