ETH Price: $2,954.10 (+0.05%)
Gas: 0.04 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw241351532025-12-31 20:59:2324 days ago1767214763IN
0x3E26C0D4...8758a5Df3
0 ETH0.000056541.05763721
Withdraw240242362025-12-16 9:20:5939 days ago1765876859IN
0x3E26C0D4...8758a5Df3
0 ETH0.000082881.04468773
Deposit240150772025-12-15 2:40:1140 days ago1765766411IN
0x3E26C0D4...8758a5Df3
0 ETH0.000129961.03670498
Withdraw238271232025-11-18 16:14:5967 days ago1763482499IN
0x3E26C0D4...8758a5Df3
0 ETH0.000112571.80877719
Deposit228595842025-07-06 10:31:47202 days ago1751797907IN
0x3E26C0D4...8758a5Df3
0 ETH0.00004840.38610386
Withdraw226064692025-06-01 1:06:23238 days ago1748739983IN
0x3E26C0D4...8758a5Df3
0 ETH0.000046320.86645312
Deposit226062422025-06-01 0:20:11238 days ago1748737211IN
0x3E26C0D4...8758a5Df3
0 ETH0.000164871.31523549
Withdraw222425332025-04-11 1:52:35288 days ago1744336355IN
0x3E26C0D4...8758a5Df3
0 ETH0.000028190.52743834
Deposit221493172025-03-29 1:34:35301 days ago1743212075IN
0x3E26C0D4...8758a5Df3
0 ETH0.000087920.7014069
Withdraw219570372025-03-02 5:17:23328 days ago1740892643IN
0x3E26C0D4...8758a5Df3
0 ETH0.000040780.76295694
Withdraw218301912025-02-12 11:44:35346 days ago1739360675IN
0x3E26C0D4...8758a5Df3
0 ETH0.000065030.96267237
Deposit217004162025-01-25 8:46:35364 days ago1737794795IN
0x3E26C0D4...8758a5Df3
0 ETH0.000731145.83232604
Withdraw214038702024-12-14 22:54:47406 days ago1734216887IN
0x3E26C0D4...8758a5Df3
0 ETH0.000715829.02273881
Withdraw213606422024-12-08 22:04:11412 days ago1733695451IN
0x3E26C0D4...8758a5Df3
0 ETH0.0009520312
Deposit207357302024-09-12 16:29:47499 days ago1726158587IN
0x3E26C0D4...8758a5Df3
0 ETH0.000810327
Withdraw206188952024-08-27 9:02:35515 days ago1724749355IN
0x3E26C0D4...8758a5Df3
0 ETH0.000076460.96376094
Withdraw206188742024-08-27 8:58:23515 days ago1724749103IN
0x3E26C0D4...8758a5Df3
0 ETH0.00008091.01983089
Withdraw206188522024-08-27 8:53:59515 days ago1724748839IN
0x3E26C0D4...8758a5Df3
0 ETH0.000089821.13225149
Withdraw206188152024-08-27 8:46:35515 days ago1724748395IN
0x3E26C0D4...8758a5Df3
0 ETH0.000077410.97580886
Withdraw206187952024-08-27 8:42:35515 days ago1724748155IN
0x3E26C0D4...8758a5Df3
0 ETH0.000072620.91544304
Withdraw206187822024-08-27 8:39:59515 days ago1724747999IN
0x3E26C0D4...8758a5Df3
0 ETH0.000083041.04672068
Withdraw206187552024-08-27 8:34:23515 days ago1724747663IN
0x3E26C0D4...8758a5Df3
0 ETH0.000078380.98795895
Withdraw206187182024-08-27 8:26:59515 days ago1724747219IN
0x3E26C0D4...8758a5Df3
0 ETH0.000093881.18335599
Withdraw206180442024-08-27 6:11:23515 days ago1724739083IN
0x3E26C0D4...8758a5Df3
0 ETH0.000079331
Deposit196085612024-04-08 4:26:23656 days ago1712550383IN
0x3E26C0D4...8758a5Df3
0 ETH0.001157610
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DRCVault

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity =0.8.4;
pragma abicoder v2;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "./interfaces/IDRCVault.sol";

/**
 * @dev Implementation of DRC Vault.
 */
contract DRCVault is IDRCVault {
    using SafeMath for uint256;
    using EnumerableSet for EnumerableSet.AddressSet;

    constructor(address _drcAddress) {
        _drcToken = IERC20(_drcAddress);
    }

    string private constant _name = "DRC Vault";
    IERC20 private immutable _drcToken;
    mapping(address => uint256) private _balanceOf;
    EnumerableSet.AddressSet private _holders;
    uint256 private _totalAmountLocked;

    /**
     * @dev See {IDRCVault-name}.
     */
    function name() external pure override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IDRCVault-drcAddress}.
     */
    function drcAddress() external view override returns (address) {
        return address(_drcToken);
    }

    /**
     * @dev See {IDRCVault-totalAmountLocked}.
     */
    function totalAmountLocked() external view override returns (uint256) {
        return _totalAmountLocked;
    }

    /**
     * @dev See {IDRCVault-balanceOf}.
     */
    function balanceOf(address account) external view override returns (uint256) {
        return _balanceOf[account];
    }

    /**
     * @dev See {IDRCVault-holders}.
     */
    function holders() external view override returns (address[] memory) {
        address[] memory accounts = new address[](_holders.length());
        for (uint256 i = 0; i < _holders.length(); i++) {
            accounts[i] = _holders.at(i);
        }
        return accounts;
    }

    /**
     * @dev See {IDRCVault-deposit}.
     */
    function deposit(address account, uint256 amount) external override {
        require(_drcToken.balanceOf(msg.sender) >= amount, "User doesn't own enough DRC to deposit");
        require(
            _drcToken.allowance(msg.sender, address(this)) >= amount,
            "User hasn't approved this contract to spend DRC"
        );

        SafeERC20.safeTransferFrom(_drcToken, msg.sender, address(this), amount);
        _balanceOf[account] = _balanceOf[account].add(amount);
        _holders.add(account);
        _totalAmountLocked = _totalAmountLocked.add(amount);

        emit Deposit(account, amount);
    }

    /**
     * @dev See {IDRCVault-withdraw}.
     */
    function withdraw(uint256 amount) external override {
        require(_balanceOf[msg.sender] >= amount, "User doesn't have enough share to withdraw");

        SafeERC20.safeTransfer(_drcToken, msg.sender, amount);
        _balanceOf[msg.sender] = _balanceOf[msg.sender].sub(amount);
        _totalAmountLocked = _totalAmountLocked.sub(amount);

        if (_balanceOf[msg.sender] == 0) {
            _holders.remove(msg.sender);
        }

        emit Withdraw(msg.sender, amount);
    }
}

// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity =0.8.4;
pragma abicoder v2;

/**
 * @dev Interface of Digital Reserve contract.
 */
interface IDRCVault {
    /**
     * @dev Emit each time a deposit action happened.
     * @param user Address made the deposit.
     * @param amount DRC amount deposited.
     */
    event Deposit(address indexed user, uint256 amount);

    /**
     * @dev Emit each time a withdraw action happened.
     * @param user Address made the withdrawal.
     * @param amount DRC amount withdrawn.
     */
    event Withdraw(address indexed user, uint256 amount);

    /**
     * @dev Name of the contract
     */
    function name() external pure returns (string memory);

    /**
     * @dev DRC Address
     */
    function drcAddress() external view returns (address);

    /**
     * @dev Total DRC Amount locked
     */
    function totalAmountLocked() external view returns (uint256);

    /**
     * @dev DRC balance of an account in the Vault
     * @param account Address of an account
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev DRC Vault holder list
     */
    function holders() external view returns (address[] memory);

    /**
     * @dev Deposit DRC to the Vault
     * @param account Address to deposit to
     * @param amount Amount of DRC to deposit
     */
    function deposit(address account, uint256 amount) external;

    /**
     * @dev Withdraw DRC from the Vault
     * @param amount Amount of DRC to withdraw
     */
    function withdraw(uint256 amount) external;
}

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

// 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'
        // 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) + 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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_drcAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drcAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holders","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalAmountLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b506040516111fa3803806111fa83398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c61114f6100ab6000396000818160e40152818161023c0152818161032501528181610478015261059a015261114f6000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80632e1a7d4d1161005b5780632e1a7d4d1461012057806347e7ef241461013557806370a08231146101485780638188f71c1461017e57600080fd5b806306fdde03146100825780630964b308146100ca578063230206cd1461010e575b600080fd5b604080518082018252600981527f445243205661756c740000000000000000000000000000000000000000000000602082015290516100c19190611005565b60405180910390f35b60405173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100c1565b6003545b6040519081526020016100c1565b61013361012e366004610f5f565b610193565b005b610133610143366004610f16565b6102f5565b610112610156366004610efc565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b610186610682565b6040516100c19190610fab565b33600090815260208190526040902054811115610237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5573657220646f65736e2774206861766520656e6f756768207368617265207460448201527f6f2077697468647261770000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102627f00000000000000000000000000000000000000000000000000000000000000003383610790565b3360009081526020819052604090205461027c9082610869565b336000908152602081905260409020556003546102999082610869565b600355336000908152602081905260409020546102bd576102bb60013361087e565b505b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015281907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561037c57600080fd5b505afa158015610390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b49190610f77565b1015610442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f5573657220646f65736e2774206f776e20656e6f7567682044524320746f206460448201527f65706f7369740000000000000000000000000000000000000000000000000000606482015260840161022e565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015281907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063dd62ed3e9060440160206040518083038186803b1580156104cf57600080fd5b505afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105079190610f77565b1015610595576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f55736572206861736e277420617070726f766564207468697320636f6e74726160448201527f637420746f207370656e64204452430000000000000000000000000000000000606482015260840161022e565b6105c17f00000000000000000000000000000000000000000000000000000000000000003330846108a0565b73ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260409020546105f19082610904565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902055610622600183610910565b506003546106309082610904565b60035560405181815273ffffffffffffffffffffffffffffffffffffffff8316907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050565b606060006106906001610932565b67ffffffffffffffff8111156106cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156106f8578160200160208202803683370190505b50905060005b6107086001610932565b81101561078a5761071a60018261093c565b828281518110610753577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280610782816110b1565b9150506106fe565b50919050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526108649084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610948565b505050565b6000610875828461106e565b90505b92915050565b60006108758373ffffffffffffffffffffffffffffffffffffffff8416610a54565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526108fe9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016107e2565b50505050565b60006108758284611056565b60006108758373ffffffffffffffffffffffffffffffffffffffff8416610bb6565b6000610878825490565b60006108758383610c05565b60006109aa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610ce79092919063ffffffff16565b80519091501561086457808060200190518101906109c89190610f3f565b610864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161022e565b60008181526001830160205260408120548015610bac576000610a7860018361106e565b8554909150600090610a8c9060019061106e565b90506000866000018281548110610acc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110610b16577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080610b70577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610878565b6000915050610878565b6000818152600183016020526040812054610bfd57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610878565b506000610878565b81546000908210610c98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f6473000000000000000000000000000000000000000000000000000000000000606482015260840161022e565b826000018281548110610cd4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b6060610cf68484600085610d00565b90505b9392505050565b606082471015610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161022e565b843b610dfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161022e565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610e239190610f8f565b60006040518083038185875af1925050503d8060008114610e60576040519150601f19603f3d011682016040523d82523d6000602084013e610e65565b606091505b5091509150610e75828286610e80565b979650505050505050565b60608315610e8f575081610cf9565b825115610e9f5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161022e9190611005565b803573ffffffffffffffffffffffffffffffffffffffff81168114610ef757600080fd5b919050565b600060208284031215610f0d578081fd5b61087582610ed3565b60008060408385031215610f28578081fd5b610f3183610ed3565b946020939093013593505050565b600060208284031215610f50578081fd5b81518015158114610cf9578182fd5b600060208284031215610f70578081fd5b5035919050565b600060208284031215610f88578081fd5b5051919050565b60008251610fa1818460208701611085565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015610ff957835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101610fc7565b50909695505050505050565b6020815260008251806020840152611024816040850160208701611085565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115611069576110696110ea565b500190565b600082821015611080576110806110ea565b500390565b60005b838110156110a0578181015183820152602001611088565b838111156108fe5750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156110e3576110e36110ea565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea264697066735822122060885a69a81366cad76d8c5fc6346c5e5f672bd149bcae8f24292a10539e417964736f6c63430008040033000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee606

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80632e1a7d4d1161005b5780632e1a7d4d1461012057806347e7ef241461013557806370a08231146101485780638188f71c1461017e57600080fd5b806306fdde03146100825780630964b308146100ca578063230206cd1461010e575b600080fd5b604080518082018252600981527f445243205661756c740000000000000000000000000000000000000000000000602082015290516100c19190611005565b60405180910390f35b60405173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee6061681526020016100c1565b6003545b6040519081526020016100c1565b61013361012e366004610f5f565b610193565b005b610133610143366004610f16565b6102f5565b610112610156366004610efc565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b610186610682565b6040516100c19190610fab565b33600090815260208190526040902054811115610237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5573657220646f65736e2774206861766520656e6f756768207368617265207460448201527f6f2077697468647261770000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102627f000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee6063383610790565b3360009081526020819052604090205461027c9082610869565b336000908152602081905260409020556003546102999082610869565b600355336000908152602081905260409020546102bd576102bb60013361087e565b505b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015281907f000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee60673ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561037c57600080fd5b505afa158015610390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b49190610f77565b1015610442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f5573657220646f65736e2774206f776e20656e6f7567682044524320746f206460448201527f65706f7369740000000000000000000000000000000000000000000000000000606482015260840161022e565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015281907f000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee60673ffffffffffffffffffffffffffffffffffffffff169063dd62ed3e9060440160206040518083038186803b1580156104cf57600080fd5b505afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105079190610f77565b1015610595576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f55736572206861736e277420617070726f766564207468697320636f6e74726160448201527f637420746f207370656e64204452430000000000000000000000000000000000606482015260840161022e565b6105c17f000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee6063330846108a0565b73ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260409020546105f19082610904565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902055610622600183610910565b506003546106309082610904565b60035560405181815273ffffffffffffffffffffffffffffffffffffffff8316907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050565b606060006106906001610932565b67ffffffffffffffff8111156106cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156106f8578160200160208202803683370190505b50905060005b6107086001610932565b81101561078a5761071a60018261093c565b828281518110610753577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280610782816110b1565b9150506106fe565b50919050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526108649084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610948565b505050565b6000610875828461106e565b90505b92915050565b60006108758373ffffffffffffffffffffffffffffffffffffffff8416610a54565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526108fe9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016107e2565b50505050565b60006108758284611056565b60006108758373ffffffffffffffffffffffffffffffffffffffff8416610bb6565b6000610878825490565b60006108758383610c05565b60006109aa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610ce79092919063ffffffff16565b80519091501561086457808060200190518101906109c89190610f3f565b610864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161022e565b60008181526001830160205260408120548015610bac576000610a7860018361106e565b8554909150600090610a8c9060019061106e565b90506000866000018281548110610acc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110610b16577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080610b70577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610878565b6000915050610878565b6000818152600183016020526040812054610bfd57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610878565b506000610878565b81546000908210610c98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f6473000000000000000000000000000000000000000000000000000000000000606482015260840161022e565b826000018281548110610cd4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b6060610cf68484600085610d00565b90505b9392505050565b606082471015610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161022e565b843b610dfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161022e565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610e239190610f8f565b60006040518083038185875af1925050503d8060008114610e60576040519150601f19603f3d011682016040523d82523d6000602084013e610e65565b606091505b5091509150610e75828286610e80565b979650505050505050565b60608315610e8f575081610cf9565b825115610e9f5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161022e9190611005565b803573ffffffffffffffffffffffffffffffffffffffff81168114610ef757600080fd5b919050565b600060208284031215610f0d578081fd5b61087582610ed3565b60008060408385031215610f28578081fd5b610f3183610ed3565b946020939093013593505050565b600060208284031215610f50578081fd5b81518015158114610cf9578182fd5b600060208284031215610f70578081fd5b5035919050565b600060208284031215610f88578081fd5b5051919050565b60008251610fa1818460208701611085565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015610ff957835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101610fc7565b50909695505050505050565b6020815260008251806020840152611024816040850160208701611085565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115611069576110696110ea565b500190565b600082821015611080576110806110ea565b500390565b60005b838110156110a0578181015183820152602001611088565b838111156108fe5750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156110e3576110e36110ea565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea264697066735822122060885a69a81366cad76d8c5fc6346c5e5f672bd149bcae8f24292a10539e417964736f6c63430008040033

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

000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee606

-----Decoded View---------------
Arg [0] : _drcAddress (address): 0xa150Db9b1Fa65b44799d4dD949D922c0a33Ee606

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a150db9b1fa65b44799d4dd949d922c0a33ee606


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.