PaySwap
Deutsch
Deutsch
  • PaySwap-Einführung
    • Loslegen
      • Erstellen Sie eine Brieftasche
      • Holen Sie sich Token
      • Verwendung von PaySwap ohne zentralisierte Börsen
      • Verbinden Sie Ihr Wallet mit PaySwap
      • Native Token verkaufen/kaufen
    • Klicken Sie hier für Hilfe
      • Fehlerbehebung
      • Was ist eine Genehmigungstransaktion?
      • Behebung hängengebliebener ausstehender Transaktionen auf MetaMask
  • 🐲Leviathane
    • 👚Bekleidung, Schönheit und Kosmetik Leviathan
    • 🚰Getränke-Leviathan
    • 🎥Kultur und Unterhaltung Leviathan
    • 🔌Energie-Leviathan
    • 🥕Lebensmittel-Leviathan
    • 😷Gesundheits-Leviathan
    • 🪖Law & Order Leviathan
    • 🪓Bergbau-Leviathan
    • 😈NSFW Leviathan
    • 🏠Immobilien-Leviathan
    • 💻Software, Telekommunikation und andere Leviathan
    • 🚌Transport-Leviathan
    • 🏦Die Geldbank
    • NWO
  • Produkte
    • 🌉ARPs
      • Manuelle ARPs
        • Einrichten der Gehaltsabrechnung Ihres Unternehmens
        • Eine Tontine aufbauen
        • Verkauf von Anteilen an einem Vermögenswert
      • Prozentbasierte ARPs
        • Mitbewohner bezahlen gemeinsam Rechnungen
      • Automatische ARPs
      • Präge- und Anspruchsscheine
    • 🟪Wirtschaftsprüfer
      • Audits natürlicher Ressourcen
      • SSID-Prüfungen
      • Tokenisierung von Immobilien
      • Persönliche Besitztümer symbolisieren
      • Natur-Token
      • Kopfgeldjäger
    • 🔮Wettverträge
      • Wetten ohne Alphabet-Kodierung
      • Wetten mit Alphabet-Kodierung
      • Partner-Wettveranstaltungen
    • 💧Bills
      • Steuern
      • Buchhaltung
      • Bankkonten
      • Verkauf von Anteilen an einem Vermögenswert
    • 🖼️CanCan
      • Produkte
        • Auflisten von Produkten/Dienstleistungen
        • Kauf von Produkten/Dienstleistungen
          • Kaufen mit Ihrem Geldbeutel
          • Kauf über den Stake-Markt
          • Verkauf über den Stake-Markt
          • Kauf über Valuepools/DAOs
      • Artikel
        • Auflisten von Artikeln
        • Trinkgeld für Autoren
      • Paywalls
        • Paywalls auflisten
        • Elemente zu Paywalls hinzufügen
        • Elemente aus Paywalls entfernen
        • Partnerschaft mit Paywalls
        • Kauf von Paywall-Abonnements
        • Paywall-Abonnements aktivieren
      • NFTickets
      • Rabatte und Cashbacks
        • Rabatte
        • Cashbacks
        • Manuelle Belohnungen
      • Partner-Valuepools auflisten
      • Ankündigungen
      • Rezensionen
      • Dynamische Preisgestaltung
      • Partnerschaften
      • Mitgliedschaften
      • Identitätsanforderungen
      • Patenschaften
      • Auktionen und Gebote
      • Tropfen
      • Stimmen
    • 🧑‍⚖️dRamps
      • Hinzufügen eines Token-Marktes
      • Bereitstellen und Hinzufügen eines zusätzlichen Tokens
      • Aktivierung eines Token-Marktes
      • Aktualisieren Sie die Preise auf einem Token-Markt
      • Automatische dRamps
        • Prägen von tFIAT-Tokens
        • Brennen von tFIAT-Tokens
      • Manuelle dRamps
        • Prägen von tFIAT-Tokens
        • Brennen von tFIAT-Tokens
      • Sponsern Sie dRamp
      • Native Token verkaufen/kaufen
      • dRamps Valuepool
      • Partnerschaften
      • Bootstrapping
      • Verkauf von Token-Märkten
      • Anwendungsfälle
        • Studiengebühren bezahlen
        • Bezahlen für Produkte/Dienstleistungen
        • Überweisungen
        • Forex
        • Blockchain-Brücke
        • Wertaufbewahrungsmittel
    • 🖼️eCollectibles
      • Der Standard-Minter
      • Kundenspezifische Minter
      • Auflistung vorgeprägter NFTs
    • 🔄Austausch
      • Token-Swaps
      • Wie man handelt
      • Gebühren und Routen
      • Liquiditätspools
      • So fügen Sie Liquidität hinzu bzw. entfernen sie
      • FAQ
    • 🧈Zukünftige Sicherheiten
    • 🎮Spiele
      • Spielobjekte
      • Spielestipendien
    • 🎟️Lotterie
      • Wie man Lotterie spielt
      • Lotterie-FAQ
      • Marktplatz-Lotterie
      • FT-Lotterie
      • NFT-Lotterie
    • 💳PayCards
      • Marketplace-Käufe
    • 🐞Profil
      • Erstellen Sie Ihr soziales Diagramm
      • Geld überweisen
      • Kreditauskünfte
      • Sicherheit und andere
    • 💹Aufteilung der Einnahmen
      • Beschleuniger
      • Unternehmen
      • Mitwirkende
      • Empfehlungen
    • 🍯Sponsoren
    • 🍏SSI
      • Daten erstellen
      • Erstellen einer SSID
      • Erstellen eines einzigartigen Profils
    • 📈StakeMarket
      • Kauf eines gelisteten Produkts
      • Ausschreibung
      • Besicherte Kredite
      • Pfahlanträge
      • Rechtsstreitigkeiten
    • 🖥️TrustBounties
      • FT Bounties
      • NFT Bounties
      • Zulassungen
    • 🌐ValuePools/DAOs
      • Ein NFT-Token prägen
      • Sponsoring eines Valuepools
      • Einkaufen mit einem Valuepool
      • Kredite vergeben und investieren mit einem Valuepool
      • Einen Vorschlag erstellen
    • 👾Testamente
      • Erstellen Sie Ihr Testament
      • Verwendung von Testamenten zur Aufbewahrung
    • 🛍️Welten
      • Rote Pillenwelten
      • Blaue Pillenwelten
      • Grüne Welten
  • Anwendungsfälle
    • CanCan
      • Artikel-Marktplatz: Amazon
      • Artikel-Marktplatz: Vermietung
      • Talent-Marktplatz
      • AirBnB
      • Ride Hagel
      • Liefer-App
      • Rent The Runway
      • Abonnement-App
      • Dating-App
      • Friend.tech
      • TeleHealth
      • Produkt-Remixe
    • Valuepools
      • BNPL-App
      • Gruppeninvestitions-App
      • Versicherungs-App
      • Marketing-App
      • Spar-App
    • ARPs
      • Budgetting
      • Group Vacation Planning
      • Proxy-Investition
      • Spend Management
      • Loan Management
      • Rent Management
      • Tipping
      • Play & Earn Loan Management
    • Bills
      • Flexible Loan Management
      • Bill Payment
      • Taxes
      • Proxy-Investition
    • 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
      • Einmalige Anmeldung
    • StakeMarket
      • Vorverkauf
      • Construction Contract
      • Collateralized Employment Contract
    • TrustBounty
      • Volatilitätsabsicherung
  • Governance & Tokenomics
  • Kultur & Vision
  • RoadMap
  • Entwickler
    • Smart Contracts (EVM)
      • PaySwap Exchange
        • v3 contracts
          • PancakeV3Factory
          • SmartRouterV3
            • V3SwapRouter
            • V2SwapRouter
            • StableSwapRouter
          • NonfungiblePositionManager
          • PancakeV3Pool
      • MasterChef
        • MasterChef V3
      • dRamps
        • dRamp Contract
      • Lottery
        • Lottery Contract
  • Team
  • Kontaktiere uns
    • Kundendienst
    • Soziale Konten und Communities
Powered by GitBook
On this page

Was this helpful?

  1. Entwickler
  2. Smart Contracts (EVM)
  3. PaySwap Exchange
  4. v3 contracts
  5. SmartRouterV3

V3SwapRouter

Router for stateless execution of swaps against PancakeSwap V3

Solidity API

SwapCallbackData

struct SwapCallbackData {
  bytes path;
  address payer;
}

pancakeV3SwapCallback

function pancakeV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes _data) external

Called to msg.sender after executing a swap via IPancakeV3Pool#swap.

In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a PancakeV3Pool deployed by the canonical PancakeV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.

Parameters

Name
Type
Description

amount0Delta

int256

The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.

amount1Delta

int256

The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.

_data

bytes

exactInputSingle

function exactInputSingle(struct IV3SwapRouter.ExactInputSingleParams params) external payable returns (uint256 amountOut)

Swaps amountIn of one token for as much as possible of another token

Setting amountIn to 0 will cause the contract to look up its own balance, and swap the entire amount, enabling contracts to send tokens before calling this function.

Parameters

Name
Type
Description

params

struct IV3SwapRouter.ExactInputSingleParams

The parameters necessary for the swap, encoded as ExactInputSingleParams in calldata

Return Values

Name
Type
Description

amountOut

uint256

The amount of the received token

exactInput

function exactInput(struct IV3SwapRouter.ExactInputParams params) external payable returns (uint256 amountOut)

Swaps amountIn of one token for as much as possible of another along the specified path

Setting amountIn to 0 will cause the contract to look up its own balance, and swap the entire amount, enabling contracts to send tokens before calling this function.

Parameters

Name
Type
Description

params

struct IV3SwapRouter.ExactInputParams

The parameters necessary for the multi-hop swap, encoded as ExactInputParams in calldata

Return Values

Name
Type
Description

amountOut

uint256

The amount of the received token

exactOutputSingle

function exactOutputSingle(struct IV3SwapRouter.ExactOutputSingleParams params) external payable returns (uint256 amountIn)

Swaps as little as possible of one token for amountOut of another token that may remain in the router after the swap.

Parameters

Name
Type
Description

params

struct IV3SwapRouter.ExactOutputSingleParams

The parameters necessary for the swap, encoded as ExactOutputSingleParams in calldata

Return Values

Name
Type
Description

amountIn

uint256

The amount of the input token

exactOutput

function exactOutput(struct IV3SwapRouter.ExactOutputParams params) external payable returns (uint256 amountIn)

Swaps as little as possible of one token for amountOut of another along the specified path (reversed) that may remain in the router after the swap.

Parameters

Name
Type
Description

params

struct IV3SwapRouter.ExactOutputParams

The parameters necessary for the multi-hop swap, encoded as ExactOutputParams in calldata

Return Values

Name
Type
Description

amountIn

uint256

The amount of the input token

PreviousSmartRouterV3NextV2SwapRouter

Last updated 1 year ago

Was this helpful?