PaySwap
日本語
日本語
  • ペイスワップの紹介
    • 始めましょう
      • ウォレットを作成する
      • トークンを取得する
      • 集中型取引所を使用しない PaySwap の使用
      • ウォレットを PaySwap に接続する
      • ネイティブトークンの販売/購入
    • ヘルプについてはここをクリックしてください
      • エラーのトラブルシューティング
      • 承認トランザクションとは何ですか?
      • MetaMask でスタックした保留中のトランザクションを修正する
  • 🐲リヴァイアサン
    • 👚アパレル・美容・化粧品 リヴァイアサン
    • 🚰飲み物リヴァイアサン
    • 🎥文化とエンターテイメント リヴァイアサン
    • 🔌エネルギーリヴァイアサン
    • 🥕食品リヴァイアサン
    • 😷ヘルスケア リヴァイアサン
    • 🪖法と秩序のリヴァイアサン
    • 🪓リヴァイアサンの採掘
    • 😈NSFW リヴァイアサン
    • 🏠不動産リヴァイアサン
    • 💻ソフトウェア、通信会社、その他の Leviathan
    • 🚌交通機関 リヴァイアサン
    • 🏦マネーバンク
    • NWO
  • 製品
    • 🌉ARPs
      • 手動ARP
        • 会社の給与計算の設定
        • トンチンの準備
        • 資産の株式を売却する
      • パーセンテージベースのARP
        • 一緒に請求書を支払うルームメイト
      • 自動ARP
      • メモの鋳造と請求
    • 🟪監査役
      • 天然資源の監査
      • SSID監査
      • 不動産のトークン化
      • 個人所有物のトークン化
      • 自然トークン
      • バウンティハンター
    • 🔮賭博契約
      • アルファベットエンコーディングを使用しないベット
      • アルファベットエンコーディングによるベット
      • パートナーベッティングイベント
    • 💧請求書
      • 税金
      • 簿記
      • 銀行口座
      • 資産の株式を売却する
    • 🖼️CanCan
      • 製品とサービス
        • 製品/サービスのリスト
        • 製品/サービスの購入
          • お財布で買う
          • 株式市場を通じて購入する
          • ステーク市場を通じて販売する
          • バリュープール/DAO を介した購入
      • 記事
        • 記事の一覧表示
        • 投げ銭ライター
      • ペイウォール
        • ペイウォールのリスト化
        • ペイウォールにアイテムを追加する
        • ペイウォールからアイテムを削除する
        • ペイウォールとの提携
        • ペイウォール サブスクリプションの購入
        • ペイウォールサブスクリプションのアクティブ化
      • NFTickets
      • 割引とキャッシュバック
        • 割引
        • キャッシュバック
        • 手動報酬
      • パートナーのバリュープールをリストする
      • お知らせ
      • レビュー
      • ダイナミックプライシング
      • パートナーシップ
      • メンバーシップ
      • アイデンティティ要件
      • スポンサーシップ
      • オークションと入札
      • ドロップ
      • 投票
    • 🧑‍⚖️dRamps
      • トークンマーケットの追加
      • 追加トークンの展開と追加
      • トークン市場の活性化
      • トークン市場の価格を更新する
      • 自動誘導ランプ
        • tFIAT トークンの鋳造
        • tFIAT トークンの書き込み
      • 手動スロープ
        • tFIAT トークンの鋳造
        • tFIAT トークンの書き込み
      • スポンサーランプ
      • ランプスバリュープール
      • パートナーシップ
      • ネイティブトークンの販売/購入
      • ブートストラッピング
      • トークンマーケットの販売
      • 使用例
        • 授業料の支払い
        • 製品/サービスの支払い
        • 送金
        • 外国為替
        • ブロックチェーンブリッジ
        • 価値の保存
    • 🖼️eCollectibles
      • デフォルトのミンター
      • カスタムミンター
      • 事前に作成されたNFTのリスト
    • 🔄交換
      • Token Swaps
      • How to Trade
      • Fees and Routes
      • Liquidity Pools
      • How to Add/Remove Liquidity
      • FAQ
    • 🧈将来の担保
    • 🎮ゲーム
      • ゲームオブジェクト
      • ゲーム奨学金
    • 🎟️宝くじ
      • 宝くじの遊び方
      • 宝くじに関するよくある質問
      • マーケットプレイスの宝くじ
      • FT宝くじ
      • NFT宝くじ
    • 💳ペイカード
      • マーケットプレイスでの購入
    • 🐞プロフィール
      • ソーシャル グラフを構築する
      • 送金
      • 信用報告書
      • セキュリティとその他
    • 💹収益分配
      • アクセル
      • ビジネス
      • 貢献者
      • 紹介
    • 🍯スポンサー
    • 🍏SSI
      • データの作成
      • SSIDの作成
      • 固有のプロファイルの作成
    • 📈StakeMarket
      • リストに掲載されている商品を購入する
      • 入札募集
      • 担保ローン
      • ステークの申し込み
      • 訴訟
    • 🖥️TrustBounties
      • FTの報奨金
      • NFTの報奨金
      • 承認
    • 🌐ValuePools/DAOs
      • NFTトークンの鋳造
      • バリュープールのスポンサーになる
      • バリュープールでのショッピング
      • バリュープールによる融資と投資
      • 提案書の作成
    • 👾遺言書
      • 遺言書の作成
      • 遺言書を保管に使用する
    • 🛍️世界
      • レッド・ピル・ワールド
      • ブルー ピル ワールド
      • グリーンワールド
  • 使用例
    • CanCan
      • アイテムマーケットプレイス: Amazon
      • アイテムマーケットプレイス: レンタル
      • タレントマーケットプレイス
      • AirBnB
      • 配車サービス
      • 配信アプリ
      • Rent The Runway
      • サブスクリプションアプリ
      • 出会い系アプリ
      • Friend.tech
      • 遠隔医療
      • 製品リミックス
    • Valuepools
      • BNPLアプリ
      • グループ投資アプリ
      • 保険アプリ
      • マーケティングアプリ
      • 貯金アプリ
    • ARPs
      • Budgetting
      • Group Vacation Planning
      • 代理投資
      • Spend Management
      • Loan Management
      • Rent Management
      • Tipping
      • Play & Earn Loan Management
    • 請求書
      • 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

V2SwapRouter

Router for stateless execution of swaps against PancakeSwap V2

Solidity API

swapExactTokensForTokens

function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to) 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

amountIn

uint256

The amount of token to swap

amountOutMin

uint256

The minimum amount of output that must be received

path

address[]

The ordered list of tokens to swap through

to

address

The recipient address

Return Values

Name
Type
Description

amountOut

uint256

The amount of the received token

swapTokensForExactTokens

function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to) external payable returns (uint256 amountIn)

Swaps as little as possible of one token for an exact amount of another token

Parameters

Name
Type
Description

amountOut

uint256

The amount of token to swap for

amountInMax

uint256

The maximum amount of input that the caller will pay

path

address[]

The ordered list of tokens to swap through

to

address

The recipient address

Return Values

Name
Type
Description

amountIn

uint256

The amount of token to pay

PreviousV3SwapRouterNextStableSwapRouter

Last updated 1 year ago

Was this helpful?