- code: state.rs
apply_reward: actor method in miner/src/lib.rsdispute_windowed_post: actor method in miner/src/lib.rshandle_proving_deadline: actor method in miner/src/lib.rsprocess_early_terminations: function in miner/src/lib.rs
After calling apply_penalty, the code further calls State::repay_partial_debt_in_priority_order. This method tries to use unlocked funds to repay fee_debt and returns the actual amount that can be burned.
In methods like dispute_windowed_post, process_early_terminations, or handle_proving_deadline, after penalties are applied, the actor may attempt to repay debt if there are sufficient unlocked funds.
After getting to_burn, it calls burn_funds:
rt.send(
&BURNT_FUNDS_ACTOR_ADDR,
METHOD_SEND,
None,
amount,
)?;
This sends the funds to the burnt funds actor.
apply_penalty→ increases fee_debtrepay_partial_debt_in_priority_order→ repaysfee_debt, calculates the amount to burnburn_funds→ actually burns the funds