Factor Docs
  • 🏭Introduction to Factor
  • Getting Started
    • 🕹️Quickstart
    • 🔗Supported Protocols
    • 🔐Strategy Cheatsheet
      • Swaps Cheatsheet
        • Conditional Market Order
        • Automated Market Order
        • Multi Swap
        • Automated Swap & Earn
        • Automated Scale Order
        • Scale Order Partial Fill Yield
        • Interest On Pending Trades
        • Leverage Trade
        • Leverage DCA
      • Lending Cheatsheet
        • Lending Pool Zap
        • Multi Lend
        • Market Making To Lending Switch
        • Earn Negative Interest
        • Carry Trade
        • Leveraged Staking Yields
        • Leveraged Fixed Yields
      • Borrowing Cheatsheet
        • Collateralized Borrow
        • Collateralized Borrow Zap
        • Multi Borrow
        • Debt Switching
        • Automated Debt Readjustments
        • Debt Refinancing
        • Asset Switching
      • Liquidity Provision Cheatsheet
        • Liquidity Pool Zap
        • Yield Farm Zap
        • Automated LP Adjustments
        • Yield Farm Adjustments
      • Flash Loan Cheatsheet
    • 🧠Strategy Explainers
      • Leverage
        • Leverage Performance Modelling
        • Leverage Long Simulation
        • Leverage Short Simulation
      • Yield
        • Yield Performance Modelling
      • PT Strategies
        • Leverage Long PT Simulation
      • Delta Neutral Yields
        • Levered USD & ETH Carry
    • 📖Glossary
  • Factor Discover
    • 🔍Factor Discover
      • Public Strategies User Guides
        • Deposit Into User Created Strategies
        • Withdraw From User Created Strategies
      • Leverage User Guides
        • Create A Leveraged Position
        • Adjust Position Leverage
        • Add Collateral To Position
        • Withdraw Collateral From Position
        • Repay Position Debt
      • Yield User Guides
        • Auto-compound Your Yields
      • PT User Guides
        • Redeem Your PT
      • APY Calculations
    • ⚙️Factor Operated Strategies
      • Yield Type Strategies
        • Arbitrum (ChainID: 42161)
          • 4.4x rETH Carry + 1x USDC Lending Yields - Aave & Compound
          • 7x Leveraged rETH:ETH Yields - Compound
          • Additional rETH Yields On USDC Lend
          • Amplified wstETH Yields On USDC Lend - Aave
          • Additional Liquid Staked ETH Yields On USDC Lend
          • Additional Liquid Restaked ETH Yields On USDC Lend
          • Diversified USDC Lending Yields - Aave & Compound
        • Base (ChainID: 8453)
          • 3.5x Leveraged cbETH:ETH Yields - Aave
          • Amplified cbETH Yields On USDC Lend - Aave
          • Additional cbETH Yields On USDC Lend
          • Amplified cbETH Yields On cbBTC Lend - Aave
          • Additional Liquid Staked ETH Yields On USDC Lend
      • Trading Type Strategies
        • WBTC Base Switch On rETH For ETH & USDC Yields
      • Delta Neutral Type Strategies
        • Arbitrum (ChainID: 42161)
          • Delta Neutral ETH With rETH & USDC Yields
        • Base (ChainID: 8453)
          • Delta Neutral ETH With cbETH & USDC Yields
  • Factor Studio
    • 🎨Factor Studio
      • Automated Strategies
      • Conditional Strategies
    • 👥Public Strategies
      • User Guide
        • Public Strategy Creation
        • Create An Exit Strategy
        • Making Your Strategy Public
        • Strategy Execution
      • Security
      • Exit Strategy
    • 🏗️Strategy Builder
      • Building Blocks User Guide
        • Lend
        • Borrow
        • Swap
        • Flash Loan
    • 📜Studio Contracts
      • Leverage
        • FactorLeverageDescriptor.sol
        • FactorLeverageVault.sol
        • WrapperFactorLeverageVault.sol
      • LP Management
        • FactorLPVault.sol
        • FactorLPDescriptor.sol
    • 🏠Private Strategies
      • User Guide
        • Private Strategy Creation
  • Factor SDK
    • 📦Factor SDK
    • ↔️REST APIs
      • Utility APIs
        • Pricing
        • Stats
  • Factor Building Blocks
    • 🧱Factor Building Blocks
    • ➡️Lend
    • ⬅️Borrow
    • 🔄Leverage
      • Concepts
        • Collateralized Lending & Borrowing
        • Looping
      • Leverage Dev Guides
        • Create Leveraged Position
        • Add Leverage To Position
      • Strategy Contracts
        • AAVEV3LeverageStrategy.sol
        • CompoundLeverageStrategy.sol
        • LodeStarLeverageStrategy.sol
        • RadiantLeverageStrategy.sol
        • SiloLeverageStrategy.sol
        • SiloYieldTokenStrategy.sol
        • TenderLeverageStrategy.sol
      • FAQ - Leverage Building Block
    • 💰Yield
      • Concepts
        • Yield Farming
        • Yield Aggregators
      • ⚡Zap
    • 🌊LP Management
      • Concepts
        • Automated Market Maker
        • Concentrated Liquidity
    • 🥩Stake
    • 🔀Swap
      • Concepts
        • Market Orders
        • DEX Aggregators
    • 🪄Flash Loan
      • Concepts
        • Uncollateralized Lending & Borrowing
        • Flash Loan
  • Factor Adapters
    • 🔌Factor Adapters
    • 📜Adapter Contracts
      • Leverage
      • Yield
      • Swap
      • Flash Loan
  • Governance
    • 🏛️FactorDAO
      • Factor Flywheel
      • Factor Participants
      • Governance Incentive Calculations
        • FactorDAO Incentives Model (LTIPP)
      • User Guides
        • Stake FCTR
        • Governance Migration
      • Contracts
        • FactorDAO Contract Addresses
      • FactorDAO Multisig Addresses
      • Platform Fees
    • 🪙FCTR Token
      • Staking and Governance
      • Tokenomics
      • Contract Addresses
      • FAQ - Tokenomics
    • ⚖️Factor Scale
      • Arbitrum Foundation LTIPP
      • Emission Multiplier Calculations
        • Emissions Multiplier Model
      • User Guides
        • Stake FCTR
        • Vote On Emissions Distribution
      • Contracts
        • Factor Scale Contract Addresses
      • ❔FAQ - Factor Scale
    • 🚀Factor Boost
      • Contracts
        • Factor Boost Contract Addresses
    • 💼Factor Bribes
      • Contracts
        • Factor Bribes Contracts
  • Security
    • 🛡️Security
    • 📋Audits
      • PeckShield
        • Leverage Vault Wrapper
        • Silo Yield
        • Silo Leverage
        • Penpie
        • Factor Boost
      • SourceHat
        • FactorDAO Vaults
        • FCTR & Voting Escrow
  • Reference
    • Discover Pro dApp
    • Studio dApp
    • Discover dApp
    • Official Website
    • Press Kit
    • Partnership Form
    • Media Kit
    • Geo Restrictions
  • Community
    • Factor Contributors
    • X
    • Discord
    • Telegram
    • Medium
    • Email Enquiries
Powered by GitBook
On this page
  • Overview
  • Features
  • Integrations

Was this helpful?

  1. Factor Building Blocks

Swap

PreviousStakeNextConcepts

Last updated 10 months ago

Was this helpful?

Overview

The Swap Building Block enables users to conveniently access deeper and more efficient liquidity for their specific trading requirements through smart trade routing and automated conditional swaps. Through routing the trades via various integrated AMM DEXs and DEX Aggregators, the Swap Building Block is able to objectively discover more capital efficient liquidity sources thereby ensuring favourable swap rates while encouraging greater market stability.

The Swap Building Block supports more advanced orders offering users the flexibility when creating strategies:

  • Market Orders: Instantly swap at favourable rates as the order is executed upon strategy execution.

  • Conditional Market Orders (a.k.a Conditional Swaps): Set your preferred price threshold and your market order will be triggered when the market matches your selected price.

  • Stop Loss Market Orders (a.k.a Stop Loss Swaps): Cap your losses by setting a price threshold below the current market price and your trade is immediately executed when the market price matches your Stop Loss price.

  • Profit Taking Market Orders (a.k.a Profit Taking Swaps): Secure your profits by setting a price threshold above the current market price and your trade is immediately executed when the market price matches your Profit Taking price.

The Swap Building Block functions as an automation and optimization layer between the incoming swap request and the multiple integrated liquidity protocols. With the Swap Building Block, strategies can easily swap between any ERC20 token thereby creating endless possibilities for multi-token strategies.

Related Concepts

Features

  • Swap At Superior Rates: By aggregating liquidity across multiple liquidity sources, the Swap Building Block is able to uncover more capital efficient liquidity for a swap.

  • Smart Trade Routing: Specify your swap parameters and the Swap Building Block automatically optimizes the swap route for better rates.

  • Automated Conditional Swaps: Create predefined triggers for your swap and the Swap Building Block automatically executes the transaction when the corresponding market conditions are met.

Integrations

Factor has integrated with leading yield farming protocols, offering a broad spectrum of possibilities for your strategies.

Don't Limit Your Strategies To Just Swaps

Visit our page to see the latest swap strategies.

enables different to be mixed-and-matched thereby facilitating multi-step strategies which span across the whole DeFi ecosystem.

Please refer to to view the full list of DeFi protocols which have been integrated with Factor Studio.

🔀
Market Orders
DEX Aggregators
OpenOcean
Trader Joe
Uniswap V3
Vela Exchange
Factor Discover
Factor Studio
Building Blocks
Supported Protocols