diff --git a/sdk/src/types/block/semantic/mod.rs b/sdk/src/types/block/semantic/mod.rs index 1b270eb125..d7d98d4767 100644 --- a/sdk/src/types/block/semantic/mod.rs +++ b/sdk/src/types/block/semantic/mod.rs @@ -163,9 +163,8 @@ impl<'a> SemanticValidationContext<'a> { .ok_or(Error::ConsumedAmountOverflow)?; let potential_mana = { - let min_amount = consumed_output.minimum_amount(self.protocol_parameters.storage_score_parameters()); - - let generation_amount = consumed_output.amount().checked_sub(min_amount).unwrap_or_default(); + let min_deposit = consumed_output.minimum_amount(self.protocol_parameters.storage_score_parameters()); + let generation_amount = consumed_output.amount().saturating_sub(min_deposit); self.protocol_parameters.potential_mana( generation_amount,