Contract 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e8

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb9d9b261f91d3e440ebac622406e6a5c6168c3904829a8b8f01198297fd40d820x994948fd251852562022-11-27 15:12:554 hrs 24 mins ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000060988725
0xde4675585b6b4890749d03f8ce10e8a3eb07a34ee0ce954c0a22790fc39057680x994948fd251845412022-11-27 14:08:455 hrs 28 mins ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0x05aac23bb98b81e04de64d578708ee3a80628a86773a43cedea9750f0b52e72b0x994948fd251795222022-11-27 6:38:0512 hrs 59 mins ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0xa46950fd583ad4dc778e9fabf88fa2797b72eb1ac142ff199c838d715ce315de0x994948fd251741072022-11-26 22:32:0021 hrs 5 mins ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000127446
0x7eb251312a6c213a507f645eb9309b5d34534910505ce324f99f285a3c7167750x994948fd251738312022-11-26 22:07:1521 hrs 30 mins ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077422
0xbe26d3b83d53231b891f2477844822b0b9c5fd1ff04417eae9b93092371461090x994948fd251691422022-11-26 15:06:151 day 4 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000075795626
0xe06a88f4ad12c1f40553b80fa40eb5711cbdd1f2be3c71de070c5f9a9140c69d0x994948fd251688352022-11-26 14:38:451 day 4 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.0001210737
0x496a9315a2027820e4e1dafbe37dafe3a51c92d77367d609d52fb0ecb39b305f0x994948fd251672102022-11-26 12:12:551 day 7 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0xa3ad4df12075ba0a529da25148e696ece516d0b3feb8b295bbdfda099f5c848d0x994948fd251668182022-11-26 11:37:401 day 7 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0x3dde205e85c96de592fec437dbfbef6d6a469c6c315fe7b42d3dd34e5b760b5f0x994948fd251614632022-11-26 3:36:551 day 16 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0x58811d92a9704230936e7d8cbaf504690d7f49be0d6633f0e46f6f3c4d3efa330x994948fd251612672022-11-26 3:19:201 day 16 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0xec61fdeda12b6cea68e7780762018430ffc2a519cdd5ca1ea3fb51c8e7ca18c60x994948fd251560522022-11-25 19:30:552 days 6 mins ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000127446
0x8ad37b961e7db74279edcc28ad5e4f1e85365ce4770fece887b9f2ab0e4af1cd0x994948fd251558672022-11-25 19:14:202 days 22 mins ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0x65e3125ec72a5831052e7d3e16695c6f2c5175ddf146758e473445fcbd95caf70x994948fd251545202022-11-25 17:14:052 days 2 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.0000580845
0x191aca06f137bdd7ada4ae5b389e355f990a8b23edeadef7072b5ecbb12ce9900x994948fd251522342022-11-25 13:49:102 days 5 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.00008996706
0x0f9c6486a08778b2c3a1e621dc3041516e8e6351754b2840eea08ddc3d1f3dce0x994948fd251454822022-11-25 3:40:502 days 15 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000127446
0x82e63d79fbf75b639a32c5d81686832b51efeb96966c20df57d3fbfb5db5cb230x994948fd251435592022-11-25 0:49:052 days 18 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0x5ec636911dae8df37deca9e9a87d527ee6ee048a2071799158390e9d85804ceb0x994948fd251419122022-11-24 22:22:052 days 21 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000225134
0x78e334a30623cae595bb4c23e673edd33f065fdb9b8e258814f6303c8cf8f8380x994948fd251401952022-11-24 19:48:452 days 23 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000127446
0xed5de989d6e346139ef57822bd2abeab99a0629603d496f83ee2ea8e9a4f72300x994948fd251383822022-11-24 17:06:503 days 2 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000254892
0x1b58fe34b1f5d8f0bb4215dfcfb0d5eea9d10da42083ff189b5123d7068778dc0x994948fd251348562022-11-24 11:51:403 days 7 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0xf5dee75d2373786a806e59f7736c7976192f142db3d3228909f43fcf97cc8e3a0x994948fd251336302022-11-24 10:02:153 days 9 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0x1338963aaaa708fa1c9022283d9615f1cd841cf79016d6336a637b60302304730x994948fd251323792022-11-24 8:10:253 days 11 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000127446
0xa21a4eae946b53013bee3e0c7219cd2a225557925f1bbef98902813199a0d9f70x994948fd251320482022-11-24 7:40:553 days 11 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
0x4a81e723d5732ef732d367de1b5d12b76e46bb68dfc7c9ec23737cf146fc08af0x994948fd251318222022-11-24 7:20:053 days 12 hrs ago0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83 IN  0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80 xDAI0.000077446
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xb9d9b261f91d3e440ebac622406e6a5c6168c3904829a8b8f01198297fd40d82251852562022-11-27 15:12:554 hrs 24 mins ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x55ba9c90c37e3206570ac9dc872c0f053d155f770.01 xDAI
0xde4675585b6b4890749d03f8ce10e8a3eb07a34ee0ce954c0a22790fc3905768251845412022-11-27 14:08:455 hrs 28 mins ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xee3b83c084267f65c78312315d6c015446d235380.01 xDAI
0x05aac23bb98b81e04de64d578708ee3a80628a86773a43cedea9750f0b52e72b251795222022-11-27 6:38:0512 hrs 59 mins ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xd3e359ba869215ba81bff122669b8b85f249b7590.01 xDAI
0xa46950fd583ad4dc778e9fabf88fa2797b72eb1ac142ff199c838d715ce315de251741072022-11-26 22:32:0021 hrs 5 mins ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xd84df1a9858317db112b599be4035a7b5546b23d0.01 xDAI
0x7eb251312a6c213a507f645eb9309b5d34534910505ce324f99f285a3c716775251738312022-11-26 22:07:1521 hrs 30 mins ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xe7b0232db57dc800e122abda20b17b7076c78fec0.01 xDAI
0xbe26d3b83d53231b891f2477844822b0b9c5fd1ff04417eae9b9309237146109251691422022-11-26 15:06:151 day 4 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x3b78637e124f302ca73257ea6babc705ac0208dc0.01 xDAI
0xe06a88f4ad12c1f40553b80fa40eb5711cbdd1f2be3c71de070c5f9a9140c69d251688352022-11-26 14:38:451 day 4 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x0d3d681762f9eda9541fab6acfb17c50025b630b0.01 xDAI
0x496a9315a2027820e4e1dafbe37dafe3a51c92d77367d609d52fb0ecb39b305f251672102022-11-26 12:12:551 day 7 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xba2bfa28f9dd9b2886cf1e1e47d6bbebb429e9d90.01 xDAI
0xa3ad4df12075ba0a529da25148e696ece516d0b3feb8b295bbdfda099f5c848d251668182022-11-26 11:37:401 day 7 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xe627f012c94f304ebe83a3ec476a3ea33cc7b7160.01 xDAI
0x3dde205e85c96de592fec437dbfbef6d6a469c6c315fe7b42d3dd34e5b760b5f251614632022-11-26 3:36:551 day 16 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x8346867972983eca1b7ceb5d3a60bb18f23a96010.01 xDAI
0x58811d92a9704230936e7d8cbaf504690d7f49be0d6633f0e46f6f3c4d3efa33251612672022-11-26 3:19:201 day 16 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x0b8e5bdbb5b8d83af32d3984ba9bfae635edf1560.01 xDAI
0xec61fdeda12b6cea68e7780762018430ffc2a519cdd5ca1ea3fb51c8e7ca18c6251560522022-11-25 19:30:552 days 6 mins ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x2817cc50d32098ead50a1212cc0e6b0df2ce7a6f0.01 xDAI
0x8ad37b961e7db74279edcc28ad5e4f1e85365ce4770fece887b9f2ab0e4af1cd251558672022-11-25 19:14:202 days 22 mins ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x2a9047586fc33a16aeafe82df33f176b1159eaed0.01 xDAI
0x65e3125ec72a5831052e7d3e16695c6f2c5175ddf146758e473445fcbd95caf7251545202022-11-25 17:14:052 days 2 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x0cc0fdfa2a9edfc89087e405a4d4b6120ea686fb0.01 xDAI
0x191aca06f137bdd7ada4ae5b389e355f990a8b23edeadef7072b5ecbb12ce990251522342022-11-25 13:49:102 days 5 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x0f39fcdaccf133bc0ab0365f65e2f02aa0575a580.01 xDAI
0x0f9c6486a08778b2c3a1e621dc3041516e8e6351754b2840eea08ddc3d1f3dce251454822022-11-25 3:40:502 days 15 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x2c9bada9ce5e04d7c37ba4557dfd5df667d7ef230.01 xDAI
0x82e63d79fbf75b639a32c5d81686832b51efeb96966c20df57d3fbfb5db5cb23251435592022-11-25 0:49:052 days 18 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x19fe156013996735d627f77be84d7c890f84407f0.01 xDAI
0x5ec636911dae8df37deca9e9a87d527ee6ee048a2071799158390e9d85804ceb251419122022-11-24 22:22:052 days 21 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x77e16fe6ed43c01e2ec8c80f7e5a29fe93101d690.01 xDAI
0x5ec636911dae8df37deca9e9a87d527ee6ee048a2071799158390e9d85804ceb251419122022-11-24 22:22:052 days 21 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x2625cabf3e4460745f74821c860a14155e238eb70.01 xDAI
0x5ec636911dae8df37deca9e9a87d527ee6ee048a2071799158390e9d85804ceb251419122022-11-24 22:22:052 days 21 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xf7abd25afbfff42e8323f7da7179f4beb43b94350.01 xDAI
0x78e334a30623cae595bb4c23e673edd33f065fdb9b8e258814f6303c8cf8f838251401952022-11-24 19:48:452 days 23 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xda78e091d7bd3d8f4f03ff2e09244a4b57e3413b0.01 xDAI
0xed5de989d6e346139ef57822bd2abeab99a0629603d496f83ee2ea8e9a4f7230251383822022-11-24 17:06:503 days 2 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x5895f75241f7f1a41944300b82dd96dc58e30e250.01 xDAI
0x1b58fe34b1f5d8f0bb4215dfcfb0d5eea9d10da42083ff189b5123d7068778dc251348562022-11-24 11:51:403 days 7 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x868490398931ffead3c38d6d9af71f4f06d3f4f60.01 xDAI
0xf5dee75d2373786a806e59f7736c7976192f142db3d3228909f43fcf97cc8e3a251336302022-11-24 10:02:153 days 9 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80x71646d3b9f3924b4667e438656e7a36b6b6c12160.01 xDAI
0x1338963aaaa708fa1c9022283d9615f1cd841cf79016d6336a637b6030230473251323792022-11-24 8:10:253 days 11 hrs ago 0xa7547fd05e83d55f2198b40b5f60fdc5ee1386e80xbee2ae163e7095301b6217c719d0f6a7e9babf110.01 xDAI
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Manager

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at gnosisscan.io on 2022-08-08
*/

// Sources flattened with hardhat v2.9.6 https://hardhat.org

// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(
        bytes32 indexed role,
        bytes32 indexed previousAdminRole,
        bytes32 indexed newAdminRole
    );

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(
        bytes32 indexed role,
        address indexed account,
        address indexed sender
    );

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(
        bytes32 indexed role,
        address indexed account,
        address indexed sender
    );

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account)
        external
        view
        returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length)
        internal
        pure
        returns (string memory)
    {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IAccessControl).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role)
        public
        view
        virtual
        override
        returns (bytes32)
    {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account)
        public
        virtual
        override
        onlyRole(getRoleAdmin(role))
    {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account)
        public
        virtual
        override
        onlyRole(getRoleAdmin(role))
    {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account)
        public
        virtual
        override
    {
        require(
            account == _msgSender(),
            "AccessControl: can only renounce roles for self"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

        (bool success, ) = recipient.call{value: amount}("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                "Address: low-level call with value failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            "Address: insufficient balance for call"
        );
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(
            data
        );
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data)
        internal
        view
        returns (bytes memory)
    {
        return
            functionStaticCall(
                target,
                data,
                "Address: low-level static call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionDelegateCall(
                target,
                data,
                "Address: low-level delegate call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File @openzeppelin/contracts/token/ERC20/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transfer.selector, to, value)
        );
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
        );
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(
                oldAllowance >= value,
                "SafeERC20: decreased allowance below zero"
            );
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(
                token,
                abi.encodeWithSelector(
                    token.approve.selector,
                    spender,
                    newAllowance
                )
            );
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(
            data,
            "SafeERC20: low-level call failed"
        );
        if (returndata.length > 0) {
            // Return data is optional
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}

// File contracts/Manager.sol

//SPDX-License-Identifier: MIT
// author: spsina (https://github.com/spsina/)

pragma solidity ^0.8.4;

struct EthRecipient {
    address to;
    uint256 amount;
}

struct Erc20Recipient {
    address token;
    address to;
    uint256 amount;
}

contract Manager is AccessControl {
    using SafeERC20 for IERC20;

    uint256 public ethPeriod; // native asset (eth) period
    uint256 public ethPeriodicMaxCap; // native asset periodic cap
    mapping(uint256 => uint256) public ethTotalWithdrawals; // period => amount

    mapping(address => uint256) public erc20Periods; // erc20 token => period
    mapping(address => uint256) public erc20PeriodicMaxCap; // erc20 token =>  erc20 periodic max cap
    mapping(address => mapping(uint256 => uint256)) public erc20Withdrawals; // erc20 token => period => period withrawals
    bytes32 public constant UNITAP_ROLE = keccak256("UNITAP_ROLE");

    constructor(
        uint256 period_,
        uint256 periodicMaxCap_,
        address admin,
        address unitap
    ) {
        require(
            admin != address(0) && unitap != address(0),
            "Manager: ZERO_ADDRESS"
        );
        ethPeriod = period_;
        ethPeriodicMaxCap = periodicMaxCap_;
        _setupRole(DEFAULT_ADMIN_ROLE, admin);
        _setupRole(UNITAP_ROLE, unitap);
    }

    modifier onlyUnitapOrAdmin() {
        require(
            hasRole(UNITAP_ROLE, msg.sender) ||
                hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
            "Manager: UNAUTHORIZED"
        );
        _;
    }

    function getActivePeriod(uint256 period_) public view returns (uint256) {
        return (block.timestamp / period_) * period_;
    }

    function _checkAndUpdateEthMaxCap(uint256 amount) internal {
        if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) {
            require(
                ethTotalWithdrawals[getActivePeriod(ethPeriod)] + amount <=
                    ethPeriodicMaxCap,
                "Manager: PERIODIC_MAX_CAP_EXCEEDED"
            );
            ethTotalWithdrawals[getActivePeriod(ethPeriod)] += amount;
        }
    }

    function _checkAndUpdateErc20MaxCap(address token, uint256 amount)
        internal
    {
        if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) {
            require(
                erc20Withdrawals[token][getActivePeriod(erc20Periods[token])] +
                    amount <=
                    erc20PeriodicMaxCap[token],
                "Manager: PERIODIC_MAX_CAP_EXCEEDED"
            );
            erc20Withdrawals[token][
                getActivePeriod(erc20Periods[token])
            ] += amount;
        }
    }

    function withdrawEth(uint256 amount, address to) public onlyUnitapOrAdmin {
        // allow DEFALUT_ADMIN to withdraw as much as he wants
        _checkAndUpdateEthMaxCap(amount);
        payable(to).transfer(amount);
    }

    function multiWithdrawEth(EthRecipient[] memory recipients)
        external
        onlyRole(UNITAP_ROLE)
    {
        for (uint8 i = 0; i < recipients.length; i++)
            withdrawEth(recipients[i].amount, recipients[i].to);
    }

    function withdrawErc20(
        address token,
        uint256 amount,
        address to
    ) public onlyUnitapOrAdmin {
        _checkAndUpdateErc20MaxCap(token, amount);
        IERC20(token).safeTransfer(to, amount);
    }

    function multiWithdrawErc20(Erc20Recipient[] memory recipients)
        external
        onlyRole(UNITAP_ROLE)
    {
        for (uint8 i = 0; i < recipients.length; i++)
            withdrawErc20(
                recipients[i].token,
                recipients[i].amount,
                recipients[i].to
            );
    }

    function setEthParams(uint256 period_, uint256 periodicMaxCap_)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        ethPeriod = period_;
        ethPeriodicMaxCap = periodicMaxCap_;
    }

    function setErc20Params(
        address token,
        uint256 period_,
        uint256 periodicMaxCap_
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        erc20Periods[token] = period_;
        erc20PeriodicMaxCap[token] = periodicMaxCap_;
    }

    receive() external payable {}
}

// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue)
        public
        virtual
        returns (bool)
    {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        virtual
        returns (bool)
    {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(
            currentAllowance >= subtractedValue,
            "ERC20: decreased allowance below zero"
        );
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(
            fromBalance >= amount,
            "ERC20: transfer amount exceeds balance"
        );
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(
                currentAllowance >= amount,
                "ERC20: insufficient allowance"
            );
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File contracts/test/token.sol

pragma solidity ^0.8.4;

contract TestToken is ERC20 {
    constructor() ERC20("TestToken", "TST") {
        _mint(msg.sender, 1000 * 10**decimals());
    }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"period_","type":"uint256"},{"internalType":"uint256","name":"periodicMaxCap_","type":"uint256"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"unitap","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNITAP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"erc20PeriodicMaxCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"erc20Periods","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"erc20Withdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethPeriodicMaxCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ethTotalWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period_","type":"uint256"}],"name":"getActivePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Erc20Recipient[]","name":"recipients","type":"tuple[]"}],"name":"multiWithdrawErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct EthRecipient[]","name":"recipients","type":"tuple[]"}],"name":"multiWithdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"period_","type":"uint256"},{"internalType":"uint256","name":"periodicMaxCap_","type":"uint256"}],"name":"setErc20Params","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"period_","type":"uint256"},{"internalType":"uint256","name":"periodicMaxCap_","type":"uint256"}],"name":"setEthParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162002b2d38038062002b2d8339818101604052810190620000379190620002ea565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015620000a25750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b620000e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000db906200037d565b60405180910390fd5b8360018190555082600281905550620001076000801b836200014360201b60201c565b620001397fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d699031826200014360201b60201c565b505050506200044b565b6200015582826200015960201b60201c565b5050565b6200016b82826200024a60201b60201c565b6200024657600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001eb620002b460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600081519050620002cd8162000417565b92915050565b600081519050620002e48162000431565b92915050565b600080600080608085870312156200030157600080fd5b60006200031187828801620002d3565b94505060206200032487828801620002d3565b93505060406200033787828801620002bc565b92505060606200034a87828801620002bc565b91505092959194509250565b6000620003656015836200039f565b91506200037282620003ee565b602082019050919050565b60006020820190508181036000830152620003988162000356565b9050919050565b600082825260208201905092915050565b6000620003bd82620003c4565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4d616e616765723a205a45524f5f414444524553530000000000000000000000600082015250565b6200042281620003b0565b81146200042e57600080fd5b50565b6200043c81620003e4565b81146200044857600080fd5b50565b6126d2806200045b6000396000f3fe60806040526004361061012e5760003560e01c806391d14854116100ab578063a3dcedc81161006f578063a3dcedc81461041f578063afb5cb671461045c578063b95e518914610485578063d547741f146104b0578063dd1edc03146104d9578063e650fe481461050257610135565b806391d148541461033c578063979e8d7914610379578063994948fd146103a2578063a158657c146103cb578063a217fddf146103f457610135565b806336568abe116100f257806336568abe146102455780633891cc0c1461026e5780634425fa49146102ab5780635e2dfaf9146102d45780636eb500051461031157610135565b806301ffc9a71461013a5780631362915114610177578063228c076c146101a2578063248a9ca3146101df5780632f2ff15d1461021c57610135565b3661013557005b600080fd5b34801561014657600080fd5b50610161600480360381019061015c9190611bfb565b61053f565b60405161016e9190611f51565b60405180910390f35b34801561018357600080fd5b5061018c6105b9565b6040516101999190612089565b60405180910390f35b3480156101ae57600080fd5b506101c960048036038101906101c49190611c24565b6105bf565b6040516101d69190612089565b60405180910390f35b3480156101eb57600080fd5b5061020660048036038101906102019190611b96565b6105df565b6040516102139190611f6c565b60405180910390f35b34801561022857600080fd5b50610243600480360381019061023e9190611bbf565b6105fe565b005b34801561025157600080fd5b5061026c60048036038101906102679190611bbf565b61061f565b005b34801561027a57600080fd5b5061029560048036038101906102909190611a11565b6106a2565b6040516102a29190612089565b60405180910390f35b3480156102b757600080fd5b506102d260048036038101906102cd9190611a9c565b6106c7565b005b3480156102e057600080fd5b506102fb60048036038101906102f691906119e8565b610762565b6040516103089190612089565b60405180910390f35b34801561031d57600080fd5b5061032661077a565b6040516103339190612089565b60405180910390f35b34801561034857600080fd5b50610363600480360381019061035e9190611bbf565b610780565b6040516103709190611f51565b60405180910390f35b34801561038557600080fd5b506103a0600480360381019061039b9190611aeb565b6107ea565b005b3480156103ae57600080fd5b506103c960048036038101906103c49190611b2c565b61091b565b005b3480156103d757600080fd5b506103f260048036038101906103ed9190611c4d565b610a04565b005b34801561040057600080fd5b50610409610ad5565b6040516104169190611f6c565b60405180910390f35b34801561042b57600080fd5b5061044660048036038101906104419190611c24565b610adc565b6040516104539190612089565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e9190611a4d565b610af4565b005b34801561049157600080fd5b5061049a610bab565b6040516104a79190611f6c565b60405180910390f35b3480156104bc57600080fd5b506104d760048036038101906104d29190611bbf565b610bcf565b005b3480156104e557600080fd5b5061050060048036038101906104fb9190611c89565b610bf0565b005b34801561050e57600080fd5b50610529600480360381019061052491906119e8565b610c10565b6040516105369190612089565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105b257506105b182610c28565b5b9050919050565b60025481565b60008182426105ce91906121b4565b6105d891906121e5565b9050919050565b6000806000838152602001908152602001600020600101549050919050565b610607826105df565b61061081610c92565b61061a8383610ca6565b505050565b610627610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b90612069565b60405180910390fd5b61069e8282610d8e565b5050565b6006602052816000526040600020602052806000526040600020600091509150505481565b6000801b6106d481610c92565b82600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b60046020528060005260406000206000915090505481565b60015481565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903161081481610c92565b60005b82518160ff16101561091657610903838260ff1681518110610862577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160000151848360ff16815181106108aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160400151858460ff16815181106108f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160200151610af4565b808061090e90612358565b915050610817565b505050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903161094581610c92565b60005b82518160ff1610156109ff576109ec838260ff1681518110610993577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160200151848360ff16815181106109db577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160000151610a04565b80806109f790612358565b915050610948565b505050565b610a2e7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903133610780565b80610a425750610a416000801b33610780565b5b610a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7890612009565b60405180910390fd5b610a8a82610e6f565b8073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610ad0573d6000803e3d6000fd5b505050565b6000801b81565b60036020528060005260406000206000915090505481565b610b1e7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903133610780565b80610b325750610b316000801b33610780565b5b610b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6890612009565b60405180910390fd5b610b7b8383610f25565b610ba681838573ffffffffffffffffffffffffffffffffffffffff1661110d9092919063ffffffff16565b505050565b7fc45f5d8c4e0dd67196dabbc11e523116decf1539277d39eda24c612b7d69903181565b610bd8826105df565b610be181610c92565b610beb8383610d8e565b505050565b6000801b610bfd81610c92565b8260018190555081600281905550505050565b60056020528060005260406000206000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610ca381610c9e610d86565b611193565b50565b610cb08282610780565b610d8257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610d27610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610d988282610780565b15610e6b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610e10610d86565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b610e7c6000801b33610780565b610f22576002548160036000610e936001546105bf565b815260200190815260200160002054610eac919061215e565b1115610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490611fc9565b60405180910390fd5b8060036000610efd6001546105bf565b81526020019081526020016000206000828254610f1a919061215e565b925050819055505b50565b610f326000801b33610780565b61110957600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611000600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105bf565b815260200190815260200160002054611019919061215e565b111561105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190611fc9565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006110e4600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105bf565b81526020019081526020016000206000828254611101919061215e565b925050819055505b5050565b61118e8363a9059cbb60e01b848460405160240161112c929190611f28565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611230565b505050565b61119d8282610780565b61122c576111c28173ffffffffffffffffffffffffffffffffffffffff1660146112f7565b6111d08360001c60206112f7565b6040516020016111e1929190611eee565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112239190611f87565b60405180910390fd5b5050565b6000611292826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115f19092919063ffffffff16565b90506000815111156112f257808060200190518101906112b29190611b6d565b6112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e890612049565b60405180910390fd5b5b505050565b60606000600283600261130a91906121e5565b611314919061215e565b67ffffffffffffffff811115611353577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156113855781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106113e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061146d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026114ad91906121e5565b6114b7919061215e565b90505b60018111156115a3577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061151f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061155c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061159c906122fd565b90506114ba565b50600084146115e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115de90611fa9565b60405180910390fd5b8091505092915050565b60606116008484600085611609565b90509392505050565b60608247101561164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590611fe9565b60405180910390fd5b6116578561171d565b611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d90612029565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116bf9190611ed7565b60006040518083038185875af1925050503d80600081146116fc576040519150601f19603f3d011682016040523d82523d6000602084013e611701565b606091505b5091509150611711828286611740565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611750578290506117a0565b6000835111156117635782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117979190611f87565b60405180910390fd5b9392505050565b60006117ba6117b5846120c9565b6120a4565b905080838252602082019050828560608602820111156117d957600080fd5b60005b8581101561180957816117ef8882611927565b8452602084019350606083019250506001810190506117dc565b5050509392505050565b6000611826611821846120f5565b6120a4565b9050808382526020820190508285604086028201111561184557600080fd5b60005b85811015611875578161185b8882611987565b845260208401935060408301925050600181019050611848565b5050509392505050565b60008135905061188e81612629565b92915050565b600082601f8301126118a557600080fd5b81356118b58482602086016117a7565b91505092915050565b600082601f8301126118cf57600080fd5b81356118df848260208601611813565b91505092915050565b6000815190506118f781612640565b92915050565b60008135905061190c81612657565b92915050565b6000813590506119218161266e565b92915050565b60006060828403121561193957600080fd5b61194360606120a4565b905060006119538482850161187f565b60008301525060206119678482850161187f565b602083015250604061197b848285016119d3565b60408301525092915050565b60006040828403121561199957600080fd5b6119a360406120a4565b905060006119b38482850161187f565b60008301525060206119c7848285016119d3565b60208301525092915050565b6000813590506119e281612685565b92915050565b6000602082840312156119fa57600080fd5b6000611a088482850161187f565b91505092915050565b60008060408385031215611a2457600080fd5b6000611a328582860161187f565b9250506020611a43858286016119d3565b9150509250929050565b600080600060608486031215611a6257600080fd5b6000611a708682870161187f565b9350506020611a81868287016119d3565b9250506040611a928682870161187f565b9150509250925092565b600080600060608486031215611ab157600080fd5b6000611abf8682870161187f565b9350506020611ad0868287016119d3565b9250506040611ae1868287016119d3565b9150509250925092565b600060208284031215611afd57600080fd5b600082013567ffffffffffffffff811115611b1757600080fd5b611b2384828501611894565b91505092915050565b600060208284031215611b3e57600080fd5b600082013567ffffffffffffffff811115611b5857600080fd5b611b64848285016118be565b91505092915050565b600060208284031215611b7f57600080fd5b6000611b8d848285016118e8565b91505092915050565b600060208284031215611ba857600080fd5b6000611bb6848285016118fd565b91505092915050565b60008060408385031215611bd257600080fd5b6000611be0858286016118fd565b9250506020611bf18582860161187f565b9150509250929050565b600060208284031215611c0d57600080fd5b6000611c1b84828501611912565b91505092915050565b600060208284031215611c3657600080fd5b6000611c44848285016119d3565b91505092915050565b60008060408385031215611c6057600080fd5b6000611c6e858286016119d3565b9250506020611c7f8582860161187f565b9150509250929050565b60008060408385031215611c9c57600080fd5b6000611caa858286016119d3565b9250506020611cbb858286016119d3565b9150509250929050565b611cce8161223f565b82525050565b611cdd81612251565b82525050565b611cec8161225d565b82525050565b6000611cfd82612121565b611d078185612137565b9350611d178185602086016122ca565b80840191505092915050565b6000611d2e8261212c565b611d388185612142565b9350611d488185602086016122ca565b611d518161240f565b840191505092915050565b6000611d678261212c565b611d718185612153565b9350611d818185602086016122ca565b80840191505092915050565b6000611d9a602083612142565b9150611da582612420565b602082019050919050565b6000611dbd602283612142565b9150611dc882612449565b604082019050919050565b6000611de0602683612142565b9150611deb82612498565b604082019050919050565b6000611e03601583612142565b9150611e0e826124e7565b602082019050919050565b6000611e26601d83612142565b9150611e3182612510565b602082019050919050565b6000611e49601783612153565b9150611e5482612539565b601782019050919050565b6000611e6c602a83612142565b9150611e7782612562565b604082019050919050565b6000611e8f601183612153565b9150611e9a826125b1565b601182019050919050565b6000611eb2602f83612142565b9150611ebd826125da565b604082019050919050565b611ed1816122b3565b82525050565b6000611ee38284611cf2565b915081905092915050565b6000611ef982611e3c565b9150611f058285611d5c565b9150611f1082611e82565b9150611f1c8284611d5c565b91508190509392505050565b6000604082019050611f3d6000830185611cc5565b611f4a6020830184611ec8565b9392505050565b6000602082019050611f666000830184611cd4565b92915050565b6000602082019050611f816000830184611ce3565b92915050565b60006020820190508181036000830152611fa18184611d23565b905092915050565b60006020820190508181036000830152611fc281611d8d565b9050919050565b60006020820190508181036000830152611fe281611db0565b9050919050565b6000602082019050818103600083015261200281611dd3565b9050919050565b6000602082019050818103600083015261202281611df6565b9050919050565b6000602082019050818103600083015261204281611e19565b9050919050565b6000602082019050818103600083015261206281611e5f565b9050919050565b6000602082019050818103600083015261208281611ea5565b9050919050565b600060208201905061209e6000830184611ec8565b92915050565b60006120ae6120bf565b90506120ba8282612327565b919050565b6000604051905090565b600067ffffffffffffffff8211156120e4576120e36123e0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156121105761210f6123e0565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612169826122b3565b9150612174836122b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121a9576121a8612382565b5b828201905092915050565b60006121bf826122b3565b91506121ca836122b3565b9250826121da576121d96123b1565b5b828204905092915050565b60006121f0826122b3565b91506121fb836122b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561223457612233612382565b5b828202905092915050565b600061224a82612293565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156122e85780820151818401526020810190506122cd565b838111156122f7576000848401525b50505050565b6000612308826122b3565b9150600082141561231c5761231b612382565b5b600182039050919050565b6123308261240f565b810181811067ffffffffffffffff8211171561234f5761234e6123e0565b5b80604052505050565b6000612363826122bd565b915060ff82141561237757612376612382565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4d616e616765723a20504552494f4449435f4d41585f4341505f45584345454460008201527f4544000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d616e616765723a20554e415554484f52495a45440000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6126328161223f565b811461263d57600080fd5b50565b61264981612251565b811461265457600080fd5b50565b6126608161225d565b811461266b57600080fd5b50565b61267781612267565b811461268257600080fd5b50565b61268e816122b3565b811461269957600080fd5b5056fea2646970667358221220d6788e464c79f78f5ef5b33fded44358c351a9c3bce2862a9b50895bfd45781d64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83

-----Decoded View---------------
Arg [0] : period_ (uint256): 86400
Arg [1] : periodicMaxCap_ (uint256): 1000000000000000000
Arg [2] : admin (address): 0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83
Arg [3] : unitap (address): 0xb10f8e218a9cd738b0f1e2f7169aa3c0897f2d83

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [1] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [2] : 000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83
Arg [3] : 000000000000000000000000b10f8e218a9cd738b0f1e2f7169aa3c0897f2d83


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.