diff --git a/crates/iota-framework/docs/iota-system/iota_system_state_inner.md b/crates/iota-framework/docs/iota-system/iota_system_state_inner.md index fd926ce23e0..4a1fde94513 100644 --- a/crates/iota-framework/docs/iota-system/iota_system_state_inner.md +++ b/crates/iota-framework/docs/iota-system/iota_system_state_inner.md @@ -2177,7 +2177,7 @@ gas coins. 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, diff --git a/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move b/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move index f127afa4471..dd8262aca43 100644 --- a/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move +++ b/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move @@ -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,