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
  • GetPoolCreationFee
  • SetPoolCreationFee

Was this helpful?

  1. Contracts
  2. Pool

protocol_fee_pool_creation.gno

Previouspool_manager.gnoNextprotocol_fee_withdrawal.gno

Last updated 3 months ago

Was this helpful?

Getter and setter functions for the Pool Creation Fee, the protocol fee charged when creating a new pool. The default value is set to 100 GNS (=100,000,000 uGNS).

GetPoolCreationFee

func GetPoolCreationFee()

Returns the current Pool Creation Fee.

Return Values

Name
Type
Description

poolCreationFee

uint64

The current Pool Creation Fee.

SetPoolCreationFee

func SetPoolCreationFee(
  fee uint64
)

Modifies the Pool Creation Fee.

Parameters

Name
Type
Description

fee

uint64

The amount of tokens that will be set as the new Pool Creation Fee. (the amount should be in uTokens)

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