PaySwap
Español
Español
  • Introducción a PaySwap
    • Empezar
      • Crear una billetera
      • Obtener fichas
      • Usando PaySwap sin intercambios centralizados
      • Conecte su billetera a PaySwap
      • Vender/comprar tokens nativos
    • Haga clic aquí para obtener ayuda
      • Solución de errores
      • ¿Qué es una transacción de aprobación?
      • Arreglando transacciones pendientes atascadas en MetaMask
  • 🐲Leviatanes
    • 👚Ropa, Belleza y Cosméticos Leviatán
    • 🚰Bebida Leviatán
    • 🎥Cultura y entretenimiento Leviatán
    • 🔌Leviatán energético
    • 🥕Comida Leviatán
    • 😷Leviatán Sanitario
    • 🪖Ley y orden Leviatán
    • 🪓Leviatán minero
    • 😈Leviatán NSFW
    • 🏠Leviatán inmobiliario
    • 💻Software, telecomunicaciones y otros Leviatán
    • 🚌Transporte Leviatán
    • 🏦El banco de dinero
    • NWO
  • Productos
    • 🌉ARPs
      • ARP Manuales
        • Configurar la nómina de su empresa
        • Configurar una tontina
        • Vender acciones de un activo
      • ARP basados ​​en porcentajes
        • Compañeros de cuarto que pagan facturas juntos
      • ARP Automáticos
      • Notas de acuñación y reclamación
    • 🟪Auditores
      • Auditorías de recursos naturales
      • Auditorías SSID
      • Tokenización de bienes raíces
      • Tokenización de posesiones personales
      • Fichas de naturaleza
      • Caza Recompensas
    • 🔮Contratos de apuestas
      • Apuestas sin codificación alfabética
      • Apuestas con codificación alfabética
      • Eventos de apuestas de socios
    • 💧Facturas
      • Impuestos
      • Teneduría de libros
      • Cuentas bancarias
      • Vender acciones de un activo
    • 🖼️CanCan
      • Productos y servicios
        • Listado de productos/servicios
        • Compra de productos/servicios
          • Comprar con tu billetera
          • Comprar a través de StakeMarket
          • Vender a través de StakeMarket
          • Comprar a través de Valuepools/DAO
      • Artículos
        • Listado de Artículos
        • Escritores de propinas
      • Muros de pago
        • Listado de muros de pago
        • Agregar elementos a los muros de pago
        • Eliminar elementos de los muros de pago
        • Asociarse con muros de pago
        • Comprar suscripciones de Paywall
        • Activación de suscripciones de Paywall
      • NFTickets
      • Descuentos y reembolsos
        • Descuentos
        • Reembolsos
        • Recompensas manuales
      • Listar grupos de valor de socios
      • Anuncios
      • Reseñas
      • Precio dinamico
      • Asociaciones
      • Membresías
      • Requisitos de identidad
      • Patrocinios
      • Subastas y ofertas
      • Gotas
      • Votos
    • 🧑‍⚖️dRamps
      • Agregar un mercado de tokens
      • Implementar y agregar un token adicional
      • Activando un mercado de tokens
      • Actualizar precios en un mercado de tokens
      • Rampas automáticas
        • Acuñación de tokens tFIAT
        • Quemando tokens tFIAT
      • Rampas Manuales
        • Acuñación de tokens tFIAT
        • Quemando tokens tFIAT
      • Patrocinador rampa
      • dRamp Valuepool
      • Vender/comprar tokens nativos
      • Asociaciones
      • Arranque
      • Vender mercados de tokens
      • Casos de uso
        • Pagar la matrícula
        • Pagar por productos/servicios
        • Remesas
        • Forex
        • Puente de cadena de bloques
        • Depósito de valor
    • 🖼️eCollectibles
      • La minter predeterminada
      • Mineros personalizados
      • Listado de NFT pre-acuñados
    • 🔄Intercambio
      • Intercambios de tokens
      • Cómo negociar
      • Tarifas y rutas
      • Fondos de liquidez
      • Cómo agregar/eliminar liquidez
      • Preguntas más frecuentes
    • 🧈Garantías futuras
    • 🎮Juegos
      • Objetos del juego
      • Becas de juegos
    • 🎟️Lotería
      • Cómo jugar a la lotería
      • Preguntas frecuentes sobre lotería
      • Lotería del mercado
      • FT Lotería
      • NFT Lotería
    • 💳Tarjetas de pago
      • Compras en el mercado
    • 🐞Perfil
      • Construyendo su gráfico social
      • Transferir dinero
      • Informes de crédito
      • Seguridad y otros
    • 💹Participación en los ingresos
      • Acelerador
      • Empresas
      • Colaboradores
      • Referencias
    • 🍯Patrocinadores
    • 🍏SSI
      • Creando datos
      • Creando un SSID
      • Creando un perfil único
    • 📈StakeMarket
      • Comprar un producto listado
      • Llamar a licitación
      • Préstamos garantizados
      • Aplicaciones de estaca
      • Litigios
    • 🖥️TrustBounties
      • FT Bounties
      • NFT Bounties
      • Aprobaciones
    • 🌐ValuePools/DAOs
      • Acuñar un token NFT
      • Patrocinando un Valuepool
      • Compras con un Valuepool
      • Préstamos e inversiones con Valuepool
      • Crear una propuesta
    • 👾Testamentos
      • Configurando tu testamento
      • Uso de testamentos para almacenamiento
    • 🛍️Mundos
      • Mundos de la píldora roja
      • Mundos de la píldora azul
      • Mundos verdes
  • Casos de uso
    • CanCan
      • Mercado de artículos: Amazon
      • Mercado de artículos: alquileres
      • Mercado de talentos
      • AirBnB
      • Paseo granizando
      • Aplicación de entrega
      • Rent The Runway
      • Aplicación de suscripción
      • Aplicación de citas
      • Friend.tech
      • Telesalud
      • Remezclas de productos
    • Valuepools
      • Aplicación BNPL
      • Aplicación de inversión grupal
      • Aplicación de seguro
      • Aplicación de marketing
      • Aplicación de ahorro
    • ARPs
      • Budgetting
      • Group Vacation Planning
      • Inversión proxy
      • Spend Management
      • Loan Management
      • Rent Management
      • Tipping
      • Play & Earn Loan Management
    • Bills
      • Flexible Loan Management
      • Bill Payment
      • Taxes
      • Inversión proxy
    • Auditors
      • Address Verification
      • Identity Verification
      • Luxury Item Authentication
      • Awards & Trophees
      • Credit Wothiness
    • Games
      • Play To Earn For Your Game
      • Play To Earn For Tripe A Game
      • Betting
    • Betting
      • Stock Market
      • Sports
      • General
      • Companies
      • Swaps
    • Lottery
      • Data Collection
      • Sale Incentive
    • SSI
      • Supply Chain
      • Medical Records
      • Zero Knowledge Proofs
      • Background Checks
      • Inicio de sesión único
    • StakeMarket
      • Pre ventas
      • Construction Contract
      • Collateralized Employment Contract
    • TrustBounty
      • Cobertura de volatilidad
  • Gobernanza y tokenomía
  • Cultura y Visión
  • Mapa vial
  • Desarrolladores
    • Smart Contracts (EVM)
      • PaySwap Exchange
        • v3 contracts
          • PancakeV3Factory
          • SmartRouterV3
            • V3SwapRouter
            • V2SwapRouter
            • StableSwapRouter
          • NonfungiblePositionManager
          • PancakeV3Pool
      • MasterChef
        • MasterChef V3
      • dRamps
        • dRamp Contract
      • Lottery
        • Lottery Contract
  • Equipo
  • Contacta con nosotros
    • Atención al cliente
    • Cuentas sociales y comunidades
Powered by GitBook
On this page
  • Contract info
  • Solidity API
  • PancakeV3Factory

Was this helpful?

  1. Desarrolladores
  2. Smart Contracts (EVM)
  3. PaySwap Exchange
  4. v3 contracts

PancakeV3Factory

Deploys PancakeSwap V3 pools and manages ownership and control over pool protocol fees

Previousv3 contractsNextSmartRouterV3

Last updated 1 year ago

Was this helpful?

Contract info

Contract name: PancakeFactory

Solidity API

PancakeV3Factory

Deploys PancakeSwap V3 pools and manages ownership and control over pool protocol fees

owner

address owner

Returns the current owner of the factory

Can be changed by the current owner via setOwner

Return Values

poolDeployer

address poolDeployer

Returns the current pool deployer

feeAmountTickSpacing

mapping(uint24 => int24) feeAmountTickSpacing

Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled

A fee amount can never be removed, so this value should be hard coded or cached in the calling context

Parameters

Return Values

getPool

mapping(address => mapping(address => mapping(uint24 => address))) getPool

Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist

tokenA and tokenB may be passed in either token0/token1 or token1/token0 order

Parameters

Return Values

feeAmountTickSpacingExtraInfo

mapping(uint24 => struct IPancakeV3Factory.TickSpacingExtraInfo) feeAmountTickSpacingExtraInfo

Returns the tick spacing extra info

A fee amount can never be removed, so this value should be hard coded or cached in the calling context

Parameters

Return Values

constructor

constructor(address _poolDeployer) public

createPool

function createPool(address tokenA, address tokenB, uint24 fee) external returns (address pool)

Creates a pool for the given two tokens and fee

tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments are invalid.

Parameters

Name
Type
Description

tokenA

address

One of the two tokens in the desired pool

tokenB

address

The other of the two tokens in the desired pool

fee

uint24

The desired fee for the pool

Return Values

Name
Type
Description

pool

address

The address of the newly created pool

setOwner

function setOwner(address _owner) external

Updates the owner of the factory

Must be called by the current owner

Parameters

Name
Type
Description

_owner

address

The new owner of the factory

enableFeeAmount

function enableFeeAmount(uint24 fee, int24 tickSpacing) public

Enables a fee amount with the given tickSpacing

Fee amounts may never be removed once enabled

Parameters

Name
Type
Description

fee

uint24

The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)

tickSpacing

int24

The spacing between ticks to be enforced for all pools created with the given fee amount

setWhiteListAddress

function setWhiteListAddress(address user, bool verified) public

Set an address into white list

Address can be updated by owner with boolean value false

Parameters

Name
Type
Description

user

address

The user address that add into white list

verified

bool

setFeeAmountExtraInfo

function setFeeAmountExtraInfo(uint24 fee, bool whitelistRequested, bool enabled) public

Set a fee amount extra info

Fee amounts can be updated by owner with extra info

Parameters

Name
Type
Description

fee

uint24

whitelistRequested

bool

The flag whether should be created by owner only

enabled

bool

The flag is the fee is enabled or not

Contract address