Skip to content

Commit

Permalink
fee: clarify order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Jan 19, 2024
1 parent ac1972a commit 9f87e23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/core/component/fee/src/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ impl GasPrices {
/// Use these gas prices to calculate the fee for a given gas vector.
pub fn fee(&self, gas: &Gas) -> Amount {
Amount::from(
self.block_space_price * gas.block_space / 1_000
+ self.compact_block_space_price * gas.compact_block_space / 1_000
+ self.verification_price * gas.verification / 1_000
+ self.execution_price * gas.execution / 1_000,
(self.block_space_price * gas.block_space) / 1_000
+ (self.compact_block_space_price * gas.compact_block_space) / 1_000
+ (self.verification_price * gas.verification) / 1_000
+ (self.execution_price * gas.execution) / 1_000,
)
}
}
Expand Down

0 comments on commit 9f87e23

Please sign in to comment.