Skip to content

Commit

Permalink
congestion_multiplier as u64 (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Mar 15, 2024
1 parent 7f95950 commit 4425dbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/src/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ impl FeeStructure {
) -> u64 {
// Fee based on compute units and signatures
let congestion_multiplier = if lamports_per_signature == 0 {
0.0 // test only
0 // test only
} else {
1.0 // multiplier that has no effect
1 // multiplier that has no effect
};

self.calculate_fee_details(
Expand All @@ -116,7 +116,7 @@ impl FeeStructure {
include_loaded_account_data_size_in_fee,
)
.total_fee(remove_rounding_in_fee_calculation)
.saturating_mul(congestion_multiplier as u64)
.saturating_mul(congestion_multiplier)
}

/// Calculate fee details for `SanitizedMessage`
Expand Down

0 comments on commit 4425dbe

Please sign in to comment.