Skip to content

Instantly share code, notes, and snippets.

@olivdb
olivdb / Dai.sol
Created September 14, 2022 12:15
ZkSync Dai permit
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2017, 2018, 2019 dbrock, rain, mrchico
// Copyright (C) 2021 Dai Foundation
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
pragma solidity ^0.6.12;
interface IERC20 {
function allowance(address src, address dst) external view returns (uint);
function approve(address dst, uint amt) external returns (bool);
}
interface IWETH {
function deposit() payable external;
function withdraw(uint wad) external;