ETH Price: $3,315.91 (-1.53%)
Gas: 1 Gwei

Contract

0x9beB276Cbf89A02B295911D059dD0DB2243DC952
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Many Rewar...204112922024-07-29 9:22:2319 hrs ago1722244943IN
0x9beB276C...2243DC952
0 ETH0.000290593.36006207
Claim Many Rewar...203975662024-07-27 11:24:352 days ago1722079475IN
0x9beB276C...2243DC952
0 ETH0.000173051.99942687
Claim Many Rewar...203890552024-07-26 6:53:113 days ago1721976791IN
0x9beB276C...2243DC952
0 ETH0.000260813.04709931
Claim Many Rewar...203887012024-07-26 5:42:113 days ago1721972531IN
0x9beB276C...2243DC952
0 ETH0.000180022.08054366
Claim Many Rewar...203801552024-07-25 1:04:115 days ago1721869451IN
0x9beB276C...2243DC952
0 ETH0.000284254.09575401
Claim Many Rewar...203606442024-07-22 7:41:117 days ago1721634071IN
0x9beB276C...2243DC952
0 ETH0.000383084.42715022
Claim Many Rewar...203324682024-07-18 9:19:2311 days ago1721294363IN
0x9beB276C...2243DC952
0 ETH0.000852899.85673098
Claim Many Rewar...203232562024-07-17 2:27:4713 days ago1721183267IN
0x9beB276C...2243DC952
0 ETH0.000549716.35544446
Claim Many Rewar...203177572024-07-16 8:04:2313 days ago1721117063IN
0x9beB276C...2243DC952
0 ETH0.000796949.21018546
Claim Many Rewar...203032072024-07-14 7:19:5915 days ago1720941599IN
0x9beB276C...2243DC952
0 ETH0.000217612.54232167
Claim Many Rewar...202975362024-07-13 12:17:5916 days ago1720873079IN
0x9beB276C...2243DC952
0 ETH0.000157231.81694621
Claim Many Rewar...202975342024-07-13 12:17:3516 days ago1720873055IN
0x9beB276C...2243DC952
0 ETH0.000163421.88868195
Claim Many Rewar...202975302024-07-13 12:16:4716 days ago1720873007IN
0x9beB276C...2243DC952
0 ETH0.000168511.96912781
Claim Many Rewar...202939962024-07-13 0:25:4717 days ago1720830347IN
0x9beB276C...2243DC952
0 ETH0.000151421.74958863
Claim Many Rewar...202399482024-07-05 11:16:3524 days ago1720178195IN
0x9beB276C...2243DC952
0 ETH0.000731838.45712323
Claim Many Rewar...202153022024-07-02 0:38:1128 days ago1719880691IN
0x9beB276C...2243DC952
0 ETH0.000199272.30277587
Claim Many Rewar...202055612024-06-30 16:01:1129 days ago1719763271IN
0x9beB276C...2243DC952
0 ETH0.000426824.93165197
Claim Many Rewar...202034732024-06-30 9:01:3529 days ago1719738095IN
0x9beB276C...2243DC952
0 ETH0.000273873.19912751
Claim Many Rewar...202014282024-06-30 2:10:1130 days ago1719713411IN
0x9beB276C...2243DC952
0 ETH0.000125761.46963482
Claim Many Rewar...201980462024-06-29 14:50:3530 days ago1719672635IN
0x9beB276C...2243DC952
0 ETH0.000359524.15309068
Claim Many Rewar...201537412024-06-23 10:18:1136 days ago1719137891IN
0x9beB276C...2243DC952
0 ETH0.000261063.0179153
Claim Many Rewar...201525072024-06-23 6:07:2336 days ago1719122843IN
0x9beB276C...2243DC952
0 ETH0.000240262.77611728
Claim Many Rewar...201459612024-06-22 8:09:5937 days ago1719043799IN
0x9beB276C...2243DC952
0 ETH0.00025592.95733373
Claim Many Rewar...201459272024-06-22 8:03:1137 days ago1719043391IN
0x9beB276C...2243DC952
0 ETH0.000235912.72611929
Claim Many Rewar...201459102024-06-22 7:59:4737 days ago1719043187IN
0x9beB276C...2243DC952
0 ETH0.00022132.55793599
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardDistributor

Compiler Version
v0.7.0+commit.9e61f92b

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 7 : RewardDistributor.sol
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import './Ownable.sol';
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/cryptography/MerkleProof.sol";

contract RewardDistributor is Ownable  {
    using SafeERC20 for IERC20;

    event AddDistribution(uint256 distributionIndex, address token, bytes32 merkleRoot);
    event ClaimReward(uint256 indexed distributionIndex, uint256 leafIndex, address account, uint256 amount, address sendToAddress);

    struct Distribution {
        address token;
        bytes32 merkleRoot;
        bool active;
        mapping(uint256 => uint256) claimedBitMap;
    }
    uint256 public distributionCount;
    mapping(uint => Distribution) public distributions;

    address payable public assetManager;

    constructor(address owner, address payable _assetManager) Ownable(owner) {
        assetManager = _assetManager;
    }

    function _isAssetManager() internal view {
        require(msg.sender == assetManager, "ONLY_ASSET_MANAGER");
    }

    modifier onlyAssetManager() {
        _isAssetManager();
        _;
    }

    function changeAssetManager(address payable newAssetManager) public onlyAssetManager {
        assetManager = newAssetManager;
    }

    function WithdrawETH() public onlyAssetManager {
        assetManager.transfer(address(this).balance);
    }

    function WithdrawERC20(IERC20 token) public onlyAssetManager {
        token.transfer(assetManager, token.balanceOf(address(this)));
    }

    function addDistribution(uint256 distributionIndex, address _token, bytes32 _merkleRoot) public onlyOwner {
        Distribution storage distribution = distributions[distributionIndex];
        distribution.token = _token;
        distribution.merkleRoot = _merkleRoot;
        distribution.active = true;
        emit AddDistribution(distributionIndex, _token, _merkleRoot);
    }

    function deactivateDistribution(uint256 distributionIndex) public onlyOwner {
        distributions[distributionIndex].active = false;
    }

    function activateDistribution(uint256 distributionIndex) public onlyOwner {
        distributions[distributionIndex].active = true;
    }

    function isClaimed(uint256 distributionIndex, uint256 leafIndex) public view returns (bool) {
        Distribution storage distribution = distributions[distributionIndex];
        uint256 claimedWordIndex = leafIndex / 256;
        uint256 claimedBitIndex = leafIndex % 256;
        uint256 claimedWord = distribution.claimedBitMap[claimedWordIndex];
        uint256 mask = (1 << claimedBitIndex);
        return claimedWord & mask == mask;
    }

    function _setClaimed(uint256 distributionIndex, uint256 leafIndex) private {
        Distribution storage distribution = distributions[distributionIndex];
        uint256 claimedWordIndex = leafIndex / 256;
        uint256 claimedBitIndex = leafIndex % 256;
        distribution.claimedBitMap[claimedWordIndex] = distribution.claimedBitMap[claimedWordIndex] | (1 << claimedBitIndex);
    }

    struct ClaimInput {
        uint256 distributionIndex;
        uint256 leafIndex;
        address account;
        uint256 amount;
        bytes32[] merkleProof;
    }

    function _claim(ClaimInput memory claimInput, address sendToAddress) internal {
        require(!isClaimed(claimInput.distributionIndex, claimInput.leafIndex), "RewardDistributor: Reward already claimed.");

        Distribution storage distribution = distributions[claimInput.distributionIndex];

        require (distribution.active == true, "RewardDistributor: Distribution is not active.");

        bytes32 node = keccak256(abi.encode(claimInput.leafIndex, claimInput.account, claimInput.amount));
        require(MerkleProof.verify(claimInput.merkleProof, distribution.merkleRoot, node), "RewardDistributor: Invalid proof.");

        _setClaimed(claimInput.distributionIndex, claimInput.leafIndex);
        IERC20(distribution.token).safeTransfer(sendToAddress, claimInput.amount);
        
        emit ClaimReward(claimInput.distributionIndex, claimInput.leafIndex, claimInput.account, claimInput.amount, sendToAddress);
    }

    function claimReward(ClaimInput memory claimInput) public
    {
        _claim(claimInput, claimInput.account);
    }

    function claimManyRewards(ClaimInput[] memory claimInputs) public {
        for (uint256 i = 0; i < claimInputs.length; i++) {
            _claim(claimInputs[i], claimInputs[i].account);
        }
    }

    function claimRewardToOtherAddress(ClaimInput memory claimInput, address sendToAddress) public {
        require(msg.sender == claimInput.account, "RewardDistributor: Invalid account.");
        _claim(claimInput, sendToAddress);
    }

    function claimManyRewardsToOtherAddress(ClaimInput[] memory claimInputs, address sendToAddress) public {
        for (uint256 i = 0; i < claimInputs.length; i++) {
            require(msg.sender == claimInputs[i].account, "RewardDistributor: Invalid account.");
            _claim(claimInputs[i], sendToAddress);
        }
    }
}

File 2 of 7 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 3 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

File 4 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.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 5 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.7.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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable {
    address public owner;
    address public newOwner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the initial owner.
     */
    constructor (address _owner) public {
        owner = _owner;
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(owner, address(0));
        owner = address(0);
    }

    function setNewOwner(address _newOwner) public onlyOwner {
        require(_newOwner != address(0), "Ownable: new owner cannot be the zero address");
        newOwner = _newOwner;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership() public {
        require(msg.sender == newOwner, "Ownable: caller must be new owner");
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100,
    "details": {
      "yul": true
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address payable","name":"_assetManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"AddDistribution","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"leafIndex","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"sendToAddress","type":"address"}],"name":"ClaimReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"WithdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"WithdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"}],"name":"activateDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"addDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"assetManager","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"newAssetManager","type":"address"}],"name":"changeAssetManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"internalType":"uint256","name":"leafIndex","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct RewardDistributor.ClaimInput[]","name":"claimInputs","type":"tuple[]"}],"name":"claimManyRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"internalType":"uint256","name":"leafIndex","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct RewardDistributor.ClaimInput[]","name":"claimInputs","type":"tuple[]"},{"internalType":"address","name":"sendToAddress","type":"address"}],"name":"claimManyRewardsToOtherAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"internalType":"uint256","name":"leafIndex","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct RewardDistributor.ClaimInput","name":"claimInput","type":"tuple"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"internalType":"uint256","name":"leafIndex","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct RewardDistributor.ClaimInput","name":"claimInput","type":"tuple"},{"internalType":"address","name":"sendToAddress","type":"address"}],"name":"claimRewardToOtherAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"}],"name":"deactivateDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"distributions","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"internalType":"uint256","name":"leafIndex","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516114c23803806114c283398101604081905261002f9161009e565b600080546001600160a01b0319166001600160a01b03841690811782556040518492907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600480546001600160a01b0319166001600160a01b0392909216919091179055506100ef565b600080604083850312156100b0578182fd5b82516100bb816100d7565b60208401519092506100cc816100d7565b809150509250929050565b6001600160a01b03811681146100ec57600080fd5b50565b6113c4806100fe6000396000f3fe608060405234801561001057600080fd5b50600436106101115760003560e01c80638da5cb5b116100ad578063dcffd76c11610071578063dcffd76c14610207578063e4881c201461021a578063f364c90c1461022d578063f5a1f5b41461024d578063f71915991461026057610111565b80638da5cb5b146101ba57806394217ad1146101cf578063b1e385b2146101d7578063c65c3d95146101ea578063d4ee1d90146101ff57610111565b80630f1df574146101165780630f5b847e146101205780633910fd0c146101335780634487d3df146101465780634f00ef91146101715780637020bbe614610184578063715018a614610197578063880ad0af1461019f5780638b92f277146101a7575b600080fd5b61011e610273565b005b61011e61012e366004610de3565b6102b7565b61011e610141366004610e15565b610303565b610159610154366004610ee9565b61038a565b60405161016893929190610fc8565b60405180910390f35b61011e61017f366004610f19565b6103b8565b61011e610192366004610dc0565b610463565b61011e610565565b61011e6105d9565b61011e6101b5366004610ee9565b610664565b6101c26106a9565b6040516101689190610f9b565b6101c26106b8565b61011e6101e5366004610e84565b6106c7565b6101f26106d5565b60405161016891906112b5565b6101c26106db565b61011e610215366004610eb6565b6106ea565b61011e610228366004610dc0565b610729565b61024061023b366004610f50565b610753565b6040516101689190610feb565b61011e61025b366004610dc0565b610786565b61011e61026e366004610ee9565b6107f8565b61027b610840565b6004546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156102b4573d6000803e3d6000fd5b50565b60005b81518110156102ff576102f78282815181106102d257fe5b60200260200101518383815181106102e657fe5b60200260200101516040015161086c565b6001016102ba565b5050565b60005b82518110156103855782818151811061031b57fe5b6020026020010151604001516001600160a01b0316336001600160a01b0316146103605760405162461bcd60e51b8152600401610357906110a8565b60405180910390fd5b61037d83828151811061036f57fe5b60200260200101518361086c565b600101610306565b505050565b6003602052600090815260409020805460018201546002909201546001600160a01b03909116919060ff1683565b6000546001600160a01b031633146103e25760405162461bcd60e51b815260040161035790611073565b6000838152600360205260409081902080546001600160a01b0319166001600160a01b038516178155600180820184905560028201805460ff1916909117905590517fcad88d5cefebee014cdae4cdced4cbbe5047fa7b0c96d3bb9234437c4ed8cd5890610455908690869086906112be565b60405180910390a150505050565b61046b610840565b600480546040516370a0823160e01b81526001600160a01b038085169363a9059cbb939091169184916370a08231916104a691309101610f9b565b60206040518083038186803b1580156104be57600080fd5b505afa1580156104d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f69190610f01565b6040518363ffffffff1660e01b8152600401610513929190610faf565b602060405180830381600087803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ff9190610e64565b6000546001600160a01b0316331461058f5760405162461bcd60e51b815260040161035790611073565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031633146106035760405162461bcd60e51b8152600401610357906110eb565b600154600080546040516001600160a01b0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b0316331461068e5760405162461bcd60e51b815260040161035790611073565b6000908152600360205260409020600201805460ff19169055565b6000546001600160a01b031681565b6004546001600160a01b031681565b6102b481826040015161086c565b60025481565b6001546001600160a01b031681565b81604001516001600160a01b0316336001600160a01b03161461071f5760405162461bcd60e51b8152600401610357906110a8565b6102ff828261086c565b610731610840565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600091825260036020818152604080852061010085048652909201905290912054600160ff9092169190911b9081161490565b6000546001600160a01b031633146107b05760405162461bcd60e51b815260040161035790611073565b6001600160a01b0381166107d65760405162461bcd60e51b815260040161035790611227565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108225760405162461bcd60e51b815260040161035790611073565b6000908152600360205260409020600201805460ff19166001179055565b6004546001600160a01b0316331461086a5760405162461bcd60e51b8152600401610357906111fb565b565b61087e82600001518360200151610753565b1561089b5760405162461bcd60e51b815260040161035790611029565b81516000908152600360205260409020600281015460ff1615156001146108d45760405162461bcd60e51b815260040161035790611163565b60008360200151846040015185606001516040516020016108f7939291906112be565b60405160208183030381529060405280519060200120905061092284608001518360010154836109c2565b61093e5760405162461bcd60e51b815260040161035790611274565b61095084600001518560200151610a5f565b6060840151825461096e916001600160a01b03909116908590610a93565b83600001517facbec3426bcc5f40735214ebcfadc9c2170a27a0e822c173a01ad2c94631ff47856020015186604001518760600151876040516109b494939291906112dd565b60405180910390a250505050565b600081815b8551811015610a545760008682815181106109de57fe5b60200260200101519050808311610a1f578281604051602001610a02929190610f71565b604051602081830303815290604052805190602001209250610a4b565b8083604051602001610a32929190610f71565b6040516020818303038152906040528051906020012092505b506001016109c7565b509092149392505050565b60009182526003602081815260408085206101008504865290920190529091208054600160ff9093169290921b9091179055565b6103858363a9059cbb60e01b8484604051602401610ab2929190610faf565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526060610b39826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b739092919063ffffffff16565b8051909150156103855780806020019051810190610b579190610e64565b6103855760405162461bcd60e51b8152600401610357906111b1565b6060610b828484600085610b8a565b949350505050565b6060610b9585610c4e565b610bb15760405162461bcd60e51b81526004016103579061112c565b60006060866001600160a01b03168587604051610bce9190610f7f565b60006040518083038185875af1925050503d8060008114610c0b576040519150601f19603f3d011682016040523d82523d6000602084013e610c10565b606091505b50915091508115610c24579150610b829050565b805115610c345780518082602001fd5b8360405162461bcd60e51b81526004016103579190610ff6565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610b82575050151592915050565b600082601f830112610c97578081fd5b8135610caa610ca58261132a565b611304565b818152915060208083019084810160005b84811015610ce457610cd2888484358a0101610cef565b84529282019290820190600101610cbb565b505050505092915050565b600060a08284031215610d00578081fd5b610d0a60a0611304565b905081358152602080830135818301526040830135610d2881611379565b60408301526060838101359083015260808301356001600160401b03811115610d5057600080fd5b8301601f81018513610d6157600080fd5b8035610d6f610ca58261132a565b8181528381019083850185840285018601891015610d8c57600080fd5b600094505b83851015610daf578035835260019490940193918501918501610d91565b506080860152509295945050505050565b600060208284031215610dd1578081fd5b8135610ddc81611379565b9392505050565b600060208284031215610df4578081fd5b81356001600160401b03811115610e09578182fd5b610b8284828501610c87565b60008060408385031215610e27578081fd5b82356001600160401b03811115610e3c578182fd5b610e4885828601610c87565b9250506020830135610e5981611379565b809150509250929050565b600060208284031215610e75578081fd5b81518015158114610ddc578182fd5b600060208284031215610e95578081fd5b81356001600160401b03811115610eaa578182fd5b610b8284828501610cef565b60008060408385031215610ec8578182fd5b82356001600160401b03811115610edd578283fd5b610e4885828601610cef565b600060208284031215610efa578081fd5b5035919050565b600060208284031215610f12578081fd5b5051919050565b600080600060608486031215610f2d578081fd5b833592506020840135610f3f81611379565b929592945050506040919091013590565b60008060408385031215610f62578182fd5b50508035926020909101359150565b918252602082015260400190565b60008251610f91818460208701611349565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393909316835260208301919091521515604082015260600190565b901515815260200190565b6000602082528251806020840152611015816040850160208701611349565b601f01601f19169190910160400192915050565b6020808252602a908201527f5265776172644469737472696275746f723a2052657761726420616c726561646040820152693c9031b630b4b6b2b21760b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f5265776172644469737472696275746f723a20496e76616c6964206163636f75604082015262373a1760e91b606082015260800190565b60208082526021908201527f4f776e61626c653a2063616c6c6572206d757374206265206e6577206f776e656040820152603960f91b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602e908201527f5265776172644469737472696275746f723a20446973747269627574696f6e2060408201526d34b9903737ba1030b1ba34bb329760911b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526012908201527127a7262cafa0a9a9a2aa2fa6a0a720a3a2a960711b604082015260600190565b6020808252602d908201527f4f776e61626c653a206e6577206f776e65722063616e6e6f742062652074686560408201526c207a65726f206164647265737360981b606082015260800190565b60208082526021908201527f5265776172644469737472696275746f723a20496e76616c69642070726f6f666040820152601760f91b606082015260800190565b90815260200190565b9283526001600160a01b03919091166020830152604082015260600190565b9384526001600160a01b039283166020850152604084019190915216606082015260800190565b6040518181016001600160401b038111828210171561132257600080fd5b604052919050565b60006001600160401b0382111561133f578081fd5b5060209081020190565b60005b8381101561136457818101518382015260200161134c565b83811115611373576000848401525b50505050565b6001600160a01b03811681146102b457600080fdfea2646970667358221220bdd3bc8c4bc0f89a654de1390e281be3645fe4c0af2501e57e53f3f9ae3c67f064736f6c63430007000033000000000000000000000000b01957ef4136cb140a346ceb61250150447b2c09000000000000000000000000865d9eb17d84167745a4931f9b254b0764fdd0f6

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101115760003560e01c80638da5cb5b116100ad578063dcffd76c11610071578063dcffd76c14610207578063e4881c201461021a578063f364c90c1461022d578063f5a1f5b41461024d578063f71915991461026057610111565b80638da5cb5b146101ba57806394217ad1146101cf578063b1e385b2146101d7578063c65c3d95146101ea578063d4ee1d90146101ff57610111565b80630f1df574146101165780630f5b847e146101205780633910fd0c146101335780634487d3df146101465780634f00ef91146101715780637020bbe614610184578063715018a614610197578063880ad0af1461019f5780638b92f277146101a7575b600080fd5b61011e610273565b005b61011e61012e366004610de3565b6102b7565b61011e610141366004610e15565b610303565b610159610154366004610ee9565b61038a565b60405161016893929190610fc8565b60405180910390f35b61011e61017f366004610f19565b6103b8565b61011e610192366004610dc0565b610463565b61011e610565565b61011e6105d9565b61011e6101b5366004610ee9565b610664565b6101c26106a9565b6040516101689190610f9b565b6101c26106b8565b61011e6101e5366004610e84565b6106c7565b6101f26106d5565b60405161016891906112b5565b6101c26106db565b61011e610215366004610eb6565b6106ea565b61011e610228366004610dc0565b610729565b61024061023b366004610f50565b610753565b6040516101689190610feb565b61011e61025b366004610dc0565b610786565b61011e61026e366004610ee9565b6107f8565b61027b610840565b6004546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156102b4573d6000803e3d6000fd5b50565b60005b81518110156102ff576102f78282815181106102d257fe5b60200260200101518383815181106102e657fe5b60200260200101516040015161086c565b6001016102ba565b5050565b60005b82518110156103855782818151811061031b57fe5b6020026020010151604001516001600160a01b0316336001600160a01b0316146103605760405162461bcd60e51b8152600401610357906110a8565b60405180910390fd5b61037d83828151811061036f57fe5b60200260200101518361086c565b600101610306565b505050565b6003602052600090815260409020805460018201546002909201546001600160a01b03909116919060ff1683565b6000546001600160a01b031633146103e25760405162461bcd60e51b815260040161035790611073565b6000838152600360205260409081902080546001600160a01b0319166001600160a01b038516178155600180820184905560028201805460ff1916909117905590517fcad88d5cefebee014cdae4cdced4cbbe5047fa7b0c96d3bb9234437c4ed8cd5890610455908690869086906112be565b60405180910390a150505050565b61046b610840565b600480546040516370a0823160e01b81526001600160a01b038085169363a9059cbb939091169184916370a08231916104a691309101610f9b565b60206040518083038186803b1580156104be57600080fd5b505afa1580156104d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f69190610f01565b6040518363ffffffff1660e01b8152600401610513929190610faf565b602060405180830381600087803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ff9190610e64565b6000546001600160a01b0316331461058f5760405162461bcd60e51b815260040161035790611073565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031633146106035760405162461bcd60e51b8152600401610357906110eb565b600154600080546040516001600160a01b0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b0316331461068e5760405162461bcd60e51b815260040161035790611073565b6000908152600360205260409020600201805460ff19169055565b6000546001600160a01b031681565b6004546001600160a01b031681565b6102b481826040015161086c565b60025481565b6001546001600160a01b031681565b81604001516001600160a01b0316336001600160a01b03161461071f5760405162461bcd60e51b8152600401610357906110a8565b6102ff828261086c565b610731610840565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600091825260036020818152604080852061010085048652909201905290912054600160ff9092169190911b9081161490565b6000546001600160a01b031633146107b05760405162461bcd60e51b815260040161035790611073565b6001600160a01b0381166107d65760405162461bcd60e51b815260040161035790611227565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108225760405162461bcd60e51b815260040161035790611073565b6000908152600360205260409020600201805460ff19166001179055565b6004546001600160a01b0316331461086a5760405162461bcd60e51b8152600401610357906111fb565b565b61087e82600001518360200151610753565b1561089b5760405162461bcd60e51b815260040161035790611029565b81516000908152600360205260409020600281015460ff1615156001146108d45760405162461bcd60e51b815260040161035790611163565b60008360200151846040015185606001516040516020016108f7939291906112be565b60405160208183030381529060405280519060200120905061092284608001518360010154836109c2565b61093e5760405162461bcd60e51b815260040161035790611274565b61095084600001518560200151610a5f565b6060840151825461096e916001600160a01b03909116908590610a93565b83600001517facbec3426bcc5f40735214ebcfadc9c2170a27a0e822c173a01ad2c94631ff47856020015186604001518760600151876040516109b494939291906112dd565b60405180910390a250505050565b600081815b8551811015610a545760008682815181106109de57fe5b60200260200101519050808311610a1f578281604051602001610a02929190610f71565b604051602081830303815290604052805190602001209250610a4b565b8083604051602001610a32929190610f71565b6040516020818303038152906040528051906020012092505b506001016109c7565b509092149392505050565b60009182526003602081815260408085206101008504865290920190529091208054600160ff9093169290921b9091179055565b6103858363a9059cbb60e01b8484604051602401610ab2929190610faf565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526060610b39826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b739092919063ffffffff16565b8051909150156103855780806020019051810190610b579190610e64565b6103855760405162461bcd60e51b8152600401610357906111b1565b6060610b828484600085610b8a565b949350505050565b6060610b9585610c4e565b610bb15760405162461bcd60e51b81526004016103579061112c565b60006060866001600160a01b03168587604051610bce9190610f7f565b60006040518083038185875af1925050503d8060008114610c0b576040519150601f19603f3d011682016040523d82523d6000602084013e610c10565b606091505b50915091508115610c24579150610b829050565b805115610c345780518082602001fd5b8360405162461bcd60e51b81526004016103579190610ff6565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610b82575050151592915050565b600082601f830112610c97578081fd5b8135610caa610ca58261132a565b611304565b818152915060208083019084810160005b84811015610ce457610cd2888484358a0101610cef565b84529282019290820190600101610cbb565b505050505092915050565b600060a08284031215610d00578081fd5b610d0a60a0611304565b905081358152602080830135818301526040830135610d2881611379565b60408301526060838101359083015260808301356001600160401b03811115610d5057600080fd5b8301601f81018513610d6157600080fd5b8035610d6f610ca58261132a565b8181528381019083850185840285018601891015610d8c57600080fd5b600094505b83851015610daf578035835260019490940193918501918501610d91565b506080860152509295945050505050565b600060208284031215610dd1578081fd5b8135610ddc81611379565b9392505050565b600060208284031215610df4578081fd5b81356001600160401b03811115610e09578182fd5b610b8284828501610c87565b60008060408385031215610e27578081fd5b82356001600160401b03811115610e3c578182fd5b610e4885828601610c87565b9250506020830135610e5981611379565b809150509250929050565b600060208284031215610e75578081fd5b81518015158114610ddc578182fd5b600060208284031215610e95578081fd5b81356001600160401b03811115610eaa578182fd5b610b8284828501610cef565b60008060408385031215610ec8578182fd5b82356001600160401b03811115610edd578283fd5b610e4885828601610cef565b600060208284031215610efa578081fd5b5035919050565b600060208284031215610f12578081fd5b5051919050565b600080600060608486031215610f2d578081fd5b833592506020840135610f3f81611379565b929592945050506040919091013590565b60008060408385031215610f62578182fd5b50508035926020909101359150565b918252602082015260400190565b60008251610f91818460208701611349565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393909316835260208301919091521515604082015260600190565b901515815260200190565b6000602082528251806020840152611015816040850160208701611349565b601f01601f19169190910160400192915050565b6020808252602a908201527f5265776172644469737472696275746f723a2052657761726420616c726561646040820152693c9031b630b4b6b2b21760b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f5265776172644469737472696275746f723a20496e76616c6964206163636f75604082015262373a1760e91b606082015260800190565b60208082526021908201527f4f776e61626c653a2063616c6c6572206d757374206265206e6577206f776e656040820152603960f91b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602e908201527f5265776172644469737472696275746f723a20446973747269627574696f6e2060408201526d34b9903737ba1030b1ba34bb329760911b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526012908201527127a7262cafa0a9a9a2aa2fa6a0a720a3a2a960711b604082015260600190565b6020808252602d908201527f4f776e61626c653a206e6577206f776e65722063616e6e6f742062652074686560408201526c207a65726f206164647265737360981b606082015260800190565b60208082526021908201527f5265776172644469737472696275746f723a20496e76616c69642070726f6f666040820152601760f91b606082015260800190565b90815260200190565b9283526001600160a01b03919091166020830152604082015260600190565b9384526001600160a01b039283166020850152604084019190915216606082015260800190565b6040518181016001600160401b038111828210171561132257600080fd5b604052919050565b60006001600160401b0382111561133f578081fd5b5060209081020190565b60005b8381101561136457818101518382015260200161134c565b83811115611373576000848401525b50505050565b6001600160a01b03811681146102b457600080fdfea2646970667358221220bdd3bc8c4bc0f89a654de1390e281be3645fe4c0af2501e57e53f3f9ae3c67f064736f6c63430007000033

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

000000000000000000000000b01957ef4136cb140a346ceb61250150447b2c09000000000000000000000000865d9eb17d84167745a4931f9b254b0764fdd0f6

-----Decoded View---------------
Arg [0] : owner (address): 0xb01957eF4136CB140A346CEB61250150447B2C09
Arg [1] : _assetManager (address): 0x865d9eb17D84167745A4931F9b254B0764fDd0f6

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b01957ef4136cb140a346ceb61250150447b2c09
Arg [1] : 000000000000000000000000865d9eb17d84167745a4931f9b254b0764fdd0f6


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.