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 constructor(contract ISwap swapContract, contract IERC20 lpTokenContract, uint8 numOfTokens)
  • Function test_swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy)
  • Function test_addLiquidity(uint256[] amounts, uint256 minToMint)
  • Function test_removeLiquidity(uint256 amount, uint256[] minAmounts)
  • Function test_removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount)
  • Function test_removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount)

Was this helpful?

  1. Solidity Docs
  2. Helper
  3. Test

TestSwapReturnValues

PreviousTestNextGenericERC20

Last updated 3 years ago

Was this helpful?

Functions:

Function constructor(contract ISwap swapContract, contract IERC20 lpTokenContract, uint8 numOfTokens)

No description

Function test_swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy)

No description

Function test_addLiquidity(uint256[] amounts, uint256 minToMint)

No description

Function test_removeLiquidity(uint256 amount, uint256[] minAmounts)

No description

Function test_removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount)

No description

Function test_removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount)

No description

constructor(contract ISwap swapContract, contract IERC20 lpTokenContract, uint8 numOfTokens)
test_swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy)
test_addLiquidity(uint256[] amounts, uint256 minToMint)
test_removeLiquidity(uint256 amount, uint256[] minAmounts)
test_removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount)
test_removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount)