ERC-20
Yield Farming
Overview
Max Total Supply
100,000 SHD
Holders
139 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SHIELD
Compiler Version
v0.5.2+commit.1df8f40c
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-19 */ //ShieldDAO Governance Tokens //Loss Mitigation Protocol pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // // ---------------------------------------------------------------------------- contract ERC20Interface { function totalSupply() public view returns (uint); function balanceOf(address tokenOwner) public view returns (uint balance); function allowance(address tokenOwner, address spender) public view returns (uint remaining); function transfer(address to, uint tokens) public returns (bool success); function approve(address spender, uint tokens) public returns (bool success); function transferFrom(address from, address to, uint tokens) public returns (bool success); event Transfer(address indexed from, address indexed to, uint tokens); event Approval(address indexed tokenOwner, address indexed spender, uint tokens); } // ---------------------------------------------------------------------------- // Safe Math Library // ---------------------------------------------------------------------------- contract SafeMath { function safeAdd(uint a, uint b) public pure returns (uint c) { c = a + b; require(c >= a); } function safeSub(uint a, uint b) public pure returns (uint c) { require(b <= a); c = a - b; } function safeMul(uint a, uint b) public pure returns (uint c) { c = a * b; require(a == 0 || c / a == b); } function safeDiv(uint a, uint b) public pure returns (uint c) { require(b > 0); c = a / b; } } contract SHIELD is ERC20Interface, SafeMath { string public name; string public symbol; uint8 public decimals; uint256 public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; /** * Shield Constrctor function * * Initializes contract with initial supply tokens to SHIELD Vault */ constructor() public { name = "SHIELD"; symbol = "SHD"; decimals = 18; _totalSupply = 100000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); } function totalSupply() public view returns (uint) { return _totalSupply - balances[address(0)]; } function balanceOf(address tokenOwner) public view returns (uint balance) { return balances[tokenOwner]; } function allowance(address tokenOwner, address spender) public view returns (uint remaining) { return allowed[tokenOwner][spender]; } function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; } function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(msg.sender, to, tokens); return true; } function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, tokens); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeSub","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeDiv","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeAdd","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
608060405234801561001057600080fd5b506040805180820190915260068082527f534849454c440000000000000000000000000000000000000000000000000000602090920191825261005591600091610106565b506040805180820190915260038082527f5348440000000000000000000000000000000000000000000000000000000000602090920191825261009a91600191610106565b506002805460ff1916601217905569152d02c7e14af68000006003819055336000818152600460209081526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36101a1565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014757805160ff1916838001178555610174565b82800160010185558215610174579182015b82811115610174578251825591602001919060010190610159565b50610180929150610184565b5090565b61019e91905b80821115610180576000815560010161018a565b90565b61075d806101b06000396000f3fe608060405234801561001057600080fd5b5060043610610107576000357c01000000000000000000000000000000000000000000000000000000009004806395d89b41116100a9578063b5931f7c11610083578063b5931f7c146102bc578063d05c78da146102df578063dd62ed3e14610302578063e6cb90131461033057610107565b806395d89b4114610265578063a293d1e81461026d578063a9059cbb1461029057610107565b806323b872dd116100e557806323b872dd146101e3578063313ce567146102195780633eaaf86b1461023757806370a082311461023f57610107565b806306fdde031461010c578063095ea7b31461018957806318160ddd146101c9575b600080fd5b610114610353565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014e578181015183820152602001610136565b50505050905090810190601f16801561017b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b56004803603604081101561019f57600080fd5b50600160a060020a0381351690602001356103e1565b604080519115158252519081900360200190f35b6101d1610448565b60408051918252519081900360200190f35b6101b5600480360360608110156101f957600080fd5b50600160a060020a0381358116916020810135909116906040013561047a565b610221610573565b6040805160ff9092168252519081900360200190f35b6101d161057c565b6101d16004803603602081101561025557600080fd5b5035600160a060020a0316610582565b61011461059d565b6101d16004803603604081101561028357600080fd5b50803590602001356105f7565b6101b5600480360360408110156102a657600080fd5b50600160a060020a03813516906020013561060c565b6101d1600480360360408110156102d257600080fd5b50803590602001356106b0565b6101d1600480360360408110156102f557600080fd5b50803590602001356106d1565b6101d16004803603604081101561031857600080fd5b50600160a060020a03813581169160200135166106f6565b6101d16004803603604081101561034657600080fd5b5080359060200135610721565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103d95780601f106103ae576101008083540402835291602001916103d9565b820191906000526020600020905b8154815290600101906020018083116103bc57829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546003540390565b600160a060020a03831660009081526004602052604081205461049d90836105f7565b600160a060020a03851660009081526004602090815260408083209390935560058152828220338352905220546104d490836105f7565b600160a060020a0380861660009081526005602090815260408083203384528252808320949094559186168152600490915220546105129083610721565b600160a060020a0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60035481565b600160a060020a031660009081526004602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103d95780601f106103ae576101008083540402835291602001916103d9565b60008282111561060657600080fd5b50900390565b3360009081526004602052604081205461062690836105f7565b3360009081526004602052604080822092909255600160a060020a038516815220546106529083610721565b600160a060020a0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60008082116106be57600080fd5b81838115156106c957fe5b049392505050565b8181028215806106eb57508183828115156106e857fe5b04145b151561044257600080fd5b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b8181018281101561044257600080fdfea165627a7a723058207d353d75463b1a5fe627e3ca87f17d5a973f721bc3a7a1c89b4c8c2a1b70f2330029
Deployed Bytecode
0x608060405234801561001057600080fd5b5060043610610107576000357c01000000000000000000000000000000000000000000000000000000009004806395d89b41116100a9578063b5931f7c11610083578063b5931f7c146102bc578063d05c78da146102df578063dd62ed3e14610302578063e6cb90131461033057610107565b806395d89b4114610265578063a293d1e81461026d578063a9059cbb1461029057610107565b806323b872dd116100e557806323b872dd146101e3578063313ce567146102195780633eaaf86b1461023757806370a082311461023f57610107565b806306fdde031461010c578063095ea7b31461018957806318160ddd146101c9575b600080fd5b610114610353565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014e578181015183820152602001610136565b50505050905090810190601f16801561017b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b56004803603604081101561019f57600080fd5b50600160a060020a0381351690602001356103e1565b604080519115158252519081900360200190f35b6101d1610448565b60408051918252519081900360200190f35b6101b5600480360360608110156101f957600080fd5b50600160a060020a0381358116916020810135909116906040013561047a565b610221610573565b6040805160ff9092168252519081900360200190f35b6101d161057c565b6101d16004803603602081101561025557600080fd5b5035600160a060020a0316610582565b61011461059d565b6101d16004803603604081101561028357600080fd5b50803590602001356105f7565b6101b5600480360360408110156102a657600080fd5b50600160a060020a03813516906020013561060c565b6101d1600480360360408110156102d257600080fd5b50803590602001356106b0565b6101d1600480360360408110156102f557600080fd5b50803590602001356106d1565b6101d16004803603604081101561031857600080fd5b50600160a060020a03813581169160200135166106f6565b6101d16004803603604081101561034657600080fd5b5080359060200135610721565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103d95780601f106103ae576101008083540402835291602001916103d9565b820191906000526020600020905b8154815290600101906020018083116103bc57829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546003540390565b600160a060020a03831660009081526004602052604081205461049d90836105f7565b600160a060020a03851660009081526004602090815260408083209390935560058152828220338352905220546104d490836105f7565b600160a060020a0380861660009081526005602090815260408083203384528252808320949094559186168152600490915220546105129083610721565b600160a060020a0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60035481565b600160a060020a031660009081526004602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103d95780601f106103ae576101008083540402835291602001916103d9565b60008282111561060657600080fd5b50900390565b3360009081526004602052604081205461062690836105f7565b3360009081526004602052604080822092909255600160a060020a038516815220546106529083610721565b600160a060020a0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60008082116106be57600080fd5b81838115156106c957fe5b049392505050565b8181028215806106eb57508183828115156106e857fe5b04145b151561044257600080fd5b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b8181018281101561044257600080fdfea165627a7a723058207d353d75463b1a5fe627e3ca87f17d5a973f721bc3a7a1c89b4c8c2a1b70f2330029
Deployed Bytecode Sourcemap
1642:1985:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1642:1985:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1693:18;;;:::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;1693:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2757:208;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2757:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;2342:112;;;:::i;:::-;;;;;;;;;;;;;;;;3266:358;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3266:358:0;;;;;;;;;;;;;;;;;:::i;1745:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1780:27;;;:::i;2466:120::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2466:120:0;-1:-1:-1;;;;;2466:120:0;;:::i;1718:20::-;;;:::i;1316:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1316:102:0;;;;;;;:::i;2977:277::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2977:277:0;;;;;;;;:::i;1527:106::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1527:106:0;;;;;;;:::i;1419:107::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1419:107:0;;;;;;;:::i;2598:147::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2598:147:0;;;;;;;;;;:::i;1194:116::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1194:116:0;;;;;;;:::i;1693:18::-;;;;;;;;;;;;;;;-1:-1:-1;;1693:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2757:208::-;2853:10;2820:12;2845:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2845:28:0;;;;;;;;;;;:37;;;2898;;;;;;;2820:12;;2845:28;;2853:10;;2898:37;;;;;;;;-1:-1:-1;2953:4:0;2757:208;;;;;:::o;2342:112::-;2386:4;2426:20;;:8;:20;;;;2410:12;;:36;2342:112;:::o;3266:358::-;-1:-1:-1;;;;;3393:14:0;;3343:12;3393:14;;;:8;:14;;;;;;3385:31;;3409:6;3385:7;:31::i;:::-;-1:-1:-1;;;;;3368:14:0;;;;;;:8;:14;;;;;;;;:48;;;;3463:7;:13;;;;;3477:10;3463:25;;;;;;3455:42;;3490:6;3455:7;:42::i;:::-;-1:-1:-1;;;;;3427:13:0;;;;;;;:7;:13;;;;;;;;3441:10;3427:25;;;;;;;:70;;;;3531:12;;;;;:8;:12;;;;;3523:29;;3545:6;3523:7;:29::i;:::-;-1:-1:-1;;;;;3508:12:0;;;;;;;:8;:12;;;;;;;;;:44;;;;3568:26;;;;;;;3508:12;;3568:26;;;;;;;;;;;;;-1:-1:-1;3612:4:0;3266:358;;;;;:::o;1745:21::-;;;;;;:::o;1780:27::-;;;;:::o;2466:120::-;-1:-1:-1;;;;;2558:20:0;2526:12;2558:20;;;:8;:20;;;;;;;2466:120::o;1718:20::-;;;;;;;;;;;;;;;-1:-1:-1;;1718:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1316:102;1370:6;1397;;;;1389:15;;;;;;-1:-1:-1;1410:5:0;;;1316:102::o;2977:277::-;3101:10;3036:12;3092:20;;;:8;:20;;;;;;3084:37;;3114:6;3084:7;:37::i;:::-;3070:10;3061:20;;;;:8;:20;;;;;;:60;;;;-1:-1:-1;;;;;3155:12:0;;;;;;3147:29;;3169:6;3147:7;:29::i;:::-;-1:-1:-1;;;;;3132:12:0;;;;;;:8;:12;;;;;;;;;:44;;;;3192:32;;;;;;;3132:12;;3201:10;;3192:32;;;;;;;;;;-1:-1:-1;3242:4:0;2977:277;;;;:::o;1527:106::-;1581:6;1599:5;;;1591:14;;;;;;1624:1;1620;:5;;;;;;;;;1527:106;-1:-1:-1;;;1527:106:0:o;1419:107::-;1487:5;;;1502:6;;;:20;;;1521:1;1516;1512;:5;;;;;;;;:10;1502:20;1494:29;;;;;;;2598:147;-1:-1:-1;;;;;2709:19:0;;;2675:14;2709:19;;;:7;:19;;;;;;;;:28;;;;;;;;;;;;;2598:147::o;1194:116::-;1271:5;;;1295:6;;;;1287:15;;;;
Swarm Source
bzzr://7d353d75463b1a5fe627e3ca87f17d5a973f721bc3a7a1c89b4c8c2a1b70f233
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.