We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf6b237 commit c25dd81Copy full SHA for c25dd81
program/src/processor.rs
@@ -463,9 +463,11 @@ impl Processor {
463
let deposit_receipt =
464
DepositReceipt::try_from_slice_unchecked(&deposit_receipt_data).unwrap();
465
466
- let cool_down_end_time = u64::from(deposit_receipt.deposit_time)
+ let cool_down_end_time: i64 = u64::from(deposit_receipt.deposit_time)
467
.checked_add(deposit_receipt.cool_down_seconds.into())
468
- .expect("overflow") as i64;
+ .expect("overflow")
469
+ .try_into()
470
+ .expect("overflow");
471
472
// Validate: Owner must be signer during cool down to prevent unintended fee payment
473
if cool_down_end_time > clock.unix_timestamp && !owner_info.is_signer {
0 commit comments