From 9360b21e2e8b2cecf73ce34d756cd14fa3c15640 Mon Sep 17 00:00:00 2001 From: jelysn Date: Tue, 18 Jun 2024 20:18:13 +0800 Subject: [PATCH] fix 24hr apr tracking --- x/masterchef/keeper/abci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/masterchef/keeper/abci.go b/x/masterchef/keeper/abci.go index a56df6967..e916e21eb 100644 --- a/x/masterchef/keeper/abci.go +++ b/x/masterchef/keeper/abci.go @@ -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 }