Skip to content

Commit 4425dbe

Browse files
authored
congestion_multiplier as u64 (pyth-network#267)
1 parent 7f95950 commit 4425dbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/src/fee.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ impl FeeStructure {
105105
) -> u64 {
106106
// Fee based on compute units and signatures
107107
let congestion_multiplier = if lamports_per_signature == 0 {
108-
0.0 // test only
108+
0 // test only
109109
} else {
110-
1.0 // multiplier that has no effect
110+
1 // multiplier that has no effect
111111
};
112112

113113
self.calculate_fee_details(
@@ -116,7 +116,7 @@ impl FeeStructure {
116116
include_loaded_account_data_size_in_fee,
117117
)
118118
.total_fee(remove_rounding_in_fee_calculation)
119-
.saturating_mul(congestion_multiplier as u64)
119+
.saturating_mul(congestion_multiplier)
120120
}
121121

122122
/// Calculate fee details for `SanitizedMessage`

0 commit comments

Comments
 (0)