PaySwap
العربية
العربية
  • مقدمة PaySwap
    • البدء
      • إنشاء محفظة
      • الحصول على الرموز
      • استخدام PaySwap بدون التبادلات المركزية
      • قم بتوصيل محفظتك بـ PaySwap
      • بيع/شراء الرموز الأصلية
    • انقر هنا للحصول على تعليمات
      • استكشاف الأخطاء وإصلاحها
      • ما هي معاملة الموافقة؟
      • إصلاح المعاملات المعلقة على MetaMask
  • 🐲الطاغوت
    • 👚الملابس والجمال ومستحضرات التجميل ليفياثان
    • 🚰مشروب ليفياثان
    • 🎥الثقافة والترفيه ليفياثان
    • 🔌ليفياثان الطاقة
    • 🥕طعام ليفياثان
    • 😷الرعاية الصحية ليفياثان
    • 🪖القانون والنظام ليفياثان
    • 🪓التعدين ليفياثان
    • 😈NSFW ليفياثان
    • 🏠ليفياثان العقارية
    • 💻البرمجيات والاتصالات وغيرها من الطاغوت
    • 🚌النقل ليفياثان
    • 🏦بنك المال
    • NWO
  • منتجات
    • 🌉ARPs
      • ARPs اليدوية
        • إعداد كشوف المرتبات لشركتك
        • إعداد تونتين
        • بيع الأسهم في الأصول
      • النسبة المئوية لـ ARPs
        • زملاء السكن يدفعون الفواتير معًا
      • ARPs التلقائية
      • سك النقود والمطالبة بالمذكرات
    • 🟪المدققين
      • تدقيق الموارد الطبيعية
      • عمليات تدقيق SSID
      • ترميز العقارات
      • ترميز الممتلكات الشخصية
      • رموز الطبيعة
      • صائدي المكافآت
    • 🔮عقود الرهان
      • الرهانات بدون ترميز أبجدي
      • الرهانات مع ترميز الأبجدية
      • أحداث الرهان الشريك
    • 💧فواتير
      • الضرائب
      • إمساك الدفاتر
      • حسابات بنكية
      • بيع الأسهم في الأصول
    • 🖼️CanCan
      • المنتجات والخدمات
        • قائمة المنتجات/الخدمات
        • شراء المنتجات/الخدمات
          • الشراء باستخدام محفظتك
          • الشراء من خلال سوق الأسهم
          • البيع من خلال سوق الأسهم
          • الشراء من خلال Valuepools/DAOs
      • مقالات
        • قائمة المقالات
        • الكتاب البقشيش
      • نظام حظر الاشتراك غير المدفوع
        • قائمة جدران الدفع
        • إضافة عناصر إلى Paywalls
        • إزالة العناصر من Paywalls
        • الشراكة مع Paywalls
        • شراء اشتراكات Paywall
        • تفعيل اشتراكات Paywall
      • NFTickets
      • الخصومات واسترداد النقود
        • خصومات
        • استرداد النقود
        • المكافآت اليدوية
      • قائمة مجمعات القيمة للشركاء
      • الإعلانات
      • التعليقات
      • التسعير الديناميكي
      • الشراكه
      • العضويات
      • متطلبات الهوية
      • الرعاية
      • المزادات والمزايدات
      • قطرات
      • الأصوات
    • 🧑‍⚖️dRamps
      • إضافة سوق رمزية
      • نشر وإضافة رمز إضافي
      • تفعيل سوق الرمز المميز
      • تحديث الأسعار في سوق الرمز المميز
      • منحدرات تلقائية
        • سك رموز tFIAT
        • حرق رموز tFIAT
      • المنحدرات اليدوية
        • سك رموز tFIAT
        • حرق رموز tFIAT
      • منحدر الراعي
      • بيع/شراء الرموز الأصلية
      • منحدرات فاليوبول
      • الشراكه
      • التمهيد
      • بيع أسواق الرمز المميز
      • استخدم حالات
        • دفع الرسوم الدراسية
        • الدفع مقابل المنتجات/الخدمات
        • التحويلات المالية
        • الفوركس
        • جسر البلوكشين
        • مخزن القيمة
    • 🖼️eCollectibles
      • مينتر الافتراضي
      • عمال سك النقود المخصصون
      • قائمة NFTs المسكوكة مسبقًا
    • 🔄تبادل
      • مقايضات الرمز المميز
      • كيفية التداول
      • الرسوم والطرق
      • مجمعات السيولة
      • كيفية إضافة/إزالة السيولة
      • التعليمات
    • 🧈الضمانات المستقبلية
    • 🎮ألعاب
      • كائنات اللعبة
      • لعبة المنح الدراسية
    • 🎟️اليانصيب
      • كيفية لعب اليانصيب
      • الأسئلة الشائعة عن اليانصيب
      • يانصيب السوق
      • يانصيب FT
      • يانصيب NFT
    • 💳بطاقات الدفع
      • مشتريات السوق
    • 🐞حساب تعريفي
      • بناء الرسم البياني الاجتماعي الخاص بك
      • تحويل اموال
      • تقارير الائتمان
      • الأمن وآخرون
    • 💹تقاسم الإيرادات
      • مسرع
      • الأعمال
      • المساهمين
      • الإحالات
    • 🍯الرعاة
    • 🍏SSI
      • إنشاء البيانات
      • إنشاء SSID
      • إنشاء ملف تعريف فريد
    • 📈StakeMarket
      • شراء منتج مدرج
      • دعوة للمناقصات
      • القروض المضمونة
      • تطبيقات الحصة
      • الدعاوى القضائية
    • 🖥️TrustBounties
      • مكافآت FT
      • مكافآت NFT
      • الموافقات
    • 🌐ValuePools/DAOs
      • سك رمز NFT
      • رعاية Valuepool
      • التسوق مع Valuepool
      • الإقراض والاستثمار مع Valuepool
      • إنشاء اقتراح
    • 👾الوصايا
      • إعداد إرادتك
      • استخدام الوصايا للتخزين
    • 🛍️عوالم
      • عوالم الحبة الحمراء
      • عوالم الحبة الزرقاء
      • عوالم خضراء
  • استخدم حالات
    • CanCan
      • سوق العناصر: Amazon
      • سوق العناصر: الإيجارات
      • سوق المواهب
      • AirBnB
      • ركوب مشيدا
      • تطبيق التوصيل
      • Rent The Runway
      • تطبيق الاشتراك
      • تطبيق المواعدة
      • Friend.tech
      • الصحة عن بعد
      • ريمكسات المنتج
    • Valuepools
      • تطبيق بي ان بي ال
      • تطبيق الاستثمار الجماعي
      • تطبيق التأمين
      • تطبيق التسويق
      • تطبيق التوفير
    • ARPs
      • Budgetting
      • Group Vacation Planning
      • الاستثمار بالوكالة
      • Spend Management
      • Loan Management
      • Rent Management
      • Tipping
      • Play & Earn Loan Management
    • Bills
      • Flexible Loan Management
      • Bill Payment
      • Taxes
      • الاستثمار بالوكالة
    • 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
      • علامة واحدة على
    • StakeMarket
      • قبل المبيعات
      • Construction Contract
      • Collateralized Employment Contract
    • TrustBounty
      • التحوط من التقلبات
  • الحوكمة والاقتصاد الرمزي
  • الثقافة والرؤية
  • خريطة الطريق
  • المطورين
    • Smart Contracts (EVM)
      • PaySwap Exchange
        • v3 contracts
          • PancakeV3Factory
          • SmartRouterV3
            • V3SwapRouter
            • V2SwapRouter
            • StableSwapRouter
          • NonfungiblePositionManager
          • PancakeV3Pool
      • MasterChef
        • MasterChef V3
      • dRamps
        • dRamp Contract
      • Lottery
        • Lottery Contract
  • فريق
  • اتصل بنا
    • دعم العملاء
    • الحسابات الاجتماعية والمجتمعات
Powered by GitBook
On this page

Was this helpful?

  1. المطورين
  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?