From 5ae2eaa751a1a6c42c494cd6d05c44491ca435b3 Mon Sep 17 00:00:00 2001 From: stackman27 Date: Wed, 30 Nov 2022 14:49:50 -0800 Subject: [PATCH] nichola feedback --- x/twap/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/twap/api.go b/x/twap/api.go index 05b07874502..0fb3b7d87c5 100644 --- a/x/twap/api.go +++ b/x/twap/api.go @@ -84,7 +84,7 @@ func (k Keeper) getTwap( return sdk.Dec{}, types.StartTimeAfterEndTimeError{StartTime: startTime, EndTime: endTime} } if endTime.Equal(ctx.BlockTime()) { - return k.getTwapToNow(ctx, poolId, baseAssetDenom, quoteAssetDenom, startTime, strategy) + return strategy.getTwapToNow(ctx, poolId, baseAssetDenom, quoteAssetDenom, startTime) } else if endTime.After(ctx.BlockTime()) { return sdk.Dec{}, types.EndTimeInFutureError{EndTime: endTime, BlockTime: ctx.BlockTime()} }