Contract 0x36C73F33916aA6EDBB1b8a0fd63D054c7E0Af57A

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x5475b83f423db50f21d22b98b0546fa0bec46bf50040fac04dfb49d5176fc273Set Destinations76698942022-03-10 0:45:37749 days 21 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000290411627 ETH0.381420454
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008fDistribute76617272022-03-09 19:49:06750 days 2 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000188595057 ETH0.394245984
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b49Distribute73100172022-03-02 22:48:11756 days 23 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000302358619 ETH0.572177505
0xd5e55f7993e5bdbeee104f90e9fa7b1c17e58b70cda1bb714ccf44db585fca1aSet Destinations73053692022-03-02 22:10:30757 days 17 mins ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000533081999 ETH0.568245
0xc0eeb920324ac34f384d9188a8da88360542d499f5e04ed4774d5f0bbf731908Distribute73039462022-03-02 22:00:30757 days 27 mins ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000242104759 ETH0.568245
0x4978ae7686d60316d0e0de51cf7519e0be3cc611e81d2d7b892990b886c7486aAdd Distributed ...73039192022-03-02 22:00:30757 days 27 mins ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000321793734 ETH0.568245
0x56d0e04af56f8ce8d1895ae6ad7c7053cf8477dac49caef51b6f9f1bb2d2a0d3Distribute73035662022-03-02 21:58:26757 days 29 mins ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000241072258 ETH0.568245
0x6f570bf4d567b08ca1ac1de732e494f33e4293d9d832bf637de30e9cd49bb027Set Destinations73035422022-03-02 21:58:26757 days 29 mins ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000432607759 ETH0.568245
0x3dbdf8b4e636d16a08e1d928604c98197b68b80b60b6d87e3e4c5d679e2077eeSet Name70672002022-02-28 0:08:20759 days 22 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000234628739 ETH0.465559078
0x8c8e629a5016dfb828d97a568f71a9ead09f6c985a1a5d5b937fbeb7a141285dDistribute70669122022-02-28 0:02:43759 days 22 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000198292784 ETH0.465559078
0x18ad41b6b3b36f9c3a4e78600a163c64e38ad103971c9d68ba09f4eb7ae15238Set Destinations70668842022-02-28 0:02:43759 days 22 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000355035352 ETH0.465559078
0x00a51b37a9f0642b80c92d292293e6bce722d55c747152ddffed116596b2559cRevoke Role61751892022-02-16 12:37:58771 days 9 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000316942406 ETH0.606662646
0x013719a6ae9e01e19335b36449649e12d3e9fa7a582e526192cdd8ae4a305063Revoke Role61751732022-02-16 12:37:14771 days 9 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000316942406 ETH0.606662646
0xca6996261237568507093cb26eff383c8fdf230c202f073d334dc415080011eeRemove Distribut...61304792022-02-15 20:32:32772 days 1 hr ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000263705868 ETH0.565169586
0x6d02c6f24795079dd3e7c44d57e9fd1c1450039188e75ca0e590ba66d513ee2eSet Destinations61304342022-02-15 20:31:17772 days 1 hr ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000270759135 ETH0.558671726
0x267acda02a23e93ced0e4f138ebd4fd4cfa1da70b9abfbc652646098fc557e0bDistribute47527552022-01-18 6:52:13800 days 15 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000815237857 ETH1.244358682
0xaeb664ce5beaa79384d1979de86f0b577a4970e9028a6bc6e91c24e5ce0ae6c3Distribute46462412022-01-14 18:15:02804 days 4 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.001077792775 ETH1.648588526
0xbe264beccb2a008163c70e6e6c7866bf637887ec13f6230d47b8cdc6ad3a4ad7Distribute45833992022-01-12 10:45:43806 days 11 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.001511222948 ETH1.579643633
0x008aa658c07931599d73771be03442d44a13d57a043d0bfe37634eadba905899Distribute44299392022-01-06 23:20:09811 days 23 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.001123809531 ETH1.17638697
0x1d630a4ea5efb5ed04cee5353661fc7f1a44259ca8a6260560be1c2085f4e14fDistribute42730592022-01-02 18:46:03816 days 3 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.001001746923 ETH0.795743937
0x7ebd6a05a84da89bb797f7bfe11f761ff2087075b7cebbb885ab00b549d681b3Distribute41800292021-12-30 12:39:08819 days 9 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.001231182587 ETH0.976926674
0xebe868feb4872dfe689374574ad98aa8aa43379d344d4c9ca270dc33f1502f27Distribute41447802021-12-28 23:06:40820 days 23 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.001022124132 ETH0.811930701
0xdd16da4767c50e1577f0774565d088c8e651d746d982c9a2f87d786fb9e29f20Distribute41312232021-12-28 10:04:47821 days 12 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000935352266 ETH0.743818308
0xf0a3f3336627a6109a01612debf31203cbc3d26902e438b2d7531684d783cdbfDistribute40921272021-12-26 10:02:31823 days 12 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000812601394 ETH0.644788178
0xd7842f522f75b3f50f520c469aa41373c8a7dcc84e8bbe39e529d5293fc0b253Distribute40218412021-12-22 15:06:16827 days 7 hrs ago0x9570aa44e2033ccc3f009666215635e264e375aa IN  0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a0 ETH0.000808394568 ETH0.642160425
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008f76617272022-03-09 19:49:06750 days 2 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008f76617272022-03-09 19:49:06750 days 2 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008f76617272022-03-09 19:49:06750 days 2 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008f76617272022-03-09 19:49:06750 days 2 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008f76617272022-03-09 19:49:06750 days 2 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008f76617272022-03-09 19:49:06750 days 2 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0x07481becbe8bae63664177a3e66c8ae04a23b45964492d53189e8c983bb6008f76617272022-03-09 19:49:06750 days 2 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b4973100172022-03-02 22:48:11756 days 23 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b4973100172022-03-02 22:48:11756 days 23 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b4973100172022-03-02 22:48:11756 days 23 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b4973100172022-03-02 22:48:11756 days 23 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b4973100172022-03-02 22:48:11756 days 23 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b4973100172022-03-02 22:48:11756 days 23 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0x7f7b40868c1cb86a494a8fb5b2f302856dc1c9a36ced36cb3547dd4d43d33b4973100172022-03-02 22:48:11756 days 23 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xc0eeb920324ac34f384d9188a8da88360542d499f5e04ed4774d5f0bbf73190873039462022-03-02 22:00:30757 days 27 mins ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0xc0eeb920324ac34f384d9188a8da88360542d499f5e04ed4774d5f0bbf73190873039462022-03-02 22:00:30757 days 27 mins ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x8b194beae1d3e0788a1a35173978001acdfba6680 ETH
0xc0eeb920324ac34f384d9188a8da88360542d499f5e04ed4774d5f0bbf73190873039462022-03-02 22:00:30757 days 27 mins ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0xc0eeb920324ac34f384d9188a8da88360542d499f5e04ed4774d5f0bbf73190873039462022-03-02 22:00:30757 days 27 mins ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a Wrapped Ether0 ETH
0xc0eeb920324ac34f384d9188a8da88360542d499f5e04ed4774d5f0bbf73190873039462022-03-02 22:00:30757 days 27 mins ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x56d0e04af56f8ce8d1895ae6ad7c7053cf8477dac49caef51b6f9f1bb2d2a0d373035662022-03-02 21:58:26757 days 29 mins ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x8c8e629a5016dfb828d97a568f71a9ead09f6c985a1a5d5b937fbeb7a141285d70669122022-02-28 0:02:43759 days 22 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x8c8e629a5016dfb828d97a568f71a9ead09f6c985a1a5d5b937fbeb7a141285d70669122022-02-28 0:02:43759 days 22 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x267acda02a23e93ced0e4f138ebd4fd4cfa1da70b9abfbc652646098fc557e0b47527552022-01-18 6:52:13800 days 15 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x75a2f30929c539e7d4ee033c9331b89f879c0cf70 ETH
0x267acda02a23e93ced0e4f138ebd4fd4cfa1da70b9abfbc652646098fc557e0b47527552022-01-18 6:52:13800 days 15 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0x267acda02a23e93ced0e4f138ebd4fd4cfa1da70b9abfbc652646098fc557e0b47527552022-01-18 6:52:13800 days 15 hrs ago 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Distributor

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 11 : Distributor.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract Distributor is AccessControl, ReentrancyGuard {
  using SafeERC20 for IERC20;

  address[] public destinations;
  uint256[] public shares;
  address[] public distributedTokens;
  mapping(address => bool) public isDistributedToken;
  uint256 public immutable SCALE = 1e40;
  bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
  string public name;

  constructor(string memory _name) {
    name = _name;
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }

  event DistributedToken(address token, uint256 amount);

  function setDestinations(address[] calldata _destinations, uint256[] calldata _shares) external onlyAdmin {
    require(_destinations.length == _shares.length, "Destinations and shares different lengths");
    delete destinations;
    delete shares;
    for (uint256 i = 0; i < _destinations.length; i++) {
      destinations.push(_destinations[i]);
    }
    for (uint256 i = 0; i < _shares.length; i++) {
      shares.push(_shares[i]);
    }
  }

  function distribute() public nonReentrant {
    for (uint256 i = 0; i < distributedTokens.length; i++) {
      address token = distributedTokens[i];
      uint256 tokenBalance = IERC20(token).balanceOf(address(this));
      if (tokenBalance == 0) {
        // Nothing to distribute for this token
        continue;
      }
      for (uint256 j = 0; j < destinations.length; j++) {
        uint256 shareAmount = (tokenBalance * shares[j]) / SCALE;
        IERC20(token).safeTransfer(destinations[j], shareAmount);
        emit DistributedToken(token, shareAmount);
      }
    }
  }

  function addDistributedToken(address token) external onlyAdmin {
    isDistributedToken[token] = true;
    distributedTokens.push(token);
  }

  function removeDistributedToken(address token) external onlyAdmin {
    for (uint256 i = 0; i < distributedTokens.length; i++) {
      if (distributedTokens[i] == token) {
        distributedTokens[i] = distributedTokens[distributedTokens.length - 1];
        distributedTokens.pop();
        isDistributedToken[token] = false;
      }
    }
  }

  function recoverEth() external onlyAdmin {
    (bool success, ) = msg.sender.call{value: address(this).balance}("");
    require(success, "Withdraw failed");
  }

  function setName(string calldata _name) external onlyAdmin {
    name = _name;
  }

  modifier onlyAdmin() {
    require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin");
    _;
  }
}

File 2 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        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 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 granted `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}.
     * ====
     */
    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);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @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 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 11 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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 6 of 11 : Context.sol
// SPDX-License-Identifier: MIT

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 7 of 11 : Strings.sol
// SPDX-License-Identifier: MIT

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 8 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @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 9 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT

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 10 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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);
}

File 11 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DistributedToken","type":"event"},{"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":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addDistributedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"destinations","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"distributedTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"isDistributedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeDistributedToken","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":"_destinations","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"name":"setDestinations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60a0604052701d6329f1c35ca4bfabb9f56100000000006080523480156200002657600080fd5b5060405162001d5938038062001d598339810160408190526200004991620001cd565b6001805580516200006290600690602084019062000127565b506200007060003362000077565b50620002f6565b62000083828262000087565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000083576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620000e33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200013590620002a3565b90600052602060002090601f016020900481019282620001595760008555620001a4565b82601f106200017457805160ff1916838001178555620001a4565b82800160010185558215620001a4579182015b82811115620001a457825182559160200191906001019062000187565b50620001b2929150620001b6565b5090565b5b80821115620001b25760008155600101620001b7565b60006020808385031215620001e0578182fd5b82516001600160401b0380821115620001f7578384fd5b818501915085601f8301126200020b578384fd5b815181811115620002205762000220620002e0565b604051601f8201601f19908116603f011681019083821181831017156200024b576200024b620002e0565b81604052828152888684870101111562000263578687fd5b8693505b8284101562000286578484018601518185018701529285019262000267565b828411156200029757868684830101525b98975050505050505050565b600181811c90821680620002b857607f821691505b60208210811415620002da57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b608051611a4062000319600039600081816103550152610d810152611a406000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c80638dd4ba2e116100cd578063c47f002711610081578063d547741f11610066578063d547741f14610335578063e4fc6b6d14610348578063eced55261461035057600080fd5b8063c47f00271461030f578063d0fd90ee1461032257600080fd5b806393d995d1116100b257806393d995d1146102ec578063a217fddf146102ff578063bcdb446b1461030757600080fd5b80638dd4ba2e146102a257806391d14854146102b557600080fd5b806336568abe1161012457806357a858fc1161010957806357a858fc1461025557806375b238fc1461026857806381e6c5b51461028f57600080fd5b806336568abe1461021757806337a155031461022a57600080fd5b806306fdde031161015557806306fdde03146101bc578063248a9ca3146101d15780632f2ff15d1461020257600080fd5b806301ffc9a714610171578063034d7fcb14610199575b600080fd5b61018461017f366004611754565b610377565b60405190151581526020015b60405180910390f35b6101846101a736600461166e565b60056020526000908152604090205460ff1681565b6101c4610410565b60405161019091906118b6565b6101f46101df366004611711565b60009081526020819052604090206001015490565b604051908152602001610190565b610215610210366004611729565b61049e565b005b610215610225366004611729565b6104c9565b61023d610238366004611711565b61055a565b6040516001600160a01b039091168152602001610190565b6101f4610263366004611711565b610584565b6101f47fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61021561029d36600461166e565b6105a5565b61023d6102b0366004611711565b610786565b6101846102c3366004611729565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6102156102fa36600461166e565b610796565b6101f4600081565b610215610880565b61021561031d366004611794565b610992565b610215610330366004611688565b610a15565b610215610343366004611729565b610c15565b610215610c3b565b6101f47f000000000000000000000000000000000000000000000000000000000000000081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061040a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6006805461041d9061199e565b80601f01602080910402602001604051908101604052809291908181526020018280546104499061199e565b80156104965780601f1061046b57610100808354040283529160200191610496565b820191906000526020600020905b81548152906001019060200180831161047957829003601f168201915b505050505081565b6000828152602081905260409020600101546104ba8133610e98565b6104c48383610f16565b505050565b6001600160a01b038116331461054c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105568282610fb4565b5050565b6004818154811061056a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6003818154811061059457600080fd5b600091825260209091200154905081565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff1661061c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b60005b60045481101561055657816001600160a01b03166004828154811061065457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610774576004805461067f90600190611940565b8154811061069d57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600480546001600160a01b0390921691839081106106d757634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600480548061072457634e487b7160e01b600052603160045260246000fd5b600082815260208082208301600019908101805473ffffffffffffffffffffffffffffffffffffffff191690559092019092556001600160a01b03841682526005905260409020805460ff191690555b8061077e816119d9565b91505061061f565b6002818154811061056a57600080fd5b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff1661080d5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01805473ffffffffffffffffffffffffffffffffffffffff19169091179055565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff166108f75760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b604051600090339047908381818185875af1925050503d8060008114610939576040519150601f19603f3d011682016040523d82523d6000602084013e61093e565b606091505b505090508061098f5760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610543565b50565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16610a095760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b6104c460068383611555565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16610a8c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b828114610b015760405162461bcd60e51b815260206004820152602960248201527f44657374696e6174696f6e7320616e642073686172657320646966666572656e60448201527f74206c656e6774687300000000000000000000000000000000000000000000006064820152608401610543565b610b0d600260006115d9565b610b19600360006115d9565b60005b83811015610bac576002858583818110610b4657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b5b919061166e565b815460018101835560009283526020909220909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390921691909117905580610ba4816119d9565b915050610b1c565b5060005b81811015610c0e576003838383818110610bda57634e487b7160e01b600052603260045260246000fd5b8354600181018555600094855260209485902091909402929092013591909201555080610c06816119d9565b915050610bb0565b5050505050565b600082815260208190526040902060010154610c318133610e98565b6104c48383610fb4565b60026001541415610c8e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610543565b600260015560005b600454811015610e9157600060048281548110610cc357634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03909116925082906370a082319060240160206040518083038186803b158015610d2a57600080fd5b505afa158015610d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d629190611801565b905080610d70575050610e7f565b60005b600254811015610e7b5760007f000000000000000000000000000000000000000000000000000000000000000060038381548110610dc157634e487b7160e01b600052603260045260246000fd5b906000526020600020015484610dd79190611921565b610de19190611901565b9050610e2660028381548110610e0757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03868116911683611033565b604080516001600160a01b0386168152602081018390527f5162abfb21a28efaee94d2f295c279955182f4d1f7c172defd31ef53ac6bce90910160405180910390a15080610e73816119d9565b915050610d73565b5050505b80610e89816119d9565b915050610c96565b5060018055565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661055657610ed4816001600160a01b031660146110b3565b610edf8360206110b3565b604051602001610ef0929190611835565b60408051601f198184030181529082905262461bcd60e51b8252610543916004016118b6565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610556576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610f703390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610556576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526104c49084906112e1565b606060006110c2836002611921565b6110cd9060026118e9565b67ffffffffffffffff8111156110f357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561111d576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061116257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106111bb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006111df846002611921565b6111ea9060016118e9565b90505b600181111561128b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061123957634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061125d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361128481611987565b90506111ed565b5083156112da5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610543565b9392505050565b6000611336826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113c69092919063ffffffff16565b8051909150156104c4578080602001905181019061135491906116f1565b6104c45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610543565b60606113d584846000856113dd565b949350505050565b6060824710156114555760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610543565b843b6114a35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610543565b600080866001600160a01b031685876040516114bf9190611819565b60006040518083038185875af1925050503d80600081146114fc576040519150601f19603f3d011682016040523d82523d6000602084013e611501565b606091505b509150915061151182828661151c565b979650505050505050565b6060831561152b5750816112da565b82511561153b5782518084602001fd5b8160405162461bcd60e51b815260040161054391906118b6565b8280546115619061199e565b90600052602060002090601f01602090048101928261158357600085556115c9565b82601f1061159c5782800160ff198235161785556115c9565b828001600101855582156115c9579182015b828111156115c95782358255916020019190600101906115ae565b506115d59291506115f3565b5090565b508054600082559060005260206000209081019061098f91905b5b808211156115d557600081556001016115f4565b80356001600160a01b038116811461161f57600080fd5b919050565b60008083601f840112611635578182fd5b50813567ffffffffffffffff81111561164c578182fd5b6020830191508360208260051b850101111561166757600080fd5b9250929050565b60006020828403121561167f578081fd5b6112da82611608565b6000806000806040858703121561169d578283fd5b843567ffffffffffffffff808211156116b4578485fd5b6116c088838901611624565b909650945060208701359150808211156116d8578384fd5b506116e587828801611624565b95989497509550505050565b600060208284031215611702578081fd5b815180151581146112da578182fd5b600060208284031215611722578081fd5b5035919050565b6000806040838503121561173b578182fd5b8235915061174b60208401611608565b90509250929050565b600060208284031215611765578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112da578182fd5b600080602083850312156117a6578182fd5b823567ffffffffffffffff808211156117bd578384fd5b818501915085601f8301126117d0578384fd5b8135818111156117de578485fd5b8660208285010111156117ef578485fd5b60209290920196919550909350505050565b600060208284031215611812578081fd5b5051919050565b6000825161182b818460208701611957565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161186d816017850160208801611957565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516118aa816028840160208801611957565b01602801949350505050565b60208152600082518060208401526118d5816040850160208701611957565b601f01601f19169190910160400192915050565b600082198211156118fc576118fc6119f4565b500190565b60008261191c57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561193b5761193b6119f4565b500290565b600082821015611952576119526119f4565b500390565b60005b8381101561197257818101518382015260200161195a565b83811115611981576000848401525b50505050565b600081611996576119966119f4565b506000190190565b600181811c908216806119b257607f821691505b602082108114156119d357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156119ed576119ed6119f4565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220b0ba13f1b432a013b5ac0d777715073a1afd95e5b066bbd24d189e58edbc02ad64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000175a324f20526576656e7565204469737472696275746f72000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061016c5760003560e01c80638dd4ba2e116100cd578063c47f002711610081578063d547741f11610066578063d547741f14610335578063e4fc6b6d14610348578063eced55261461035057600080fd5b8063c47f00271461030f578063d0fd90ee1461032257600080fd5b806393d995d1116100b257806393d995d1146102ec578063a217fddf146102ff578063bcdb446b1461030757600080fd5b80638dd4ba2e146102a257806391d14854146102b557600080fd5b806336568abe1161012457806357a858fc1161010957806357a858fc1461025557806375b238fc1461026857806381e6c5b51461028f57600080fd5b806336568abe1461021757806337a155031461022a57600080fd5b806306fdde031161015557806306fdde03146101bc578063248a9ca3146101d15780632f2ff15d1461020257600080fd5b806301ffc9a714610171578063034d7fcb14610199575b600080fd5b61018461017f366004611754565b610377565b60405190151581526020015b60405180910390f35b6101846101a736600461166e565b60056020526000908152604090205460ff1681565b6101c4610410565b60405161019091906118b6565b6101f46101df366004611711565b60009081526020819052604090206001015490565b604051908152602001610190565b610215610210366004611729565b61049e565b005b610215610225366004611729565b6104c9565b61023d610238366004611711565b61055a565b6040516001600160a01b039091168152602001610190565b6101f4610263366004611711565b610584565b6101f47fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61021561029d36600461166e565b6105a5565b61023d6102b0366004611711565b610786565b6101846102c3366004611729565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6102156102fa36600461166e565b610796565b6101f4600081565b610215610880565b61021561031d366004611794565b610992565b610215610330366004611688565b610a15565b610215610343366004611729565b610c15565b610215610c3b565b6101f47f0000000000000000000000000000001d6329f1c35ca4bfabb9f561000000000081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061040a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6006805461041d9061199e565b80601f01602080910402602001604051908101604052809291908181526020018280546104499061199e565b80156104965780601f1061046b57610100808354040283529160200191610496565b820191906000526020600020905b81548152906001019060200180831161047957829003601f168201915b505050505081565b6000828152602081905260409020600101546104ba8133610e98565b6104c48383610f16565b505050565b6001600160a01b038116331461054c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105568282610fb4565b5050565b6004818154811061056a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6003818154811061059457600080fd5b600091825260209091200154905081565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff1661061c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b60005b60045481101561055657816001600160a01b03166004828154811061065457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610774576004805461067f90600190611940565b8154811061069d57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600480546001600160a01b0390921691839081106106d757634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600480548061072457634e487b7160e01b600052603160045260246000fd5b600082815260208082208301600019908101805473ffffffffffffffffffffffffffffffffffffffff191690559092019092556001600160a01b03841682526005905260409020805460ff191690555b8061077e816119d9565b91505061061f565b6002818154811061056a57600080fd5b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff1661080d5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01805473ffffffffffffffffffffffffffffffffffffffff19169091179055565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff166108f75760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b604051600090339047908381818185875af1925050503d8060008114610939576040519150601f19603f3d011682016040523d82523d6000602084013e61093e565b606091505b505090508061098f5760405162461bcd60e51b815260206004820152600f60248201527f5769746864726177206661696c656400000000000000000000000000000000006044820152606401610543565b50565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16610a095760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b6104c460068383611555565b3360009081527f7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec602052604090205460ff16610a8c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b6044820152606401610543565b828114610b015760405162461bcd60e51b815260206004820152602960248201527f44657374696e6174696f6e7320616e642073686172657320646966666572656e60448201527f74206c656e6774687300000000000000000000000000000000000000000000006064820152608401610543565b610b0d600260006115d9565b610b19600360006115d9565b60005b83811015610bac576002858583818110610b4657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b5b919061166e565b815460018101835560009283526020909220909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390921691909117905580610ba4816119d9565b915050610b1c565b5060005b81811015610c0e576003838383818110610bda57634e487b7160e01b600052603260045260246000fd5b8354600181018555600094855260209485902091909402929092013591909201555080610c06816119d9565b915050610bb0565b5050505050565b600082815260208190526040902060010154610c318133610e98565b6104c48383610fb4565b60026001541415610c8e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610543565b600260015560005b600454811015610e9157600060048281548110610cc357634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03909116925082906370a082319060240160206040518083038186803b158015610d2a57600080fd5b505afa158015610d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d629190611801565b905080610d70575050610e7f565b60005b600254811015610e7b5760007f0000000000000000000000000000001d6329f1c35ca4bfabb9f561000000000060038381548110610dc157634e487b7160e01b600052603260045260246000fd5b906000526020600020015484610dd79190611921565b610de19190611901565b9050610e2660028381548110610e0757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03868116911683611033565b604080516001600160a01b0386168152602081018390527f5162abfb21a28efaee94d2f295c279955182f4d1f7c172defd31ef53ac6bce90910160405180910390a15080610e73816119d9565b915050610d73565b5050505b80610e89816119d9565b915050610c96565b5060018055565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661055657610ed4816001600160a01b031660146110b3565b610edf8360206110b3565b604051602001610ef0929190611835565b60408051601f198184030181529082905262461bcd60e51b8252610543916004016118b6565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610556576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610f703390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610556576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526104c49084906112e1565b606060006110c2836002611921565b6110cd9060026118e9565b67ffffffffffffffff8111156110f357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561111d576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061116257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106111bb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006111df846002611921565b6111ea9060016118e9565b90505b600181111561128b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061123957634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061125d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361128481611987565b90506111ed565b5083156112da5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610543565b9392505050565b6000611336826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113c69092919063ffffffff16565b8051909150156104c4578080602001905181019061135491906116f1565b6104c45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610543565b60606113d584846000856113dd565b949350505050565b6060824710156114555760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610543565b843b6114a35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610543565b600080866001600160a01b031685876040516114bf9190611819565b60006040518083038185875af1925050503d80600081146114fc576040519150601f19603f3d011682016040523d82523d6000602084013e611501565b606091505b509150915061151182828661151c565b979650505050505050565b6060831561152b5750816112da565b82511561153b5782518084602001fd5b8160405162461bcd60e51b815260040161054391906118b6565b8280546115619061199e565b90600052602060002090601f01602090048101928261158357600085556115c9565b82601f1061159c5782800160ff198235161785556115c9565b828001600101855582156115c9579182015b828111156115c95782358255916020019190600101906115ae565b506115d59291506115f3565b5090565b508054600082559060005260206000209081019061098f91905b5b808211156115d557600081556001016115f4565b80356001600160a01b038116811461161f57600080fd5b919050565b60008083601f840112611635578182fd5b50813567ffffffffffffffff81111561164c578182fd5b6020830191508360208260051b850101111561166757600080fd5b9250929050565b60006020828403121561167f578081fd5b6112da82611608565b6000806000806040858703121561169d578283fd5b843567ffffffffffffffff808211156116b4578485fd5b6116c088838901611624565b909650945060208701359150808211156116d8578384fd5b506116e587828801611624565b95989497509550505050565b600060208284031215611702578081fd5b815180151581146112da578182fd5b600060208284031215611722578081fd5b5035919050565b6000806040838503121561173b578182fd5b8235915061174b60208401611608565b90509250929050565b600060208284031215611765578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112da578182fd5b600080602083850312156117a6578182fd5b823567ffffffffffffffff808211156117bd578384fd5b818501915085601f8301126117d0578384fd5b8135818111156117de578485fd5b8660208285010111156117ef578485fd5b60209290920196919550909350505050565b600060208284031215611812578081fd5b5051919050565b6000825161182b818460208701611957565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161186d816017850160208801611957565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516118aa816028840160208801611957565b01602801949350505050565b60208152600082518060208401526118d5816040850160208701611957565b601f01601f19169190910160400192915050565b600082198211156118fc576118fc6119f4565b500190565b60008261191c57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561193b5761193b6119f4565b500290565b600082821015611952576119526119f4565b500390565b60005b8381101561197257818101518382015260200161195a565b83811115611981576000848401525b50505050565b600081611996576119966119f4565b506000190190565b600181811c908216806119b257607f821691505b602082108114156119d357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156119ed576119ed6119f4565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220b0ba13f1b432a013b5ac0d777715073a1afd95e5b066bbd24d189e58edbc02ad64736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000175a324f20526576656e7565204469737472696275746f72000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Z2O Revenue Distributor

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [2] : 5a324f20526576656e7565204469737472696275746f72000000000000000000


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.