Hi
I want to use Dai Permit function over Avalanche to skip the approve function.
If found this source:
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2017, 2018, 2019 dbrock, rain, mrchico
// 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.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
pragma solidity >=0.5.12;
// FIXME: This contract was altered compared to the production version.
This file has been truncated. show original
But I guess if I use the permit function of ERC20Permit it is not the same or?
Amxx
March 25, 2022, 11:33am
2
Hello @Antonia_Sa
Dai's permit unfortunatelly doesn't follow the ERC2612 standard that we implement in ERC20Permit. The functions take different parameters and the signature is built differently.