LogoLogo
1.0.0
1.0.0
  • About Saddle
  • Automated Market Makers
  • Saddle Pools
  • Community Pools
  • Layer 2 Guide
  • SDL Token
  • veSDL (vote escrowed) SDL
  • Cross Chain Gauges
  • Governance (SIPs)
  • Saddle Incentives
  • Saddle Protocol Stats
  • Yield Farming Tools
  • Build With Saddle
  • Smart Contract Security
  • Asset Specific Risks
  • Saddle FAQ
  • Glossary
  • How to Flash-loan Assets from Saddle
  • Contract Addresses
  • Solidity Docs
    • StakeableTokenWrapper
    • MathUtils
    • Swap
    • Allowlist
    • SwapUtils
    • OwnerPausable
    • LPToken
    • Interfaces
      • ISwap
      • IAllowlist
      • ISwapV1
      • ISwapGuarded
      • ISwapFlashLoan
      • IMetaSwap
      • IFlashLoanReceiver
    • Helper
      • Test
        • TestSwapReturnValues
      • GenericERC20
      • Multicall
      • Multicall2
      • FlashLoanBorrowerExample
    • Meta
      • MetaSwap
      • MetaSwapDeposit
      • MetaSwapUtils
    • Guarded
      • SwapGuarded
      • SwapUtilsGuarded
      • OwnerPausable
      • LPTokenGuarded
      • Allowlist
    • VirtualSwap
      • Bridge
      • Proxy
      • SynthSwapper
      • Target
Powered by GitBook
On this page
  • Functions:
  • Function executeOperation(address pool, address token, uint256 amount, uint256 fee, bytes params)
  • Function flashLoan(contract ISwapFlashLoan swap, contract IERC20 token, uint256 amount, bytes params)

Was this helpful?

  1. Solidity Docs
  2. Helper

FlashLoanBorrowerExample

PreviousMulticall2NextMeta

Last updated 2 years ago

Was this helpful?

Functions:

Function executeOperation(address pool, address token, uint256 amount, uint256 fee, bytes params)

No description

Function flashLoan(contract ISwapFlashLoan swap, contract IERC20 token, uint256 amount, bytes params)

No description

executeOperation(address pool, address token, uint256 amount, uint256 fee, bytes params)
flashLoan(contract ISwapFlashLoan swap, contract IERC20 token, uint256 amount, bytes params)