Customize
Consensus List
How to Add Consensus List?
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC7660} from "erc7660/ERC7660.sol";
contract ExampleERC7660 is Ownable, ERC7660 {
constructor(
string memory name_,
string memory symbol_,
uint256 totalSupply_
) ERC7660(name_, symbol_, totalSupply_) {
}
function addPair(address _pair,bool flag) public onlyOwner {
_addPair(_pair,flat);
}
//_routers
function addRouter(address _router,bool flag) public onlyOwner {
_addRouter(_router,flag);
}
function setDuration(uint256 _duration) public onlyOwner {
_setDuration(_duration);
}
}Last updated