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 aggregate(struct Multicall2.Call[] calls) → uint256 blockNumber, bytes[] returnData
  • Function blockAndAggregate(struct Multicall2.Call[] calls) → uint256 blockNumber, bytes32 blockHash, struct Multicall2.Result[] returnData
  • Function getBlockHash(uint256 blockNumber) → bytes32 blockHash
  • Function getBlockNumber() → uint256 blockNumber
  • Function getCurrentBlockCoinbase() → address coinbase
  • Function getCurrentBlockDifficulty() → uint256 difficulty
  • Function getCurrentBlockGasLimit() → uint256 gaslimit
  • Function getCurrentBlockTimestamp() → uint256 timestamp
  • Function getEthBalance(address addr) → uint256 balance
  • Function getLastBlockHash() → bytes32 blockHash
  • Function tryAggregate(bool requireSuccess, struct Multicall2.Call[] calls) → struct Multicall2.Result[] returnData
  • Function tryBlockAndAggregate(bool requireSuccess, struct Multicall2.Call[] calls) → uint256 blockNumber, bytes32 blockHash, struct Multicall2.Result[] returnData

Was this helpful?

  1. Solidity Docs
  2. Helper

Multicall2

PreviousMulticallNextFlashLoanBorrowerExample

Last updated 2 years ago

Was this helpful?

Functions:

Function aggregate(struct Multicall2.Call[] calls) → uint256 blockNumber, bytes[] returnData

No description

Function blockAndAggregate(struct Multicall2.Call[] calls) → uint256 blockNumber, bytes32 blockHash, struct Multicall2.Result[] returnData

No description

Function getBlockHash(uint256 blockNumber) → bytes32 blockHash

No description

Function getBlockNumber() → uint256 blockNumber

No description

Function getCurrentBlockCoinbase() → address coinbase

No description

Function getCurrentBlockDifficulty() → uint256 difficulty

No description

Function getCurrentBlockGasLimit() → uint256 gaslimit

No description

Function getCurrentBlockTimestamp() → uint256 timestamp

No description

Function getEthBalance(address addr) → uint256 balance

No description

Function getLastBlockHash() → bytes32 blockHash

No description

Function tryAggregate(bool requireSuccess, struct Multicall2.Call[] calls) → struct Multicall2.Result[] returnData

No description

Function tryBlockAndAggregate(bool requireSuccess, struct Multicall2.Call[] calls) → uint256 blockNumber, bytes32 blockHash, struct Multicall2.Result[] returnData

No description

aggregate(struct Multicall2.Call[] calls)
blockAndAggregate(struct Multicall2.Call[] calls)
getBlockHash(uint256 blockNumber)
getBlockNumber()
getCurrentBlockCoinbase()
getCurrentBlockDifficulty()
getCurrentBlockGasLimit()
getCurrentBlockTimestamp()
getEthBalance(address addr)
getLastBlockHash()
tryAggregate(bool requireSuccess, struct Multicall2.Call[] calls)
tryBlockAndAggregate(bool requireSuccess, struct Multicall2.Call[] calls)