Skip to content

Instantly share code, notes, and snippets.

View ok1a's full-sized avatar
💭
https://omarokla.com

ok1a

💭
https://omarokla.com
View GitHub Profile
@ok1a
ok1a / Multicall.sol
Created March 22, 2022 06:30 — 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"))