PaySwap
Türkçe
Türkçe
  • PaySwap'e Giriş
    • Başlamak
      • Cüzdan Oluştur
      • Jetonları Alın
      • PaySwap'i Merkezi Borsalar Olmadan Kullanmak
      • Cüzdanınızı PaySwap'e bağlayın
      • Yerel Tokenları Sat/Satın Al
    • Yardım için buraya tıklayın
      • Hataları Giderme
      • Onay İşlemi Nedir?
      • MetaMask'ta Takılan Bekleyen İşlemleri Düzeltme
  • 🐲Leviathan'lar
    • 👚Apparel, Beauty & Cosmetics Leviathan
    • 🚰Beverage Leviathan
    • 🎥Culture & Entertainment Leviathan
    • 🔌Energy Leviathan
    • 🥕Food Leviathan
    • 😷Healthcare Leviathan
    • 🪖Law & Order Leviathan
    • 🪓Mining Leviathan
    • 😈NSFW Leviathan
    • 🏠Real Estate Leviathan
    • 💻Software, Telco & Other Leviathan
    • 🚌Transportation Leviathan
    • 🏦The Money Bank
    • NWO
  • Ürünler
    • 🌉ARPs
      • Manuel ARP'ler
        • Şirketinizin Bordrosunu Ayarlama
        • Tontin Kurulumu
        • Bir Varlıktaki Hisselerin Satılması
      • Yüzdeye Dayalı ARP'ler
        • Oda Arkadaşları Faturaları Birlikte Ödüyor
      • Otomatik ARP'ler
      • Basım ve Talep Notları
    • 🟪Denetçiler
      • Doğal Kaynak Denetimleri
      • SSID Denetimleri
      • Gayrimenkulün Tokenleştirilmesi
      • Kişisel Eşyaların Tokenleştirilmesi
      • Doğa Jetonları
      • Kelle avcıları
    • 🔮Bahis Sözleşmeleri
      • Alfabe kodlaması olmayan bahisler
      • Alfabe kodlamalı bahisler
      • Ortak Bahis Etkinlikleri
    • 💧Faturalar
      • Vergiler
      • Defter tutma
      • Banka hesabı
      • Bir Varlıktaki Hisselerin Satılması
    • 🖼️CanCan
      • Ürünler
        • Ürün/Hizmetlerin Listelenmesi
        • Ürün/Hizmet Satın Alma
          • Cüzdanınızla Satın Alma
          • StakeMarket Aracılığıyla Satın Alma
          • StakeMarket Aracılığıyla Satış
          • Değer Havuzları/DAO'lar Yoluyla Satın Alma
      • Nesne
        • Makaleleri Listeleme
        • Bahşiş Yazarları
      • Ödeme duvarları
        • Ödeme Duvarlarını Listeleme
        • Ödeme Duvarlarına Öğe Ekleme
        • Ödeme Duvarlarından Öğeleri Kaldırma
        • Ödeme Duvarlarıyla Ortaklık
        • Paywall Abonelikleri Satın Alma
        • Ödeme Duvarı Aboneliklerini Etkinleştirme
      • NFTickets
      • İndirimler ve Para İadeleri
        • İndirimler
        • Para iadesi
        • Manuel Ödüller
      • İş Ortağını Listele Valuepools
      • Duyurular
      • Yorumlar
      • Dinamik ücretlendirme
      • ortaklıklar
      • Üyelikler
      • Kimlik Gereksinimleri
      • Sponsorluklar
      • Açık Artırmalar ve Teklifler
      • Damla
      • Oylar
    • 🧑‍⚖️dRamps
      • Token Piyasası Ekleme
      • Ekstra Token Dağıtma ve Ekleme
      • Token Piyasasını Etkinleştirme
      • Token Piyasasında Fiyatları Güncelleyin
      • Otomatik dRamp'lar
        • tFIAT Tokenlarının Basılması
        • tFIAT Tokenlarının Yakılması
      • Manuel dRamp'lar
        • tFIAT Tokenlarının Basılması
        • tFIAT Tokenlarının Yakılması
      • Sponsor dRamp
      • Yerel Tokenları Sat/Satın Al
      • dRamp Değer Havuzu
      • ortaklıklar
      • Önyükleme
      • Token Piyasaları Satışı
      • Kullanım Durumları
        • Öğrenim Ücretini Ödemek
        • Ürünler/Hizmetler İçin Ödeme Yapmak
        • Havaleler
        • Forex
        • Blockchain Köprüsü
        • Değer deposu
    • 🖼️eCollectibles
      • Varsayılan Minter
      • Özel Darphaneler
      • Önceden Basılmış NFT'lerin Listelenmesi
    • 🔄Değişme
      • Jeton Takasları
      • Nasıl ticaret yapılır
      • Ücretler ve Rotalar
      • Likidite Havuzları
      • Likidite Nasıl Eklenir/Kaldırılır
      • SSS
    • 🧈Gelecek Teminatları
    • 🎮Oyunlar
      • Oyun Nesneleri
      • Oyun Bursları
    • 🎟️Piyango
      • Piyango Nasıl Oynanır
      • Piyango SSS
      • Pazaryeri Piyango
      • FT Piyango
      • NFT Piyango
    • 💳Ödeme Kartları
      • Pazar Yeri Alımları
    • 🐞Profil
      • Sosyal Grafiğinizi Oluşturmak
      • Para Transferi
      • Kredi Raporları
      • Güvenlik ve Diğerleri
    • 💹Gelir paylaşımı
      • Gaz pedalı
      • İşletmeler
      • Katkıda Bulunanlar
      • Tavsiyeler
    • 🍯Sponsorlar
    • 🍏SSI
      • Veri Oluşturma
      • SSID Oluşturma
      • Benzersiz Bir Profil Oluşturma
    • 📈StakeMarket
      • Listelenen Bir Ürünü Satın Alma
      • İhale Çağrısı
      • Teminatlı Krediler
      • Bahis Uygulamaları
      • davalar
    • 🖥️TrustBounties
      • FT Ödüller
      • NFT Ödüller
      • Onaylar
    • 🌐ValuePools/DAOs
      • NFT Tokenı Basmak
      • Bir Valuepool'e sponsor olmak
      • Bir Valuepool ile Alışveriş
      • A Valuepool ile Borç Verme ve Yatırım Yapma
      • Teklif Oluşturma
    • 👾Vasiyetler
      • İradenizi Ayarlamak
      • Depolama İçin Vasiyetnamelerin Kullanılması
    • 🛍️Dünyalar
      • Kırmızı Hap Dünyaları
      • Mavi Hap Dünyaları
      • Yeşil Dünyalar
  • Kullanım Durumları
    • CanCan
      • Öğe Pazar Yeri: Amazon
      • Öğe Pazar Yeri: Kiralama
      • Yetenek Pazarı
      • AirBnB
      • Selamlama yolculuğu
      • Teslimat Uygulaması
      • Rent The Runway
      • Abonelik Uygulaması
      • Flört Uygulaması
      • Friend.tech
      • TeleSağlık
      • Ürün Remiksleri
    • Valuepools
      • BNPL Uygulaması
      • Grup Yatırım Uygulaması
      • Sigorta Uygulaması
      • Pazarlama Uygulaması
      • Tasarruf Uygulaması
    • ARPs
      • Budgetting
      • Group Vacation Planning
      • Vekalet Yatırımı
      • Spend Management
      • Loan Management
      • Rent Management
      • Tipping
      • Play & Earn Loan Management
    • Bills
      • Flexible Loan Management
      • Bill Payment
      • Taxes
      • Vekalet Yatırımı
    • 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
      • Tek seferlik
    • StakeMarket
      • Ön satış
      • Construction Contract
      • Collateralized Employment Contract
    • TrustBounty
      • Volatilite Riskinden Korunma
  • Yönetişim ve Tokenomik
  • Kültür ve Vizyon
  • Yol Haritası
  • Geliştiriciler
    • Smart Contracts (EVM)
      • PaySwap Exchange
        • v3 contracts
          • PancakeV3Factory
          • SmartRouterV3
            • V3SwapRouter
            • V2SwapRouter
            • StableSwapRouter
          • NonfungiblePositionManager
          • PancakeV3Pool
      • MasterChef
        • MasterChef V3
      • dRamps
        • dRamp Contract
      • Lottery
        • Lottery Contract
  • Takım
  • Bize Ulaşın
    • Müşteri desteği
    • Sosyal Hesaplar ve Topluluklar
Powered by GitBook
On this page

Was this helpful?

  1. Geliştiriciler
  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?