Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x83AD12a57ac4E8cB0EAB398f2f58530FBEBC5140
Balance 0 ETH
Nonce 1
Code Size 8065 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

8065 bytes
0x6080604052600436106100c65760003560e01c80636a42b8f81161007f578063c1a287e211610059578063c1a287e214610251578063e177246e1461027c578063f2b06537146102a5578063f851a440146102e2576100cd565b80636a42b8f8146101d05780637d645fab146101fb578063b1b43ae514610226576100cd565b80630825f38f146100cf5780630e18b681146100ff57806326782247146101165780633a66f901146101415780634dd18bf51461017e578063591fcdfe146101a7576100cd565b366100cd57005b005b6100e960048036038101906100e49190611205565b61030d565b6040516100f69190611340565b60405180910390f35b34801561010b57600080fd5b506101146106ca565b005b34801561012257600080fd5b5061012b610841565b6040516101389190611371565b60405180910390f35b34801561014d57600080fd5b5061016860048036038101906101639190611205565b610867565b60405161017591906113a5565b60405180910390f35b34801561018a57600080fd5b506101a560048036038101906101a091906113c0565b610a85565b005b3480156101b357600080fd5b506101ce60048036038101906101c99190611205565b610c0c565b005b3480156101dc57600080fd5b506101e5610dc6565b6040516101f291906113fc565b60405180910390f35b34801561020757600080fd5b50610210610dcc565b60405161021d91906113fc565b60405180910390f35b34801561023257600080fd5b5061023b610dd3565b60405161024891906113fc565b60405180910390f35b34801561025d57600080fd5b50610266610dda565b60405161027391906113fc565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190611417565b610de1565b005b3480156102b157600080fd5b506102cc60048036038101906102c79190611470565b610f14565b6040516102d991906114b8565b60405180910390f35b3480156102ee57600080fd5b506102f7610f34565b6040516103049190611371565b60405180910390f35b6060600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561037f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037690611530565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461040d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610404906115c2565b60405180910390fd5b60008686868686604051602001610428959493929190611626565b6040516020818303038152906040528051906020012090506003600082815260200190815260200160002060009054906101000a900460ff166104a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610497906116f9565b60405180910390fd5b826104a9610f58565b10156104ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e1906117b1565b60405180910390fd5b6105006212750084610f6090919063ffffffff16565b610508610f58565b1115610549576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054090611843565b60405180910390fd5b60006003600083815260200190815260200160002060006101000a81548160ff0219169083151502179055506060600086511415610589578490506105b5565b8580519060200120856040516020016105a39291906118ec565b60405160208183030381529060405290505b6000808973ffffffffffffffffffffffffffffffffffffffff1689846040516105de9190611914565b60006040518083038185875af1925050503d806000811461061b576040519150601f19603f3d011682016040523d82523d6000602084013e610620565b606091505b509150915081610665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065c9061199d565b60405180910390fd5b8973ffffffffffffffffffffffffffffffffffffffff16847fa560e3198060a2f10670c1ec5b403077ea6ae93ca8de1c32b451dc1a943cd6e78b8b8b8b6040516106b294939291906119bd565b60405180910390a38094505050505095945050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461075a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075190611a82565b60405180910390fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c60405160405180910390a2565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156108d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cf90611530565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095d90611b14565b60405180910390fd5b610982600254610974610f58565b610f6090919063ffffffff16565b8210156109c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bb90611bcc565b60405180910390fd5b600086868686866040516020016109df959493929190611626565b60405160208183030381529060405280519060200120905060016003600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508673ffffffffffffffffffffffffffffffffffffffff16817f76e2796dc3a81d57b0e8504b647febcbeeb5f4af818e164f11eef8131a6a763f88888888604051610a7094939291906119bd565b60405180910390a38091505095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aec90611530565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5a90611c5e565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f69d78e38a01985fbb1462961809b4b2d65531bc93b2b94037f3334b82ca4a75660405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7390611530565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0190611cf0565b60405180910390fd5b60008585858585604051602001610d25959493929190611626565b60405160208183030381529060405280519060200120905060006003600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508573ffffffffffffffffffffffffffffffffffffffff16817f2fffc091a501fd91bfbff27141450d3acb40fb8e6d8382b243ec7a812a3aaf8787878787604051610db694939291906119bd565b60405180910390a3505050505050565b60025481565b62278d0081565b6201518081565b6212750081565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4690611d82565b60405180910390fd5b62015180811015610e95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8c90611e14565b60405180910390fd5b62278d00811115610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed290611ea6565b60405180910390fd5b806002819055506002547f948b1f6a42ee138b7e34058ba85a37f716d55ff25ff05a763f15bed6a04c8d2c60405160405180910390a250565b60036020528060005260406000206000915054906101000a900460ff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600042905090565b60008183610f6e9190611ef5565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610fb582610f8a565b9050919050565b610fc581610faa565b8114610fd057600080fd5b50565b600081359050610fe281610fbc565b92915050565b6000819050919050565b610ffb81610fe8565b811461100657600080fd5b50565b60008135905061101881610ff2565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61107182611028565b810181811067ffffffffffffffff821117156110905761108f611039565b5b80604052505050565b60006110a3610f76565b90506110af8282611068565b919050565b600067ffffffffffffffff8211156110cf576110ce611039565b5b6110d882611028565b9050602081019050919050565b82818337600083830152505050565b6000611107611102846110b4565b611099565b90508281526020810184848401111561112357611122611023565b5b61112e8482856110e5565b509392505050565b600082601f83011261114b5761114a61101e565b5b813561115b8482602086016110f4565b91505092915050565b600067ffffffffffffffff82111561117f5761117e611039565b5b61118882611028565b9050602081019050919050565b60006111a86111a384611164565b611099565b9050828152602081018484840111156111c4576111c3611023565b5b6111cf8482856110e5565b509392505050565b600082601f8301126111ec576111eb61101e565b5b81356111fc848260208601611195565b91505092915050565b600080600080600060a0868803121561122157611220610f80565b5b600061122f88828901610fd3565b955050602061124088828901611009565b945050604086013567ffffffffffffffff81111561126157611260610f85565b5b61126d88828901611136565b935050606086013567ffffffffffffffff81111561128e5761128d610f85565b5b61129a888289016111d7565b92505060806112ab88828901611009565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60005b838110156112f25780820151818401526020810190506112d7565b83811115611301576000848401525b50505050565b6000611312826112b8565b61131c81856112c3565b935061132c8185602086016112d4565b61133581611028565b840191505092915050565b6000602082019050818103600083015261135a8184611307565b905092915050565b61136b81610faa565b82525050565b60006020820190506113866000830184611362565b92915050565b6000819050919050565b61139f8161138c565b82525050565b60006020820190506113ba6000830184611396565b92915050565b6000602082840312156113d6576113d5610f80565b5b60006113e484828501610fd3565b91505092915050565b6113f681610fe8565b82525050565b600060208201905061141160008301846113ed565b92915050565b60006020828403121561142d5761142c610f80565b5b600061143b84828501611009565b91505092915050565b61144d8161138c565b811461145857600080fd5b50565b60008135905061146a81611444565b92915050565b60006020828403121561148657611485610f80565b5b60006114948482850161145b565b91505092915050565b60008115159050919050565b6114b28161149d565b82525050565b60006020820190506114cd60008301846114a9565b92915050565b600082825260208201905092915050565b7f496e76616c696420696e7075742e000000000000000000000000000000000000600082015250565b600061151a600e836114d3565b9150611525826114e4565b602082019050919050565b600060208201905081810360008301526115498161150d565b9050919050565b7f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20436160008201527f6c6c206d75737420636f6d652066726f6d2061646d696e2e0000000000000000602082015250565b60006115ac6038836114d3565b91506115b782611550565b604082019050919050565b600060208201905081810360008301526115db8161159f565b9050919050565b600081519050919050565b60006115f8826115e2565b61160281856114d3565b93506116128185602086016112d4565b61161b81611028565b840191505092915050565b600060a08201905061163b6000830188611362565b61164860208301876113ed565b818103604083015261165a81866115ed565b9050818103606083015261166e8185611307565b905061167d60808301846113ed565b9695505050505050565b7f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260008201527f616e73616374696f6e206861736e2774206265656e207175657565642e000000602082015250565b60006116e3603d836114d3565b91506116ee82611687565b604082019050919050565b60006020820190508181036000830152611712816116d6565b9050919050565b7f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260008201527f616e73616374696f6e206861736e2774207375727061737365642074696d652060208201527f6c6f636b2e000000000000000000000000000000000000000000000000000000604082015250565b600061179b6045836114d3565b91506117a682611719565b606082019050919050565b600060208201905081810360008301526117ca8161178e565b9050919050565b7f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260008201527f616e73616374696f6e206973207374616c652e00000000000000000000000000602082015250565b600061182d6033836114d3565b9150611838826117d1565b604082019050919050565b6000602082019050818103600083015261185c81611820565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b6118aa6118a582611863565b61188f565b82525050565b600081905092915050565b60006118c6826112b8565b6118d081856118b0565b93506118e08185602086016112d4565b80840191505092915050565b60006118f88285611899565b60048201915061190882846118bb565b91508190509392505050565b600061192082846118bb565b915081905092915050565b7f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20547260008201527f616e73616374696f6e20657865637574696f6e2072657665727465642e000000602082015250565b6000611987603d836114d3565b91506119928261192b565b604082019050919050565b600060208201905081810360008301526119b68161197a565b9050919050565b60006080820190506119d260008301876113ed565b81810360208301526119e481866115ed565b905081810360408301526119f88185611307565b9050611a0760608301846113ed565b95945050505050565b7f54696d656c6f636b3a3a61636365707441646d696e3a2043616c6c206d75737460008201527f20636f6d652066726f6d2070656e64696e6741646d696e2e0000000000000000602082015250565b6000611a6c6038836114d3565b9150611a7782611a10565b604082019050919050565b60006020820190508181036000830152611a9b81611a5f565b9050919050565b7f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a2043616c6c60008201527f206d75737420636f6d652066726f6d2061646d696e2e00000000000000000000602082015250565b6000611afe6036836114d3565b9150611b0982611aa2565b604082019050919050565b60006020820190508181036000830152611b2d81611af1565b9050919050565b7f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a204573746960008201527f6d6174656420657865637574696f6e20626c6f636b206d75737420736174697360208201527f66792064656c61792e0000000000000000000000000000000000000000000000604082015250565b6000611bb66049836114d3565b9150611bc182611b34565b606082019050919050565b60006020820190508181036000830152611be581611ba9565b9050919050565b7f54696d656c6f636b3a3a73657450656e64696e6741646d696e3a2043616c6c2060008201527f6d75737420636f6d652066726f6d2054696d656c6f636b2e0000000000000000602082015250565b6000611c486038836114d3565b9150611c5382611bec565b604082019050919050565b60006020820190508181036000830152611c7781611c3b565b9050919050565b7f54696d656c6f636b3a3a63616e63656c5472616e73616374696f6e3a2043616c60008201527f6c206d75737420636f6d652066726f6d2061646d696e2e000000000000000000602082015250565b6000611cda6037836114d3565b9150611ce582611c7e565b604082019050919050565b60006020820190508181036000830152611d0981611ccd565b9050919050565b7f54696d656c6f636b3a3a73657444656c61793a2043616c6c206d75737420636f60008201527f6d652066726f6d2054696d656c6f636b2e000000000000000000000000000000602082015250565b6000611d6c6031836114d3565b9150611d7782611d10565b604082019050919050565b60006020820190508181036000830152611d9b81611d5f565b9050919050565b7f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d757374206560008201527f7863656564206d696e696d756d2064656c61792e000000000000000000000000602082015250565b6000611dfe6034836114d3565b9150611e0982611da2565b604082019050919050565b60006020820190508181036000830152611e2d81611df1565b9050919050565b7f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d757374206e60008201527f6f7420657863656564206d6178696d756d2064656c61792e0000000000000000602082015250565b6000611e906038836114d3565b9150611e9b82611e34565b604082019050919050565b60006020820190508181036000830152611ebf81611e83565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611f0082610fe8565b9150611f0b83610fe8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f4057611f3f611ec6565b5b82820190509291505056fea2646970667358221220f9951c14d8c4bd627a5e2561ec80b1f2749d2d4d0f444c6fa41f23aac4e00ebc64736f6c634300080a0033

Verified Source Code Full Match

Compiler: v0.8.10+commit.fc410830 EVM: london Optimization: No
Timelock.sol 212 lines
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract Timelock {
    using SafeMath for uint;

    event NewAdmin(address indexed newAdmin);
    event NewPendingAdmin(address indexed newPendingAdmin);
    event NewDelay(uint indexed newDelay);
    event CancelTransaction(
        bytes32 indexed txHash,
        address indexed target,
        uint value,
        string signature,
        bytes data,
        uint eta
    );
    event ExecuteTransaction(
        bytes32 indexed txHash,
        address indexed target,
        uint value,
        string signature,
        bytes data,
        uint eta
    );
    event QueueTransaction(
        bytes32 indexed txHash,
        address indexed target,
        uint value,
        string signature,
        bytes data,
        uint eta
    );

    uint public constant GRACE_PERIOD = 14 days;
    uint public constant MINIMUM_DELAY = 1 days;
    uint public constant MAXIMUM_DELAY = 30 days;

    address public admin;
    address public pendingAdmin;
    uint public delay;

    mapping(bytes32 => bool) public queuedTransactions;

    constructor(address admin_, uint delay_) {
        require(admin_ != address(0),"Invalid input.");
        require(
            delay_ >= MINIMUM_DELAY,
            "Timelock::constructor: Delay must exceed minimum delay."
        );
        require(
            delay_ <= MAXIMUM_DELAY,
            "Timelock::setDelay: Delay must not exceed maximum delay."
        );

        admin = admin_;
        delay = delay_;
    }

    receive() external payable {}
    fallback() external payable {}

    function setDelay(uint delay_) public {
        require(
            msg.sender == address(this),
            "Timelock::setDelay: Call must come from Timelock."
        );
        require(
            delay_ >= MINIMUM_DELAY,
            "Timelock::setDelay: Delay must exceed minimum delay."
        );
        require(
            delay_ <= MAXIMUM_DELAY,
            "Timelock::setDelay: Delay must not exceed maximum delay."
        );
        delay = delay_;

        emit NewDelay(delay);
    }

    function acceptAdmin() public {
        require(
            msg.sender == pendingAdmin,
            "Timelock::acceptAdmin: Call must come from pendingAdmin."
        );
        admin = msg.sender;
        pendingAdmin = address(0);

        emit NewAdmin(admin);
    }

    function setPendingAdmin(address pendingAdmin_) public {
        require(pendingAdmin_ != address(0),"Invalid input.");
        require(
            msg.sender == address(this),
            "Timelock::setPendingAdmin: Call must come from Timelock."
        );
        pendingAdmin = pendingAdmin_;

        emit NewPendingAdmin(pendingAdmin);
    }

    function queueTransaction(
        address target,
        uint value,
        string memory signature,
        bytes memory data,
        uint eta
    ) public returns (bytes32) {
        require(target != address(0),"Invalid input.");
        require(
            msg.sender == admin,
            "Timelock::queueTransaction: Call must come from admin."
        );
        require(
            eta >= getBlockTimestamp().add(delay),
            "Timelock::queueTransaction: Estimated execution block must satisfy delay."
        );

        bytes32 txHash = keccak256(
            abi.encode(target, value, signature, data, eta)
        );
        queuedTransactions[txHash] = true;

        emit QueueTransaction(txHash, target, value, signature, data, eta);
        return txHash;
    }

    function cancelTransaction(
        address target,
        uint value,
        string memory signature,
        bytes memory data,
        uint eta
    ) public {
        require(target != address(0),"Invalid input.");
        require(
            msg.sender == admin,
            "Timelock::cancelTransaction: Call must come from admin."
        );

        bytes32 txHash = keccak256(
            abi.encode(target, value, signature, data, eta)
        );
        queuedTransactions[txHash] = false;

        emit CancelTransaction(txHash, target, value, signature, data, eta);
    }

    function executeTransaction(
        address target,
        uint value,
        string memory signature,
        bytes memory data,
        uint eta
    ) public payable returns (bytes memory) {
        require(target != address(0),"Invalid input.");
        require(
            msg.sender == admin,
            "Timelock::executeTransaction: Call must come from admin."
        );

        bytes32 txHash = keccak256(
            abi.encode(target, value, signature, data, eta)
        );
        require(
            queuedTransactions[txHash],
            "Timelock::executeTransaction: Transaction hasn't been queued."
        );
        require(
            getBlockTimestamp() >= eta,
            "Timelock::executeTransaction: Transaction hasn't surpassed time lock."
        );
        require(
            getBlockTimestamp() <= eta.add(GRACE_PERIOD),
            "Timelock::executeTransaction: Transaction is stale."
        );

        queuedTransactions[txHash] = false;

        bytes memory callData;

        if (bytes(signature).length == 0) {
            callData = data;
        } else {
            callData = abi.encodePacked(
                bytes4(keccak256(bytes(signature))),
                data
            );
        }

        // solium-disable-next-line security/no-call-value
        (bool success, bytes memory returnData) = target.call{value: value}(
            callData
        );
        require(
            success,
            "Timelock::executeTransaction: Transaction execution reverted."
        );

        emit ExecuteTransaction(txHash, target, value, signature, data, eta);

        return returnData;
    }

    function getBlockTimestamp() internal view returns (uint) {
        // solium-disable-next-line security/no-block-members
        return block.timestamp;
    }
}
SafeMath.sol 215 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

Read Contract

GRACE_PERIOD 0xc1a287e2 → uint256
MAXIMUM_DELAY 0x7d645fab → uint256
MINIMUM_DELAY 0xb1b43ae5 → uint256
admin 0xf851a440 → address
delay 0x6a42b8f8 → uint256
pendingAdmin 0x26782247 → address
queuedTransactions 0xf2b06537 → bool

Write Contract 6 functions

These functions modify contract state and require a wallet transaction to execute.

acceptAdmin 0x0e18b681
No parameters
cancelTransaction 0x591fcdfe
address target
uint256 value
string signature
bytes data
uint256 eta
executeTransaction 0x0825f38f
address target
uint256 value
string signature
bytes data
uint256 eta
returns: bytes
queueTransaction 0x3a66f901
address target
uint256 value
string signature
bytes data
uint256 eta
returns: bytes32
setDelay 0xe177246e
uint256 delay_
setPendingAdmin 0x4dd18bf5
address pendingAdmin_

Recent Transactions

No transactions found for this address