Skip to content

Commit

Permalink
minor: Avoid overflow in reimbursement calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Feb 9, 2023
1 parent 6af2d4f commit 7d48285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/programs/ocr2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ fn calculate_reimbursement_gjuels(
.saturating_add(MICRO.saturating_sub(1))
.saturating_div(MICRO);

lamports += fee;
lamports = lamports.saturating_add(fee);
};
}

Expand Down

0 comments on commit 7d48285

Please sign in to comment.