Skip to content

Commit

Permalink
refactor(iota-framework): iota_treasury_cap wrapper usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dkwcs committed Jul 4, 2024
1 parent 8ce8447 commit e09aa98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ gas coins.
leftover_staking_rewards.join(computation_reward);
<b>let</b> leftover_storage_fund_inflow = leftover_staking_rewards.value();

self.iota_treasury_cap.supply_mut().decrease_supply(leftover_staking_rewards);
self.iota_treasury_cap.burn_balance(leftover_staking_rewards, ctx);
<b>let</b> refunded_storage_rebate =
self.<a href="storage_fund.md#0x3_storage_fund">storage_fund</a>.<a href="iota_system_state_inner.md#0x3_iota_system_state_inner_advance_epoch">advance_epoch</a>(
storage_reward,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ module iota_system::iota_system_state_inner {
leftover_staking_rewards.join(computation_reward);
let leftover_storage_fund_inflow = leftover_staking_rewards.value();

self.iota_treasury_cap.supply_mut().decrease_supply(leftover_staking_rewards);
self.iota_treasury_cap.burn_balance(leftover_staking_rewards, ctx);
let refunded_storage_rebate =
self.storage_fund.advance_epoch(
storage_reward,
Expand Down

0 comments on commit e09aa98

Please sign in to comment.