mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-18 23:16:48 +00:00
update errors
This commit is contained in:
@@ -72,7 +72,7 @@ pub fn process_reset<'a, 'info>(
|
||||
let treasury = Treasury::try_from_bytes_mut(&mut treasury_data)?;
|
||||
let threshold = treasury.last_reset_at.saturating_add(EPOCH_DURATION);
|
||||
if clock.unix_timestamp.lt(&threshold) {
|
||||
return Err(OreError::InvalidReset.into());
|
||||
return Err(OreError::ResetTooEarly.into());
|
||||
}
|
||||
|
||||
// Record current timestamp
|
||||
|
||||
Reference in New Issue
Block a user