Skip to content

Commit 9cd58b5

Browse files
committed
chore(docs): add minor clarifying docs on FIP-0100 power & fee use
1 parent d922800 commit 9cd58b5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

actors/miner/src/deadline_state.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ pub struct Deadline {
166166

167167
/// Memoized sum of all non-terminated power in partitions, including active, faulty, and
168168
/// unproven. Used to cap the daily fee as a proportion of expected block reward.
169+
/// This field should not be used as an accurate measure of a miner's power as it includes
170+
/// faulty and unproven power.
169171
pub live_power: PowerPair,
170172

171173
/// Memoized sum of daily fee payable to the network for the active sectors

actors/miner/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4497,9 +4497,11 @@ fn handle_proving_deadline(
44974497

44984498
if result.daily_fee.is_positive() {
44994499
// Apply daily fee for sectors in this deadline, applied through the penalty/fee_debt
4500-
// mechanism.
4501-
// The daily fee payable is capped at a fraction of estimated daily block reward for the
4502-
// sectors being charged.
4500+
// mechanism. The daily fee payable is capped at a fraction of estimated daily block
4501+
// reward for the sectors being charged.
4502+
// Note that the daily_fee and live_power values here do not include sectors that have
4503+
// just been removed from the deadline via advance_dealine (above), but they do include
4504+
// sectors that have been added within the current proving period.
45034505
let day_reward = expected_reward_for_power(
45044506
reward_smoothed,
45054507
quality_adj_power_smoothed,

0 commit comments

Comments
 (0)