ERC-20
Yield Farming
Overview
Max Total Supply
2,800,000 WAR
Holders
429 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000029552650677379 WARValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WAR
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-24 */ pragma solidity =0.5.17; // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. contract WAR { // --- ERC20 Data --- string public constant name = "yieldwars.com"; string public constant symbol = "WAR"; uint8 public constant decimals = 18; uint256 public constant totalSupply = 2800000e18; mapping (address => uint) public balanceOf; mapping (address => mapping (address => uint)) public allowance; event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed src, address indexed dst, uint value); constructor() public { balanceOf[msg.sender] = totalSupply; emit Transfer(address(0), msg.sender, totalSupply); } // --- Math --- function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x); } // --- Token --- function transfer(address dst, uint value) external returns (bool) { return transferFrom(msg.sender, dst, value); } function transferFrom(address src, address dst, uint value) public returns (bool) { require(balanceOf[src] >= value, "WAR/insufficient-balance"); if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) { require(allowance[src][msg.sender] >= value, "WAR/insufficient-allowance"); allowance[src][msg.sender] = sub(allowance[src][msg.sender], value); } balanceOf[src] = sub(balanceOf[src], value); balanceOf[dst] = add(balanceOf[dst], value); emit Transfer(src, dst, value); return true; } function approve(address spender, uint value) external returns (bool) { allowance[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","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":"dst","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50336000818152602081815260408083206a0250ec4ddca432f600000090819055815190815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36105d2806100726000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101c357806395d89b41146101e9578063a9059cbb146101f1578063dd62ed3e1461021d57610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a061024b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b038135169060200135610274565b604080519115158252519081900360200190f35b61015d6102db565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b038135811691602081013590911690604001356102ea565b6101ad610516565b6040805160ff9092168252519081900360200190f35b61015d600480360360208110156101d957600080fd5b50356001600160a01b031661051b565b6100a061052d565b6101416004803603604081101561020757600080fd5b506001600160a01b03813516906020013561054c565b61015d6004803603604081101561023357600080fd5b506001600160a01b0381358116916020013516610560565b6040518060400160405280600d81526020016c7969656c64776172732e636f6d60981b81525081565b3360008181526001602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6a0250ec4ddca432f600000081565b6001600160a01b038316600090815260208190526040812054821115610357576040805162461bcd60e51b815260206004820152601860248201527f5741522f696e73756666696369656e742d62616c616e63650000000000000000604482015290519081900360640190fd5b6001600160a01b038416331480159061039557506001600160a01b038416600090815260016020908152604080832033845290915290205460001914155b15610465576001600160a01b0384166000908152600160209081526040808320338452909152902054821115610412576040805162461bcd60e51b815260206004820152601a60248201527f5741522f696e73756666696369656e742d616c6c6f77616e6365000000000000604482015290519081900360640190fd5b6001600160a01b0384166000908152600160209081526040808320338452909152902054610440908361057d565b6001600160a01b03851660009081526001602090815260408083203384529091529020555b6001600160a01b038416600090815260208190526040902054610488908361057d565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546104b7908361058d565b6001600160a01b038085166000818152602081815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b601281565b60006020819052908152604090205481565b604051806040016040528060038152602001622ba0a960e91b81525081565b60006105593384846102ea565b9392505050565b600160209081526000928352604080842090915290825290205481565b808203828111156102d557600080fd5b808201828110156102d557600080fdfea265627a7a72315820fa6984d88973e3b13fcbd91dcd4536713d2af0979dc50d83b697bc6b2c03c82964736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101c357806395d89b41146101e9578063a9059cbb146101f1578063dd62ed3e1461021d57610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a061024b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b038135169060200135610274565b604080519115158252519081900360200190f35b61015d6102db565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b038135811691602081013590911690604001356102ea565b6101ad610516565b6040805160ff9092168252519081900360200190f35b61015d600480360360208110156101d957600080fd5b50356001600160a01b031661051b565b6100a061052d565b6101416004803603604081101561020757600080fd5b506001600160a01b03813516906020013561054c565b61015d6004803603604081101561023357600080fd5b506001600160a01b0381358116916020013516610560565b6040518060400160405280600d81526020016c7969656c64776172732e636f6d60981b81525081565b3360008181526001602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6a0250ec4ddca432f600000081565b6001600160a01b038316600090815260208190526040812054821115610357576040805162461bcd60e51b815260206004820152601860248201527f5741522f696e73756666696369656e742d62616c616e63650000000000000000604482015290519081900360640190fd5b6001600160a01b038416331480159061039557506001600160a01b038416600090815260016020908152604080832033845290915290205460001914155b15610465576001600160a01b0384166000908152600160209081526040808320338452909152902054821115610412576040805162461bcd60e51b815260206004820152601a60248201527f5741522f696e73756666696369656e742d616c6c6f77616e6365000000000000604482015290519081900360640190fd5b6001600160a01b0384166000908152600160209081526040808320338452909152902054610440908361057d565b6001600160a01b03851660009081526001602090815260408083203384529091529020555b6001600160a01b038416600090815260208190526040902054610488908361057d565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546104b7908361058d565b6001600160a01b038085166000818152602081815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b601281565b60006020819052908152604090205481565b604051806040016040528060038152602001622ba0a960e91b81525081565b60006105593384846102ea565b9392505050565b600160209081526000928352604080842090915290825290205481565b808203828111156102d557600080fd5b808201828110156102d557600080fdfea265627a7a72315820fa6984d88973e3b13fcbd91dcd4536713d2af0979dc50d83b697bc6b2c03c82964736f6c63430005110032
Deployed Bytecode Sourcemap
686:1916:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;686:1916:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;735:50;;;:::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;735:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2398:201;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2398:201:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;883:48;;;:::i;:::-;;;;;;;;;;;;;;;;1786:604;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1786:604:0;;;;;;;;;;;;;;;;;:::i;839:37::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;940:63;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;940:63:0;-1:-1:-1;;;;;940:63:0;;:::i;792:40::-;;;:::i;1649:129::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1649:129:0;;;;;;;;:::i;1010:63::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1010:63:0;;;;;;;;;;:::i;735:50::-;;;;;;;;;;;;;;-1:-1:-1;;;735:50:0;;;;:::o;2398:201::-;2489:10;2462:4;2479:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2479:30:0;;;;;;;;;;;:38;;;2533:36;;;;;;;2462:4;;2479:30;;2489:10;;2533:36;;;;;;;;-1:-1:-1;2587:4:0;2398:201;;;;;:::o;883:48::-;921:10;883:48;:::o;1786:604::-;-1:-1:-1;;;;;1901:14:0;;1871:4;1901:14;;;;;;;;;;;:23;-1:-1:-1;1901:23:0;1893:60;;;;;-1:-1:-1;;;1893:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1968:17:0;;1975:10;1968:17;;;;:59;;-1:-1:-1;;;;;;1989:14:0;;;;;;:9;:14;;;;;;;;2004:10;1989:26;;;;;;;;-1:-1:-1;;1989:38:0;;1968:59;1964:248;;;-1:-1:-1;;;;;2052:14:0;;;;;;:9;:14;;;;;;;;2067:10;2052:26;;;;;;;;:35;-1:-1:-1;2052:35:0;2044:74;;;;;-1:-1:-1;;;2044:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2166:14:0;;;;;;:9;:14;;;;;;;;2181:10;2166:26;;;;;;;;2162:38;;2194:5;2162:3;:38::i;:::-;-1:-1:-1;;;;;2133:14:0;;;;;;:9;:14;;;;;;;;2148:10;2133:26;;;;;;;:67;1964:248;-1:-1:-1;;;;;2243:14:0;;:9;:14;;;;;;;;;;;2239:26;;2259:5;2239:3;:26::i;:::-;-1:-1:-1;;;;;2222:14:0;;;:9;:14;;;;;;;;;;;:43;;;;2297:14;;;;;;;2293:26;;2313:5;2293:3;:26::i;:::-;-1:-1:-1;;;;;2276:14:0;;;:9;:14;;;;;;;;;;;;:43;;;;2335:25;;;;;;;2276:14;;2335:25;;;;;;;;;;;;;-1:-1:-1;2378:4:0;1786:604;;;;;:::o;839:37::-;874:2;839:37;:::o;940:63::-;;;;;;;;;;;;;;:::o;792:40::-;;;;;;;;;;;;;;-1:-1:-1;;;792:40:0;;;;:::o;1649:129::-;1710:4;1734:36;1747:10;1759:3;1764:5;1734:12;:36::i;:::-;1727:43;1649:129;-1:-1:-1;;;1649:129:0:o;1010:63::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;1515:104::-;1599:5;;;1594:16;;;;1586:25;;;;;1405:104;1489:5;;;1484:16;;;;1476:25;;;;
Swarm Source
bzzr://fa6984d88973e3b13fcbd91dcd4536713d2af0979dc50d83b697bc6b2c03c829
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.