Remove boost lock constraint (#116)

* remove boost lock constraint

* make boost expiration a hard error

* undo
This commit is contained in:
Hardhat Chad
2025-02-21 13:28:40 -06:00
committed by GitHub
parent c89f73e8d3
commit b0145c202c

View File

@@ -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()