Skip to content

Instantly share code, notes, and snippets.

View thangnn91's full-sized avatar

Ducky thangnn91

View GitHub Profile
@amanelis
amanelis / Multicall.sol
Created August 11, 2022 22:42 — forked from 0xAlcibiades/Multicall.sol
A Pre EIP-1559 MEV/Multicall in pure Yul integrated with ApeBank and with Native GasTokens
// SPDX-License-Identifier: MIT
object "Multicall" {
code {
// Deploy the contract
// Store gas token burn cost in zero slot
sstore(0, 0)
sstore(1, 0)
sstore(2, 0)
datacopy(0x0, dataoffset("MulticallRuntime"), datasize("MulticallRuntime"))