GnoSwap Docs
  • Welcome
  • Why GnoSwap?
  • Disclaimer
    • General Disclaimer
    • Risk and Security
  • User Guide
    • Getting Started
      • Create an Account
        • Adena Wallet
        • Social Login
      • Connect to GnoSwap
      • Quick Tour
    • Trading
      • Swap Tokens
      • Swap With Details
    • Providing Liquidity
      • Create a Pool
      • Create a Position
      • Remove a Position
      • Reposition
      • Increase Liquidity
      • Decrease Liquidity
    • Staking
      • Stake Positions
      • Claim Rewards
      • Unstake Positions
      • Add Incentives
    • Launchpad
      • Participate in Launches
    • Governance
      • Delegate
      • Undelegate
      • Create a Proposal
      • Vote
  • core concepts
    • AMM
      • Constant Product Market Maker
      • Problem: Lazy Liquidity
      • Concentrated Liquidity
    • Positions
    • Liquidity Mining
    • Fees
    • Governance
    • Launchpad
  • GnoSwap Token
    • What's GNS?
    • Genesis Supply
    • Emission
    • Release Schedule
    • xGNS
  • Contracts
    • Overview
    • Errors
      • Pool
      • Position
      • Router
      • Staker
      • Governance
      • Launchpad
    • Pool
      • pool.gno
      • pool_manager.gno
      • protocol_fee_pool_creation.gno
      • protocol_fee_withdrawal.gno
    • Position
      • position.gno
    • Router
      • exact_in.gno
      • exact_out.gno
      • protocol_fee_swap.gno
    • Staker
      • staker.gno
      • mint_stake.gno
      • protocol_fee_unstaking.gno
      • external_deposit_fee.gno
    • Governance
      • staker.gno
      • proposal.gno
      • vote.gno
      • execute.gno
    • Launchpad
      • launchpad.gno
      • deposit.gno
      • reward.gno
  • References
    • Onboarding Guide
    • Warm-up Periods
    • Leaderboard
    • VWAP
    • FAQ
  • urls
    • GitHub
    • X (Twitter)
    • Discord
    • Medium
Powered by GitBook
On this page

Was this helpful?

  1. Contracts
  2. Pool

pool_manager.gno

Previouspool.gnoNextprotocol_fee_pool_creation.gno

Last updated 3 months ago

Was this helpful?

Creates and examines pools.

CreatePool

func CreatePool(
	token0Path string,
	token1Path string,
	fee uint32,
	sqrtPriceX96 string,
)

Creates a liquidity pool.

Parameters

Name
Type
Description

token0Path

string

The path of the token0 of the pool to create.

token1Path

string

The path of the token1 of the pool to create.

fee

uint32

The fee tier of the pool. - 100 = 0.01% - 500 = 0.05% - 3000 = 0.3% - 10000 = 1%

sqrtPriceX96

string

The starting price of the pool.

gnoswap/contract/r/gnoswap/pool/pool_manager.gno at main · gnoswap-labs/gnoswapGitHub
Logo