Skip to content

Commit

Permalink
fix 24hr apr tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
jelysn committed Jun 18, 2024
1 parent 3eec461 commit 9360b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/masterchef/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ func (k Keeper) UpdateAmmPoolAPR(ctx sdk.Context, totalBlocksPerYear int64, tota
}

firstAccum := k.FirstPoolRewardsAccum(ctx, poolId)
lastAccum := k.FirstPoolRewardsAccum(ctx, poolId)
lastAccum := k.LastPoolRewardsAccum(ctx, poolId)
if lastAccum.Timestamp == 0 {
return false
}
Expand Down

0 comments on commit 9360b21

Please sign in to comment.