ETH Price: $2,998.00 (-1.88%)
Gas: 3 Gwei

Contract

0x429dc62E58483E1262fdce4E452E9266984f2a45
 
Transaction Hash
Method
Block
From
To
Value
Withdraw202130052024-07-01 16:56:596 days ago1719853019IN
0x429dc62E...6984f2a45
0 ETH0.000520887.78363457
Withdraw202128412024-07-01 16:24:116 days ago1719851051IN
0x429dc62E...6984f2a45
0 ETH0.000664139.92417845
Withdraw201844422024-06-27 17:13:2310 days ago1719508403IN
0x429dc62E...6984f2a45
0 ETH0.0013975120.88310642
Withdraw201669212024-06-25 6:30:5912 days ago1719297059IN
0x429dc62E...6984f2a45
0 ETH0.000217493.25006915
Withdraw201641342024-06-24 21:09:4712 days ago1719263387IN
0x429dc62E...6984f2a45
0 ETH0.000575128.59411312
Withdraw201635922024-06-24 19:20:4712 days ago1719256847IN
0x429dc62E...6984f2a45
0 ETH0.000426036.3661642
Withdraw201563862024-06-23 19:10:2313 days ago1719169823IN
0x429dc62E...6984f2a45
0 ETH0.000351654.18533171
Withdraw201475772024-06-22 13:34:5915 days ago1719063299IN
0x429dc62E...6984f2a45
0 ETH0.000239163.57389457
Withdraw201354112024-06-20 20:46:3516 days ago1718916395IN
0x429dc62E...6984f2a45
0 ETH0.000989229.78119855
Withdraw201267252024-06-19 15:37:3518 days ago1718811455IN
0x429dc62E...6984f2a45
0 ETH0.000624539.33235722
Withdraw201263852024-06-19 14:28:5918 days ago1718807339IN
0x429dc62E...6984f2a45
0 ETH0.000976411.62099664
Withdraw200966802024-06-15 10:45:1122 days ago1718448311IN
0x429dc62E...6984f2a45
0 ETH0.000360064.28541863
Withdraw200858162024-06-13 22:16:1123 days ago1718316971IN
0x429dc62E...6984f2a45
0 ETH0.000693948.25920174
Withdraw200838302024-06-13 15:35:2324 days ago1718292923IN
0x429dc62E...6984f2a45
0 ETH0.0011783917.60867327
Withdraw200798982024-06-13 2:23:3524 days ago1718245415IN
0x429dc62E...6984f2a45
0 ETH0.000986314.73841915
Withdraw200785822024-06-12 21:58:2324 days ago1718229503IN
0x429dc62E...6984f2a45
0 ETH0.0008739513.05955114
Withdraw200426562024-06-07 21:32:4729 days ago1717795967IN
0x429dc62E...6984f2a45
0 ETH0.000713928.49695622
Withdraw200289132024-06-05 23:28:4731 days ago1717630127IN
0x429dc62E...6984f2a45
0 ETH0.0021375525.44069564
Withdraw200274432024-06-05 18:33:2331 days ago1717612403IN
0x429dc62E...6984f2a45
0 ETH0.0012247218.30105289
Withdraw200190322024-06-04 14:24:1133 days ago1717511051IN
0x429dc62E...6984f2a45
0 ETH0.0007338810.96638878
Withdraw200155632024-06-04 2:46:3533 days ago1717469195IN
0x429dc62E...6984f2a45
0 ETH0.000428146.39777284
Withdraw200144182024-06-03 22:56:5933 days ago1717455419IN
0x429dc62E...6984f2a45
0 ETH0.000601677.16103292
Withdraw199907792024-05-31 15:43:1137 days ago1717170191IN
0x429dc62E...6984f2a45
0 ETH0.0016855425.18706823
Withdraw199822872024-05-30 11:12:1138 days ago1717067531IN
0x429dc62E...6984f2a45
0 ETH0.000547558.18208328
Withdraw199704592024-05-28 19:28:5939 days ago1716924539IN
0x429dc62E...6984f2a45
0 ETH0.0013564316.14401809
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:
TeamVesting

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : TeamVesting.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";


contract TeamVesting is Ownable {
    using SafeMath for uint256;
    // Factory public factory;
    // address payable public marketAddress;
    ERC20 private ernToken;
    address public tokenAddress;
    bool public debug;
    uint public timestamp;  // seteable timestamp for debugging;
    uint256 public totalLocked;  // total ERN committed

    struct Account {
        address accountAddress;
        uint startTime;  // start vesting
        uint vestingDays;  // total vesting days, e.g. 365 for 1 year
        uint256 allocation;  // total tokens allocation
        uint256 withdrew;  // total tokens withdrew
        bool paused; // if allowed to withdraw or not
    }
    mapping(address => Account) public accounts;  // make private on mainnet

    event AccountAdded(address indexed _address);
    event AccountWithdrew(address indexed claimer, uint256 amount);

    /// @notice Constructor
    /// @param _tokenAddress Token address
    constructor(address _tokenAddress, bool _debug) {
        tokenAddress = _tokenAddress;
        ernToken = ERC20(tokenAddress);
        debug = _debug;
    }

    /// @notice Add account
    /// @param _address Account address
    /// @param _startTime Start vesting time in epoch seconds
    /// @param _vestingDays Total vesting days
    /// @param _allocation Total ERN allocation 
    function addAccount(address _address, uint _startTime, uint _vestingDays, uint256 _allocation) external onlyOwner {
        require(_allocation <= ERNBalance() - totalLocked, "Not enough ERN left for this allocation");
        require(accounts[_address].accountAddress == address(0), "Account already exists. Please remove account first");
        Account memory _account = Account({
            accountAddress: _address,
            startTime: _startTime,
            vestingDays: _vestingDays,
            allocation: _allocation,
            withdrew: 0,
            paused: false
        });
        accounts[_address] = _account;
        totalLocked += _allocation;
        emit AccountAdded(_address);
    }

    /// @notice Pause account - temporarily pause an account from withrdrawing
    /// @param _address Account address
    function pauseAccount(address _address) external onlyOwner {
        accounts[_address].paused = true;
    }

    /// @notice UnPause account - reenable an account from withrdrawing
    /// @param _address Team member address
    function unpauseAccount(address _address) external onlyOwner {
        accounts[_address].paused = false;
    }

    /// @notice Remove account - if an account needs to be redone.
    /// @param _address Account address
    function removeAccount(address _address) external onlyOwner {
        totalLocked -= (accounts[_address].allocation - accounts[_address].withdrew);
        delete(accounts[_address]);
    }

    /// @notice Compute allowed withdrawal
    /// @param _address Account address
    function allowance(address _address) public view returns (uint256) {
        uint _ts = timeNow();
        Account memory _account = accounts[_address];
        if (
            _account.allocation == 0 || _account.vestingDays == 0 || _account.startTime >= _ts
        ) {
            return 0;
        }
        // Calculate daily allowance
        uint256 _dailyAllowance = _account.allocation / _account.vestingDays;
        // Calculate days that passed
        uint _secondsPassed = _ts - _account.startTime;
        uint _daysPassed = _secondsPassed / 86400;
        if (_daysPassed > _account.vestingDays) {
            _daysPassed = _account.vestingDays;
        }
        // Total allowance
        uint256 _allowance = _dailyAllowance * _daysPassed;
        // Substract already withdrawn
        uint256 _allowed = _allowance - _account.withdrew;
        return _allowed;
    }

    /// @notice Returns total token balance
    function ERNBalance() public view returns (uint256) {
        return ernToken.balanceOf(address(this));
    }

    /// @notice Account withdrawal
    function withdraw() public {
        Account storage _account = accounts[msg.sender];
        uint _ts = timeNow();
        uint256 _allowance = allowance(msg.sender);
        require(_ts > _account.startTime, "Vesting hasn't started yet");
        require(_account.paused == false, "Your withdrawals have been paused. Please contact admin");
        require(_allowance <= ERNBalance(), "Not enough funds");
        require(_allowance <= _account.allocation, "Cannot withdraw more than allocated");
        require(_allowance > 0, "No allowance available to withdraw");
        // Update and send:
        _account.withdrew += _allowance;
        totalLocked -= _allowance; // When withdrawing, the locked ERN are released
        ernToken.transfer(msg.sender, _allowance);
        emit AccountWithdrew(msg.sender, _allowance);
    }

    /// @notice Timestamp function for debugging
    function timeNow() public view returns (uint) {
        if (debug) {
            return timestamp;
        } else {
            return block.timestamp;
        }
    }

    /// @notice Set timestamp for debugging
    /// @param _timestamp Epoch time in seconds
    function setNow(uint _timestamp) public onlyOwner {
        timestamp = _timestamp;
    }

    /// @notice Emergency withdrawal from admin
    /// @param _address Where to withdraw to
    /// @param _amount Amount to withdraw
    function adminWithdraw(address _address, uint256 _amount) external onlyOwner {
        require(_amount <= ERNBalance() - totalLocked, "Cannot withdraw more than balance minus commited lock");
        ernToken.transfer(_address, _amount);
    }

}

File 2 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the 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. 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;
        }
    }
}

File 3 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 4 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 6 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "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 virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"bool","name":"_debug","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"AccountAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AccountWithdrew","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":[],"name":"ERNBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accounts","outputs":[{"internalType":"address","name":"accountAddress","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"vestingDays","type":"uint256"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"withdrew","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_vestingDays","type":"uint256"},{"internalType":"uint256","name":"_allocation","type":"uint256"}],"name":"addAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debug","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"pauseAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setNow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timeNow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"unpauseAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516111ee3803806111ee83398101604081905261002f916100db565b61003f61003a610087565b61008b565b60028054600180546001600160a01b03199283166001600160a01b0396871617958616921691909117905560ff60a01b19909216600160a01b91151591909102179055610123565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100ed578182fd5b82516001600160a01b0381168114610103578283fd5b60208401519092508015158114610118578182fd5b809150509250929050565b6110bc806101326000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063c4740a9511610071578063c4740a9514610209578063d3def2531461021c578063d95660be14610224578063e380ae961461022c578063f2fde38b1461023f57610116565b80638da5cb5b146101d157806394408b9a146101e65780639d76ea58146101f9578063b80777ea1461020157610116565b806356891412116100e95780635689141214610174578063588ee29b1461017c5780635de2f063146101915780635e5c06e2146101a4578063715018a6146101c957610116565b80633ccfd60b1461011b5780633e5beab914610125578063401d44821461014e578063484d1ad614610161575b600080fd5b610123610252565b005b610138610133366004610c0d565b610432565b6040516101459190610ff9565b60405180910390f35b61012361015c366004610c2e565b610554565b61012361016f366004610c0d565b610650565b6101386106b7565b6101846106bd565b6040516101459190610d41565b61012361019f366004610c57565b6106cd565b6101b76101b2366004610c0d565b61085b565b60405161014596959493929190610d0c565b61012361089d565b6101d96108e8565b6040516101459190610cdf565b6101236101f4366004610c0d565b6108f8565b6101d961095c565b61013861096b565b610123610217366004610c0d565b610971565b610138610a42565b610138610ac8565b61012361023a366004610caf565b610aed565b61012361024d366004610c0d565b610b31565b3360009081526005602052604081209061026a610ac8565b9050600061027733610432565b9050826001015482116102a55760405162461bcd60e51b815260040161029c90610d4c565b60405180910390fd5b600583015460ff16156102ca5760405162461bcd60e51b815260040161029c90610ef4565b6102d2610a42565b8111156102f15760405162461bcd60e51b815260040161029c90610dc9565b82600301548111156103155760405162461bcd60e51b815260040161029c90610df3565b600081116103355760405162461bcd60e51b815260040161029c90610e7d565b808360040160008282546103499190611002565b9250508190555080600460008282546103629190611059565b909155505060015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906103999033908590600401610cf3565b602060405180830381600087803b1580156103b357600080fd5b505af11580156103c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103eb9190610c8f565b50336001600160a01b03167f23446e9e290dc2a8461e72aedf6b00032d41e865c5a6697cf4d40d680a026e56826040516104259190610ff9565b60405180910390a2505050565b60008061043d610ac8565b6001600160a01b03808516600090815260056020818152604092839020835160c081018552815490951685526001810154918501919091526002810154928401929092526003820154606084018190526004830154608085015291015460ff16151560a08301529192509015806104b657506040810151155b806104c5575081816020015110155b156104d55760009250505061054f565b6000816040015182606001516104eb919061101a565b905060008260200151846104ff9190611059565b90506000610510620151808361101a565b90508360400151811115610525575060408301515b6000610531828561103a565b905060008560800151826105459190611059565b9750505050505050505b919050565b61055c610ba2565b6001600160a01b031661056d6108e8565b6001600160a01b0316146105935760405162461bcd60e51b815260040161029c90610ebf565b60045461059e610a42565b6105a89190611059565b8111156105c75760405162461bcd60e51b815260040161029c90610fa4565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906105f99085908590600401610cf3565b602060405180830381600087803b15801561061357600080fd5b505af1158015610627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064b9190610c8f565b505050565b610658610ba2565b6001600160a01b03166106696108e8565b6001600160a01b03161461068f5760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b0316600090815260056020819052604090912001805460ff19166001179055565b60045481565b600254600160a01b900460ff1681565b6106d5610ba2565b6001600160a01b03166106e66108e8565b6001600160a01b03161461070c5760405162461bcd60e51b815260040161029c90610ebf565b600454610717610a42565b6107219190611059565b8111156107405760405162461bcd60e51b815260040161029c90610e36565b6001600160a01b0384811660009081526005602052604090205416156107785760405162461bcd60e51b815260040161029c90610f51565b6040805160c0810182526001600160a01b0386811680835260208084018881528486018881526060860188815260006080880181815260a08901828152968252600595869052988120885181546001600160a01b03191698169790971787559251600187015590516002860155516003850155945160048085019190915591519201805460ff19169215159290921790915580549192849261081b908490611002565b90915550506040516001600160a01b038616907f8f42195a0bbfa58954be4349deb9efc38bdb9c298e529f705f8bc1e38bce039990600090a25050505050565b60056020819052600091825260409091208054600182015460028301546003840154600485015494909501546001600160a01b03909316949193909260ff1686565b6108a5610ba2565b6001600160a01b03166108b66108e8565b6001600160a01b0316146108dc5760405162461bcd60e51b815260040161029c90610ebf565b6108e66000610ba6565b565b6000546001600160a01b03165b90565b610900610ba2565b6001600160a01b03166109116108e8565b6001600160a01b0316146109375760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b0316600090815260056020819052604090912001805460ff19169055565b6002546001600160a01b031681565b60035481565b610979610ba2565b6001600160a01b031661098a6108e8565b6001600160a01b0316146109b05760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b038116600090815260056020526040902060048101546003909101546109dd9190611059565b600460008282546109ee9190611059565b90915550506001600160a01b03166000908152600560208190526040822080546001600160a01b0319168155600181018390556002810183905560038101839055600481019290925501805460ff19169055565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610a73903090600401610cdf565b60206040518083038186803b158015610a8b57600080fd5b505afa158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190610cc7565b905090565b600254600090600160a01b900460ff1615610ae657506003546108f5565b50426108f5565b610af5610ba2565b6001600160a01b0316610b066108e8565b6001600160a01b031614610b2c5760405162461bcd60e51b815260040161029c90610ebf565b600355565b610b39610ba2565b6001600160a01b0316610b4a6108e8565b6001600160a01b031614610b705760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b038116610b965760405162461bcd60e51b815260040161029c90610d83565b610b9f81610ba6565b50565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461054f57600080fd5b600060208284031215610c1e578081fd5b610c2782610bf6565b9392505050565b60008060408385031215610c40578081fd5b610c4983610bf6565b946020939093013593505050565b60008060008060808587031215610c6c578182fd5b610c7585610bf6565b966020860135965060408601359560600135945092505050565b600060208284031215610ca0578081fd5b81518015158114610c27578182fd5b600060208284031215610cc0578081fd5b5035919050565b600060208284031215610cd8578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039690961686526020860194909452604085019290925260608401526080830152151560a082015260c00190565b901515815260200190565b6020808252601a908201527f56657374696e67206861736e2774207374617274656420796574000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526010908201526f4e6f7420656e6f7567682066756e647360801b604082015260600190565b60208082526023908201527f43616e6e6f74207769746864726177206d6f7265207468616e20616c6c6f63616040820152621d195960ea1b606082015260800190565b60208082526027908201527f4e6f7420656e6f7567682045524e206c65667420666f72207468697320616c6c60408201526637b1b0ba34b7b760c91b606082015260800190565b60208082526022908201527f4e6f20616c6c6f77616e636520617661696c61626c6520746f20776974686472604082015261617760f01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526037908201527f596f7572207769746864726177616c732068617665206265656e20706175736560408201527f642e20506c6561736520636f6e746163742061646d696e000000000000000000606082015260800190565b60208082526033908201527f4163636f756e7420616c7265616479206578697374732e20506c656173652072604082015272195b5bdd99481858d8dbdd5b9d08199a5c9cdd606a1b606082015260800190565b60208082526035908201527f43616e6e6f74207769746864726177206d6f7265207468616e2062616c616e6360408201527465206d696e757320636f6d6d69746564206c6f636b60581b606082015260800190565b90815260200190565b6000821982111561101557611015611070565b500190565b60008261103557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561105457611054611070565b500290565b60008282101561106b5761106b611070565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220c5141bec41f4ca451297d1b74cf2228b81ae4eca529f56d90d6b28a5042c009764736f6c63430008000033000000000000000000000000bbc2ae13b23d715c30720f079fcd9b4a740935050000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063c4740a9511610071578063c4740a9514610209578063d3def2531461021c578063d95660be14610224578063e380ae961461022c578063f2fde38b1461023f57610116565b80638da5cb5b146101d157806394408b9a146101e65780639d76ea58146101f9578063b80777ea1461020157610116565b806356891412116100e95780635689141214610174578063588ee29b1461017c5780635de2f063146101915780635e5c06e2146101a4578063715018a6146101c957610116565b80633ccfd60b1461011b5780633e5beab914610125578063401d44821461014e578063484d1ad614610161575b600080fd5b610123610252565b005b610138610133366004610c0d565b610432565b6040516101459190610ff9565b60405180910390f35b61012361015c366004610c2e565b610554565b61012361016f366004610c0d565b610650565b6101386106b7565b6101846106bd565b6040516101459190610d41565b61012361019f366004610c57565b6106cd565b6101b76101b2366004610c0d565b61085b565b60405161014596959493929190610d0c565b61012361089d565b6101d96108e8565b6040516101459190610cdf565b6101236101f4366004610c0d565b6108f8565b6101d961095c565b61013861096b565b610123610217366004610c0d565b610971565b610138610a42565b610138610ac8565b61012361023a366004610caf565b610aed565b61012361024d366004610c0d565b610b31565b3360009081526005602052604081209061026a610ac8565b9050600061027733610432565b9050826001015482116102a55760405162461bcd60e51b815260040161029c90610d4c565b60405180910390fd5b600583015460ff16156102ca5760405162461bcd60e51b815260040161029c90610ef4565b6102d2610a42565b8111156102f15760405162461bcd60e51b815260040161029c90610dc9565b82600301548111156103155760405162461bcd60e51b815260040161029c90610df3565b600081116103355760405162461bcd60e51b815260040161029c90610e7d565b808360040160008282546103499190611002565b9250508190555080600460008282546103629190611059565b909155505060015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906103999033908590600401610cf3565b602060405180830381600087803b1580156103b357600080fd5b505af11580156103c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103eb9190610c8f565b50336001600160a01b03167f23446e9e290dc2a8461e72aedf6b00032d41e865c5a6697cf4d40d680a026e56826040516104259190610ff9565b60405180910390a2505050565b60008061043d610ac8565b6001600160a01b03808516600090815260056020818152604092839020835160c081018552815490951685526001810154918501919091526002810154928401929092526003820154606084018190526004830154608085015291015460ff16151560a08301529192509015806104b657506040810151155b806104c5575081816020015110155b156104d55760009250505061054f565b6000816040015182606001516104eb919061101a565b905060008260200151846104ff9190611059565b90506000610510620151808361101a565b90508360400151811115610525575060408301515b6000610531828561103a565b905060008560800151826105459190611059565b9750505050505050505b919050565b61055c610ba2565b6001600160a01b031661056d6108e8565b6001600160a01b0316146105935760405162461bcd60e51b815260040161029c90610ebf565b60045461059e610a42565b6105a89190611059565b8111156105c75760405162461bcd60e51b815260040161029c90610fa4565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906105f99085908590600401610cf3565b602060405180830381600087803b15801561061357600080fd5b505af1158015610627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064b9190610c8f565b505050565b610658610ba2565b6001600160a01b03166106696108e8565b6001600160a01b03161461068f5760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b0316600090815260056020819052604090912001805460ff19166001179055565b60045481565b600254600160a01b900460ff1681565b6106d5610ba2565b6001600160a01b03166106e66108e8565b6001600160a01b03161461070c5760405162461bcd60e51b815260040161029c90610ebf565b600454610717610a42565b6107219190611059565b8111156107405760405162461bcd60e51b815260040161029c90610e36565b6001600160a01b0384811660009081526005602052604090205416156107785760405162461bcd60e51b815260040161029c90610f51565b6040805160c0810182526001600160a01b0386811680835260208084018881528486018881526060860188815260006080880181815260a08901828152968252600595869052988120885181546001600160a01b03191698169790971787559251600187015590516002860155516003850155945160048085019190915591519201805460ff19169215159290921790915580549192849261081b908490611002565b90915550506040516001600160a01b038616907f8f42195a0bbfa58954be4349deb9efc38bdb9c298e529f705f8bc1e38bce039990600090a25050505050565b60056020819052600091825260409091208054600182015460028301546003840154600485015494909501546001600160a01b03909316949193909260ff1686565b6108a5610ba2565b6001600160a01b03166108b66108e8565b6001600160a01b0316146108dc5760405162461bcd60e51b815260040161029c90610ebf565b6108e66000610ba6565b565b6000546001600160a01b03165b90565b610900610ba2565b6001600160a01b03166109116108e8565b6001600160a01b0316146109375760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b0316600090815260056020819052604090912001805460ff19169055565b6002546001600160a01b031681565b60035481565b610979610ba2565b6001600160a01b031661098a6108e8565b6001600160a01b0316146109b05760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b038116600090815260056020526040902060048101546003909101546109dd9190611059565b600460008282546109ee9190611059565b90915550506001600160a01b03166000908152600560208190526040822080546001600160a01b0319168155600181018390556002810183905560038101839055600481019290925501805460ff19169055565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610a73903090600401610cdf565b60206040518083038186803b158015610a8b57600080fd5b505afa158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190610cc7565b905090565b600254600090600160a01b900460ff1615610ae657506003546108f5565b50426108f5565b610af5610ba2565b6001600160a01b0316610b066108e8565b6001600160a01b031614610b2c5760405162461bcd60e51b815260040161029c90610ebf565b600355565b610b39610ba2565b6001600160a01b0316610b4a6108e8565b6001600160a01b031614610b705760405162461bcd60e51b815260040161029c90610ebf565b6001600160a01b038116610b965760405162461bcd60e51b815260040161029c90610d83565b610b9f81610ba6565b50565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461054f57600080fd5b600060208284031215610c1e578081fd5b610c2782610bf6565b9392505050565b60008060408385031215610c40578081fd5b610c4983610bf6565b946020939093013593505050565b60008060008060808587031215610c6c578182fd5b610c7585610bf6565b966020860135965060408601359560600135945092505050565b600060208284031215610ca0578081fd5b81518015158114610c27578182fd5b600060208284031215610cc0578081fd5b5035919050565b600060208284031215610cd8578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039690961686526020860194909452604085019290925260608401526080830152151560a082015260c00190565b901515815260200190565b6020808252601a908201527f56657374696e67206861736e2774207374617274656420796574000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526010908201526f4e6f7420656e6f7567682066756e647360801b604082015260600190565b60208082526023908201527f43616e6e6f74207769746864726177206d6f7265207468616e20616c6c6f63616040820152621d195960ea1b606082015260800190565b60208082526027908201527f4e6f7420656e6f7567682045524e206c65667420666f72207468697320616c6c60408201526637b1b0ba34b7b760c91b606082015260800190565b60208082526022908201527f4e6f20616c6c6f77616e636520617661696c61626c6520746f20776974686472604082015261617760f01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526037908201527f596f7572207769746864726177616c732068617665206265656e20706175736560408201527f642e20506c6561736520636f6e746163742061646d696e000000000000000000606082015260800190565b60208082526033908201527f4163636f756e7420616c7265616479206578697374732e20506c656173652072604082015272195b5bdd99481858d8dbdd5b9d08199a5c9cdd606a1b606082015260800190565b60208082526035908201527f43616e6e6f74207769746864726177206d6f7265207468616e2062616c616e6360408201527465206d696e757320636f6d6d69746564206c6f636b60581b606082015260800190565b90815260200190565b6000821982111561101557611015611070565b500190565b60008261103557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561105457611054611070565b500290565b60008282101561106b5761106b611070565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220c5141bec41f4ca451297d1b74cf2228b81ae4eca529f56d90d6b28a5042c009764736f6c63430008000033

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

000000000000000000000000bbc2ae13b23d715c30720f079fcd9b4a740935050000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0xBBc2AE13b23d715c30720F079fcd9B4a74093505
Arg [1] : _debug (bool): False

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000bbc2ae13b23d715c30720f079fcd9b4a74093505
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


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.