diff --git a/files/grest/rpc/governance/drep_info.sql b/files/grest/rpc/governance/drep_info.sql index 1865643c..0cc4ab26 100644 --- a/files/grest/rpc/governance/drep_info.sql +++ b/files/grest/rpc/governance/drep_info.sql @@ -97,7 +97,7 @@ BEGIN SELECT drep_state.drep, drep_state.deposit, - (CASE WHEN (curr_epoch - b.epoch_no) < drep_activity THEN TRUE ELSE FALSE END) AS active, + (CASE WHEN (curr_epoch - b.epoch_no) <= drep_activity THEN TRUE ELSE FALSE END) AS active, (b.epoch_no + drep_activity) AS expires_epoch_no FROM ( SELECT