ETH Price: $2,769.25 (+5.52%)

Token

Twigs (TWIGS)
 

Overview

Max Total Supply

1,472,168.795023148148147127 TWIGS

Holders

281

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,880.988425925925925925 TWIGS

Value
$0.00
0x09d520c793dd698bd910984adB4c4718bb20bEdA
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Twigs

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 6 : Twigs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

/**
  CryptoHoots (TWIGS)         
                        ____________________     
                      /                      \    
       ________      |   Burn moar twiggies!  |   
      |        |     |      Hoot Hoot MF!     |   
      |        |      \ ____________________ /      
    __|________|__   /
     / ___  ___ \    
    / / @ \/ @ \ \     
    \ \___/\___/ /     
     \____\/____/        
    /  \      /  \
   /    \    /    \ 
   |    |    |    |
    \  /      \  /
     \/\______/\/
       | |  | |
       /|\  /|\

 */

interface IHoots {
    function balanceOf(address _user) external view returns(uint256);
    function ownerOf(uint256 _tokenId) external view returns(address);
    function totalSupply() external view returns (uint256);
}

contract Twigs is ERC20("Twigs", "TWIGS"), Ownable {
    struct ContractSettings {
        uint256 baseRate;
        uint256 initIssuance;
        uint256 start;
        uint256 end;
    }

    mapping(address => ContractSettings) public contractSettings;
    mapping(address => bool) public trustedContracts;

    uint256 constant public MAX_BASE_RATE = 10 ether;
    uint256 constant public MAX_INITIAL_ISSUANCE = 300 ether;

    // Prevents new contracts from being added or changes to disbursement if permanently locked
    bool public isLocked = false;
    mapping(bytes32 => uint256) public lastClaim;
    
    event RewardPaid(address indexed user, uint256 reward);

    constructor() {}

    /**
        - needs onlyOwner flag
        - needs to check that the baseRate and initIssuance are not greater than the max settings
        - require that contract isn't locked
     */
    function addContract(address _contractAddress, uint256 _baseRate, uint256 _initIssuance) public onlyOwner {
        require(_baseRate <= MAX_BASE_RATE && _initIssuance <= MAX_INITIAL_ISSUANCE, "baseRate or initIssuance exceeds max value.");
        require(!isLocked, "Cannot add any more contracts.");

        // add to trustedContracts
        trustedContracts[_contractAddress] = true;

        // initialize contractSettings
        contractSettings[_contractAddress] = ContractSettings({ 
            baseRate: _baseRate,
            initIssuance: _initIssuance,
            start: block.timestamp,
            end: type(uint256).max
        });
    }

    /**
        - sets an end date for when rewards officially end
     */
    function setEndDateForContract(address _contractAddress, uint256 _endTime) public onlyOwner {
        require(!isLocked, "Cannot modify end dates after lock");
        require(trustedContracts[_contractAddress], "Not a trusted contract");
        
        contractSettings[_contractAddress].end = _endTime;
    }

    function claimReward(address _contractAddress, uint256 _tokenId) public returns (uint256) {
        require(trustedContracts[_contractAddress], "Not a trusted contract.");
        require(contractSettings[_contractAddress].end > block.timestamp, "Time for claiming on that contract has expired.");
        require(IHoots(_contractAddress).ownerOf(_tokenId) == msg.sender, "Caller does not own the token being claimed for.");

        // compute twigs to be claimed
        uint256 unclaimedReward = computeUnclaimedReward(_contractAddress, _tokenId);

        // update the lastClaim date for tokenId and contractAddress
        bytes32 lastClaimKey = keccak256(abi.encode(_contractAddress, _tokenId));
        lastClaim[lastClaimKey] = block.timestamp;

        // mint the tokens and distribute to msg.sender
        _mint(msg.sender, unclaimedReward);
        emit RewardPaid(msg.sender, unclaimedReward);

        return unclaimedReward;
    }

    function claimRewards(address _contractAddress, uint256[] calldata _tokenIds) public returns (uint256) {
        require(trustedContracts[_contractAddress], "Not a trusted contract.");
        require(contractSettings[_contractAddress].end > block.timestamp, "Time for claiming has expired");

        uint256 totalUnclaimedRewards = 0;

        for(uint256 i = 0; i < _tokenIds.length; i++) {
            uint256 _tokenId = _tokenIds[i];

            require(IHoots(_contractAddress).ownerOf(_tokenId) == msg.sender, "Caller does not own the token being claimed for.");

            // compute twigs to be claimed
            uint256 unclaimedReward = computeUnclaimedReward(_contractAddress, _tokenId);
            totalUnclaimedRewards = totalUnclaimedRewards + unclaimedReward;

            // update the lastClaim date for tokenId and contractAddress
            bytes32 lastClaimKey = keccak256(abi.encode(_contractAddress, _tokenId));
            lastClaim[lastClaimKey] = block.timestamp;
        }

        // mint the tokens and distribute to msg.sender
        _mint(msg.sender, totalUnclaimedRewards);
        emit RewardPaid(msg.sender, totalUnclaimedRewards);

        return totalUnclaimedRewards;
    }

    function permanentlyLock() public onlyOwner {
        isLocked = true;
    }

    function getUnclaimedRewardAmount(address _contractAddress, uint256 _tokenId) public view returns (uint256) {
        require(trustedContracts[_contractAddress], "Not a trusted contract");

        uint256 unclaimedReward  = computeUnclaimedReward(_contractAddress, _tokenId);
        return unclaimedReward;
    }

    function getUnclaimedRewardsAmount(address _contractAddress, uint256[] calldata _tokenIds) public view returns (uint256) {
        require(trustedContracts[_contractAddress], "Not a trusted contract");

        uint256 totalUnclaimedRewards = 0;

        for(uint256 i = 0; i < _tokenIds.length; i++) {
            totalUnclaimedRewards += computeUnclaimedReward(_contractAddress, _tokenIds[i]);
        }

        return totalUnclaimedRewards;
    }

    function getTotalUnclaimedRewardsForContract(address _contractAddress) public view returns (uint256) {
        require(trustedContracts[_contractAddress], "Not a trusted contract");

        uint256 totalUnclaimedRewards = 0;
        uint256 totalSupply = IHoots(_contractAddress).totalSupply();

        for(uint256 i = 0; i < totalSupply; i++) {
            totalUnclaimedRewards += computeUnclaimedReward(_contractAddress, i);
        }

        return totalUnclaimedRewards;
    }

    function getLastClaimedTime(address _contractAddress, uint256 _tokenId) public view returns (uint256) {
        require(trustedContracts[_contractAddress], "Not a trusted contract");

        bytes32 lastClaimKey = keccak256(abi.encode(_contractAddress, _tokenId));

        return lastClaim[lastClaimKey];
    }

    function computeAccumulatedReward(uint256 _lastClaimDate, uint256 _baseRate, uint256 currentTime) internal pure returns (uint256) {
        require(currentTime > _lastClaimDate, "Last claim date must be smaller than block timestamp");

        uint256 secondsElapsed = currentTime - _lastClaimDate;
        uint256 accumulatedReward = secondsElapsed * _baseRate / 1 days;

        return accumulatedReward;
    }

    function computeUnclaimedReward(address _contractAddress, uint256 _tokenId) internal view returns (uint256) {
        require(trustedContracts[_contractAddress], "Not a trusted contract");
        
        // Will revert if tokenId does not exist
        IHoots(_contractAddress).ownerOf(_tokenId);

        // build the hash for lastClaim based on contractAddress and tokenId
        bytes32 lastClaimKey = keccak256(abi.encode(_contractAddress, _tokenId));
        uint256 lastClaimDate = lastClaim[lastClaimKey];
        uint256 baseRate = contractSettings[_contractAddress].baseRate;

        // if there has been a lastClaim, compute the value since lastClaim
        if (lastClaimDate != uint256(0)) {
            return computeAccumulatedReward(lastClaimDate, baseRate, block.timestamp);
        } 
        else {
            // if there has not been a lastClaim, add the initIssuance + computed value since contract startDate
            uint256 totalReward = computeAccumulatedReward(contractSettings[_contractAddress].start, baseRate, block.timestamp) + contractSettings[_contractAddress].initIssuance;

            return totalReward;
        }
    }
}

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

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","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"},{"inputs":[],"name":"MAX_BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_INITIAL_ISSUANCE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_baseRate","type":"uint256"},{"internalType":"uint256","name":"_initIssuance","type":"uint256"}],"name":"addContract","outputs":[],"stateMutability":"nonpayable","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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"claimRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contractSettings","outputs":[{"internalType":"uint256","name":"baseRate","type":"uint256"},{"internalType":"uint256","name":"initIssuance","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"stateMutability":"view","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":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getLastClaimedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"getTotalUnclaimedRewardsForContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getUnclaimedRewardAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"getUnclaimedRewardsAmount","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":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"permanentlyLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setEndDateForContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"trustedContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040526008805460ff191690553480156200001b57600080fd5b5060405180604001604052806005815260200164547769677360d81b81525060405180604001604052806005815260200164545749475360d81b815250816003908051906020019062000070929190620000ff565b50805162000086906004906020840190620000ff565b505050620000a36200009d620000a960201b60201c565b620000ad565b620001e2565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010d90620001a5565b90600052602060002090601f0160209004810192826200013157600085556200017c565b82601f106200014c57805160ff19168380011785556200017c565b828001600101855582156200017c579182015b828111156200017c5782518255916020019190600101906200015f565b506200018a9291506200018e565b5090565b5b808211156200018a57600081556001016200018f565b600181811c90821680620001ba57607f821691505b60208210811415620001dc57634e487b7160e01b600052602260045260246000fd5b50919050565b611b2380620001f26000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a082311161010457806395fbf7ea116100a2578063b817cc6011610071578063b817cc6014610406578063dd62ed3e14610419578063e5919a4f14610452578063f2fde38b1461047557600080fd5b806395fbf7ea1461037e578063a457c2d7146103d3578063a4e2d634146103e6578063a9059cbb146103f357600080fd5b80638da5cb5b116100de5780638da5cb5b146103355780638f33221e1461035057806390689c361461036357806395d89b411461037657600080fd5b806370a08231146102f5578063715018a61461031e5780637bf960141461032657600080fd5b80632a07e1bb116101715780633af7c6781161014b5780633af7c678146102aa578063511a9267146102ba578063543e0d16146102c25780636bac8de2146102d557600080fd5b80632a07e1bb14610275578063313ce56714610288578063395093511461029757600080fd5b8063174e31c4116101ad578063174e31c41461023257806318160ddd14610245578063220eecfb1461024d57806323b872dd1461026257600080fd5b806305231dea146101d457806306fdde03146101fa578063095ea7b31461020f575b600080fd5b6101e76101e23660046117e4565b610488565b6040519081526020015b60405180910390f35b6102026106f7565b6040516101f191906118f6565b61022261021d366004611867565b610789565b60405190151581526020016101f1565b6101e7610240366004611867565b6107a0565b6002546101e7565b61026061025b366004611867565b6109c2565b005b6102226102703660046117a4565b610aa1565b6101e761028336600461172d565b610b4b565b604051601281526020016101f1565b6102226102a5366004611867565b610c35565b6101e7681043561a882930000081565b610260610c71565b6101e76102d03660046117e4565b610caa565b6101e76102e33660046118c6565b60096020526000908152604090205481565b6101e761030336600461172d565b6001600160a01b031660009081526020819052604090205490565b610260610d45565b6101e7678ac7230489e8000081565b6005546040516001600160a01b0390911681526020016101f1565b61026061035e366004611892565b610d7b565b6101e7610371366004611867565b610eea565b610202610f6e565b6103b361038c36600461172d565b60066020526000908152604090208054600182015460028301546003909301549192909184565b6040805194855260208501939093529183015260608201526080016101f1565b6102226103e1366004611867565b610f7d565b6008546102229060ff1681565b610222610401366004611867565b611016565b6101e7610414366004611867565b611023565b6101e761042736600461176c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022261046036600461172d565b60076020526000908152604090205460ff1681565b61026061048336600461172d565b61106f565b6001600160a01b03831660009081526007602052604081205460ff166104ef5760405162461bcd60e51b81526020600482015260176024820152762737ba1030903a393ab9ba32b21031b7b73a3930b1ba1760491b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526006602052604090206003015442106105595760405162461bcd60e51b815260206004820152601d60248201527f54696d6520666f7220636c61696d696e6720686173206578706972656400000060448201526064016104e6565b6000805b838110156106af57600085858381811061058757634e487b7160e01b600052603260045260246000fd5b905060200201359050336001600160a01b0316876001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016105c891815260200190565b60206040518083038186803b1580156105e057600080fd5b505afa1580156105f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106189190611750565b6001600160a01b03161461063e5760405162461bcd60e51b81526004016104e69061197e565b600061064a888361110a565b905061065681856119fe565b604080516001600160a01b038b16602080830191909152818301959095528151808203830181526060909101825280519085012060009081526009909452909220429055509150806106a781611aa7565b91505061055d565b506106ba3382611269565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a2949350505050565b60606003805461070690611a6c565b80601f016020809104026020016040519081016040528092919081815260200182805461073290611a6c565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b5050505050905090565b6000610796338484611348565b5060015b92915050565b6001600160a01b03821660009081526007602052604081205460ff166108025760405162461bcd60e51b81526020600482015260176024820152762737ba1030903a393ab9ba32b21031b7b73a3930b1ba1760491b60448201526064016104e6565b6001600160a01b03831660009081526006602052604090206003015442106108845760405162461bcd60e51b815260206004820152602f60248201527f54696d6520666f7220636c61696d696e67206f6e207468617420636f6e74726160448201526e31ba103430b99032bc3834b932b21760891b60648201526084016104e6565b6040516331a9108f60e11b81526004810183905233906001600160a01b03851690636352211e9060240160206040518083038186803b1580156108c657600080fd5b505afa1580156108da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fe9190611750565b6001600160a01b0316146109245760405162461bcd60e51b81526004016104e69061197e565b6000610930848461110a565b604080516001600160a01b038716602082015290810185905290915060009060600160408051601f19818403018152918152815160209283012060008181526009909352912042905590506109853383611269565b60405182815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a2509392505050565b6005546001600160a01b031633146109ec5760405162461bcd60e51b81526004016104e690611949565b60085460ff1615610a4a5760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f74206d6f6469667920656e64206461746573206166746572206c6f604482015261636b60f01b60648201526084016104e6565b6001600160a01b03821660009081526007602052604090205460ff16610a825760405162461bcd60e51b81526004016104e6906119ce565b6001600160a01b03909116600090815260066020526040902060030155565b6000610aae84848461146c565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610b335760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104e6565b610b408533858403611348565b506001949350505050565b6001600160a01b03811660009081526007602052604081205460ff16610b835760405162461bcd60e51b81526004016104e6906119ce565b600080836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610bbf57600080fd5b505afa158015610bd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf791906118de565b905060005b81811015610c2c57610c0e858261110a565b610c1890846119fe565b925080610c2481611aa7565b915050610bfc565b50909392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610796918590610c6c9086906119fe565b611348565b6005546001600160a01b03163314610c9b5760405162461bcd60e51b81526004016104e690611949565b6008805460ff19166001179055565b6001600160a01b03831660009081526007602052604081205460ff16610ce25760405162461bcd60e51b81526004016104e6906119ce565b6000805b83811015610d3c57610d1e86868684818110610d1257634e487b7160e01b600052603260045260246000fd5b9050602002013561110a565b610d2890836119fe565b915080610d3481611aa7565b915050610ce6565b50949350505050565b6005546001600160a01b03163314610d6f5760405162461bcd60e51b81526004016104e690611949565b610d79600061163b565b565b6005546001600160a01b03163314610da55760405162461bcd60e51b81526004016104e690611949565b678ac7230489e800008211158015610dc65750681043561a88293000008111155b610e265760405162461bcd60e51b815260206004820152602b60248201527f6261736552617465206f7220696e697449737375616e6365206578636565647360448201526a1036b0bc103b30b63ab29760a91b60648201526084016104e6565b60085460ff1615610e795760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742061646420616e79206d6f726520636f6e7472616374732e000060448201526064016104e6565b6001600160a01b039092166000818152600760209081526040808320805460ff19166001908117909155815160808101835295865285830196875242868301908152600019606088019081529585526006909352922093518455935190830155915160028201559051600390910155565b6001600160a01b03821660009081526007602052604081205460ff16610f225760405162461bcd60e51b81526004016104e6906119ce565b604080516001600160a01b038516602082015290810183905260009060600160408051808303601f19018152918152815160209283012060009081526009909252902054949350505050565b60606004805461070690611a6c565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610fff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104e6565b61100c3385858403611348565b5060019392505050565b600061079633848461146c565b6001600160a01b03821660009081526007602052604081205460ff1661105b5760405162461bcd60e51b81526004016104e6906119ce565b6000611067848461110a565b949350505050565b6005546001600160a01b031633146110995760405162461bcd60e51b81526004016104e690611949565b6001600160a01b0381166110fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104e6565b6111078161163b565b50565b6001600160a01b03821660009081526007602052604081205460ff166111425760405162461bcd60e51b81526004016104e6906119ce565b6040516331a9108f60e11b8152600481018390526001600160a01b03841690636352211e9060240160206040518083038186803b15801561118257600080fd5b505afa158015611196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ba9190611750565b50604080516001600160a01b038516602080830182905282840186905283518084038501815260609093018452825192810192909220600081815260098452848120549281526006909352929091205481156112255761121b82824261168d565b935050505061079a565b6001600160a01b0386166000908152600660205260408120600181015460029091015461125390844261168d565b61125d91906119fe565b945061079a9350505050565b6001600160a01b0382166112bf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104e6565b80600260008282546112d191906119fe565b90915550506001600160a01b038216600090815260208190526040812080548392906112fe9084906119fe565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166113aa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104e6565b6001600160a01b03821661140b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104e6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166114d05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104e6565b6001600160a01b0382166115325760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104e6565b6001600160a01b038316600090815260208190526040902054818110156115aa5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104e6565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115e19084906119fe565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161162d91815260200190565b60405180910390a350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008382116116fb5760405162461bcd60e51b815260206004820152603460248201527f4c61737420636c61696d2064617465206d75737420626520736d616c6c65722060448201527307468616e20626c6f636b2074696d657374616d760641b60648201526084016104e6565b60006117078584611a55565b90506000620151806117198684611a36565b6117239190611a16565b9695505050505050565b60006020828403121561173e578081fd5b813561174981611ad8565b9392505050565b600060208284031215611761578081fd5b815161174981611ad8565b6000806040838503121561177e578081fd5b823561178981611ad8565b9150602083013561179981611ad8565b809150509250929050565b6000806000606084860312156117b8578081fd5b83356117c381611ad8565b925060208401356117d381611ad8565b929592945050506040919091013590565b6000806000604084860312156117f8578283fd5b833561180381611ad8565b9250602084013567ffffffffffffffff8082111561181f578384fd5b818601915086601f830112611832578384fd5b813581811115611840578485fd5b8760208260051b8501011115611854578485fd5b6020830194508093505050509250925092565b60008060408385031215611879578182fd5b823561188481611ad8565b946020939093013593505050565b6000806000606084860312156118a6578283fd5b83356118b181611ad8565b95602085013595506040909401359392505050565b6000602082840312156118d7578081fd5b5035919050565b6000602082840312156118ef578081fd5b5051919050565b6000602080835283518082850152825b8181101561192257858101830151858201604001528201611906565b818111156119335783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526030908201527f43616c6c657220646f6573206e6f74206f776e2074686520746f6b656e20626560408201526f34b7339031b630b4b6b2b2103337b91760811b606082015260800190565b602080825260169082015275139bdd0818481d1c9d5cdd19590818dbdb9d1c9858dd60521b604082015260600190565b60008219821115611a1157611a11611ac2565b500190565b600082611a3157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611a5057611a50611ac2565b500290565b600082821015611a6757611a67611ac2565b500390565b600181811c90821680611a8057607f821691505b60208210811415611aa157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611abb57611abb611ac2565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461110757600080fdfea2646970667358221220d3122df6e582bd0a6323446c19fac8dcfffe9fc88a9f6eae7fc9bd40a7318d1664736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a082311161010457806395fbf7ea116100a2578063b817cc6011610071578063b817cc6014610406578063dd62ed3e14610419578063e5919a4f14610452578063f2fde38b1461047557600080fd5b806395fbf7ea1461037e578063a457c2d7146103d3578063a4e2d634146103e6578063a9059cbb146103f357600080fd5b80638da5cb5b116100de5780638da5cb5b146103355780638f33221e1461035057806390689c361461036357806395d89b411461037657600080fd5b806370a08231146102f5578063715018a61461031e5780637bf960141461032657600080fd5b80632a07e1bb116101715780633af7c6781161014b5780633af7c678146102aa578063511a9267146102ba578063543e0d16146102c25780636bac8de2146102d557600080fd5b80632a07e1bb14610275578063313ce56714610288578063395093511461029757600080fd5b8063174e31c4116101ad578063174e31c41461023257806318160ddd14610245578063220eecfb1461024d57806323b872dd1461026257600080fd5b806305231dea146101d457806306fdde03146101fa578063095ea7b31461020f575b600080fd5b6101e76101e23660046117e4565b610488565b6040519081526020015b60405180910390f35b6102026106f7565b6040516101f191906118f6565b61022261021d366004611867565b610789565b60405190151581526020016101f1565b6101e7610240366004611867565b6107a0565b6002546101e7565b61026061025b366004611867565b6109c2565b005b6102226102703660046117a4565b610aa1565b6101e761028336600461172d565b610b4b565b604051601281526020016101f1565b6102226102a5366004611867565b610c35565b6101e7681043561a882930000081565b610260610c71565b6101e76102d03660046117e4565b610caa565b6101e76102e33660046118c6565b60096020526000908152604090205481565b6101e761030336600461172d565b6001600160a01b031660009081526020819052604090205490565b610260610d45565b6101e7678ac7230489e8000081565b6005546040516001600160a01b0390911681526020016101f1565b61026061035e366004611892565b610d7b565b6101e7610371366004611867565b610eea565b610202610f6e565b6103b361038c36600461172d565b60066020526000908152604090208054600182015460028301546003909301549192909184565b6040805194855260208501939093529183015260608201526080016101f1565b6102226103e1366004611867565b610f7d565b6008546102229060ff1681565b610222610401366004611867565b611016565b6101e7610414366004611867565b611023565b6101e761042736600461176c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022261046036600461172d565b60076020526000908152604090205460ff1681565b61026061048336600461172d565b61106f565b6001600160a01b03831660009081526007602052604081205460ff166104ef5760405162461bcd60e51b81526020600482015260176024820152762737ba1030903a393ab9ba32b21031b7b73a3930b1ba1760491b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526006602052604090206003015442106105595760405162461bcd60e51b815260206004820152601d60248201527f54696d6520666f7220636c61696d696e6720686173206578706972656400000060448201526064016104e6565b6000805b838110156106af57600085858381811061058757634e487b7160e01b600052603260045260246000fd5b905060200201359050336001600160a01b0316876001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016105c891815260200190565b60206040518083038186803b1580156105e057600080fd5b505afa1580156105f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106189190611750565b6001600160a01b03161461063e5760405162461bcd60e51b81526004016104e69061197e565b600061064a888361110a565b905061065681856119fe565b604080516001600160a01b038b16602080830191909152818301959095528151808203830181526060909101825280519085012060009081526009909452909220429055509150806106a781611aa7565b91505061055d565b506106ba3382611269565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a2949350505050565b60606003805461070690611a6c565b80601f016020809104026020016040519081016040528092919081815260200182805461073290611a6c565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b5050505050905090565b6000610796338484611348565b5060015b92915050565b6001600160a01b03821660009081526007602052604081205460ff166108025760405162461bcd60e51b81526020600482015260176024820152762737ba1030903a393ab9ba32b21031b7b73a3930b1ba1760491b60448201526064016104e6565b6001600160a01b03831660009081526006602052604090206003015442106108845760405162461bcd60e51b815260206004820152602f60248201527f54696d6520666f7220636c61696d696e67206f6e207468617420636f6e74726160448201526e31ba103430b99032bc3834b932b21760891b60648201526084016104e6565b6040516331a9108f60e11b81526004810183905233906001600160a01b03851690636352211e9060240160206040518083038186803b1580156108c657600080fd5b505afa1580156108da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fe9190611750565b6001600160a01b0316146109245760405162461bcd60e51b81526004016104e69061197e565b6000610930848461110a565b604080516001600160a01b038716602082015290810185905290915060009060600160408051601f19818403018152918152815160209283012060008181526009909352912042905590506109853383611269565b60405182815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a2509392505050565b6005546001600160a01b031633146109ec5760405162461bcd60e51b81526004016104e690611949565b60085460ff1615610a4a5760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f74206d6f6469667920656e64206461746573206166746572206c6f604482015261636b60f01b60648201526084016104e6565b6001600160a01b03821660009081526007602052604090205460ff16610a825760405162461bcd60e51b81526004016104e6906119ce565b6001600160a01b03909116600090815260066020526040902060030155565b6000610aae84848461146c565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610b335760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104e6565b610b408533858403611348565b506001949350505050565b6001600160a01b03811660009081526007602052604081205460ff16610b835760405162461bcd60e51b81526004016104e6906119ce565b600080836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610bbf57600080fd5b505afa158015610bd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf791906118de565b905060005b81811015610c2c57610c0e858261110a565b610c1890846119fe565b925080610c2481611aa7565b915050610bfc565b50909392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610796918590610c6c9086906119fe565b611348565b6005546001600160a01b03163314610c9b5760405162461bcd60e51b81526004016104e690611949565b6008805460ff19166001179055565b6001600160a01b03831660009081526007602052604081205460ff16610ce25760405162461bcd60e51b81526004016104e6906119ce565b6000805b83811015610d3c57610d1e86868684818110610d1257634e487b7160e01b600052603260045260246000fd5b9050602002013561110a565b610d2890836119fe565b915080610d3481611aa7565b915050610ce6565b50949350505050565b6005546001600160a01b03163314610d6f5760405162461bcd60e51b81526004016104e690611949565b610d79600061163b565b565b6005546001600160a01b03163314610da55760405162461bcd60e51b81526004016104e690611949565b678ac7230489e800008211158015610dc65750681043561a88293000008111155b610e265760405162461bcd60e51b815260206004820152602b60248201527f6261736552617465206f7220696e697449737375616e6365206578636565647360448201526a1036b0bc103b30b63ab29760a91b60648201526084016104e6565b60085460ff1615610e795760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742061646420616e79206d6f726520636f6e7472616374732e000060448201526064016104e6565b6001600160a01b039092166000818152600760209081526040808320805460ff19166001908117909155815160808101835295865285830196875242868301908152600019606088019081529585526006909352922093518455935190830155915160028201559051600390910155565b6001600160a01b03821660009081526007602052604081205460ff16610f225760405162461bcd60e51b81526004016104e6906119ce565b604080516001600160a01b038516602082015290810183905260009060600160408051808303601f19018152918152815160209283012060009081526009909252902054949350505050565b60606004805461070690611a6c565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610fff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104e6565b61100c3385858403611348565b5060019392505050565b600061079633848461146c565b6001600160a01b03821660009081526007602052604081205460ff1661105b5760405162461bcd60e51b81526004016104e6906119ce565b6000611067848461110a565b949350505050565b6005546001600160a01b031633146110995760405162461bcd60e51b81526004016104e690611949565b6001600160a01b0381166110fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104e6565b6111078161163b565b50565b6001600160a01b03821660009081526007602052604081205460ff166111425760405162461bcd60e51b81526004016104e6906119ce565b6040516331a9108f60e11b8152600481018390526001600160a01b03841690636352211e9060240160206040518083038186803b15801561118257600080fd5b505afa158015611196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ba9190611750565b50604080516001600160a01b038516602080830182905282840186905283518084038501815260609093018452825192810192909220600081815260098452848120549281526006909352929091205481156112255761121b82824261168d565b935050505061079a565b6001600160a01b0386166000908152600660205260408120600181015460029091015461125390844261168d565b61125d91906119fe565b945061079a9350505050565b6001600160a01b0382166112bf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104e6565b80600260008282546112d191906119fe565b90915550506001600160a01b038216600090815260208190526040812080548392906112fe9084906119fe565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166113aa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104e6565b6001600160a01b03821661140b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104e6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166114d05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104e6565b6001600160a01b0382166115325760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104e6565b6001600160a01b038316600090815260208190526040902054818110156115aa5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104e6565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115e19084906119fe565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161162d91815260200190565b60405180910390a350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008382116116fb5760405162461bcd60e51b815260206004820152603460248201527f4c61737420636c61696d2064617465206d75737420626520736d616c6c65722060448201527307468616e20626c6f636b2074696d657374616d760641b60648201526084016104e6565b60006117078584611a55565b90506000620151806117198684611a36565b6117239190611a16565b9695505050505050565b60006020828403121561173e578081fd5b813561174981611ad8565b9392505050565b600060208284031215611761578081fd5b815161174981611ad8565b6000806040838503121561177e578081fd5b823561178981611ad8565b9150602083013561179981611ad8565b809150509250929050565b6000806000606084860312156117b8578081fd5b83356117c381611ad8565b925060208401356117d381611ad8565b929592945050506040919091013590565b6000806000604084860312156117f8578283fd5b833561180381611ad8565b9250602084013567ffffffffffffffff8082111561181f578384fd5b818601915086601f830112611832578384fd5b813581811115611840578485fd5b8760208260051b8501011115611854578485fd5b6020830194508093505050509250925092565b60008060408385031215611879578182fd5b823561188481611ad8565b946020939093013593505050565b6000806000606084860312156118a6578283fd5b83356118b181611ad8565b95602085013595506040909401359392505050565b6000602082840312156118d7578081fd5b5035919050565b6000602082840312156118ef578081fd5b5051919050565b6000602080835283518082850152825b8181101561192257858101830151858201604001528201611906565b818111156119335783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526030908201527f43616c6c657220646f6573206e6f74206f776e2074686520746f6b656e20626560408201526f34b7339031b630b4b6b2b2103337b91760811b606082015260800190565b602080825260169082015275139bdd0818481d1c9d5cdd19590818dbdb9d1c9858dd60521b604082015260600190565b60008219821115611a1157611a11611ac2565b500190565b600082611a3157634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611a5057611a50611ac2565b500290565b600082821015611a6757611a67611ac2565b500390565b600181811c90821680611a8057607f821691505b60208210811415611aa157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611abb57611abb611ac2565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461110757600080fdfea2646970667358221220d3122df6e582bd0a6323446c19fac8dcfffe9fc88a9f6eae7fc9bd40a7318d1664736f6c63430008040033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.