We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f95950 commit 4425dbeCopy full SHA for 4425dbe
sdk/src/fee.rs
@@ -105,9 +105,9 @@ impl FeeStructure {
105
) -> u64 {
106
// Fee based on compute units and signatures
107
let congestion_multiplier = if lamports_per_signature == 0 {
108
- 0.0 // test only
+ 0 // test only
109
} else {
110
- 1.0 // multiplier that has no effect
+ 1 // multiplier that has no effect
111
};
112
113
self.calculate_fee_details(
@@ -116,7 +116,7 @@ impl FeeStructure {
116
include_loaded_account_data_size_in_fee,
117
)
118
.total_fee(remove_rounding_in_fee_calculation)
119
- .saturating_mul(congestion_multiplier as u64)
+ .saturating_mul(congestion_multiplier)
120
}
121
122
/// Calculate fee details for `SanitizedMessage`
0 commit comments