diff --git a/contracts/programs/ocr2/src/lib.rs b/contracts/programs/ocr2/src/lib.rs index 0faa300ef..95551163f 100644 --- a/contracts/programs/ocr2/src/lib.rs +++ b/contracts/programs/ocr2/src/lib.rs @@ -815,13 +815,11 @@ impl Report { } } -fn calculate_reimbursement(juels_per_lamport: u64, signature_count: usize) -> Result { +fn calculate_reimbursement(juels_per_lamport: u64, _signature_count: usize) -> Result { const SIGNERS: u64 = 1; // TODO: probably needs to include signing the validator call let fees = Fees::get()?; let lamports_per_signature = fees.fee_calculator.lamports_per_signature; - // num of signatures + const based on how many signers we have - let signature_count = signature_count as u64 + SIGNERS; - let lamports = lamports_per_signature * signature_count; + let lamports = lamports_per_signature * SIGNERS; let juels = lamports * juels_per_lamport; Ok(juels) }