From b0145c202cfcf01e6f2fd652fff13da088baf894 Mon Sep 17 00:00:00 2001 From: Hardhat Chad <155858888+HardhatChad@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:28:40 -0600 Subject: [PATCH] Remove boost lock constraint (#116) * remove boost lock constraint * make boost expiration a hard error * undo --- program/src/mine.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/program/src/mine.rs b/program/src/mine.rs index 1315a29..0d1cc5f 100644 --- a/program/src/mine.rs +++ b/program/src/mine.rs @@ -105,9 +105,8 @@ pub fn process_mine(accounts: &[AccountInfo], data: &[u8]) -> ProgramResult { .assert(|r| r.boost == *boost_info.key)? .assert(|r| r.ts == proof.last_hash_at)?; - // Apply multiplier if boost is unlocked and not expired. - if boost.expires_at > t && boost.locked == 0 - { + // Apply multiplier if boost is not expired. + if boost.expires_at > t { boost_reward = (base_reward as u128) .checked_mul(boost.multiplier as u128) .unwrap()