ETH Price: $3,349.10 (-0.78%)

Contract

0xEb57Bf569Ad976974C1F861a5923A59F40222451
 
Transaction Hash
Method
Block
From
To
Approve212472972024-11-23 1:57:475 hrs ago1732327067IN
0xEb57Bf56...F40222451
0 ETH0.0005143611.11842992
Approve211214292024-11-05 12:24:3517 days ago1730809475IN
0xEb57Bf56...F40222451
0 ETH0.000133045.46931537
Approve210822982024-10-31 1:20:4723 days ago1730337647IN
0xEb57Bf56...F40222451
0 ETH0.000221559.1075944
Approve210265722024-10-23 6:43:5931 days ago1729665839IN
0xEb57Bf56...F40222451
0 ETH0.00012265.04003173
Approve210039492024-10-20 2:57:5934 days ago1729393079IN
0xEb57Bf56...F40222451
0 ETH0.000150956.20567384
Transfer209903192024-10-18 5:20:4736 days ago1729228847IN
0xEb57Bf56...F40222451
0 ETH0.0008672116.80653833
Approve206931582024-09-06 17:51:3577 days ago1725645095IN
0xEb57Bf56...F40222451
0 ETH0.000232479.55663749
Approve206395612024-08-30 6:20:1185 days ago1724998811IN
0xEb57Bf56...F40222451
0 ETH0.000021890.9
Approve205224912024-08-13 21:48:35101 days ago1723585715IN
0xEb57Bf56...F40222451
0 ETH0.000191744.1190284
Approve205002232024-08-10 19:11:59104 days ago1723317119IN
0xEb57Bf56...F40222451
0 ETH0.000044851.84411235
Approve204957172024-08-10 4:07:23105 days ago1723262843IN
0xEb57Bf56...F40222451
0 ETH0.000025591.0522855
Approve204464552024-08-03 7:15:11112 days ago1722669311IN
0xEb57Bf56...F40222451
0 ETH0.000088931.9105776
Transfer202980052024-07-13 13:53:23132 days ago1720878803IN
0xEb57Bf56...F40222451
0 ETH0.000055651.87328776
Transfer202979972024-07-13 13:51:47132 days ago1720878707IN
0xEb57Bf56...F40222451
0 ETH0.000088941.90101887
Approve202805062024-07-11 3:13:59135 days ago1720667639IN
0xEb57Bf56...F40222451
0 ETH0.000162333.48727822
Approve202514132024-07-07 1:39:59139 days ago1720316399IN
0xEb57Bf56...F40222451
0 ETH0.000060441.30527352
Approve201972482024-06-29 12:09:23146 days ago1719662963IN
0xEb57Bf56...F40222451
0 ETH0.000056732.33230017
Approve201094642024-06-17 5:36:47159 days ago1718602607IN
0xEb57Bf56...F40222451
0 ETH0.000069792.65123529
Approve201094572024-06-17 5:35:23159 days ago1718602523IN
0xEb57Bf56...F40222451
0 ETH0.000067092.75812544
Approve198434212024-05-11 1:09:35196 days ago1715389775IN
0xEb57Bf56...F40222451
0 ETH0.000237835.13710892
Approve198281632024-05-08 21:57:59198 days ago1715205479IN
0xEb57Bf56...F40222451
0 ETH0.000102274.20417118
Approve198169142024-05-07 8:11:59199 days ago1715069519IN
0xEb57Bf56...F40222451
0 ETH0.000168026.90706755
Approve198051762024-05-05 16:47:11201 days ago1714927631IN
0xEb57Bf56...F40222451
0 ETH0.00031746.85046312
Approve197926652024-05-03 22:48:11203 days ago1714776491IN
0xEb57Bf56...F40222451
0 ETH0.000195324.21549217
Approve196935042024-04-20 1:59:11217 days ago1713578351IN
0xEb57Bf56...F40222451
0 ETH0.000283636.11843724
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:
Loomi

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : loomi.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


  //      /$$          /$$        /$$$$$$   /$$$$$$  /$$      /$$ /$$$$$$
  //    /$$$$$$       | $$       /$$__  $$ /$$__  $$| $$$    /$$$|_  $$_/
  //   /$$__  $$      | $$      | $$  \ $$| $$  \ $$| $$$$  /$$$$  | $$  
  //  | $$  \__/      | $$      | $$  | $$| $$  | $$| $$ $$/$$ $$  | $$  
  //  |  $$$$$$       | $$      | $$  | $$| $$  | $$| $$  $$$| $$  | $$  
  //   \____  $$      | $$      | $$  | $$| $$  | $$| $$\  $ | $$  | $$  
  //   /$$  \ $$      | $$$$$$$$|  $$$$$$/|  $$$$$$/| $$ \/  | $$ /$$$$$$
  //  |  $$$$$$/      |________/ \______/  \______/ |__/     |__/|______/
  //   \_  $$_/                                                          
  //     \__/                                                                                         
      
      
/**
 * @dev Interface for checking active staked balance of a user.
 */
interface ILoomiSource {
  function getAccumulatedAmount(address staker) external view returns (uint256);
}

/**
 * @dev Implementation of the {IERC20} interface.
 */
contract Loomi is ERC20, ReentrancyGuard, Ownable {
    ILoomiSource public LoomiSource;

    uint256 public MAX_SUPPLY;
    uint256 public constant MAX_TAX_VALUE = 100;

    uint256 public spendTaxAmount;
    uint256 public withdrawTaxAmount;

    uint256 public bribesDistributed;
    uint256 public activeTaxCollectedAmount;

    bool public tokenCapSet;

    bool public withdrawTaxCollectionStopped;
    bool public spendTaxCollectionStopped;

    bool public isPaused;
    bool public isDepositPaused;
    bool public isWithdrawPaused;
    bool public isTransferPaused;

    mapping (address => bool) private _isAuthorised;
    address[] public authorisedLog;

    mapping(address => uint256) public depositedAmount;
    mapping(address => uint256) public spentAmount;

    modifier onlyAuthorised {
      require(_isAuthorised[_msgSender()], "Not Authorised");
      _;
    }

    modifier whenNotPaused {
      require(!isPaused, "Transfers paused!");
      _;
    }

    event Withdraw(address indexed userAddress, uint256 amount, uint256 tax);
    event Deposit(address indexed userAddress, uint256 amount);
    event DepositFor(address indexed caller, address indexed userAddress, uint256 amount);
    event Spend(address indexed caller, address indexed userAddress, uint256 amount, uint256 tax);
    event ClaimTax(address indexed caller, address indexed userAddress, uint256 amount);
    event InternalTransfer(address indexed from, address indexed to, uint256 amount);

    constructor(address _source) ERC20("LOOMI", "LOOMI") {
      _isAuthorised[_msgSender()] = true;
      isPaused = true;
      isTransferPaused = true;

      withdrawTaxAmount = 25;
      spendTaxAmount = 25;

      LoomiSource = ILoomiSource(_source);
    }

    /**
    * @dev Returnes current spendable balance of a specific user. This balance can be spent by user for other collections without
    *      withdrawal to ERC-20 LOOMI OR can be withdrawn to ERC-20 LOOMI.
    */
    function getUserBalance(address user) public view returns (uint256) {
      return (LoomiSource.getAccumulatedAmount(user) + depositedAmount[user] - spentAmount[user]);
    }

    /**
    * @dev Function to deposit ERC-20 LOOMI to the game balance.
    */
    function depositLoomi(uint256 amount) public nonReentrant whenNotPaused {
      require(!isDepositPaused, "Deposit Paused");
      require(balanceOf(_msgSender()) >= amount, "Insufficient balance");

      _burn(_msgSender(), amount);
      depositedAmount[_msgSender()] += amount;

      emit Deposit(
        _msgSender(),
        amount
      );
    }

    /**
    * @dev Function to withdraw game LOOMI to ERC-20 LOOMI.
    */
    function withdrawLoomi(uint256 amount) public nonReentrant whenNotPaused {
      require(!isWithdrawPaused, "Withdraw Paused");
      require(getUserBalance(_msgSender()) >= amount, "Insufficient balance");
      uint256 tax = withdrawTaxCollectionStopped ? 0 : (amount * withdrawTaxAmount) / 100;

      spentAmount[_msgSender()] += amount;
      activeTaxCollectedAmount += tax;
      _mint(_msgSender(), (amount - tax));

      emit Withdraw(
        _msgSender(),
        amount,
        tax
      );
    }

    /**
    * @dev Function to transfer game LOOMI from one account to another.
    */
    function transferLoomi(address to, uint256 amount) public nonReentrant whenNotPaused {
      require(!isTransferPaused, "Transfer Paused");
      require(getUserBalance(_msgSender()) >= amount, "Insufficient balance");

      spentAmount[_msgSender()] += amount;
      depositedAmount[to] += amount;

      emit InternalTransfer(
        _msgSender(),
        to,
        amount
      );
    }

    /**
    * @dev Function to spend user balance. Can be called by other authorised contracts. To be used for internal purchases of other NFTs, etc.
    */
    function spendLoomi(address user, uint256 amount) external onlyAuthorised nonReentrant {
      require(getUserBalance(user) >= amount, "Insufficient balance");
      uint256 tax = spendTaxCollectionStopped ? 0 : (amount * spendTaxAmount) / 100;

      spentAmount[user] += amount;
      activeTaxCollectedAmount += tax;

      emit Spend(
        _msgSender(),
        user,
        amount,
        tax
      );
    }

    /**
    * @dev Function to deposit tokens to a user balance. Can be only called by an authorised contracts.
    */
    function depositLoomiFor(address user, uint256 amount) public onlyAuthorised nonReentrant {
      _depositLoomiFor(user, amount);
    }

    /**
    * @dev Function to tokens to the user balances. Can be only called by an authorised users.
    */
    function distributeLoomi(address[] memory user, uint256[] memory amount) public onlyAuthorised nonReentrant {
      require(user.length == amount.length, "Wrong arrays passed");

      for (uint256 i; i < user.length; i++) {
        _depositLoomiFor(user[i], amount[i]);
      }
    }

    function _depositLoomiFor(address user, uint256 amount) internal {
      require(user != address(0), "Deposit to 0 address");
      depositedAmount[user] += amount;

      emit DepositFor(
        _msgSender(),
        user,
        amount
      );
    }

    /**
    * @dev Function to mint tokens to a user balance. Can be only called by an authorised contracts.
    */
    function mintFor(address user, uint256 amount) external onlyAuthorised nonReentrant {
      if (tokenCapSet) require(totalSupply() + amount <= MAX_SUPPLY, "You try to mint more than max supply");
      _mint(user, amount);
    }

    /**
    * @dev Function to claim tokens from the tax accumulated pot. Can be only called by an authorised contracts.
    */
    function claimLoomiTax(address user, uint256 amount) public onlyAuthorised nonReentrant {
      require(activeTaxCollectedAmount >= amount, "Insufficiend tax balance");

      activeTaxCollectedAmount -= amount;
      depositedAmount[user] += amount;
      bribesDistributed += amount;

      emit ClaimTax(
        _msgSender(),
        user,
        amount
      );
    }

    /**
    * @dev Function returns maxSupply set by admin. By default returns error (Max supply is not set).
    */
    function getMaxSupply() public view returns (uint256) {
      require(tokenCapSet, "Max supply is not set");
      return MAX_SUPPLY;
    }

    /*
      ADMIN FUNCTIONS
    */

    /**
    * @dev Function allows admin to set total supply of LOOMI token.
    */
    function setTokenCap(uint256 tokenCup) public onlyOwner {
      require(totalSupply() < tokenCup, "Value is smaller than the number of existing tokens");
      require(!tokenCapSet, "Token cap has been already set");

      MAX_SUPPLY = tokenCup;
    }

    /**
    * @dev Function allows admin add authorised address. The function also logs what addresses were authorised for transparancy.
    */
    function authorise(address addressToAuth) public onlyOwner {
      _isAuthorised[addressToAuth] = true;
      authorisedLog.push(addressToAuth);
    }

    /**
    * @dev Function allows admin add unauthorised address.
    */
    function unauthorise(address addressToUnAuth) public onlyOwner {
      _isAuthorised[addressToUnAuth] = false;
    }

    /**
    * @dev Function allows admin update the address of staking address.
    */
    function changeLoomiSourceContract(address _source) public onlyOwner {
      LoomiSource = ILoomiSource(_source);
      authorise(_source);
    }

    /**
    * @dev Function allows admin to update limmit of tax on withdraw.
    */
    function updateWithdrawTaxAmount(uint256 _taxAmount) public onlyOwner {
      require(_taxAmount < MAX_TAX_VALUE, "Wrong value passed");
      withdrawTaxAmount = _taxAmount;
    }

    /**
    * @dev Function allows admin to update tax amount on spend.
    */
    function updateSpendTaxAmount(uint256 _taxAmount) public onlyOwner {
      require(_taxAmount < MAX_TAX_VALUE, "Wrong value passed");
      spendTaxAmount = _taxAmount;
    }

    /**
    * @dev Function allows admin to stop tax collection on withdraw.
    */
    function stopTaxCollectionOnWithdraw(bool _stop) public onlyOwner {
      withdrawTaxCollectionStopped = _stop;
    }

    /**
    * @dev Function allows admin to stop tax collection on spend.
    */
    function stopTaxCollectionOnSpend(bool _stop) public onlyOwner {
      spendTaxCollectionStopped = _stop;
    }

    /**
    * @dev Function allows admin to pause all in game loomi transfactions.
    */
    function pauseGameLoomi(bool _pause) public onlyOwner {
      isPaused = _pause;
    }

    /**
    * @dev Function allows admin to pause in game loomi transfers.
    */
    function pauseTransfers(bool _pause) public onlyOwner {
      isTransferPaused = _pause;
    }

    /**
    * @dev Function allows admin to pause in game loomi withdraw.
    */
    function pauseWithdraw(bool _pause) public onlyOwner {
      isWithdrawPaused = _pause;
    }

    /**
    * @dev Function allows admin to pause in game loomi deposit.
    */
    function pauseDeposits(bool _pause) public onlyOwner {
      isDepositPaused = _pause;
    }

    /**
    * @dev Function allows admin to withdraw ETH accidentally dropped to the contract.
    */
    function rescue() external onlyOwner {
      payable(owner()).transfer(address(this).balance);
    }
}

File 2 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);
    }
}

File 3 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 4 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 5 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 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 7 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_source","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InternalTransfer","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"Spend","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"LoomiSource","outputs":[{"internalType":"contract ILoomiSource","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TAX_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activeTaxCollectedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToAuth","type":"address"}],"name":"authorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"authorisedLog","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bribesDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_source","type":"address"}],"name":"changeLoomiSourceContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimLoomiTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositLoomi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositLoomiFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"user","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"distributeLoomi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isDepositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTransferPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWithdrawPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseGameLoomi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCup","type":"uint256"}],"name":"setTokenCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"spendLoomi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spendTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"spendTaxCollectionStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"spentAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_stop","type":"bool"}],"name":"stopTaxCollectionOnSpend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stop","type":"bool"}],"name":"stopTaxCollectionOnWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCapSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferLoomi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToUnAuth","type":"address"}],"name":"unauthorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxAmount","type":"uint256"}],"name":"updateSpendTaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxAmount","type":"uint256"}],"name":"updateWithdrawTaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawLoomi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawTaxCollectionStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620027a6380380620027a68339810160408190526200003491620001fa565b6040805180820182526005808252644c4f4f4d4960d81b602080840182815285518087019096529285528401528151919291620000749160039162000154565b5080516200008a90600490602084019062000154565b50506001600555506200009d3362000102565b336000908152600e602052604090208054600160ff19909116179055600d805466ff0000ff000000191666010000010000001790556019600a819055600955600780546001600160a01b0319166001600160a01b039290921691909117905562000269565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000162906200022c565b90600052602060002090601f016020900481019282620001865760008555620001d1565b82601f10620001a157805160ff1916838001178555620001d1565b82800160010185558215620001d1579182015b82811115620001d1578251825591602001919060010190620001b4565b50620001df929150620001e3565b5090565b5b80821115620001df5760008155600101620001e4565b6000602082840312156200020d57600080fd5b81516001600160a01b03811681146200022557600080fd5b9392505050565b600181811c908216806200024157607f821691505b602082108114156200026357634e487b7160e01b600052602260045260246000fd5b50919050565b61252d80620002796000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c80637e22e39d116101b8578063b220948711610104578063ebd462cb116100a2578063f2fde38b1161007c578063f2fde38b1461071c578063f560d0b21461072f578063f66593b214610744578063fec061531461075757600080fd5b8063ebd462cb146106e3578063efb74606146106f6578063f11aafe11461070957600080fd5b8063c82bc61d116100de578063c82bc61d14610671578063da1919b314610684578063dd62ed3e14610697578063e6bcc16e146106d057600080fd5b8063b220948714610638578063bfd77e2b1461064b578063c66396631461065e57600080fd5b80639c600a8711610171578063a9059cbb1161014b578063a9059cbb146105f5578063aa3a8f6714610608578063ae360e7e14610611578063b187bd261461062457600080fd5b80639c600a87146105bb578063a1a1ef43146105ce578063a457c2d7146105e257600080fd5b80637e22e39d1461054c57806380833d781461055f5780638270b0a0146105725780638da5cb5b1461058557806395d89b41146105aa5780639a25ad7c146105b257600080fd5b80634545697a1161029257806367800b5f1161023057806370a082311161020a57806370a08231146104f6578063710cf8e61461051f578063715018a614610531578063738b62e51461053957600080fd5b806367800b5f146104ad5780636d031d0a146104c35780636f92a74a146104e357600080fd5b80634c0f38c21161026c5780634c0f38c21461046c57806351a255661461047457806359d7d9de1461048757806366e6c8af1461049a57600080fd5b80634545697a1461042657806347734892146104395780634a4643f71461044c57600080fd5b80632041baf1116102ff578063313ce567116102d9578063313ce567146103e857806332cb6b0c146103f75780633950935114610400578063423390391461041357600080fd5b80632041baf1146103b957806323b872dd146103c25780632854bc7e146103d557600080fd5b806306fdde0314610347578063095ea7b31461036557806318160ddd146103885780631fbe19791461039a57806320076ee6146103a4578063200847dd146103ac575b600080fd5b61034f610760565b60405161035c9190612258565b60405180910390f35b610378610373366004612113565b6107f2565b604051901515815260200161035c565b6002545b60405190815260200161035c565b6103a2610808565b005b61038c606481565b600d546103789060ff1681565b61038c600c5481565b6103786103d03660046120d7565b610877565b6103a26103e3366004612226565b610921565b6040516012815260200161035c565b61038c60085481565b61037861040e366004612113565b610a16565b6103a2610421366004612226565b610a52565b6103a2610434366004612113565b610be8565b61038c610447366004612082565b610c52565b61038c61045a366004612082565b60106020526000908152604090205481565b61038c610d09565b6103a2610482366004612204565b610d5d565b6103a2610495366004612204565b610da1565b6103a26104a8366004612082565b610de7565b600d546103789065010000000000900460ff1681565b61038c6104d1366004612082565b60116020526000908152604090205481565b6103a26104f1366004612226565b610e77565b61038c610504366004612082565b6001600160a01b031660009081526020819052604090205490565b600d5461037890610100900460ff1681565b6103a2610eeb565b6103a2610547366004612204565b610f21565b600d546103789062010000900460ff1681565b6103a261056d366004612082565b610f6b565b6103a2610580366004612113565b610fb6565b6006546001600160a01b03165b6040516001600160a01b03909116815260200161035c565b61034f611106565b61038c600a5481565b6103a26105c9366004612226565b611115565b600d5461037890600160301b900460ff1681565b6103786105f0366004612113565b611246565b610378610603366004612113565b6112df565b61038c600b5481565b6103a261061f366004612082565b6112ec565b600d54610378906301000000900460ff1681565b6103a2610646366004612204565b61133a565b6103a2610659366004612113565b611382565b600754610592906001600160a01b031681565b61059261067f366004612226565b6114d1565b6103a2610692366004612113565b6114fb565b61038c6106a53660046120a4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103a26106de366004612226565b6115d8565b6103a26106f1366004612204565b61164c565b6103a261070436600461213d565b611698565b6103a2610717366004612204565b61179a565b6103a261072a366004612082565b6117e5565b600d5461037890640100000000900460ff1681565b6103a2610752366004612113565b61187d565b61038c60095481565b60606003805461076f9061245f565b80601f016020809104026020016040519081016040528092919081815260200182805461079b9061245f565b80156107e85780601f106107bd576101008083540402835291602001916107e8565b820191906000526020600020905b8154815290600101906020018083116107cb57829003601f168201915b5050505050905090565b60006107ff3384846119d1565b50600192915050565b6006546001600160a01b0316331461083b5760405162461bcd60e51b815260040161083290612303565b60405180910390fd5b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610874573d6000803e3d6000fd5b50565b6000610884848484611af6565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109095760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610832565b61091685338584036119d1565b506001949350505050565b6006546001600160a01b0316331461094b5760405162461bcd60e51b815260040161083290612303565b8061095560025490565b106109be5760405162461bcd60e51b815260206004820152603360248201527f56616c756520697320736d616c6c6572207468616e20746865206e756d626572604482015272206f66206578697374696e6720746f6b656e7360681b6064820152608401610832565b600d5460ff1615610a115760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e2063617020686173206265656e20616c72656164792073657400006044820152606401610832565b600855565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916107ff918590610a4d9086906123ef565b6119d1565b60026005541415610a755760405162461bcd60e51b815260040161083290612363565b6002600555600d546301000000900460ff1615610aa45760405162461bcd60e51b815260040161083290612338565b600d5465010000000000900460ff1615610af25760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc814185d5cd959608a1b6044820152606401610832565b80610afc33610c52565b1015610b1a5760405162461bcd60e51b8152600401610832906122d5565b600d54600090610100900460ff16610b4b576064600a5483610b3c9190612429565b610b469190612407565b610b4e565b60005b33600090815260116020526040812080549293508492909190610b729084906123ef565b9250508190555080600c6000828254610b8b91906123ef565b90915550610ba4905033610b9f8385612448565b611cc5565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a250506001600555565b336000908152600e602052604090205460ff16610c175760405162461bcd60e51b8152600401610832906122ad565b60026005541415610c3a5760405162461bcd60e51b815260040161083290612363565b6002600555610c498282611da5565b50506001600555565b6001600160a01b038181166000818152601160209081526040808320546010909252808320546007549151630412966760e01b815260048101959095529294919391169063041296679060240160206040518083038186803b158015610cb757600080fd5b505afa158015610ccb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cef919061223f565b610cf991906123ef565b610d039190612448565b92915050565b600d5460009060ff16610d565760405162461bcd60e51b815260206004820152601560248201527413585e081cdd5c1c1b1e481a5cc81b9bdd081cd95d605a1b6044820152606401610832565b5060085490565b6006546001600160a01b03163314610d875760405162461bcd60e51b815260040161083290612303565b600d80549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314610dcb5760405162461bcd60e51b815260040161083290612303565b600d8054911515620100000262ff000019909216919091179055565b6006546001600160a01b03163314610e115760405162461bcd60e51b815260040161083290612303565b6001600160a01b03166000818152600e60205260408120805460ff19166001908117909155600f805491820181559091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319169091179055565b6006546001600160a01b03163314610ea15760405162461bcd60e51b815260040161083290612303565b60648110610ee65760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600955565b6006546001600160a01b03163314610f155760405162461bcd60e51b815260040161083290612303565b610f1f6000611e5c565b565b6006546001600160a01b03163314610f4b5760405162461bcd60e51b815260040161083290612303565b600d80549115156401000000000264ff0000000019909216919091179055565b6006546001600160a01b03163314610f955760405162461bcd60e51b815260040161083290612303565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b336000908152600e602052604090205460ff16610fe55760405162461bcd60e51b8152600401610832906122ad565b600260055414156110085760405162461bcd60e51b815260040161083290612363565b6002600555600c5481111561105f5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e64207461782062616c616e636500000000000000006044820152606401610832565b80600c60008282546110719190612448565b90915550506001600160a01b0382166000908152601060205260408120805483929061109e9084906123ef565b9250508190555080600b60008282546110b791906123ef565b90915550506040518181526001600160a01b0383169033907f1ad2283cc65e3e122c0a874bda25abbd844e8ae88fa9512b4849ee1b58b6570d906020015b60405180910390a350506001600555565b60606004805461076f9061245f565b600260055414156111385760405162461bcd60e51b815260040161083290612363565b6002600555600d546301000000900460ff16156111675760405162461bcd60e51b815260040161083290612338565b600d54640100000000900460ff16156111b35760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d0814185d5cd95960921b6044820152606401610832565b806111bd33610504565b10156111db5760405162461bcd60e51b8152600401610832906122d5565b6111e53382611eae565b33600090815260106020526040812080548392906112049084906123ef565b909155505060405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2506001600555565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156112c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610832565b6112d533858584036119d1565b5060019392505050565b60006107ff338484611af6565b6006546001600160a01b031633146113165760405162461bcd60e51b815260040161083290612303565b600780546001600160a01b0319166001600160a01b03831617905561087481610de7565b6006546001600160a01b031633146113645760405162461bcd60e51b815260040161083290612303565b600d805491151563010000000263ff00000019909216919091179055565b336000908152600e602052604090205460ff166113b15760405162461bcd60e51b8152600401610832906122ad565b600260055414156113d45760405162461bcd60e51b815260040161083290612363565b6002600555806113e383610c52565b10156114015760405162461bcd60e51b8152600401610832906122d5565b600d5460009062010000900460ff16611433576064600954836114249190612429565b61142e9190612407565b611436565b60005b6001600160a01b0384166000908152601160205260408120805492935084929091906114639084906123ef565b9250508190555080600c600082825461147c91906123ef565b909155505060408051838152602081018390526001600160a01b0385169133917fed8cfe3600cacf009dc67354491d44da19a77f26a4aed42181ba6824ccb35d72910160405180910390a35050600160055550565b600f81815481106114e157600080fd5b6000918252602090912001546001600160a01b0316905081565b336000908152600e602052604090205460ff1661152a5760405162461bcd60e51b8152600401610832906122ad565b6002600554141561154d5760405162461bcd60e51b815260040161083290612363565b6002600555600d5460ff16156115ce576008548161156a60025490565b61157491906123ef565b11156115ce5760405162461bcd60e51b8152602060048201526024808201527f596f752074727920746f206d696e74206d6f7265207468616e206d617820737560448201526370706c7960e01b6064820152608401610832565b610c498282611cc5565b6006546001600160a01b031633146116025760405162461bcd60e51b815260040161083290612303565b606481106116475760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600a55565b6006546001600160a01b031633146116765760405162461bcd60e51b815260040161083290612303565b600d8054911515650100000000000265ff000000000019909216919091179055565b336000908152600e602052604090205460ff166116c75760405162461bcd60e51b8152600401610832906122ad565b600260055414156116ea5760405162461bcd60e51b815260040161083290612363565b600260055580518251146117365760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c8185c9c985e5cc81c185cdcd959606a1b6044820152606401610832565b60005b82518110156117905761177e838281518110611757576117576124cb565b6020026020010151838381518110611771576117716124cb565b6020026020010151611da5565b806117888161249a565b915050611739565b5050600160055550565b6006546001600160a01b031633146117c45760405162461bcd60e51b815260040161083290612303565b600d8054911515600160301b0266ff00000000000019909216919091179055565b6006546001600160a01b0316331461180f5760405162461bcd60e51b815260040161083290612303565b6001600160a01b0381166118745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610832565b61087481611e5c565b600260055414156118a05760405162461bcd60e51b815260040161083290612363565b6002600555600d546301000000900460ff16156118cf5760405162461bcd60e51b815260040161083290612338565b600d54600160301b900460ff161561191b5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8814185d5cd959608a1b6044820152606401610832565b8061192533610c52565b10156119435760405162461bcd60e51b8152600401610832906122d5565b33600090815260116020526040812080548392906119629084906123ef565b90915550506001600160a01b0382166000908152601060205260408120805483929061198f9084906123ef565b90915550506040518181526001600160a01b0383169033907fe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a906020016110f5565b6001600160a01b038316611a335760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610832565b6001600160a01b038216611a945760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610832565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611b5a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610832565b6001600160a01b038216611bbc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610832565b6001600160a01b03831660009081526020819052604090205481811015611c345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610832565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611c6b9084906123ef565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611cb791815260200190565b60405180910390a350505050565b6001600160a01b038216611d1b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610832565b8060026000828254611d2d91906123ef565b90915550506001600160a01b03821660009081526020819052604081208054839290611d5a9084906123ef565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b038216611df25760405162461bcd60e51b81526020600482015260146024820152734465706f73697420746f2030206164647265737360601b6044820152606401610832565b6001600160a01b03821660009081526010602052604081208054839290611e1a9084906123ef565b90915550506040518181526001600160a01b0383169033907f6b64443f4cc3aac2df66fff76675a29dc321ce9efebffb006f528db1690179a090602001611d99565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611f0e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610832565b6001600160a01b03821660009081526020819052604090205481811015611f825760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610832565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611fb1908490612448565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611ae9565b80356001600160a01b038116811461200b57600080fd5b919050565b600082601f83011261202157600080fd5b81356020612036612031836123cb565b61239a565b80838252828201915082860187848660051b890101111561205657600080fd5b60005b8581101561207557813584529284019290840190600101612059565b5090979650505050505050565b60006020828403121561209457600080fd5b61209d82611ff4565b9392505050565b600080604083850312156120b757600080fd5b6120c083611ff4565b91506120ce60208401611ff4565b90509250929050565b6000806000606084860312156120ec57600080fd5b6120f584611ff4565b925061210360208501611ff4565b9150604084013590509250925092565b6000806040838503121561212657600080fd5b61212f83611ff4565b946020939093013593505050565b6000806040838503121561215057600080fd5b823567ffffffffffffffff8082111561216857600080fd5b818501915085601f83011261217c57600080fd5b8135602061218c612031836123cb565b8083825282820191508286018a848660051b89010111156121ac57600080fd5b600096505b848710156121d6576121c281611ff4565b8352600196909601959183019183016121b1565b50965050860135925050808211156121ed57600080fd5b506121fa85828601612010565b9150509250929050565b60006020828403121561221657600080fd5b8135801515811461209d57600080fd5b60006020828403121561223857600080fd5b5035919050565b60006020828403121561225157600080fd5b5051919050565b600060208083528351808285015260005b8181101561228557858101830151858201604001528201612269565b81811115612297576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252600e908201526d139bdd08105d5d1a1bdc9a5cd95960921b604082015260600190565b602080825260149082015273496e73756666696369656e742062616c616e636560601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601190820152705472616e7366657273207061757365642160781b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156123c3576123c36124e1565b604052919050565b600067ffffffffffffffff8211156123e5576123e56124e1565b5060051b60200190565b60008219821115612402576124026124b5565b500190565b60008261242457634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612443576124436124b5565b500290565b60008282101561245a5761245a6124b5565b500390565b600181811c9082168061247357607f821691505b6020821081141561249457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124ae576124ae6124b5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122041b47e85d3d4b643602284bbbb8b1d3757514aebc708289ccc8e99d21e295d8564736f6c63430008070033000000000000000000000000c3503192343eae4b435e4a1211c5d28bf6f6a696

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103425760003560e01c80637e22e39d116101b8578063b220948711610104578063ebd462cb116100a2578063f2fde38b1161007c578063f2fde38b1461071c578063f560d0b21461072f578063f66593b214610744578063fec061531461075757600080fd5b8063ebd462cb146106e3578063efb74606146106f6578063f11aafe11461070957600080fd5b8063c82bc61d116100de578063c82bc61d14610671578063da1919b314610684578063dd62ed3e14610697578063e6bcc16e146106d057600080fd5b8063b220948714610638578063bfd77e2b1461064b578063c66396631461065e57600080fd5b80639c600a8711610171578063a9059cbb1161014b578063a9059cbb146105f5578063aa3a8f6714610608578063ae360e7e14610611578063b187bd261461062457600080fd5b80639c600a87146105bb578063a1a1ef43146105ce578063a457c2d7146105e257600080fd5b80637e22e39d1461054c57806380833d781461055f5780638270b0a0146105725780638da5cb5b1461058557806395d89b41146105aa5780639a25ad7c146105b257600080fd5b80634545697a1161029257806367800b5f1161023057806370a082311161020a57806370a08231146104f6578063710cf8e61461051f578063715018a614610531578063738b62e51461053957600080fd5b806367800b5f146104ad5780636d031d0a146104c35780636f92a74a146104e357600080fd5b80634c0f38c21161026c5780634c0f38c21461046c57806351a255661461047457806359d7d9de1461048757806366e6c8af1461049a57600080fd5b80634545697a1461042657806347734892146104395780634a4643f71461044c57600080fd5b80632041baf1116102ff578063313ce567116102d9578063313ce567146103e857806332cb6b0c146103f75780633950935114610400578063423390391461041357600080fd5b80632041baf1146103b957806323b872dd146103c25780632854bc7e146103d557600080fd5b806306fdde0314610347578063095ea7b31461036557806318160ddd146103885780631fbe19791461039a57806320076ee6146103a4578063200847dd146103ac575b600080fd5b61034f610760565b60405161035c9190612258565b60405180910390f35b610378610373366004612113565b6107f2565b604051901515815260200161035c565b6002545b60405190815260200161035c565b6103a2610808565b005b61038c606481565b600d546103789060ff1681565b61038c600c5481565b6103786103d03660046120d7565b610877565b6103a26103e3366004612226565b610921565b6040516012815260200161035c565b61038c60085481565b61037861040e366004612113565b610a16565b6103a2610421366004612226565b610a52565b6103a2610434366004612113565b610be8565b61038c610447366004612082565b610c52565b61038c61045a366004612082565b60106020526000908152604090205481565b61038c610d09565b6103a2610482366004612204565b610d5d565b6103a2610495366004612204565b610da1565b6103a26104a8366004612082565b610de7565b600d546103789065010000000000900460ff1681565b61038c6104d1366004612082565b60116020526000908152604090205481565b6103a26104f1366004612226565b610e77565b61038c610504366004612082565b6001600160a01b031660009081526020819052604090205490565b600d5461037890610100900460ff1681565b6103a2610eeb565b6103a2610547366004612204565b610f21565b600d546103789062010000900460ff1681565b6103a261056d366004612082565b610f6b565b6103a2610580366004612113565b610fb6565b6006546001600160a01b03165b6040516001600160a01b03909116815260200161035c565b61034f611106565b61038c600a5481565b6103a26105c9366004612226565b611115565b600d5461037890600160301b900460ff1681565b6103786105f0366004612113565b611246565b610378610603366004612113565b6112df565b61038c600b5481565b6103a261061f366004612082565b6112ec565b600d54610378906301000000900460ff1681565b6103a2610646366004612204565b61133a565b6103a2610659366004612113565b611382565b600754610592906001600160a01b031681565b61059261067f366004612226565b6114d1565b6103a2610692366004612113565b6114fb565b61038c6106a53660046120a4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103a26106de366004612226565b6115d8565b6103a26106f1366004612204565b61164c565b6103a261070436600461213d565b611698565b6103a2610717366004612204565b61179a565b6103a261072a366004612082565b6117e5565b600d5461037890640100000000900460ff1681565b6103a2610752366004612113565b61187d565b61038c60095481565b60606003805461076f9061245f565b80601f016020809104026020016040519081016040528092919081815260200182805461079b9061245f565b80156107e85780601f106107bd576101008083540402835291602001916107e8565b820191906000526020600020905b8154815290600101906020018083116107cb57829003601f168201915b5050505050905090565b60006107ff3384846119d1565b50600192915050565b6006546001600160a01b0316331461083b5760405162461bcd60e51b815260040161083290612303565b60405180910390fd5b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610874573d6000803e3d6000fd5b50565b6000610884848484611af6565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109095760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610832565b61091685338584036119d1565b506001949350505050565b6006546001600160a01b0316331461094b5760405162461bcd60e51b815260040161083290612303565b8061095560025490565b106109be5760405162461bcd60e51b815260206004820152603360248201527f56616c756520697320736d616c6c6572207468616e20746865206e756d626572604482015272206f66206578697374696e6720746f6b656e7360681b6064820152608401610832565b600d5460ff1615610a115760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e2063617020686173206265656e20616c72656164792073657400006044820152606401610832565b600855565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916107ff918590610a4d9086906123ef565b6119d1565b60026005541415610a755760405162461bcd60e51b815260040161083290612363565b6002600555600d546301000000900460ff1615610aa45760405162461bcd60e51b815260040161083290612338565b600d5465010000000000900460ff1615610af25760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc814185d5cd959608a1b6044820152606401610832565b80610afc33610c52565b1015610b1a5760405162461bcd60e51b8152600401610832906122d5565b600d54600090610100900460ff16610b4b576064600a5483610b3c9190612429565b610b469190612407565b610b4e565b60005b33600090815260116020526040812080549293508492909190610b729084906123ef565b9250508190555080600c6000828254610b8b91906123ef565b90915550610ba4905033610b9f8385612448565b611cc5565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a250506001600555565b336000908152600e602052604090205460ff16610c175760405162461bcd60e51b8152600401610832906122ad565b60026005541415610c3a5760405162461bcd60e51b815260040161083290612363565b6002600555610c498282611da5565b50506001600555565b6001600160a01b038181166000818152601160209081526040808320546010909252808320546007549151630412966760e01b815260048101959095529294919391169063041296679060240160206040518083038186803b158015610cb757600080fd5b505afa158015610ccb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cef919061223f565b610cf991906123ef565b610d039190612448565b92915050565b600d5460009060ff16610d565760405162461bcd60e51b815260206004820152601560248201527413585e081cdd5c1c1b1e481a5cc81b9bdd081cd95d605a1b6044820152606401610832565b5060085490565b6006546001600160a01b03163314610d875760405162461bcd60e51b815260040161083290612303565b600d80549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314610dcb5760405162461bcd60e51b815260040161083290612303565b600d8054911515620100000262ff000019909216919091179055565b6006546001600160a01b03163314610e115760405162461bcd60e51b815260040161083290612303565b6001600160a01b03166000818152600e60205260408120805460ff19166001908117909155600f805491820181559091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319169091179055565b6006546001600160a01b03163314610ea15760405162461bcd60e51b815260040161083290612303565b60648110610ee65760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600955565b6006546001600160a01b03163314610f155760405162461bcd60e51b815260040161083290612303565b610f1f6000611e5c565b565b6006546001600160a01b03163314610f4b5760405162461bcd60e51b815260040161083290612303565b600d80549115156401000000000264ff0000000019909216919091179055565b6006546001600160a01b03163314610f955760405162461bcd60e51b815260040161083290612303565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b336000908152600e602052604090205460ff16610fe55760405162461bcd60e51b8152600401610832906122ad565b600260055414156110085760405162461bcd60e51b815260040161083290612363565b6002600555600c5481111561105f5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e64207461782062616c616e636500000000000000006044820152606401610832565b80600c60008282546110719190612448565b90915550506001600160a01b0382166000908152601060205260408120805483929061109e9084906123ef565b9250508190555080600b60008282546110b791906123ef565b90915550506040518181526001600160a01b0383169033907f1ad2283cc65e3e122c0a874bda25abbd844e8ae88fa9512b4849ee1b58b6570d906020015b60405180910390a350506001600555565b60606004805461076f9061245f565b600260055414156111385760405162461bcd60e51b815260040161083290612363565b6002600555600d546301000000900460ff16156111675760405162461bcd60e51b815260040161083290612338565b600d54640100000000900460ff16156111b35760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d0814185d5cd95960921b6044820152606401610832565b806111bd33610504565b10156111db5760405162461bcd60e51b8152600401610832906122d5565b6111e53382611eae565b33600090815260106020526040812080548392906112049084906123ef565b909155505060405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2506001600555565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156112c85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610832565b6112d533858584036119d1565b5060019392505050565b60006107ff338484611af6565b6006546001600160a01b031633146113165760405162461bcd60e51b815260040161083290612303565b600780546001600160a01b0319166001600160a01b03831617905561087481610de7565b6006546001600160a01b031633146113645760405162461bcd60e51b815260040161083290612303565b600d805491151563010000000263ff00000019909216919091179055565b336000908152600e602052604090205460ff166113b15760405162461bcd60e51b8152600401610832906122ad565b600260055414156113d45760405162461bcd60e51b815260040161083290612363565b6002600555806113e383610c52565b10156114015760405162461bcd60e51b8152600401610832906122d5565b600d5460009062010000900460ff16611433576064600954836114249190612429565b61142e9190612407565b611436565b60005b6001600160a01b0384166000908152601160205260408120805492935084929091906114639084906123ef565b9250508190555080600c600082825461147c91906123ef565b909155505060408051838152602081018390526001600160a01b0385169133917fed8cfe3600cacf009dc67354491d44da19a77f26a4aed42181ba6824ccb35d72910160405180910390a35050600160055550565b600f81815481106114e157600080fd5b6000918252602090912001546001600160a01b0316905081565b336000908152600e602052604090205460ff1661152a5760405162461bcd60e51b8152600401610832906122ad565b6002600554141561154d5760405162461bcd60e51b815260040161083290612363565b6002600555600d5460ff16156115ce576008548161156a60025490565b61157491906123ef565b11156115ce5760405162461bcd60e51b8152602060048201526024808201527f596f752074727920746f206d696e74206d6f7265207468616e206d617820737560448201526370706c7960e01b6064820152608401610832565b610c498282611cc5565b6006546001600160a01b031633146116025760405162461bcd60e51b815260040161083290612303565b606481106116475760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600a55565b6006546001600160a01b031633146116765760405162461bcd60e51b815260040161083290612303565b600d8054911515650100000000000265ff000000000019909216919091179055565b336000908152600e602052604090205460ff166116c75760405162461bcd60e51b8152600401610832906122ad565b600260055414156116ea5760405162461bcd60e51b815260040161083290612363565b600260055580518251146117365760405162461bcd60e51b815260206004820152601360248201527215dc9bdb99c8185c9c985e5cc81c185cdcd959606a1b6044820152606401610832565b60005b82518110156117905761177e838281518110611757576117576124cb565b6020026020010151838381518110611771576117716124cb565b6020026020010151611da5565b806117888161249a565b915050611739565b5050600160055550565b6006546001600160a01b031633146117c45760405162461bcd60e51b815260040161083290612303565b600d8054911515600160301b0266ff00000000000019909216919091179055565b6006546001600160a01b0316331461180f5760405162461bcd60e51b815260040161083290612303565b6001600160a01b0381166118745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610832565b61087481611e5c565b600260055414156118a05760405162461bcd60e51b815260040161083290612363565b6002600555600d546301000000900460ff16156118cf5760405162461bcd60e51b815260040161083290612338565b600d54600160301b900460ff161561191b5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8814185d5cd959608a1b6044820152606401610832565b8061192533610c52565b10156119435760405162461bcd60e51b8152600401610832906122d5565b33600090815260116020526040812080548392906119629084906123ef565b90915550506001600160a01b0382166000908152601060205260408120805483929061198f9084906123ef565b90915550506040518181526001600160a01b0383169033907fe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a906020016110f5565b6001600160a01b038316611a335760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610832565b6001600160a01b038216611a945760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610832565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611b5a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610832565b6001600160a01b038216611bbc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610832565b6001600160a01b03831660009081526020819052604090205481811015611c345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610832565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611c6b9084906123ef565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611cb791815260200190565b60405180910390a350505050565b6001600160a01b038216611d1b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610832565b8060026000828254611d2d91906123ef565b90915550506001600160a01b03821660009081526020819052604081208054839290611d5a9084906123ef565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b038216611df25760405162461bcd60e51b81526020600482015260146024820152734465706f73697420746f2030206164647265737360601b6044820152606401610832565b6001600160a01b03821660009081526010602052604081208054839290611e1a9084906123ef565b90915550506040518181526001600160a01b0383169033907f6b64443f4cc3aac2df66fff76675a29dc321ce9efebffb006f528db1690179a090602001611d99565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611f0e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610832565b6001600160a01b03821660009081526020819052604090205481811015611f825760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610832565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611fb1908490612448565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611ae9565b80356001600160a01b038116811461200b57600080fd5b919050565b600082601f83011261202157600080fd5b81356020612036612031836123cb565b61239a565b80838252828201915082860187848660051b890101111561205657600080fd5b60005b8581101561207557813584529284019290840190600101612059565b5090979650505050505050565b60006020828403121561209457600080fd5b61209d82611ff4565b9392505050565b600080604083850312156120b757600080fd5b6120c083611ff4565b91506120ce60208401611ff4565b90509250929050565b6000806000606084860312156120ec57600080fd5b6120f584611ff4565b925061210360208501611ff4565b9150604084013590509250925092565b6000806040838503121561212657600080fd5b61212f83611ff4565b946020939093013593505050565b6000806040838503121561215057600080fd5b823567ffffffffffffffff8082111561216857600080fd5b818501915085601f83011261217c57600080fd5b8135602061218c612031836123cb565b8083825282820191508286018a848660051b89010111156121ac57600080fd5b600096505b848710156121d6576121c281611ff4565b8352600196909601959183019183016121b1565b50965050860135925050808211156121ed57600080fd5b506121fa85828601612010565b9150509250929050565b60006020828403121561221657600080fd5b8135801515811461209d57600080fd5b60006020828403121561223857600080fd5b5035919050565b60006020828403121561225157600080fd5b5051919050565b600060208083528351808285015260005b8181101561228557858101830151858201604001528201612269565b81811115612297576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252600e908201526d139bdd08105d5d1a1bdc9a5cd95960921b604082015260600190565b602080825260149082015273496e73756666696369656e742062616c616e636560601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601190820152705472616e7366657273207061757365642160781b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156123c3576123c36124e1565b604052919050565b600067ffffffffffffffff8211156123e5576123e56124e1565b5060051b60200190565b60008219821115612402576124026124b5565b500190565b60008261242457634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612443576124436124b5565b500290565b60008282101561245a5761245a6124b5565b500390565b600181811c9082168061247357607f821691505b6020821081141561249457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124ae576124ae6124b5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122041b47e85d3d4b643602284bbbb8b1d3757514aebc708289ccc8e99d21e295d8564736f6c63430008070033

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

000000000000000000000000c3503192343eae4b435e4a1211c5d28bf6f6a696

-----Decoded View---------------
Arg [0] : _source (address): 0xC3503192343EAE4B435E4A1211C5d28BF6f6a696

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


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.