ETH Price: $3,358.80 (-1.74%)
Gas: 10 Gwei

Token

GreenEnergy (GE)
 

Overview

Max Total Supply

2,400 GE

Holders

12

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 3 Decimals)

Filtered by Token Holder
Ampleforth: AMPL Token
Balance
2,018.499 GE

Value
$0.00
0xd46ba6d942050d489dbd938a2c909a5d5039a161
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:
GreenEnergy

Compiler Version
v0.5.13+commit.5b0b510c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-08-11
*/

pragma solidity 0.5.13;


/**
 *Submitted for verification at Etherscan.io on 2019-06-12
*/

/**
 * @title Proxy
 * @dev Implements delegation of calls to other contracts, with proper
 * forwarding of return values and bubbling of failures.
 * It defines a fallback function that delegates all calls to the address
 * returned by the abstract _implementation() internal function.
 */
contract Proxy {
  /**
   * @dev Fallback function.
   * Implemented entirely in `_fallback`.
   */
  function () payable external {
    _fallback();
  }

  /**
   * @return The Address of the implementation.
   */
  function _implementation() internal view returns (address);

  /**
   * @dev Delegates execution to an implementation contract.
   * This is a low level function that doesn't return to its internal call site.
   * It will return to the external caller whatever the implementation returns.
   * @param implementation Address to delegate.
   */
  function _delegate(address implementation) internal {
    assembly {
      // Copy msg.data. We take full control of memory in this inline assembly
      // block because it will not return to Solidity code. We overwrite the
      // Solidity scratch pad at memory position 0.
      calldatacopy(0, 0, calldatasize)

      // Call the implementation.
      // out and outsize are 0 because we don't know the size yet.
      let result := delegatecall(gas, implementation, 0, calldatasize, 0, 0)

      // Copy the returned data.
      returndatacopy(0, 0, returndatasize)

      switch result
      // delegatecall returns 0 on error.
      case 0 { revert(0, returndatasize) }
      default { return(0, returndatasize) }
    }
  }

  /**
   * @dev Function that is run as the first thing in the fallback function.
   * Can be redefined in derived contracts to add functionality.
   * Redefinitions must call super._willFallback().
   */
  function _willFallback() internal {
  }

  /**
   * @dev fallback implementation.
   * Extracted to enable manual triggering.
   */
  function _fallback() internal {
    _willFallback();
    _delegate(_implementation());
  }
}

// File: zos-lib/contracts/utils/Address.sol

pragma solidity ^0.5.0;

/**
 * Utility library of inline functions on addresses
 *
 * Source https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-solidity/v2.1.3/contracts/utils/Address.sol
 * This contract is copied here and renamed from the original to avoid clashes in the compiled artifacts
 * when the user imports a zos-lib contract (that transitively causes this contract to be compiled and added to the
 * build/artifacts folder) as well as the vanilla Address implementation from an openzeppelin version.
 */
library ZOSLibAddress {
    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

// File: zos-lib/contracts/upgradeability/BaseUpgradeabilityProxy.sol

pragma solidity ^0.5.0;



/**
 * @title BaseUpgradeabilityProxy
 * @dev This contract implements a proxy that allows to change the
 * implementation address to which it will delegate.
 * Such a change is called an implementation upgrade.
 */
contract BaseUpgradeabilityProxy is Proxy {
  /**
   * @dev Emitted when the implementation is upgraded.
   * @param implementation Address of the new implementation.
   */
  event Upgraded(address indexed implementation);

  /**
   * @dev Storage slot with the address of the current implementation.
   * This is the keccak-256 hash of "org.zeppelinos.proxy.implementation", and is
   * validated in the constructor.
   */
  bytes32 internal constant IMPLEMENTATION_SLOT = 0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3;

  /**
   * @dev Returns the current implementation.
   * @return Address of the current implementation
   */
  function _implementation() internal view returns (address impl) {
    bytes32 slot = IMPLEMENTATION_SLOT;
    assembly {
      impl := sload(slot)
    }
  }

  /**
   * @dev Upgrades the proxy to a new implementation.
   * @param newImplementation Address of the new implementation.
   */
  function _upgradeTo(address newImplementation) internal {
    _setImplementation(newImplementation);
    emit Upgraded(newImplementation);
  }

  /**
   * @dev Sets the implementation address of the proxy.
   * @param newImplementation Address of the new implementation.
   */
  function _setImplementation(address newImplementation) internal {
    require(ZOSLibAddress.isContract(newImplementation), "Cannot set a proxy implementation to a non-contract address");

    bytes32 slot = IMPLEMENTATION_SLOT;

    assembly {
      sstore(slot, newImplementation)
    }
  }
}

// File: zos-lib/contracts/upgradeability/UpgradeabilityProxy.sol

pragma solidity ^0.5.0;


/**
 * @title UpgradeabilityProxy
 * @dev Extends BaseUpgradeabilityProxy with a constructor for initializing
 * implementation and init data.
 */
contract UpgradeabilityProxy is BaseUpgradeabilityProxy {
  /**
   * @dev Contract constructor.
   * @param _logic Address of the initial implementation.
   * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.
   * It should include the signature and the parameters of the function to be called, as described in
   * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
   * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.
   */
  constructor(address _logic, bytes memory _data) public payable {
    assert(IMPLEMENTATION_SLOT == keccak256("org.zeppelinos.proxy.implementation"));
    _setImplementation(_logic);
    if(_data.length > 0) {
      (bool success,) = _logic.delegatecall(_data);
      require(success);
    }
  }  
}

// File: zos-lib/contracts/upgradeability/BaseAdminUpgradeabilityProxy.sol

pragma solidity ^0.5.0;


/**
 * @title BaseAdminUpgradeabilityProxy
 * @dev This contract combines an upgradeability proxy with an authorization
 * mechanism for administrative tasks.
 * All external functions in this contract must be guarded by the
 * `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity
 * feature proposal that would enable this to be done automatically.
 */
contract BaseAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {
  /**
   * @dev Emitted when the administration has been transferred.
   * @param previousAdmin Address of the previous admin.
   * @param newAdmin Address of the new admin.
   */
  event AdminChanged(address previousAdmin, address newAdmin);

  /**
   * @dev Storage slot with the admin of the contract.
   * This is the keccak-256 hash of "org.zeppelinos.proxy.admin", and is
   * validated in the constructor.
   */
  bytes32 internal constant ADMIN_SLOT = 0x10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b;

  /**
   * @dev Modifier to check whether the `msg.sender` is the admin.
   * If it is, it will run the function. Otherwise, it will delegate the call
   * to the implementation.
   */
  modifier ifAdmin() {
    if (msg.sender == _admin()) {
      _;
    } else {
      _fallback();
    }
  }

  /**
   * @return The address of the proxy admin.
   */
  function admin() external ifAdmin returns (address) {
    return _admin();
  }

  /**
   * @return The address of the implementation.
   */
  function implementation() external ifAdmin returns (address) {
    return _implementation();
  }

  /**
   * @dev Changes the admin of the proxy.
   * Only the current admin can call this function.
   * @param newAdmin Address to transfer proxy administration to.
   */
  function changeAdmin(address newAdmin) external ifAdmin {
    require(newAdmin != address(0), "Cannot change the admin of a proxy to the zero address");
    emit AdminChanged(_admin(), newAdmin);
    _setAdmin(newAdmin);
  }

  /**
   * @dev Upgrade the backing implementation of the proxy.
   * Only the admin can call this function.
   * @param newImplementation Address of the new implementation.
   */
  function upgradeTo(address newImplementation) external ifAdmin {
    _upgradeTo(newImplementation);
  }

  /**
   * @dev Upgrade the backing implementation of the proxy and call a function
   * on the new implementation.
   * This is useful to initialize the proxied contract.
   * @param newImplementation Address of the new implementation.
   * @param data Data to send as msg.data in the low level call.
   * It should include the signature and the parameters of the function to be called, as described in
   * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
   */
  function upgradeToAndCall(address newImplementation, bytes calldata data) payable external ifAdmin {
    _upgradeTo(newImplementation);
    (bool success,) = newImplementation.delegatecall(data);
    require(success);
  }

  /**
   * @return The admin slot.
   */
  function _admin() internal view returns (address adm) {
    bytes32 slot = ADMIN_SLOT;
    assembly {
      adm := sload(slot)
    }
  }

  /**
   * @dev Sets the address of the proxy admin.
   * @param newAdmin Address of the new proxy admin.
   */
  function _setAdmin(address newAdmin) internal {
    bytes32 slot = ADMIN_SLOT;

    assembly {
      sstore(slot, newAdmin)
    }
  }

  /**
   * @dev Only fall back when the sender is not the admin.
   */
  function _willFallback() internal {
    require(msg.sender != _admin(), "Cannot call fallback function from the proxy admin");
    super._willFallback();
  }
}

// File: zos-lib/contracts/upgradeability/AdminUpgradeabilityProxy.sol

pragma solidity ^0.5.0;


/**
 * @title AdminUpgradeabilityProxy
 * @dev Extends from BaseAdminUpgradeabilityProxy with a constructor for 
 * initializing the implementation, admin, and init data.
 */
contract AdminUpgradeabilityProxy is BaseAdminUpgradeabilityProxy, UpgradeabilityProxy {
  /**
   * Contract constructor.
   * @param _logic address of the initial implementation.
   * @param _admin Address of the proxy administrator.
   * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.
   * It should include the signature and the parameters of the function to be called, as described in
   * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
   * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.
   */
  constructor(address _logic, address _admin, bytes memory _data) UpgradeabilityProxy(_logic, _data) public payable {
    assert(ADMIN_SLOT == keccak256("org.zeppelinos.proxy.admin"));
    _setAdmin(_admin);
  }
}

contract GreenEnergy {

    address[] public allAddresses;
    
    event Transfer(address indexed from, address indexed to, uint256 tokens);
	event Approval(address indexed owner, address indexed spender, uint256 tokens);
	
  /**
   * Contract constructor.
   * @param _logic address of the initial implementation.
   * @param _admin Address of the proxy administrator.
   * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.
   * It should include the signature and the parameters of the function to be called, as described in
   * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
   * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.
   */    
   
	struct User {
	    bool whitelisted;
		uint256 balance;
		mapping(address => uint256) allowance;
	}
	
/**
 * @title Proxy
 * @dev Implements delegation of calls to other contracts, with proper
 * forwarding of return values and bubbling of failures.
 * It defines a fallback function that delegates all calls to the address
 * returned by the abstract _implementation() internal function.
 */
 
	struct Info {
		uint256 totalSupply;
		mapping(address => User) users;
		address admin;
		bool stopped;
	}
	
	Info private info;

	uint256 constant private initial_supply = 1e5;
	uint256 constant private new_address_supply = 1e5;
	uint256 constant private precision = 1e5; 
	uint8 constant public decimals = 3;
	
	
/***
Our aim is to help British consumers find a green energy tariff that’s right for them. And green energy has never been as price competitive as it is now. You can probably switch to green energy and save money!

We started rating green electricity tariffs back in 2000 as the UK’s first website dedicated to green electricity switching.

For background information about green energy tariffs, see our quick guide and more detailed information.

We have now partnered with two different services, Big Clean Switch and Homebox, offering you lots of choice for comparing green energy tariffs.

Select the switching service that’s right for you from the three options below.
***/
	
	
	/*name*/
	string constant public name = "GreenEnergy";
	
	/*key*/
	string constant public symbol = "GE";

	
	

	constructor() public {
	    info.stopped = false;
		info.admin = msg.sender;
		allAddresses.push(msg.sender);
		info.totalSupply = initial_supply;
		info.users[msg.sender].balance = initial_supply;
	}

	function totalSupply() public view returns (uint256) {
		return info.totalSupply;
	}

	function balanceOf(address _user) public view returns (uint256) {
		return info.users[_user].balance;
	}

	function allowance(address _user, address _spender) public view returns (uint256) {
		return info.users[_user].allowance[_spender];
	}
	
	function approve(address _spender, uint256 _tokens) external returns (bool) {
		info.users[msg.sender].allowance[_spender] = _tokens;
		emit Approval(msg.sender, _spender, _tokens);
		return true;
	}

/**
 * Can I switch suppliers again?
You can switch suppliers every 28 days if you want to, 
but be careful to check for early exit / cancellation charges.

If you’re on a fixed term plan, with a fixed tariff rate until a given date, 
suppliers must notify you 42-49 days before the end of your plan. At that point,
you can start the switch to a new supplier without facing any exit / cancellation fees.

***/

	function transfer(address _to, uint256 _tokens) external returns (bool) {
		_transfer(msg.sender, _to, _tokens);
		return true;
	}

	function transferFrom(address _from, address _to, uint256 _tokens) external returns (bool) {
		require(info.users[_from].allowance[msg.sender] >= _tokens);
		info.users[_from].allowance[msg.sender] -= _tokens;
		_transfer(_from, _to, _tokens);
		return true;
	}

	function isWhitelisted(address _user) public view returns (bool) {
		return info.users[_user].whitelisted;
	}
	
	function whitelist(address _user, bool _status) public {
		require(msg.sender == info.admin);
		info.users[_user].whitelisted = _status;
	}

	function stopped(bool _status) public {
		require(msg.sender == info.admin);
		info.stopped = _status;
	}

/***
Green Electricity Marketplace (GEM) was formed in 2000.
With the liberalisation of the UK electricity market and the growth in renewable energy we felt that a website which 
could list and analyse available green tariffs would encourage uptake of these tariffs and help to promote renewable energy.

Unlike most switching sites, GEM is focused on renewable energy and provides its own perspective on green tariffs.

The website has been widely recognised for the information it provides: by environment groups including 
Greenpeace and Friends of the Earth; by consumer groups including the National Consumer Council; 
by businesses like Samsung UK; and by the media including BBC Newsnight and The Independent.

***/

	function _transfer(address _from, address _to, uint256 _tokens) internal returns (uint256) {
	    
	     if(info.stopped){
            require(isWhitelisted(_from));
	    }
	    
		require(balanceOf(_from) >= _tokens);
	
	    bool isNewUser = info.users[_to].balance == 0;
	    
		info.users[_from].balance -= _tokens;
		uint256 _transferred = _tokens;
		info.users[_to].balance += _transferred;
		
		if(isNewUser && _tokens > 0){
		   allAddresses.push(_to);
	
		    uint256 i = 0;
            while (i < allAddresses.length) {
                uint256 addressBalance = info.users[allAddresses[i]].balance;
                uint256 supplyNow = info.totalSupply;
                uint256 dividends = (addressBalance * precision) / supplyNow;
                uint256 _toAdd = (dividends * new_address_supply) / precision;

                info.users[allAddresses[i]].balance += _toAdd;
                i += 1;
            }
            
            info.totalSupply = info.totalSupply + new_address_supply;
		}

		
		emit Transfer(_from, _to, _transferred);
				
		return _transferred;
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"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":"tokens","type":"uint256"}],"name":"Approval","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":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"stopped","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"whitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600380546001600160a81b0319163390811790915560008054600181810183557f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56390910180546001600160a01b03191684179055620186a08082559282526002602052604090912001556107a58061008a6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806370a082311161008c578063a9059cbb11610066578063a9059cbb14610274578063dacc5370146102a0578063dd62ed3e146102d9578063f59c370814610307576100cf565b806370a08231146102255780637b3628c91461024b57806395d89b411461026c576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e15780633af32abf146101ff575b600080fd5b6100dc610335565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b03813516906020013561035c565b604080519115158252519081900360200190f35b6101996103c4565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ca565b6101e961043e565b6040805160ff9092168252519081900360200190f35b61017d6004803603602081101561021557600080fd5b50356001600160a01b0316610443565b6101996004803603602081101561023b57600080fd5b50356001600160a01b0316610461565b61026a6004803603602081101561026157600080fd5b5035151561047f565b005b6100dc6104b4565b61017d6004803603604081101561028a57600080fd5b506001600160a01b0381351690602001356104d2565b6102bd600480360360208110156102b657600080fd5b50356104e9565b604080516001600160a01b039092168252519081900360200190f35b610199600480360360408110156102ef57600080fd5b506001600160a01b0381358116916020013516610510565b61026a6004803603604081101561031d57600080fd5b506001600160a01b038135169060200135151561053c565b6040518060400160405280600b81526020016a477265656e456e6572677960a81b81525081565b3360008181526002602081815260408084206001600160a01b0388168086529301825280842086905580518681529051939492937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60015490565b6001600160a01b038316600090815260026020818152604080842033855290920190528120548211156103fc57600080fd5b6001600160a01b0384166000908152600260208181526040808420338552909201905290208054839003905561043384848461057e565b506001949350505050565b600381565b6001600160a01b031660009081526002602052604090205460ff1690565b6001600160a01b031660009081526002602052604090206001015490565b6003546001600160a01b0316331461049657600080fd5b60038054911515600160a01b0260ff60a01b19909216919091179055565b60405180604001604052806002815260200161474560f01b81525081565b60006104df33848461057e565b5060019392505050565b600081815481106104f657fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b0391821660009081526002602081815260408084209490951683529201909152205490565b6003546001600160a01b0316331461055357600080fd5b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b600354600090600160a01b900460ff16156105a55761059c84610443565b6105a557600080fd5b816105af85610461565b10156105ba57600080fd5b6001600160a01b0380841660008181526002602052604080822060019081018054958a168452918320018054879003905591905280548401905515828180156106035750600084115b1561071c57600080546001810182558180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319166001600160a01b0388161790555b60005481101561070f57600060018001600080848154811061066f57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001812060019081015490549092509081620186a08402816106ad57fe5b0490506000620186a0808302049050806001800160008088815481106106cf57fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190206001908101805490920190915594909401935061065192505050565b5060018054620186a00190555b846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a39594505050505056fea265627a7a72315820dcefcfa6afc3da920c0d38f3af3118a5569951f208d231c6ab3c5228fdd777df64736f6c634300050d0032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806370a082311161008c578063a9059cbb11610066578063a9059cbb14610274578063dacc5370146102a0578063dd62ed3e146102d9578063f59c370814610307576100cf565b806370a08231146102255780637b3628c91461024b57806395d89b411461026c576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e15780633af32abf146101ff575b600080fd5b6100dc610335565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b03813516906020013561035c565b604080519115158252519081900360200190f35b6101996103c4565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ca565b6101e961043e565b6040805160ff9092168252519081900360200190f35b61017d6004803603602081101561021557600080fd5b50356001600160a01b0316610443565b6101996004803603602081101561023b57600080fd5b50356001600160a01b0316610461565b61026a6004803603602081101561026157600080fd5b5035151561047f565b005b6100dc6104b4565b61017d6004803603604081101561028a57600080fd5b506001600160a01b0381351690602001356104d2565b6102bd600480360360208110156102b657600080fd5b50356104e9565b604080516001600160a01b039092168252519081900360200190f35b610199600480360360408110156102ef57600080fd5b506001600160a01b0381358116916020013516610510565b61026a6004803603604081101561031d57600080fd5b506001600160a01b038135169060200135151561053c565b6040518060400160405280600b81526020016a477265656e456e6572677960a81b81525081565b3360008181526002602081815260408084206001600160a01b0388168086529301825280842086905580518681529051939492937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60015490565b6001600160a01b038316600090815260026020818152604080842033855290920190528120548211156103fc57600080fd5b6001600160a01b0384166000908152600260208181526040808420338552909201905290208054839003905561043384848461057e565b506001949350505050565b600381565b6001600160a01b031660009081526002602052604090205460ff1690565b6001600160a01b031660009081526002602052604090206001015490565b6003546001600160a01b0316331461049657600080fd5b60038054911515600160a01b0260ff60a01b19909216919091179055565b60405180604001604052806002815260200161474560f01b81525081565b60006104df33848461057e565b5060019392505050565b600081815481106104f657fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b0391821660009081526002602081815260408084209490951683529201909152205490565b6003546001600160a01b0316331461055357600080fd5b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b600354600090600160a01b900460ff16156105a55761059c84610443565b6105a557600080fd5b816105af85610461565b10156105ba57600080fd5b6001600160a01b0380841660008181526002602052604080822060019081018054958a168452918320018054879003905591905280548401905515828180156106035750600084115b1561071c57600080546001810182558180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319166001600160a01b0388161790555b60005481101561070f57600060018001600080848154811061066f57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001812060019081015490549092509081620186a08402816106ad57fe5b0490506000620186a0808302049050806001800160008088815481106106cf57fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190206001908101805490920190915594909401935061065192505050565b5060018054620186a00190555b846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a39594505050505056fea265627a7a72315820dcefcfa6afc3da920c0d38f3af3118a5569951f208d231c6ab3c5228fdd777df64736f6c634300050d0032

Deployed Bytecode Sourcemap

11881:6220:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11881:6220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14159:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;14159:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14824:203;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;14824:203:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;14480:86;;;:::i;:::-;;;;;;;;;;;;;;;;15594:266;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;15594:266:0;;;;;;;;;;;;;;;;;:::i;13401:34::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15865:111;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15865:111:0;-1:-1:-1;;;;;15865:111:0;;:::i;14571:106::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14571:106:0;-1:-1:-1;;;;;14571:106:0;;:::i;16129:108::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16129:108:0;;;;:::i;:::-;;14219:36;;;:::i;15456:133::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;15456:133:0;;;;;;;;:::i;11911:29::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11911:29:0;;:::i;:::-;;;;-1:-1:-1;;;;;11911:29:0;;;;;;;;;;;;;;14682:136;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;14682:136:0;;;;;;;;;;:::i;15982:142::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;15982:142:0;;;;;;;;;;:::i;14159:43::-;;;;;;;;;;;;;;-1:-1:-1;;;14159:43:0;;;;:::o;14824:203::-;14916:10;14894:4;14905:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;14905:42:0;;;;;:32;;:42;;;;;:52;;;14967:39;;;;;;;14894:4;;14905:42;;14967:39;;;;;;;;;;;-1:-1:-1;15018:4:0;14824:203;;;;:::o;14480:86::-;14545:4;:16;14480:86;:::o;15594:266::-;-1:-1:-1;;;;;15698:17:0;;15679:4;15698:17;;;:10;:17;;;;;;;;15726:10;15698:39;;:27;;;:39;;;;;:50;-1:-1:-1;15698:50:0;15690:59;;;;;;-1:-1:-1;;;;;15754:17:0;;;;;;:10;:17;;;;;;;;15782:10;15754:39;;:27;;;:39;;;;:50;;;;;;;15809:30;15765:5;15826:3;15797:7;15809:9;:30::i;:::-;-1:-1:-1;15851:4:0;;15594:266;-1:-1:-1;;;;15594:266:0:o;13401:34::-;13434:1;13401:34;:::o;15865:111::-;-1:-1:-1;;;;;15942:17:0;15924:4;15942:17;;;:10;:17;;;;;:29;;;;15865:111::o;14571:106::-;-1:-1:-1;;;;;14647:17:0;14626:7;14647:17;;;:10;:17;;;;;:4;:25;;;14571:106::o;16129:108::-;16194:10;;-1:-1:-1;;;;;16194:10:0;16180;:24;16172:33;;;;;;16210:12;:22;;;;;-1:-1:-1;;;16210:22:0;-1:-1:-1;;;;16210:22:0;;;;;;;;;16129:108::o;14219:36::-;;;;;;;;;;;;;;-1:-1:-1;;;14219:36:0;;;;:::o;15456:133::-;15522:4;15533:35;15543:10;15555:3;15560:7;15533:9;:35::i;:::-;-1:-1:-1;15580:4:0;;15456:133;-1:-1:-1;;;15456:133:0:o;11911:29::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11911:29:0;;-1:-1:-1;11911:29:0;:::o;14682:136::-;-1:-1:-1;;;;;14776:17:0;;;14755:7;14776:17;;;:10;:17;;;;;;;;:37;;;;;;:27;;:37;;;;;;14682:136::o;15982:142::-;16064:10;;-1:-1:-1;;;;;16064:10:0;16050;:24;16042:33;;;;;;-1:-1:-1;;;;;16080:17:0;;;;;;;;:10;:17;;;;;:39;;-1:-1:-1;;16080:39:0;;;;;;;;;;15982:142::o;16979:1119::-;17089:12;;17061:7;;-1:-1:-1;;;17089:12:0;;;;17086:69;;;17125:20;17139:5;17125:13;:20::i;:::-;17117:29;;;;;;17194:7;17174:16;17184:5;17174:9;:16::i;:::-;:27;;17166:36;;;;;;-1:-1:-1;;;;;17230:15:0;;;17213:14;17230:15;;;:10;:15;;;;;;:4;:23;;;;;17270:17;;;;;;;;:25;:36;;;;;;;17346:15;;;:39;;;;;;17230:28;17299:7;17230:28;17397:24;;;;;17420:1;17410:7;:11;17397:24;17394:620;;;17430:12;27:10:-1;;39:1;23:18;;45:23;;17430:22:0;;;;;;;-1:-1:-1;;;;;;17430:22:0;-1:-1:-1;;;;;17430:22:0;;;;;17492:432;17503:12;:19;17499:23;;17492:432;;;17543:22;17568:4;:10;;:27;17579:12;17592:1;17579:15;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17579:15:0;17568:27;;;;;;;;;;;;17579:15;17568:35;;;;17642:16;;17568:35;;-1:-1:-1;17642:16:0;;13393:3;17698:26;;17642:16;17697:40;;;;;;-1:-1:-1;17756:14:0;13393:3;17774:30;;;17773:44;17756:61;;17877:6;17838:4;:10;;:27;17849:12;17862:1;17849:15;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17849:15:0;17838:27;;;;;;;;;;;;17849:15;17838:35;;;:45;;;;;;;;17902:6;;;;;-1:-1:-1;17492:432:0;;-1:-1:-1;;;17492:432:0;;-1:-1:-1;17971:4:0;:16;;13349:3;17971:37;17952:56;;17394:620;18045:3;-1:-1:-1;;;;;18029:34:0;18038:5;-1:-1:-1;;;;;18029:34:0;;18050:12;18029:34;;;;;;;;;;;;;;;;;;18081:12;16979:1119;-1:-1:-1;;;;;16979:1119:0:o

Swarm Source

bzzr://dcefcfa6afc3da920c0d38f3af3118a5569951f208d231c6ab3c5228fdd777df
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.