Skip to content

Commit

Permalink
last comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stackman27 committed Nov 28, 2022
1 parent bcad2b2 commit 515b583
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions x/twap/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ func (k Keeper) GetArithmeticTwapToNow(

// GetBeginBlockAccumulatorRecord returns a TwapRecord struct corresponding to the state of pool `poolId`
// and given assets as of the beginning of the block this is called on.
// This uses the state of the beginning of the block, as if there were swaps since the block has started,
// these swaps have had no time to be arbitraged back.
// This accumulator can be stored, to compute wider ranged twaps.
func (k Keeper) GetBeginBlockAccumulatorRecord(ctx sdk.Context, poolId uint64, asset0Denom string, asset1Denom string) (types.TwapRecord, error) {
return k.getMostRecentRecord(ctx, poolId, asset0Denom, asset1Denom)
}
Expand Down

0 comments on commit 515b583

Please sign in to comment.