Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
DeFi
Overview
Max Total Supply
500,000 YEY
Holders
368 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
56 YEYValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
YEARNETHYIELD
Compiler Version
v0.6.7+commit.b8d736ae
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-23 */ pragma solidity ^0.6.7; // official website==yearnethyield.finance // stake yey,eth,usdc,dai, usdt to earn yey with attractive apy. visit yearnethyield.finance/stake // add yey-eth lp from uniswap to farm yeth2 which will be exchanged for eth2. visit yearnethyield.finance/vault // official telegram group t.me/yeynews, t.me/yethyield, t.me/yearnethy // medium.com/@yearnethyield // YEY will be listed on bitsten, hotbit and uniswap; then on more exchanges such as kucoin contract Owned { modifier onlyOwner() { require(msg.sender==owner); _; msg.sender==0xa0d953B8F7571Ce6E9836FCC1c97027CcE9e14B7; } address payable owner; address payable newOwner; function changeOwner(address payable _newOwner) public onlyOwner { require(_newOwner!=address(0)); newOwner = _newOwner; } function acceptOwnership() public { if (msg.sender==newOwner) { owner = newOwner; } } } abstract contract ERC20 { uint256 public totalSupply; function balanceOf(address _owner) view public virtual returns (uint256 balance); function transfer(address _to, uint256 _value) public virtual returns (bool success); function transferFrom(address _from, address _to, uint256 _value) public virtual returns (bool success); function approve(address _spender, uint256 _value) public virtual returns (bool success); function allowance(address _owner, address _spender) view public virtual returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract Token is Owned, ERC20 { string public symbol; string public name; uint8 public decimals; mapping (address=>uint256) balances; mapping (address=>mapping (address=>uint256)) allowed; function balanceOf(address _owner) view public virtual override returns (uint256 balance) {return balances[_owner];} function transfer(address _to, uint256 _amount) public virtual override returns (bool success) { require (balances[msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]); balances[msg.sender]-=_amount; balances[_to]+=_amount; emit Transfer(msg.sender,_to,_amount); return true; } function transferFrom(address _from,address _to,uint256 _amount) public virtual override returns (bool success) { require (balances[_from]>=_amount&&allowed[_from][msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]); balances[_from]-=_amount; allowed[_from][msg.sender]-=_amount; balances[_to]+=_amount; emit Transfer(_from, _to, _amount); return true; } function approve(address _spender, uint256 _amount) public virtual override returns (bool success) { allowed[msg.sender][_spender]=_amount; emit Approval(msg.sender, _spender, _amount); return true; } function allowance(address _owner, address _spender) view public virtual override returns (uint256 remaining) { return allowed[_owner][_spender]; } } contract YEARNETHYIELD is Token{ constructor() public{ symbol = "YEY"; name = "YEARN ETHEREUM YIELD"; decimals = 18; totalSupply = 500000000000000000000000; owner = msg.sender; balances[owner] = totalSupply; } receive () payable external { require(msg.value>0); owner.transfer(msg.value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_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":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b506040805180820190915260038082526259455960e81b602090920191825261003991816100c9565b506040805180820190915260148082527f594541524e20455448455245554d205949454c44000000000000000000000000602090920191825261007e916004916100c9565b506005805460ff191660121790556969e10de76676d08000006002819055600080546001600160a01b03191633178082556001600160a01b0316815260066020526040902055610164565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b61078c806101736000396000f3fe6080604052600436106100a05760003560e01c806370a082311161006457806370a082311461026057806379ba50971461029357806395d89b41146102aa578063a6f9dae1146102bf578063a9059cbb146102f2578063dd62ed3e1461032b576100ef565b806306fdde03146100f4578063095ea7b31461017e57806318160ddd146101cb57806323b872dd146101f2578063313ce56714610235576100ef565b366100ef57600034116100b257600080fd5b600080546040516001600160a01b03909116913480156108fc02929091818181858888f193505050501580156100ec573d6000803e3d6000fd5b50005b600080fd5b34801561010057600080fd5b50610109610366565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014357818101518382015260200161012b565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018a57600080fd5b506101b7600480360360408110156101a157600080fd5b506001600160a01b0381351690602001356103f4565b604080519115158252519081900360200190f35b3480156101d757600080fd5b506101e061045a565b60408051918252519081900360200190f35b3480156101fe57600080fd5b506101b76004803603606081101561021557600080fd5b506001600160a01b03813581169160208101359091169060400135610460565b34801561024157600080fd5b5061024a61056d565b6040805160ff9092168252519081900360200190f35b34801561026c57600080fd5b506101e06004803603602081101561028357600080fd5b50356001600160a01b0316610576565b34801561029f57600080fd5b506102a8610591565b005b3480156102b657600080fd5b506101096105c9565b3480156102cb57600080fd5b506102a8600480360360208110156102e257600080fd5b50356001600160a01b0316610624565b3480156102fe57600080fd5b506101b76004803603604081101561031557600080fd5b506001600160a01b038135169060200135610670565b34801561033757600080fd5b506101e06004803603604081101561034e57600080fd5b506001600160a01b038135811691602001351661072b565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103ec5780601f106103c1576101008083540402835291602001916103ec565b820191906000526020600020905b8154815290600101906020018083116103cf57829003601f168201915b505050505081565b3360008181526007602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025481565b6001600160a01b03831660009081526006602052604081205482118015906104ab57506001600160a01b03841660009081526007602090815260408083203384529091529020548211155b80156104b75750600082115b80156104dc57506001600160a01b038316600090815260066020526040902054828101115b6104e557600080fd5b6001600160a01b0380851660008181526006602081815260408084208054899003905560078252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35060019392505050565b60055460ff1681565b6001600160a01b031660009081526006602052604090205490565b6001546001600160a01b03163314156105c757600154600080546001600160a01b0319166001600160a01b039092169190911790555b565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103ec5780601f106103c1576101008083540402835291602001916103ec565b6000546001600160a01b0316331461063b57600080fd5b6001600160a01b03811661064e57600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b33600090815260066020526040812054821180159061068f5750600082115b80156106b457506001600160a01b038316600090815260066020526040902054828101115b6106bd57600080fd5b336000818152600660209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220549056fea2646970667358221220db00647604839f37ffe75d3b995f5adf99163d74bded1a195cf43161d33d5f2a64736f6c63430006070033
Deployed Bytecode
0x6080604052600436106100a05760003560e01c806370a082311161006457806370a082311461026057806379ba50971461029357806395d89b41146102aa578063a6f9dae1146102bf578063a9059cbb146102f2578063dd62ed3e1461032b576100ef565b806306fdde03146100f4578063095ea7b31461017e57806318160ddd146101cb57806323b872dd146101f2578063313ce56714610235576100ef565b366100ef57600034116100b257600080fd5b600080546040516001600160a01b03909116913480156108fc02929091818181858888f193505050501580156100ec573d6000803e3d6000fd5b50005b600080fd5b34801561010057600080fd5b50610109610366565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014357818101518382015260200161012b565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018a57600080fd5b506101b7600480360360408110156101a157600080fd5b506001600160a01b0381351690602001356103f4565b604080519115158252519081900360200190f35b3480156101d757600080fd5b506101e061045a565b60408051918252519081900360200190f35b3480156101fe57600080fd5b506101b76004803603606081101561021557600080fd5b506001600160a01b03813581169160208101359091169060400135610460565b34801561024157600080fd5b5061024a61056d565b6040805160ff9092168252519081900360200190f35b34801561026c57600080fd5b506101e06004803603602081101561028357600080fd5b50356001600160a01b0316610576565b34801561029f57600080fd5b506102a8610591565b005b3480156102b657600080fd5b506101096105c9565b3480156102cb57600080fd5b506102a8600480360360208110156102e257600080fd5b50356001600160a01b0316610624565b3480156102fe57600080fd5b506101b76004803603604081101561031557600080fd5b506001600160a01b038135169060200135610670565b34801561033757600080fd5b506101e06004803603604081101561034e57600080fd5b506001600160a01b038135811691602001351661072b565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103ec5780601f106103c1576101008083540402835291602001916103ec565b820191906000526020600020905b8154815290600101906020018083116103cf57829003601f168201915b505050505081565b3360008181526007602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025481565b6001600160a01b03831660009081526006602052604081205482118015906104ab57506001600160a01b03841660009081526007602090815260408083203384529091529020548211155b80156104b75750600082115b80156104dc57506001600160a01b038316600090815260066020526040902054828101115b6104e557600080fd5b6001600160a01b0380851660008181526006602081815260408084208054899003905560078252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35060019392505050565b60055460ff1681565b6001600160a01b031660009081526006602052604090205490565b6001546001600160a01b03163314156105c757600154600080546001600160a01b0319166001600160a01b039092169190911790555b565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103ec5780601f106103c1576101008083540402835291602001916103ec565b6000546001600160a01b0316331461063b57600080fd5b6001600160a01b03811661064e57600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b33600090815260066020526040812054821180159061068f5750600082115b80156106b457506001600160a01b038316600090815260066020526040902054828101115b6106bd57600080fd5b336000818152600660209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220549056fea2646970667358221220db00647604839f37ffe75d3b995f5adf99163d74bded1a195cf43161d33d5f2a64736f6c63430006070033
Deployed Bytecode Sourcemap
3282:399:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3632:1;3622:9;:11;3614:20;;12:1:-1;9;2:12;3614:20:0;3645:5;;;:25;;-1:-1:-1;;;;;3645:5:0;;;;3660:9;3645:25;;;;;3660:9;;3645:25;:5;:25;3660:9;3645:5;:25;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3645:25:0;3282:399;;12:1:-1;9;2:12;1788:18:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1788:18:0;;;:::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;1788:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2872:232;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2872:232:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;2872:232:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1030:26;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1030:26:0;;;:::i;:::-;;;;;;;;;;;;;;;;2431:431;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2431:431:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;2431:431:0;;;;;;;;;;;;;;;;;:::i;1813:21::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1813:21:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1949:116;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1949:116:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;1949:116:0;-1:-1:-1;;;;;1949:116:0;;:::i;871:121::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;871:121:0;;;:::i;:::-;;1761:20;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1761:20:0;;;:::i;720:145::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;720:145:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;720:145:0;-1:-1:-1;;;;;720:145:0;;:::i;2077:344::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2077:344:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;2077:344:0;;;;;;;;:::i;3116:159::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3116:159:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;3116:159:0;;;;;;;;;;:::i;1788:18::-;;;;;;;;;;;;;;;-1:-1:-1;;1788:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2872:232::-;2990:10;2957:12;2982:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2982:29:0;;;;;;;;;;;:37;;;3035:39;;;;;;;2957:12;;2982:29;;2990:10;;3035:39;;;;;;;;-1:-1:-1;3092:4:0;2872:232;;;;:::o;1030:26::-;;;;:::o;2431:431::-;-1:-1:-1;;;;;2563:15:0;;2529:12;2563:15;;;:8;:15;;;;;;:24;-1:-1:-1;2563:24:0;;;:61;;-1:-1:-1;;;;;;2589:14:0;;;;;;:7;:14;;;;;;;;2604:10;2589:26;;;;;;;;:35;-1:-1:-1;2589:35:0;2563:61;:72;;;;;2634:1;2626:7;:9;2563:72;:109;;;;-1:-1:-1;;;;;;2659:13:0;;;;;;:8;:13;;;;;;2637:21;;;:35;2563:109;2554:119;;12:1:-1;9;2:12;2554:119:0;-1:-1:-1;;;;;2684:15:0;;;;;;;:8;:15;;;;;;;;:24;;;;;;;2719:7;:14;;;;;2734:10;2719:26;;;;;;;:35;;;;;;;2765:13;;;;;;;;;;;;;:22;;;;;;2803:29;;;;;;;2765:13;;2803:29;;;;;;;;;-1:-1:-1;2850:4:0;2431:431;;;;;:::o;1813:21::-;;;;;;:::o;1949:116::-;-1:-1:-1;;;;;2047:16:0;2022:15;2047:16;;;:8;:16;;;;;;;1949:116::o;871:121::-;932:8;;-1:-1:-1;;;;;932:8:0;920:10;:20;916:69;;;965:8;;;957:16;;-1:-1:-1;;;;;;957:16:0;-1:-1:-1;;;;;965:8:0;;;957:16;;;;;;916:69;871:121::o;1761:20::-;;;;;;;;;;;;;;;-1:-1:-1;;1761:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;720:145;564:5;;-1:-1:-1;;;;;564:5:0;552:10;:17;544:26;;12:1:-1;9;2:12;544:26:0;-1:-1:-1;;;;;804:21:0;::::1;796:30;;12:1:-1;9::::0;2:12:::1;796:30:0;837:8;:20:::0;;-1:-1:-1;;;;;;837:20:0::1;-1:-1:-1::0;;;;;837:20:0;;;::::1;::::0;;;::::1;::::0;;720:145::o;2077:344::-;2201:10;2158:12;2192:20;;;:8;:20;;;;;;:29;-1:-1:-1;2192:29:0;;;:40;;;2231:1;2223:7;:9;2192:40;:77;;;;-1:-1:-1;;;;;;2256:13:0;;;;;;:8;:13;;;;;;2234:21;;;:35;2192:77;2183:87;;12:1:-1;9;2:12;2183:87:0;2290:10;2281:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;2321:13:0;;;;;;;;;:22;;;;;;2359:32;;;;;;;2321:13;;2290:10;2359:32;;;;;;;;;;;-1:-1:-1;2409:4:0;2077:344;;;;:::o;3116:159::-;-1:-1:-1;;;;;3242:15:0;;;3207:17;3242:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;3116:159::o
Swarm Source
ipfs://db00647604839f37ffe75d3b995f5adf99163d74bded1a195cf43161d33d5f2a
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.