Summary of changes
Changes introduced in this pull request:
Return a pointer to this_epoch_baseline_power to make the api more efficient.
Reference issue to close (if applicable)
Closes
Other information and links
let (min, max) = reward_state.deal_provider_collateral_bounds(
policy,
size,
power_claim.raw_byte_power,
reward_state. this_epoch_baseline_power(), // <--- This needs to be non-consuming.
supply.into(),
);
Create a follow-up to look into TokenAmount conversions, we need to receive a pointer there as we need to clone atto anyway, then we can further enhance the interface of deal_provider_collateral_bounds.
Summary of changes Changes introduced in this pull request:
this_epoch_baseline_power
to make the api more efficient.Reference issue to close (if applicable)
Closes
Other information and links