Skip to content

Commit 639c56d

Browse files
committed
fix: ensure close allo behavior consistent with legacy
Signed-off-by: Tomás Migone <[email protected]>
1 parent 17a8ada commit 639c56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/horizon/contracts/staking/HorizonStakingExtension.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ contract HorizonStakingExtension is HorizonStakingBase, IHorizonStakingExtension
356356
// Process non-zero-allocation rewards tracking
357357
if (alloc.tokens > 0) {
358358
// Distribute rewards if proof of indexing was presented by the indexer or operator
359-
if (isIndexerOrOperator && _poi != 0) {
359+
if (isIndexerOrOperator && _poi != 0 && epochs > 0) {
360360
_distributeRewards(_allocationID, alloc.indexer);
361361
} else {
362362
_updateRewards(alloc.subgraphDeploymentID);

0 commit comments

Comments
 (0)