Skip to content

Commit

Permalink
nichola feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stackman27 committed Nov 30, 2022
1 parent 03eb8ae commit 5ae2eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/twap/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
}
Expand Down

0 comments on commit 5ae2eaa

Please sign in to comment.