Skip to content

Commit

Permalink
Initialize total minted token balances to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 authored and brentstone committed Dec 13, 2023
1 parent 9f69b0d commit f397cb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/types/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,9 @@ impl Parameters {
wl_storage
.write(&masp_kd_gain_key(address), kd_gain_nom)
.expect("The nominal derivative gain must be initialized");
wl_storage
.write(&minted_balance_key(address), Amount::from_u64(0))
.expect("The total minted balance key must initialized");
}
}

Expand Down

0 comments on commit f397cb4

Please sign in to comment.