Token Yeti Finance
Overview ERC20
Total Supply:
500,000,000 YETI
Holders:
27,858 addresses
Transfers:
-
Profile Summary
Contract:
Decimals:
18
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
YETIToken
Compiler Version
v0.6.11+commit.5ef660b1
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.11; import "../Dependencies/SafeMath.sol"; import "../Interfaces/IYETIToken.sol"; import "../Dependencies/Ownable.sol"; /* * Brought to you by @YetiFinance * * Based upon OpenZeppelin's ERC20 contract: * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol * * and their EIP2612 (ERC20Permit / ERC712) functionality: * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/53516bc555a454862470e7860a9b5254db4d00f5/contracts/token/ERC20/ERC20Permit.sol * * * --- Functionality added specific to the YETIToken --- * * 1) Transfer protection: Prevent accidentally sending YETI to directly to this address * * 2) sendToSYETI(): Only callable by the SYETI contract to transfer YETI for staking. * * 3) Supply hard-capped at 500 million * * 4) Yeti Finance Treasury and Yeti Finance Team addresses set at deployment * * 5) 365 million tokens are minted at deployment to the Yeti Finance Treasury * * 6) 135 million tokens are minted at deployment to the Yeti Finance Team * */ contract YETIToken is IYETIToken, Ownable { using SafeMath for uint256; // --- ERC20 Data --- string constant internal _NAME = "Yeti Finance"; string constant internal _SYMBOL = "YETI"; string constant internal _VERSION = "1"; uint8 constant internal _DECIMALS = 18; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint private _totalSupply; // --- EIP 2612 Data --- bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; mapping (address => uint256) private _nonces; // --- YETIToken specific data --- // uint for use with SafeMath uint internal _1_MILLION = 1e24; // 1e6 * 1e18 = 1e24 uint internal immutable deploymentStartTime; address public immutable sYETIAddress; // --- Functions --- constructor ( address _sYETIAddress, address _treasuryAddress, address _teamAddress ) public { deploymentStartTime = block.timestamp; sYETIAddress = _sYETIAddress; bytes32 hashedName = keccak256(bytes(_NAME)); bytes32 hashedVersion = keccak256(bytes(_VERSION)); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = _chainID(); _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(_TYPE_HASH, hashedName, hashedVersion); // --- Initial YETI allocations --- // Allocate 365 million for Yeti Finance Treasury uint treasuryEntitlement = _1_MILLION.mul(365); _totalSupply = _totalSupply.add(treasuryEntitlement); _balances[_treasuryAddress] = _balances[_treasuryAddress].add(treasuryEntitlement); // Allocate 135 million for Yeti Finance Team uint teamEntitlement = _1_MILLION.mul(135); _totalSupply = _totalSupply.add(teamEntitlement); _balances[_teamAddress] = _balances[_teamAddress].add(teamEntitlement); } // --- External functions --- function transfer(address recipient, uint256 amount) external override returns (bool) { _requireValidRecipient(recipient); // Otherwise, standard transfer functionality _transfer(msg.sender, recipient, amount); return true; } function approve(address spender, uint256 amount) external override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { _requireValidRecipient(recipient); _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "YETI: transfer amount exceeds allowance")); return true; } function increaseAllowance(address spender, uint256 addedValue) external override returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external override returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "YETI: decreased allowance below zero")); return true; } function sendToSYETI(address _sender, uint256 _amount) external override { _requireCallerIsSYETI(); _transfer(_sender, sYETIAddress, _amount); } // --- EIP 2612 functionality --- function domainSeparator() public view override returns (bytes32) { if (_chainID() == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function permit ( address owner, address spender, uint amount, uint deadline, uint8 v, bytes32 r, bytes32 s ) external override { require(deadline >= block.timestamp, 'YETI: expired deadline'); bytes32 digest = keccak256(abi.encodePacked('\x19\x01', domainSeparator(), keccak256(abi.encode( _PERMIT_TYPEHASH, owner, spender, amount, _nonces[owner]++, deadline)))); address recoveredAddress = ecrecover(digest, v, r, s); require(recoveredAddress == owner, 'YETI: invalid signature'); _approve(owner, spender, amount); } function nonces(address owner) external view override returns (uint256) { // FOR EIP 2612 return _nonces[owner]; } // --- Internal functions --- function _chainID() private pure returns (uint256 chainID) { assembly { chainID := chainid() } } function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) { return keccak256(abi.encode(typeHash, name, version, _chainID(), address(this))); } function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "YETI: transfer from the zero address"); _balances[sender] = _balances[sender].sub(amount, "YETI: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } function _approve(address owner, address spender, uint256 amount) internal { _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } // --- 'require' functions --- function _requireValidRecipient(address _recipient) internal view { require( _recipient != address(this), "YETI: Cannot transfer tokens directly to the YETI token contract" ); } function _requireCallerIsSYETI() internal view { require(msg.sender == sYETIAddress, "YETI: caller must be the SYETI contract"); } // --- External View functions --- function balanceOf(address account) external view override returns (uint256) { return _balances[account]; } function allowance(address owner, address spender) external view override returns (uint256) { return _allowances[owner][spender]; } function totalSupply() external view override returns (uint256) { return _totalSupply; } function getDeploymentStartTime() external view override returns (uint256) { return deploymentStartTime; } function name() external view override returns (string memory) { return _NAME; } function symbol() external view override returns (string memory) { return _SYMBOL; } function decimals() external view override returns (uint8) { return _DECIMALS; } function version() external view override returns (string memory) { return _VERSION; } function permitTypeHash() external view override returns (bytes32) { return _PERMIT_TYPEHASH; } // Functions Below Testing Purposes Only (not deployed): function mintTestOnly(uint256 amount) external onlyOwner { _mint(msg.sender, amount); } function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.11; /** * Based on OpenZeppelin's SafeMath: * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol * * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 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; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.11; import "./IERC20.sol"; import "./IERC2612.sol"; interface IYETIToken is IERC20, IERC2612 { function sendToSYETI(address _sender, uint256 _amount) external; function getDeploymentStartTime() external view returns (uint256); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.11; /** * Based on OpenZeppelin's Ownable contract: * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol * * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), msg.sender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return msg.sender == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. * * NOTE: This function is not safe, as it doesn’t check owner is calling it. * Make sure you check it before calling it. */ function _renounceOwnership() internal { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.11; /** * Based on the OpenZeppelin IER20 interface: * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol * * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); function increaseAllowance(address spender, uint256 addedValue) external returns (bool); function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.11; /** * @dev Interface of the ERC2612 standard as defined in the EIP. * * Adds the {permit} method, which can be used to change one's * {IERC20-allowance} without having to send a transaction, by signing a * message. This allows users to spend tokens without having to hold Ether. * * See https://eips.ethereum.org/EIPS/eip-2612. * * Code adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2237/ */ interface IERC2612 { /** * @dev Sets `amount` as the allowance of `spender` over `owner`'s tokens, * given `owner`'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit(address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; /** * @dev Returns the current ERC2612 nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases `owner`'s nonce by one. This * prevents a signature from being used multiple times. * * `owner` can limit the time a Permit is valid for by setting `deadline` to * a value in the near future. The deadline argument can be set to uint(-1) to * create Permits that effectively never expire. */ function nonces(address owner) external view returns (uint256); function version() external view returns (string memory); function permitTypeHash() external view returns (bytes32); function domainSeparator() external view returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_sYETIAddress","type":"address"},{"internalType":"address","name":"_treasuryAddress","type":"address"},{"internalType":"address","name":"_teamAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDeploymentStartTime","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":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintTestOnly","outputs":[],"stateMutability":"nonpayable","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":[{"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":"permitTypeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sYETIAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sendToSYETI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
61014060405269d3c21bcecceda10000006005553480156200002057600080fd5b506040516200159a3803806200159a833981810160405260608110156200004657600080fd5b5080516020820151604092830151600080546001600160a01b0319163390811782559451939492939192917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a342610100526001600160601b0319606084901b1661012052604080518082018252600c81526b596574692046696e616e636560a01b602091820152815180830190925260018252603160f81b9101527f72ea60c3fbbf4b3727d04d595f79f79747647c3f215fd8116e3c382f3a1d3b4460c08190527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660e0819052620001446001600160e01b03620002a916565b60a0526040516200017790806052620015278239604051908190036052019020905083836001600160e01b03620002ad16565b6080818152505060006200019e61016d6005546200030e60201b62000a411790919060201c565b9050620001bc816003546200037560201b62000aa11790919060201c565b6003556001600160a01b038516600090815260016020908152604090912054620001f191839062000aa162000375821b17901c565b6001600160a01b038616600090815260016020908152604082209290925560055490916200022c919060879062000a416200030e821b17901c565b90506200024a816003546200037560201b62000aa11790919060201c565b6003556001600160a01b0385166000908152600160209081526040909120546200027f91839062000aa162000375821b17901c565b6001600160a01b0390951660009081526001602052604090209490945550620003d0945050505050565b4690565b6000838383620002c56001600160e01b03620002a916565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c090920190528051910120949350505050565b6000826200031f575060006200036f565b828202828482816200032d57fe5b04146200036c5760405162461bcd60e51b8152600401808060200182810382526021815260200180620015796021913960400191505060405180910390fd5b90505b92915050565b6000828201838110156200036c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60805160a05160c05160e051610100516101205160601c61110062000427600039806105c652806109565280610e52525080610587525080610a165250806109f55250806109835250806109b352506111006000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80637ecebe00116100b8578063a9059cbb1161007c578063a9059cbb1461036a578063c0fee24714610396578063d505accf146103b5578063dd62ed3e14610406578063f1be695e14610434578063f698da251461046057610142565b80637ecebe00146103005780638da5cb5b146103265780638f32d59b1461032e57806395d89b4114610336578063a457c2d71461033e57610142565b8063313ce5671161010a578063313ce5671461025c578063395093511461027a5780633c84b7c2146102a657806354fd4d50146102ae57806363788ac3146102b657806370a08231146102da57610142565b806306fdde0314610147578063095ea7b3146101c457806310ce43bd1461020457806318160ddd1461021e57806323b872dd14610226575b600080fd5b61014f610468565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610189578181015183820152602001610171565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f0600480360360408110156101da57600080fd5b506001600160a01b03813516906020013561048f565b604080519115158252519081900360200190f35b61020c6104a6565b60408051918252519081900360200190f35b61020c6104c6565b6101f06004803603606081101561023c57600080fd5b506001600160a01b038135811691602081013590911690604001356104cc565b610264610544565b6040805160ff9092168252519081900360200190f35b6101f06004803603604081101561029057600080fd5b506001600160a01b038135169060200135610549565b61020c610585565b61014f6105a9565b6102be6105c4565b604080516001600160a01b039092168252519081900360200190f35b61020c600480360360208110156102f057600080fd5b50356001600160a01b03166105e8565b61020c6004803603602081101561031657600080fd5b50356001600160a01b0316610603565b6102be61061e565b6101f061062d565b61014f61063e565b6101f06004803603604081101561035457600080fd5b506001600160a01b03813516906020013561065c565b6101f06004803603604081101561038057600080fd5b506001600160a01b0381351690602001356106b1565b6103b3600480360360208110156103ac57600080fd5b50356106c7565b005b6103b3600480360360e08110156103cb57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c0013561072d565b61020c6004803603604081101561041c57600080fd5b506001600160a01b038135811691602001351661091d565b6103b36004803603604081101561044a57600080fd5b506001600160a01b038135169060200135610948565b61020c61097f565b60408051808201909152600c81526b596574692046696e616e636560a01b60208201525b90565b600061049c338484610afb565b5060015b92915050565b60006040518080610f976052913960520190506040518091039020905090565b60035490565b60006104d783610b5d565b6104e2848484610ba5565b61053a843361053585604051806060016040528060278152602001610f0b602791396001600160a01b038a166000908152600260209081526040808320338452909152902054919063ffffffff610cbe16565b610afb565b5060019392505050565b601290565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161049c918590610535908663ffffffff610aa116565b7f000000000000000000000000000000000000000000000000000000000000000090565b6040805180820190915260018152603160f81b602082015290565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b031660009081526001602052604090205490565b6001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6040805180820190915260048152635945544960e01b602082015290565b600061049c3384610535856040518060600160405280602481526020016110a7602491393360009081526002602090815260408083206001600160a01b038d168452909152902054919063ffffffff610cbe16565b60006106bc83610b5d565b61049c338484610ba5565b6106cf61062d565b610720576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61072a3382610d55565b50565b4284101561077b576040805162461bcd60e51b8152602060048201526016602482015275594554493a206578706972656420646561646c696e6560501b604482015290519081900360640190fd5b600061078561097f565b604051806052610f978239604080519182900360520182206001600160a01b03808e16600081815260046020908152858220805460018082019092558289019690965287870193909352928f166060870152608086018e905260a086019390935260c08086018d90528451808703909101815260e08601855280519083012061190160f01b6101008701526101028601979097526101228086019790975283518086039097018752610142850180855287519783019790972096839052610162850180855287905260ff8b166101828601526101a285018a90526101c28501899052925195965090949193506101e2808401939192601f1981019281900390910190855afa15801561089b573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b031614610907576040805162461bcd60e51b8152602060048201526017602482015276594554493a20696e76616c6964207369676e617475726560481b604482015290519081900360640190fd5b610912898989610afb565b505050505050505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610950610e47565b61097b827f000000000000000000000000000000000000000000000000000000000000000083610ba5565b5050565b60007f00000000000000000000000000000000000000000000000000000000000000006109aa610eb0565b14156109d757507f000000000000000000000000000000000000000000000000000000000000000061048c565b610a3a6040518080610fe960529139605201905060405180910390207f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610eb4565b905061048c565b600082610a50575060006104a0565b82820282848281610a5d57fe5b0414610a9a5760405162461bcd60e51b815260040180806020018281038252602181526020018061103b6021913960400191505060405180910390fd5b9392505050565b600082820183811015610a9a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03811630141561072a5760405162461bcd60e51b8152600401808060200182810382526040815260200180610f576040913960400191505060405180910390fd5b6001600160a01b038316610bea5760405162461bcd60e51b81526004018080602001828103825260248152602001806110836024913960400191505060405180910390fd5b610c2d81604051806060016040528060258152602001610f32602591396001600160a01b038616600090815260016020526040902054919063ffffffff610cbe16565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610c62908263ffffffff610aa116565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610d4d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d12578181015183820152602001610cfa565b50505050905090810190601f168015610d3f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610db0576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354610dc3908263ffffffff610aa116565b6003556001600160a01b038216600090815260016020526040902054610def908263ffffffff610aa116565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610eae5760405162461bcd60e51b815260040180806020018281038252602781526020018061105c6027913960400191505060405180910390fd5b565b4690565b6000838383610ec1610eb0565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c09092019052805191012094935050505056fe594554493a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365594554493a207472616e7366657220616d6f756e7420657863656564732062616c616e6365594554493a2043616e6e6f74207472616e7366657220746f6b656e73206469726563746c7920746f20746865205945544920746f6b656e20636f6e74726163745065726d69742861646472657373206f776e65722c61646472657373207370656e6465722c75696e743235362076616c75652c75696e74323536206e6f6e63652c75696e7432353620646561646c696e6529454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77594554493a2063616c6c6572206d7573742062652074686520535945544920636f6e7472616374594554493a207472616e736665722066726f6d20746865207a65726f2061646472657373594554493a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e3fc6b8a32ecfcd7c35cd15b5dc2964efa2b3dd92bfbbb762dc12bb6ba2d74b264736f6c634300060b0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77000000000000000000000000774cfe9bcd1bf857e3cd0f1e7b25aef8e40acf090000000000000000000000007c770824499b4c30e68080f7fe58c8b82552f47a0000000000000000000000007c770824499b4c30e68080f7fe58c8b82552f47a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000774cfe9bcd1bf857e3cd0f1e7b25aef8e40acf090000000000000000000000007c770824499b4c30e68080f7fe58c8b82552f47a0000000000000000000000007c770824499b4c30e68080f7fe58c8b82552f47a
-----Decoded View---------------
Arg [0] : _sYETIAddress (address): 0x774cfe9bcd1bf857e3cd0f1e7b25aef8e40acf09
Arg [1] : _treasuryAddress (address): 0x7c770824499b4c30e68080f7fe58c8b82552f47a
Arg [2] : _teamAddress (address): 0x7c770824499b4c30e68080f7fe58c8b82552f47a
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000774cfe9bcd1bf857e3cd0f1e7b25aef8e40acf09
Arg [1] : 0000000000000000000000007c770824499b4c30e68080f7fe58c8b82552f47a
Arg [2] : 0000000000000000000000007c770824499b4c30e68080f7fe58c8b82552f47a