ETH Price: $3,480.39 (+2.59%)

Token

Staked Monastery (ZEN)
 

Overview

Max Total Supply

13,132,737.888125941 ZEN

Holders

66

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
0.000000907 ZEN

Value
$0.00
0xc9f737034d796cbc3a45744e83db7b33c3ac9bef
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:
StakedMonasteryERC20

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 7 : StakedMonasteryMonkERC20.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

import "./libraries/ERC20.sol";
import "./libraries/Ownable.sol";

contract StakedMonasteryERC20 is ERC20Permit, Ownable {

    using SafeMath for uint256;

    modifier onlyStakingContract() {
        require( msg.sender == stakingContract );
        _;
    }

    address public stakingContract;
    address public initializer;

    event LogSupply(uint256 indexed epoch, uint256 timestamp, uint256 totalSupply );
    event LogRebase( uint256 indexed epoch, uint256 rebase, uint256 index );
    event LogStakingContractUpdated( address stakingContract );

    struct Rebase {
        uint epoch;
        uint rebase; // 18 decimals
        uint totalStakedBefore;
        uint totalStakedAfter;
        uint amountRebased;
        uint index;
        uint blockNumberOccured;
    }
    Rebase[] public rebases;

    uint public INDEX;

    uint256 private constant MAX_UINT256 = ~uint256(0);
    uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 5000000 * 10**9;

    uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY);

    uint256 private constant MAX_SUPPLY = ~uint128(0);

    uint256 private _gonsPerFragment;
    mapping(address => uint256) private _gonBalances;

    uint256 internal _NtotalSupply;
    uint256 private _NgonsPerFragment;
    mapping(address => bool) public _isN;

    uint256 internal BASIS_POINTS = 10_000;
    uint256 public pValue; // IN Bps

    uint256 public NTG;
    uint256 private lossSupply;

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

    constructor(uint256 pVal) ERC20("Staked Monastery", "ZEN", 9) ERC20Permit() {
        initializer = msg.sender;

        _totalSupply = INITIAL_FRAGMENTS_SUPPLY;
        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        _NtotalSupply = _totalSupply;
        _NgonsPerFragment = _gonsPerFragment;
        pValue = pVal;
    }

    function initialize( address stakingContract_ ) external returns ( bool ) {
        require( msg.sender == initializer );
        require( stakingContract_ != address(0) );
        stakingContract = stakingContract_;
        _gonBalances[ stakingContract ] = TOTAL_GONS;

        emit Transfer( address(0x0), stakingContract, _totalSupply );
        emit LogStakingContractUpdated( stakingContract_ );

        initializer = address(0);
        return true;
    }

    function setIndex( uint _INDEX ) external onlyOwner() returns ( bool ) {
        require( INDEX == 0 );
        INDEX = gonsForBalance( _INDEX );
        return true;
    }

    function setPValue( uint256 pVal ) external onlyOwner() {
        require( pVal > 0 && pVal < BASIS_POINTS );
        pValue = pVal;
    }

    function rebase( uint256 profit_, uint epoch_ ) public onlyStakingContract() returns ( uint256 ) {
        uint256 rebaseAmount;
        uint256 circulatingSupply_ = circulatingSupply();

        if ( profit_ == 0 ) {
            emit LogSupply( epoch_, block.timestamp, totalSupply() );
            emit LogRebase( epoch_, 0, index() );
            return totalSupply();
        } else if ( circulatingSupply_ > 0 ){
            rebaseAmount = profit_.mul( totalSupply() ).div( circulatingSupply_ );
        } else {
            rebaseAmount = profit_;
        }

        uint256 reducedRebaseAmount = rebaseAmount.mul(pValue).div(BASIS_POINTS);
        uint256 extraRebaseAmount = rebaseAmount.sub(reducedRebaseAmount);

        _NtotalSupply = _NtotalSupply.add(rebaseAmount);
        _totalSupply = _totalSupply.add( reducedRebaseAmount );

        if ( _NtotalSupply > MAX_SUPPLY ) {
            _NtotalSupply = MAX_SUPPLY;
            lossSupply = 0;
            extraRebaseAmount = 0;
        }

        if ( _totalSupply > MAX_SUPPLY ) {
            _totalSupply = MAX_SUPPLY;
        }

        updateGons();
        if (extraRebaseAmount > 0) {
            manage(extraRebaseAmount);
        }

        _storeRebase( circulatingSupply_, profit_, epoch_ );

        return totalSupply();
    }

    function manage(uint256 extraRebaseAmount) private {
        uint256 value = _NtotalSupply.sub(NbalanceForGons(NTG)).mul(extraRebaseAmount).div(_NtotalSupply);
        lossSupply = lossSupply.add(value);
    }

    function _storeRebase( uint previousCirculating_, uint profit_, uint epoch_ ) internal returns ( bool ) {
        uint rebasePercent = profit_.mul( 1e18 ).div( previousCirculating_ );

        rebases.push( Rebase ( {
            epoch: epoch_,
            rebase: rebasePercent, // 18 decimals
            totalStakedBefore: previousCirculating_,
            totalStakedAfter: circulatingSupply(),
            amountRebased: profit_,
            index: index(),
            blockNumberOccured: block.number
        }));

        emit LogSupply( epoch_, block.timestamp, totalSupply() );
        emit LogRebase( epoch_, rebasePercent, index() );

        return true;
    }

    function updateGons() private {
        _NgonsPerFragment = TOTAL_GONS.div( _NtotalSupply );
        _gonsPerFragment = TOTAL_GONS.div( _totalSupply );
    }

    function boost(address who) public onlyStakingContract() {
        require(!_isN[who], "Already boosted");
        _gonBalances[who] = NgonsForBalance(balanceOf(who));
        NTG = NTG.add(_gonBalances[who]);
        _isN[who] = true;
    }

    function unboost(address who) public onlyStakingContract() {
        require(_isN[who], "Not boosted");
        NTG = NTG.sub(_gonBalances[who]);
        _gonBalances[who] = gonsForBalance(balanceOf(who));
        _isN[who] = false;
    }

    function balanceOf( address who ) public view override returns ( uint256 ) {
        if (_isN[who]) {
            return NbalanceForGons(_gonBalances[ who ]);
        }
        return balanceForGons(_gonBalances[ who ]);
    }

    function gonsForBalance( uint amount ) public view returns ( uint ) {
        return amount.mul( _gonsPerFragment );
    }

    function balanceForGons( uint gons ) public view returns ( uint ) {
        return gons.div( _gonsPerFragment );
    }

    function NgonsForBalance( uint amount ) public view returns ( uint ) {
        return amount.mul( _NgonsPerFragment );
    }

    function NbalanceForGons( uint gons ) public view returns ( uint ) {
        return gons.div( _NgonsPerFragment );
    }

    function totalSupply() public view override returns (uint256) {
        return _NtotalSupply.sub(lossSupply);
    }

    function circulatingSupply() public view returns ( uint ) {
        return totalSupply().sub( balanceOf( stakingContract ) );
    }

    function index() public view returns ( uint ) {
        return NbalanceForGons( INDEX );
    }

    function transferToN(address from, address to, uint256 value ) private {
        _gonBalances[ from ] = _gonBalances[from].sub(gonsForBalance(value), "ERC20: transfer amount exceeds balance");
        _gonBalances[ to ] = _gonBalances[to].add(NgonsForBalance(value));
        NTG = NTG.add(NgonsForBalance(value));
    }

    function transferFromN(address from, address to, uint256 value ) private {
        _gonBalances[ from ] = _gonBalances[ from ].sub(NgonsForBalance(value), "ERC20: transfer amount exceeds balance");
        _gonBalances[ to ] =  _gonBalances[ to ].add(gonsForBalance(value));
        NTG = NTG.sub(NgonsForBalance(value));
    }

    function transferSimpleN(address from, address to, uint256 value ) private{
        uint256 gonValue = NgonsForBalance(value);
        _gonBalances[ from ] = _gonBalances[ from ].sub(gonValue, "ERC20: transfer amount exceeds balance");
        _gonBalances[ to ] = _gonBalances[ to ].add(gonValue);
    }

    function transferSimple(address from, address to, uint256 value ) private {
        uint256 gonValue = gonsForBalance(value);
        _gonBalances[ from ] = _gonBalances[ from ].sub(gonValue, "ERC20: transfer amount exceeds balance");
        _gonBalances[ to ] = _gonBalances[ to ].add( gonValue );
    }

    function _transfer(address from, address to, uint256 value) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        bool isNFrom = _isN[from];
        bool isNTo = _isN[to];
        if (!isNFrom && isNTo) {
            transferToN(from, to, value);
        } else if (isNFrom && !isNTo) {
            transferFromN(from, to, value);
        } else if (!isNFrom && !isNTo) {
            transferSimple(from, to, value);
        } else if (isNFrom && isNTo) {
            transferSimpleN(from, to, value);
        }
    }

    function transfer( address to, uint256 value ) public override returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function allowance( address owner_, address spender ) public view override returns ( uint256 ) {
        return _allowedValue[ owner_ ][ spender ];
    }

    function transferFrom( address from, address to, uint256 value ) public override returns ( bool ) {
        _allowedValue[ from ][ msg.sender ] = _allowedValue[ from ][ msg.sender ].sub( value, "ERC20: decreased allowance below zero" );
        emit Approval( from, msg.sender,  _allowedValue[ from ][ msg.sender ] );

        _transfer(from, to, value);

        emit Transfer( from, to, value );

        return true;
    }

    function approve( address spender, uint256 value ) public override returns (bool) {
         _allowedValue[ msg.sender ][ spender ] = value;
         emit Approval( msg.sender, spender, value );
         return true;
    }

    function _approve( address owner, address spender, uint256 value ) internal override virtual {
        _allowedValue[owner][spender] = value;
        emit Approval( owner, spender, value );
    }

    function increaseAllowance( address spender, uint256 addedValue ) public override returns (bool) {
        _allowedValue[ msg.sender ][ spender ] = _allowedValue[ msg.sender ][ spender ].add( addedValue );
        emit Approval( msg.sender, spender, _allowedValue[ msg.sender ][ spender ] );
        return true;
    }

    function decreaseAllowance( address spender, uint256 subtractedValue ) public override returns (bool) {
        uint256 oldValue = _allowedValue[ msg.sender ][ spender ];
        if (subtractedValue >= oldValue) {
            _allowedValue[ msg.sender ][ spender ] = 0;
        } else {
            _allowedValue[ msg.sender ][ spender ] = oldValue.sub( subtractedValue );
        }
        emit Approval( msg.sender, spender, _allowedValue[ msg.sender ][ spender ] );
        return true;
    }
}

File 2 of 7 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

import "../interfaces/IERC20.sol";
import "./SafeMath.sol";
import "./Counters.sol";
import "./Address.sol";

abstract contract ERC20 is IERC20 {

    using SafeMath for uint256;

    // TODO comment actual hash value.
    bytes32 constant private ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256( "ERC20Token" );

    mapping (address => uint256) internal _balances;

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

    uint256 internal _totalSupply;

    string internal _name;

    string internal _symbol;

    uint8 internal _decimals;

    constructor (string memory name_, string memory symbol_, uint8 decimals_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

     function name() public view override returns (string memory) {
        return _name;
    }

    function symbol() public view override returns (string memory) {
        return _symbol;
    }

    function decimals() public view override returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

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

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    function _mint(address account_, uint256 ammount_) internal virtual {
        require(account_ != address(0), "ERC20: mint to the zero address");
        _beforeTokenTransfer(address( this ), account_, ammount_);
        _totalSupply = _totalSupply.add(ammount_);
        _balances[account_] = _balances[account_].add(ammount_);
        emit Transfer(address( this ), account_, ammount_);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

  function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual { }
}

interface IERC2612Permit {

    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    function nonces(address owner) external view returns (uint256);
}


abstract contract ERC20Permit is ERC20, IERC2612Permit {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;

    bytes32 public DOMAIN_SEPARATOR;

    constructor() {
        uint256 chainID;
        assembly {
            chainID := chainid()
        }

        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(name())),
                keccak256(bytes("1")), // Version
                chainID,
                address(this)
            )
        );
    }

    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "Permit: expired deadline");

        bytes32 hashStruct =
            keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, amount, _nonces[owner].current(), deadline));

        bytes32 _hash = keccak256(abi.encodePacked(uint16(0x1901), DOMAIN_SEPARATOR, hashStruct));

        address signer = ecrecover(_hash, v, r, s);
        require(signer != address(0) && signer == owner, "Permit: Invalid signature");

        _nonces[owner].increment();
        _approve(owner, spender, amount);
    }

    function nonces(address owner) public view override returns (uint256) {
        return _nonces[owner].current();
    }
}

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {

        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function _callOptionalReturn(IERC20 token, bytes memory data) private {

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 3 of 7 : Ownable.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

interface IOwnable {
  function owner() external view returns (address);

  function renounceManagement() external;

  function pushManagement( address newOwner_ ) external;

  function pullManagement() external;
}

contract Ownable is IOwnable {

    address internal _owner;
    address internal _newOwner;

    event OwnershipPushed(address indexed previousOwner, address indexed newOwner);
    event OwnershipPulled(address indexed previousOwner, address indexed newOwner);

    constructor () {
        _owner = msg.sender;
        emit OwnershipPushed( address(0), _owner );
    }

    function owner() public view override returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require( _owner == msg.sender, "Ownable: caller is not the owner" );
        _;
    }

    function renounceManagement() public virtual override onlyOwner() {
        emit OwnershipPushed( _owner, address(0) );
        _owner = address(0);
    }

    function pushManagement( address newOwner_ ) public virtual override onlyOwner() {
        require( newOwner_ != address(0), "Ownable: new owner is the zero address");
        emit OwnershipPushed( _owner, newOwner_ );
        _newOwner = newOwner_;
    }

    function pullManagement() public virtual override {
        require( msg.sender == _newOwner, "Ownable: must be new owner to pull");
        emit OwnershipPulled( _owner, _newOwner );
        _owner = _newOwner;
    }
}

File 4 of 7 : IERC20.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity >=0.5.0;

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

interface IERC20Mintable {
  function mint( uint256 amount_ ) external;

  function mint( address account_, uint256 ammount_ ) external;
}

File 5 of 7 : SafeMath.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {

        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    function sqrrt(uint256 a) internal pure returns (uint c) {
        if (a > 3) {
            c = a;
            uint b = add( div( a, 2), 1 );
            while (b < c) {
                c = b;
                b = div( add( div( a, b ), b), 2 );
            }
        } else if (a != 0) {
            c = 1;
        }
    }
}

File 6 of 7 : Counters.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

import "./SafeMath.sol";

library Counters {
    using SafeMath for uint256;

    struct Counter {

        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

File 7 of 7 : Address.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

library Address {

    function isContract(address account) internal view returns (bool) {

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            if (returndata.length > 0) {

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }

    function addressToString(address _address) internal pure returns(string memory) {
        bytes32 _bytes = bytes32(uint256(_address));
        bytes memory HEX = "0123456789abcdef";
        bytes memory _addr = new bytes(42);

        _addr[0] = '0';
        _addr[1] = 'x';

        for(uint256 i = 0; i < 20; i++) {
            _addr[2+i*2] = HEX[uint8(_bytes[i + 12] >> 4)];
            _addr[3+i*2] = HEX[uint8(_bytes[i + 12] & 0x0f)];
        }

        return string(_addr);

    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"pVal","type":"uint256"}],"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":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebase","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"stakingContract","type":"address"}],"name":"LogStakingContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPushed","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NTG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gons","type":"uint256"}],"name":"NbalanceForGons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NgonsForBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gons","type":"uint256"}],"name":"balanceForGons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"boost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","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":"uint256","name":"amount","type":"uint256"}],"name":"gonsForBalance","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":"index","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakingContract_","type":"address"}],"name":"initialize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pullManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"pushManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"profit_","type":"uint256"},{"internalType":"uint256","name":"epoch_","type":"uint256"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rebases","outputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"rebase","type":"uint256"},{"internalType":"uint256","name":"totalStakedBefore","type":"uint256"},{"internalType":"uint256","name":"totalStakedAfter","type":"uint256"},{"internalType":"uint256","name":"amountRebased","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"blockNumberOccured","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_INDEX","type":"uint256"}],"name":"setIndex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pVal","type":"uint256"}],"name":"setPValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"unboost","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526127106013553480156200001757600080fd5b50604051620024e5380380620024e5833981810160405260208110156200003d57600080fd5b5051604080518082018252601081526f5374616b6564204d6f6e61737465727960801b602082810191825283518085019094526003808552622d22a760e91b918501919091528251929392600992620000979291620003a2565b508151620000ad906004906020850190620003a2565b506005805460ff191660ff92909216919091179055504690507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000f162000210565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606084015260808301939093523060a0808401919091528351808403909101815260c0909201928390528151910120600755600880546001600160a01b0319163317908190556001600160a01b0316906000907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908290a3600b80546001600160a01b031916331790556611c37937e080006002819055620001f990806000190660001903620002aa60201b620017f91790919060201c565b600e8190556002546010556011556014556200044e565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015620002a05780601f106200027457610100808354040283529160200191620002a0565b820191906000526020600020905b8154815290600101906020018083116200028257829003601f168201915b5050505050905090565b6000620002f483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620002fb60201b60201c565b9392505050565b600081836200038b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200034f57818101518382015260200162000335565b50505050905090810190601f1680156200037d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200039857fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620003da576000855562000425565b82601f10620003f557805160ff191683800117855562000425565b8280016001018555821562000425579182015b828111156200042557825182559160200191906001019062000408565b506200043392915062000437565b5090565b5b8082111562000433576000815560010162000438565b612087806200045e6000396000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c806370a0823111610160578063a457c2d7116100d8578063c9107f011161008c578063dd62ed3e11610071578063dd62ed3e14610728578063e476364514610756578063ee99205c1461077357610292565b8063c9107f01146106ba578063d505accf146106d757610292565b8063b7c6ad2f116100bd578063b7c6ad2f14610648578063bb8c73e51461066e578063c4d66de81461069457610292565b8063a457c2d7146105f0578063a9059cbb1461061c57610292565b80638da5cb5b1161012f57806395d89b411161011457806395d89b41146105ba5780639b2033f6146105c25780639ce110d7146105e857610292565b80638da5cb5b1461058e5780639358928b146105b257610292565b806370a08231146104d057806373c69eb7146104f65780637965d56d1461054b5780637ecebe001461056857610292565b80632df75cb11161020e5780633644e515116101c257806340a5737f116101a757806340a5737f1461048557806346f68ee9146104a25780635a96ac0a146104c857610292565b80633644e51514610451578063395093511461045957610292565b80633056ebf7116101f35780633056ebf71461042357806330adf81f1461042b578063313ce5671461043357610292565b80632df75cb1146103fe578063300fa17c1461040657610292565b806318160ddd1161026557806323b872dd1161024a57806323b872dd146103b85780632986c0e5146103ee5780632cb8377a146103f657610292565b806318160ddd146103935780631bd396741461039b57610292565b8063058ecdb41461029757806306fdde03146102cc578063089208d814610349578063095ea7b314610353575b600080fd5b6102ba600480360360408110156102ad57600080fd5b508035906020013561077b565b60408051918252519081900360200190f35b6102d4610958565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030e5781810151838201526020016102f6565b50505050905090810190601f16801561033b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103516109ee565b005b61037f6004803603604081101561036957600080fd5b506001600160a01b038135169060200135610a97565b604080519115158252519081900360200190f35b6102ba610afd565b6102ba600480360360208110156103b157600080fd5b5035610b1b565b61037f600480360360608110156103ce57600080fd5b506001600160a01b03813581169160208101359091169060400135610b3a565b6102ba610c40565b6102ba610c4d565b6102ba610c53565b6102ba6004803603602081101561041c57600080fd5b5035610c59565b6102ba610c70565b6102ba610c76565b61043b610c9a565b6040805160ff9092168252519081900360200190f35b6102ba610ca3565b61037f6004803603604081101561046f57600080fd5b506001600160a01b038135169060200135610ca9565b61037f6004803603602081101561049b57600080fd5b5035610d3c565b610351600480360360208110156104b857600080fd5b50356001600160a01b0316610dbf565b610351610ebf565b6102ba600480360360208110156104e657600080fd5b50356001600160a01b0316610f6b565b6105136004803603602081101561050c57600080fd5b5035610fd7565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b6102ba6004803603602081101561056157600080fd5b5035611029565b6102ba6004803603602081101561057e57600080fd5b50356001600160a01b0316611040565b610596611061565b604080516001600160a01b039092168252519081900360200190f35b6102ba611070565b6102d461109a565b610351600480360360208110156105d857600080fd5b50356001600160a01b03166110fb565b6105966111e7565b61037f6004803603604081101561060657600080fd5b506001600160a01b0381351690602001356111f6565b61037f6004803603604081101561063257600080fd5b506001600160a01b0381351690602001356112df565b6103516004803603602081101561065e57600080fd5b50356001600160a01b03166112f5565b61037f6004803603602081101561068457600080fd5b50356001600160a01b03166113d9565b61037f600480360360208110156106aa57600080fd5b50356001600160a01b03166113ee565b610351600480360360208110156106d057600080fd5b50356114e7565b610351600480360360e08110156106ed57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611565565b6102ba6004803603604081101561073e57600080fd5b506001600160a01b03813581169160200135166117a8565b6102ba6004803603602081101561076c57600080fd5b50356117d3565b6105966117ea565b600a546000906001600160a01b0316331461079557600080fd5b6000806107a0611070565b90508461083f57837f917acfbe39be6509ccf7fecb66a7e42ce2be1083c2d7dd3b9b7491dabddb8da4426107d2610afd565b6040805192835260208301919091528051918290030190a2837f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb26000610816610c40565b6040805192835260208301919091528051918290030190a2610836610afd565b92505050610952565b8015610868576108618161085b610854610afd565b8890611842565b906117f9565b915061086c565b8491505b600061088960135461085b6014548661184290919063ffffffff16565b90506000610897848361189b565b6010549091506108a790856118dd565b6010556002546108b790836118dd565b6002556010546fffffffffffffffffffffffffffffffff10156108f157506fffffffffffffffffffffffffffffffff601055600060168190555b6002546fffffffffffffffffffffffffffffffff1015610920576fffffffffffffffffffffffffffffffff6002555b610928611937565b80156109375761093781611971565b6109428388886119b1565b5061094b610afd565b9450505050505b92915050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109e45780601f106109b9576101008083540402835291602001916109e4565b820191906000526020600020905b8154815290600101906020018083116109c757829003601f168201915b5050505050905090565b6008546001600160a01b03163314610a4d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600880546001600160a01b0319169055565b3360008181526017602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b6000610b1660165460105461189b90919063ffffffff16565b905090565b6000610b32600e548361184290919063ffffffff16565b90505b919050565b6000610b848260405180606001604052806025815260200161202d602591396001600160a01b03871660009081526017602090815260408083203384529091529020549190611afa565b6001600160a01b0385166000818152601760209081526040808320338085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a3610beb848484611b91565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a35060019392505050565b6000610b16600d54610c59565b60155481565b600d5481565b6000610b32601154836117f990919063ffffffff16565b60145481565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b60075481565b3360009081526017602090815260408083206001600160a01b0386168452909152812054610cd790836118dd565b3360008181526017602090815260408083206001600160a01b0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6008546000906001600160a01b03163314610d9e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600d5415610dab57600080fd5b610db482610b1b565b600d55506001919050565b6008546001600160a01b03163314610e1e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610e635760405162461bcd60e51b8152600401808060200182810382526026815260200180611f796026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba90600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314610f085760405162461bcd60e51b8152600401808060200182810382526022815260200180611fc56022913960400191505060405180910390fd5b6009546008546040516001600160a01b0392831692909116907faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d90600090a3600954600880546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b03811660009081526012602052604081205460ff1615610fb5576001600160a01b0382166000908152600f6020526040902054610fae90610c59565b9050610b35565b6001600160a01b0382166000908152600f6020526040902054610b3290611029565b600c8181548110610fe757600080fd5b90600052602060002090600702016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b6000610b32600e54836117f990919063ffffffff16565b6001600160a01b0381166000908152600660205260408120610b3290611cbd565b6008546001600160a01b031690565b600a54600090610b169061108c906001600160a01b0316610f6b565b611094610afd565b9061189b565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109e45780601f106109b9576101008083540402835291602001916109e4565b600a546001600160a01b0316331461111257600080fd5b6001600160a01b03811660009081526012602052604090205460ff1661117f576040805162461bcd60e51b815260206004820152600b60248201527f4e6f7420626f6f73746564000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600f60205260409020546015546111a49161189b565b6015556111b86111b382610f6b565b610b1b565b6001600160a01b039091166000908152600f60209081526040808320939093556012905220805460ff19169055565b600b546001600160a01b031681565b3360009081526017602090815260408083206001600160a01b038616845290915281205480831061124a573360009081526017602090815260408083206001600160a01b0388168452909152812055611279565b611254818461189b565b3360009081526017602090815260408083206001600160a01b03891684529091529020555b3360008181526017602090815260408083206001600160a01b0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60006112ec338484611b91565b50600192915050565b600a546001600160a01b0316331461130c57600080fd5b6001600160a01b03811660009081526012602052604090205460ff161561137a576040805162461bcd60e51b815260206004820152600f60248201527f416c726561647920626f6f737465640000000000000000000000000000000000604482015290519081900360640190fd5b61138b61138682610f6b565b6117d3565b6001600160a01b0382166000908152600f602052604090208190556015546113b2916118dd565b6015556001600160a01b03166000908152601260205260409020805460ff19166001179055565b60126020526000908152604090205460ff1681565b600b546000906001600160a01b0316331461140857600080fd5b6001600160a01b03821661141b57600080fd5b600a80546001600160a01b0319166001600160a01b038481169190911780835581166000908152600f60209081526040808320660e3d2cfe61ffff19905593546002548551908152945193169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3604080516001600160a01b038416815290517f817c653428858ed536dc085c5d8273734c517b55de44b55f5c5877a75e3373a19181900360200190a15050600b80546001600160a01b0319169055600190565b6008546001600160a01b03163314611546576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600081118015611557575060135481105b61156057600080fd5b601455565b834211156115ba576040805162461bcd60e51b815260206004820152601860248201527f5065726d69743a206578706972656420646561646c696e650000000000000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c99089908990899061160390611cbd565b604080516020808201979097526001600160a01b0395861681830152939094166060840152608083019190915260a082015260c08082018990528251808303909101815260e08201835280519084012060075461190160f01b610100840152610102830152610122808301829052835180840390910181526101428301808552815191860191909120600091829052610162840180865281905260ff8a166101828501526101a284018990526101c28401889052935191955092936001926101e280820193601f1981019281900390910190855afa1580156116e9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061171f5750896001600160a01b0316816001600160a01b0316145b611770576040805162461bcd60e51b815260206004820152601960248201527f5065726d69743a20496e76616c6964207369676e617475726500000000000000604482015290519081900360640190fd5b6001600160a01b038a16600090815260066020526040902061179190611cc1565b61179c8a8a8a611cca565b50505050505050505050565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205490565b6000610b326011548361184290919063ffffffff16565b600a546001600160a01b031681565b600061183b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d2c565b9392505050565b60008261185157506000610952565b8282028284828161185e57fe5b041461183b5760405162461bcd60e51b8152600401808060200182810382526021815260200180611fe76021913960400191505060405180910390fd5b600061183b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611afa565b60008282018381101561183b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b601054611952906611c37937e080006000195b0619906117f9565b60115560025461196c906611c37937e0800060001961194a565b600e55565b600061199a60105461085b8461199461198b601554610c59565b6010549061189b565b90611842565b6016549091506119aa90826118dd565b6016555050565b6000806119ca8561085b86670de0b6b3a7640000611842565b9050600c6040518060e001604052808581526020018381526020018781526020016119f3611070565b8152602001868152602001611a06610c40565b8152436020918201528254600181810185556000948552938290208351600790920201908155908201519281019290925560408101516002830155606081015160038301556080810151600483015560a0810151600583015560c00151600690910155827f917acfbe39be6509ccf7fecb66a7e42ce2be1083c2d7dd3b9b7491dabddb8da442611a94610afd565b6040805192835260208301919091528051918290030190a2827f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb282611ad7610c40565b6040805192835260208301919091528051918290030190a2506001949350505050565b60008184841115611b895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b4e578181015183820152602001611b36565b50505050905090810190601f168015611b7b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038316611bd65760405162461bcd60e51b81526004018080602001828103825260258152602001806120086025913960400191505060405180910390fd5b6001600160a01b038216611c1b5760405162461bcd60e51b8152600401808060200182810382526023815260200180611f566023913960400191505060405180910390fd5b6001600160a01b0380841660009081526012602052604080822054928516825290205460ff918216911681158015611c505750805b15611c6557611c60858585611d91565b611cb6565b818015611c70575080155b15611c8057611c60858585611e50565b81158015611c8c575080155b15611c9c57611c60858585611eaf565b818015611ca65750805b15611cb657611cb6858585611f4a565b5050505050565b5490565b80546001019055565b6001600160a01b03808416600081815260176020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60008183611d7b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b4e578181015183820152602001611b36565b506000838581611d8757fe5b0495945050505050565b611dd6611d9d82610b1b565b604051806060016040528060268152602001611f9f602691396001600160a01b0386166000908152600f60205260409020549190611afa565b6001600160a01b0384166000908152600f6020526040902055611e1a611dfb826117d3565b6001600160a01b0384166000908152600f6020526040902054906118dd565b6001600160a01b0383166000908152600f6020526040902055611e48611e3f826117d3565b601554906118dd565b601555505050565b611e5c611d9d826117d3565b6001600160a01b0384166000908152600f6020526040902055611e81611dfb82610b1b565b6001600160a01b0383166000908152600f6020526040902055611e48611ea6826117d3565b6015549061189b565b6000611eba82610b1b565b9050611ef981604051806060016040528060268152602001611f9f602691396001600160a01b0387166000908152600f60205260409020549190611afa565b6001600160a01b038086166000908152600f60205260408082209390935590851681522054611f2890826118dd565b6001600160a01b039093166000908152600f6020526040902092909255505050565b6000611eba826117d356fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207c1a3670dda1850e79bd14b4dc6a04df23386cdf48ae87f630e637dba1cc25c964736f6c634300070500330000000000000000000000000000000000000000000000000000000000002328

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102925760003560e01c806370a0823111610160578063a457c2d7116100d8578063c9107f011161008c578063dd62ed3e11610071578063dd62ed3e14610728578063e476364514610756578063ee99205c1461077357610292565b8063c9107f01146106ba578063d505accf146106d757610292565b8063b7c6ad2f116100bd578063b7c6ad2f14610648578063bb8c73e51461066e578063c4d66de81461069457610292565b8063a457c2d7146105f0578063a9059cbb1461061c57610292565b80638da5cb5b1161012f57806395d89b411161011457806395d89b41146105ba5780639b2033f6146105c25780639ce110d7146105e857610292565b80638da5cb5b1461058e5780639358928b146105b257610292565b806370a08231146104d057806373c69eb7146104f65780637965d56d1461054b5780637ecebe001461056857610292565b80632df75cb11161020e5780633644e515116101c257806340a5737f116101a757806340a5737f1461048557806346f68ee9146104a25780635a96ac0a146104c857610292565b80633644e51514610451578063395093511461045957610292565b80633056ebf7116101f35780633056ebf71461042357806330adf81f1461042b578063313ce5671461043357610292565b80632df75cb1146103fe578063300fa17c1461040657610292565b806318160ddd1161026557806323b872dd1161024a57806323b872dd146103b85780632986c0e5146103ee5780632cb8377a146103f657610292565b806318160ddd146103935780631bd396741461039b57610292565b8063058ecdb41461029757806306fdde03146102cc578063089208d814610349578063095ea7b314610353575b600080fd5b6102ba600480360360408110156102ad57600080fd5b508035906020013561077b565b60408051918252519081900360200190f35b6102d4610958565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030e5781810151838201526020016102f6565b50505050905090810190601f16801561033b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103516109ee565b005b61037f6004803603604081101561036957600080fd5b506001600160a01b038135169060200135610a97565b604080519115158252519081900360200190f35b6102ba610afd565b6102ba600480360360208110156103b157600080fd5b5035610b1b565b61037f600480360360608110156103ce57600080fd5b506001600160a01b03813581169160208101359091169060400135610b3a565b6102ba610c40565b6102ba610c4d565b6102ba610c53565b6102ba6004803603602081101561041c57600080fd5b5035610c59565b6102ba610c70565b6102ba610c76565b61043b610c9a565b6040805160ff9092168252519081900360200190f35b6102ba610ca3565b61037f6004803603604081101561046f57600080fd5b506001600160a01b038135169060200135610ca9565b61037f6004803603602081101561049b57600080fd5b5035610d3c565b610351600480360360208110156104b857600080fd5b50356001600160a01b0316610dbf565b610351610ebf565b6102ba600480360360208110156104e657600080fd5b50356001600160a01b0316610f6b565b6105136004803603602081101561050c57600080fd5b5035610fd7565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b6102ba6004803603602081101561056157600080fd5b5035611029565b6102ba6004803603602081101561057e57600080fd5b50356001600160a01b0316611040565b610596611061565b604080516001600160a01b039092168252519081900360200190f35b6102ba611070565b6102d461109a565b610351600480360360208110156105d857600080fd5b50356001600160a01b03166110fb565b6105966111e7565b61037f6004803603604081101561060657600080fd5b506001600160a01b0381351690602001356111f6565b61037f6004803603604081101561063257600080fd5b506001600160a01b0381351690602001356112df565b6103516004803603602081101561065e57600080fd5b50356001600160a01b03166112f5565b61037f6004803603602081101561068457600080fd5b50356001600160a01b03166113d9565b61037f600480360360208110156106aa57600080fd5b50356001600160a01b03166113ee565b610351600480360360208110156106d057600080fd5b50356114e7565b610351600480360360e08110156106ed57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611565565b6102ba6004803603604081101561073e57600080fd5b506001600160a01b03813581169160200135166117a8565b6102ba6004803603602081101561076c57600080fd5b50356117d3565b6105966117ea565b600a546000906001600160a01b0316331461079557600080fd5b6000806107a0611070565b90508461083f57837f917acfbe39be6509ccf7fecb66a7e42ce2be1083c2d7dd3b9b7491dabddb8da4426107d2610afd565b6040805192835260208301919091528051918290030190a2837f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb26000610816610c40565b6040805192835260208301919091528051918290030190a2610836610afd565b92505050610952565b8015610868576108618161085b610854610afd565b8890611842565b906117f9565b915061086c565b8491505b600061088960135461085b6014548661184290919063ffffffff16565b90506000610897848361189b565b6010549091506108a790856118dd565b6010556002546108b790836118dd565b6002556010546fffffffffffffffffffffffffffffffff10156108f157506fffffffffffffffffffffffffffffffff601055600060168190555b6002546fffffffffffffffffffffffffffffffff1015610920576fffffffffffffffffffffffffffffffff6002555b610928611937565b80156109375761093781611971565b6109428388886119b1565b5061094b610afd565b9450505050505b92915050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109e45780601f106109b9576101008083540402835291602001916109e4565b820191906000526020600020905b8154815290600101906020018083116109c757829003601f168201915b5050505050905090565b6008546001600160a01b03163314610a4d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600880546001600160a01b0319169055565b3360008181526017602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b6000610b1660165460105461189b90919063ffffffff16565b905090565b6000610b32600e548361184290919063ffffffff16565b90505b919050565b6000610b848260405180606001604052806025815260200161202d602591396001600160a01b03871660009081526017602090815260408083203384529091529020549190611afa565b6001600160a01b0385166000818152601760209081526040808320338085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a3610beb848484611b91565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a35060019392505050565b6000610b16600d54610c59565b60155481565b600d5481565b6000610b32601154836117f990919063ffffffff16565b60145481565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b60075481565b3360009081526017602090815260408083206001600160a01b0386168452909152812054610cd790836118dd565b3360008181526017602090815260408083206001600160a01b0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6008546000906001600160a01b03163314610d9e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600d5415610dab57600080fd5b610db482610b1b565b600d55506001919050565b6008546001600160a01b03163314610e1e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610e635760405162461bcd60e51b8152600401808060200182810382526026815260200180611f796026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba90600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314610f085760405162461bcd60e51b8152600401808060200182810382526022815260200180611fc56022913960400191505060405180910390fd5b6009546008546040516001600160a01b0392831692909116907faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d90600090a3600954600880546001600160a01b0319166001600160a01b03909216919091179055565b6001600160a01b03811660009081526012602052604081205460ff1615610fb5576001600160a01b0382166000908152600f6020526040902054610fae90610c59565b9050610b35565b6001600160a01b0382166000908152600f6020526040902054610b3290611029565b600c8181548110610fe757600080fd5b90600052602060002090600702016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b6000610b32600e54836117f990919063ffffffff16565b6001600160a01b0381166000908152600660205260408120610b3290611cbd565b6008546001600160a01b031690565b600a54600090610b169061108c906001600160a01b0316610f6b565b611094610afd565b9061189b565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109e45780601f106109b9576101008083540402835291602001916109e4565b600a546001600160a01b0316331461111257600080fd5b6001600160a01b03811660009081526012602052604090205460ff1661117f576040805162461bcd60e51b815260206004820152600b60248201527f4e6f7420626f6f73746564000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600f60205260409020546015546111a49161189b565b6015556111b86111b382610f6b565b610b1b565b6001600160a01b039091166000908152600f60209081526040808320939093556012905220805460ff19169055565b600b546001600160a01b031681565b3360009081526017602090815260408083206001600160a01b038616845290915281205480831061124a573360009081526017602090815260408083206001600160a01b0388168452909152812055611279565b611254818461189b565b3360009081526017602090815260408083206001600160a01b03891684529091529020555b3360008181526017602090815260408083206001600160a01b0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60006112ec338484611b91565b50600192915050565b600a546001600160a01b0316331461130c57600080fd5b6001600160a01b03811660009081526012602052604090205460ff161561137a576040805162461bcd60e51b815260206004820152600f60248201527f416c726561647920626f6f737465640000000000000000000000000000000000604482015290519081900360640190fd5b61138b61138682610f6b565b6117d3565b6001600160a01b0382166000908152600f602052604090208190556015546113b2916118dd565b6015556001600160a01b03166000908152601260205260409020805460ff19166001179055565b60126020526000908152604090205460ff1681565b600b546000906001600160a01b0316331461140857600080fd5b6001600160a01b03821661141b57600080fd5b600a80546001600160a01b0319166001600160a01b038481169190911780835581166000908152600f60209081526040808320660e3d2cfe61ffff19905593546002548551908152945193169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3604080516001600160a01b038416815290517f817c653428858ed536dc085c5d8273734c517b55de44b55f5c5877a75e3373a19181900360200190a15050600b80546001600160a01b0319169055600190565b6008546001600160a01b03163314611546576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600081118015611557575060135481105b61156057600080fd5b601455565b834211156115ba576040805162461bcd60e51b815260206004820152601860248201527f5065726d69743a206578706972656420646561646c696e650000000000000000604482015290519081900360640190fd5b6001600160a01b03871660009081526006602052604081207f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c99089908990899061160390611cbd565b604080516020808201979097526001600160a01b0395861681830152939094166060840152608083019190915260a082015260c08082018990528251808303909101815260e08201835280519084012060075461190160f01b610100840152610102830152610122808301829052835180840390910181526101428301808552815191860191909120600091829052610162840180865281905260ff8a166101828501526101a284018990526101c28401889052935191955092936001926101e280820193601f1981019281900390910190855afa1580156116e9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061171f5750896001600160a01b0316816001600160a01b0316145b611770576040805162461bcd60e51b815260206004820152601960248201527f5065726d69743a20496e76616c6964207369676e617475726500000000000000604482015290519081900360640190fd5b6001600160a01b038a16600090815260066020526040902061179190611cc1565b61179c8a8a8a611cca565b50505050505050505050565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205490565b6000610b326011548361184290919063ffffffff16565b600a546001600160a01b031681565b600061183b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d2c565b9392505050565b60008261185157506000610952565b8282028284828161185e57fe5b041461183b5760405162461bcd60e51b8152600401808060200182810382526021815260200180611fe76021913960400191505060405180910390fd5b600061183b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611afa565b60008282018381101561183b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b601054611952906611c37937e080006000195b0619906117f9565b60115560025461196c906611c37937e0800060001961194a565b600e55565b600061199a60105461085b8461199461198b601554610c59565b6010549061189b565b90611842565b6016549091506119aa90826118dd565b6016555050565b6000806119ca8561085b86670de0b6b3a7640000611842565b9050600c6040518060e001604052808581526020018381526020018781526020016119f3611070565b8152602001868152602001611a06610c40565b8152436020918201528254600181810185556000948552938290208351600790920201908155908201519281019290925560408101516002830155606081015160038301556080810151600483015560a0810151600583015560c00151600690910155827f917acfbe39be6509ccf7fecb66a7e42ce2be1083c2d7dd3b9b7491dabddb8da442611a94610afd565b6040805192835260208301919091528051918290030190a2827f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb282611ad7610c40565b6040805192835260208301919091528051918290030190a2506001949350505050565b60008184841115611b895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b4e578181015183820152602001611b36565b50505050905090810190601f168015611b7b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038316611bd65760405162461bcd60e51b81526004018080602001828103825260258152602001806120086025913960400191505060405180910390fd5b6001600160a01b038216611c1b5760405162461bcd60e51b8152600401808060200182810382526023815260200180611f566023913960400191505060405180910390fd5b6001600160a01b0380841660009081526012602052604080822054928516825290205460ff918216911681158015611c505750805b15611c6557611c60858585611d91565b611cb6565b818015611c70575080155b15611c8057611c60858585611e50565b81158015611c8c575080155b15611c9c57611c60858585611eaf565b818015611ca65750805b15611cb657611cb6858585611f4a565b5050505050565b5490565b80546001019055565b6001600160a01b03808416600081815260176020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60008183611d7b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b4e578181015183820152602001611b36565b506000838581611d8757fe5b0495945050505050565b611dd6611d9d82610b1b565b604051806060016040528060268152602001611f9f602691396001600160a01b0386166000908152600f60205260409020549190611afa565b6001600160a01b0384166000908152600f6020526040902055611e1a611dfb826117d3565b6001600160a01b0384166000908152600f6020526040902054906118dd565b6001600160a01b0383166000908152600f6020526040902055611e48611e3f826117d3565b601554906118dd565b601555505050565b611e5c611d9d826117d3565b6001600160a01b0384166000908152600f6020526040902055611e81611dfb82610b1b565b6001600160a01b0383166000908152600f6020526040902055611e48611ea6826117d3565b6015549061189b565b6000611eba82610b1b565b9050611ef981604051806060016040528060268152602001611f9f602691396001600160a01b0387166000908152600f60205260409020549190611afa565b6001600160a01b038086166000908152600f60205260408082209390935590851681522054611f2890826118dd565b6001600160a01b039093166000908152600f6020526040902092909255505050565b6000611eba826117d356fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207c1a3670dda1850e79bd14b4dc6a04df23386cdf48ae87f630e637dba1cc25c964736f6c63430007050033

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

0000000000000000000000000000000000000000000000000000000000002328

-----Decoded View---------------
Arg [0] : pVal (uint256): 9000

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


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.