Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion loadtest/uniswapv3/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func createPool(ctx context.Context, c *ethclient.Client, tops *bind.TransactOpt
return contract, nil
}

// computeSqrtPriceX96 calcules the square root of the price ratio of two reserves in a UniswapV3 pool.
// computeSqrtPriceX96 calculates the square root of the price ratio of two reserves in a UniswapV3 pool.
// https://uniswapv3book.com/docs/milestone_1/calculating-liquidity/#price-range-calculation
func computeSqrtPriceX96(reserveA, reserveB *big.Int) *big.Int {
sqrtReserveA := new(big.Int).Sqrt(reserveA)
Expand Down