Skip to content

Commit

Permalink
add key sep to end
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Feb 16, 2024
1 parent c73b96c commit e2fd17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/twap/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func FormatMostRecentTWAPKey(poolId uint64, denom1, denom2 string) []byte {

func FormatHistoricalPoolIndexDenomPairTWAPKey(poolId uint64, denom1, denom2 string) []byte {
var buffer bytes.Buffer
fmt.Fprintf(&buffer, "%s%d%s%s%s%s", HistoricalTWAPPoolIndexPrefix, poolId, KeySeparator, denom1, KeySeparator, denom2)
fmt.Fprintf(&buffer, "%s%d%s%s%s%s%s", HistoricalTWAPPoolIndexPrefix, poolId, KeySeparator, denom1, KeySeparator, denom2, KeySeparator)
return buffer.Bytes()
}

Expand Down

0 comments on commit e2fd17e

Please sign in to comment.