Skip to content

Commit 410d94a

Browse files
committed
Fix integer division
1 parent fe92a3f commit 410d94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration_tests/tests/fixtures/test_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ impl TestBuilder {
954954
let base_reward_receiver =
955955
BaseRewardReceiver::find_program_address(&jito_tip_router_program::id(), &ncn, epoch).0;
956956

957-
let sol_rewards = (rewards / LAMPORTS_PER_SOL) as f64;
957+
let sol_rewards = rewards as f64 / LAMPORTS_PER_SOL as f64;
958958

959959
// send rewards to the base reward router
960960
println!("Airdropping {} SOL to base reward receiver", sol_rewards);

0 commit comments

Comments
 (0)