Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
3.159632355619599442 TYT
Holders
15
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.049632355619599442 TYTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ThankYouToken
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-19 */ pragma solidity 0.5.17; contract ThankYouToken { string public name = "Thank You Token"; string public symbol = "TYT"; uint8 public decimals = 18; uint public totalSupply; address public constant vault = address(0x83D0D842e6DB3B020f384a2af11bD14787BEC8E7); event Approval(address indexed src, address indexed guy, uint wad); event Transfer(address indexed src, address indexed dst, uint wad); event Donate(address indexed src, uint wad); mapping (address => uint) public balanceOf; mapping (address => mapping (address => uint)) public allowance; function() external payable { donate(); } function donate() public payable { balanceOf[msg.sender] += msg.value; totalSupply += msg.value; (bool success,) = vault.call.value(msg.value)(""); require(success); emit Donate(msg.sender, msg.value); emit Transfer(address(0), msg.sender, msg.value); } function approve(address guy, uint wad) public returns (bool) { allowance[msg.sender][guy] = wad; emit Approval(msg.sender, guy, wad); return true; } function transfer(address dst, uint wad) public returns (bool) { return transferFrom(msg.sender, dst, wad); } function transferFrom(address src, address dst, uint wad) public returns (bool) { require(balanceOf[src] >= wad); if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) { require(allowance[src][msg.sender] >= wad); allowance[src][msg.sender] -= wad; } balanceOf[src] -= wad; balanceOf[dst] += wad; emit Transfer(src, dst, wad); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Donate","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":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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":"guy","type":"address"},{"internalType":"uint256","name":"wad","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":false,"inputs":[],"name":"donate","outputs":[],"payable":true,"stateMutability":"payable","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":"wad","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":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
60c0604052600f60808190526e2a3430b735902cb7ba902a37b5b2b760891b60a0908152610030916000919061007b565b506040805180820190915260038082526215165560ea1b602090920191825261005b9160019161007b565b506002805460ff1916601217905534801561007557600080fd5b50610116565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100bc57805160ff19168380011785556100e9565b828001600101855582156100e9579182015b828111156100e95782518255916020019190600101906100ce565b506100f59291506100f9565b5090565b61011391905b808211156100f557600081556001016100ff565b90565b610716806101256000396000f3fe60806040526004361061009c5760003560e01c806370a082311161006457806370a082311461021257806395d89b4114610245578063a9059cbb1461025a578063dd62ed3e14610293578063ed88c68e1461009c578063fbfa77cf146102ce5761009c565b806306fdde03146100a6578063095ea7b31461013057806318160ddd1461017d57806323b872dd146101a4578063313ce567146101e7575b6100a46102ff565b005b3480156100b257600080fd5b506100bb6103f5565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f55781810151838201526020016100dd565b50505050905090810190601f1680156101225780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013c57600080fd5b506101696004803603604081101561015357600080fd5b506001600160a01b038135169060200135610483565b604080519115158252519081900360200190f35b34801561018957600080fd5b506101926104e9565b60408051918252519081900360200190f35b3480156101b057600080fd5b50610169600480360360608110156101c757600080fd5b506001600160a01b038135811691602081013590911690604001356104ef565b3480156101f357600080fd5b506101fc610623565b6040805160ff9092168252519081900360200190f35b34801561021e57600080fd5b506101926004803603602081101561023557600080fd5b50356001600160a01b031661062c565b34801561025157600080fd5b506100bb61063e565b34801561026657600080fd5b506101696004803603604081101561027d57600080fd5b506001600160a01b038135169060200135610698565b34801561029f57600080fd5b50610192600480360360408110156102b657600080fd5b506001600160a01b03813581169160200135166106ac565b3480156102da57600080fd5b506102e36106c9565b604080516001600160a01b039092168252519081900360200190f35b33600090815260046020526040808220805434908101909155600380548201905590517383d0d842e6db3b020f384a2af11bd14787bec8e791908381818185875af1925050503d8060008114610371576040519150601f19603f3d011682016040523d82523d6000602084013e610376565b606091505b505090508061038457600080fd5b60408051348152905133917f0553260a2e46b0577270d8992db02d30856ca880144c72d6e9503760946aef13919081900360200190a260408051348152905133916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561047b5780601f106104505761010080835404028352916020019161047b565b820191906000526020600020905b81548152906001019060200180831161045e57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6001600160a01b03831660009081526004602052604081205482111561051457600080fd5b6001600160a01b038416331480159061055257506001600160a01b038416600090815260056020908152604080832033845290915290205460001914155b156105b2576001600160a01b038416600090815260056020908152604080832033845290915290205482111561058757600080fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020805483900390555b6001600160a01b03808516600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60025460ff1681565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561047b5780601f106104505761010080835404028352916020019161047b565b60006106a53384846104ef565b9392505050565b600560209081526000928352604080842090915290825290205481565b7383d0d842e6db3b020f384a2af11bd14787bec8e78156fea265627a7a72315820e65a25b5be2a43243ee6f08c724c4d30028b277987f8a501bdd7dfb51b0fbddf64736f6c63430005110032
Deployed Bytecode
0x60806040526004361061009c5760003560e01c806370a082311161006457806370a082311461021257806395d89b4114610245578063a9059cbb1461025a578063dd62ed3e14610293578063ed88c68e1461009c578063fbfa77cf146102ce5761009c565b806306fdde03146100a6578063095ea7b31461013057806318160ddd1461017d57806323b872dd146101a4578063313ce567146101e7575b6100a46102ff565b005b3480156100b257600080fd5b506100bb6103f5565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f55781810151838201526020016100dd565b50505050905090810190601f1680156101225780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013c57600080fd5b506101696004803603604081101561015357600080fd5b506001600160a01b038135169060200135610483565b604080519115158252519081900360200190f35b34801561018957600080fd5b506101926104e9565b60408051918252519081900360200190f35b3480156101b057600080fd5b50610169600480360360608110156101c757600080fd5b506001600160a01b038135811691602081013590911690604001356104ef565b3480156101f357600080fd5b506101fc610623565b6040805160ff9092168252519081900360200190f35b34801561021e57600080fd5b506101926004803603602081101561023557600080fd5b50356001600160a01b031661062c565b34801561025157600080fd5b506100bb61063e565b34801561026657600080fd5b506101696004803603604081101561027d57600080fd5b506001600160a01b038135169060200135610698565b34801561029f57600080fd5b50610192600480360360408110156102b657600080fd5b506001600160a01b03813581169160200135166106ac565b3480156102da57600080fd5b506102e36106c9565b604080516001600160a01b039092168252519081900360200190f35b33600090815260046020526040808220805434908101909155600380548201905590517383d0d842e6db3b020f384a2af11bd14787bec8e791908381818185875af1925050503d8060008114610371576040519150601f19603f3d011682016040523d82523d6000602084013e610376565b606091505b505090508061038457600080fd5b60408051348152905133917f0553260a2e46b0577270d8992db02d30856ca880144c72d6e9503760946aef13919081900360200190a260408051348152905133916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561047b5780601f106104505761010080835404028352916020019161047b565b820191906000526020600020905b81548152906001019060200180831161045e57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6001600160a01b03831660009081526004602052604081205482111561051457600080fd5b6001600160a01b038416331480159061055257506001600160a01b038416600090815260056020908152604080832033845290915290205460001914155b156105b2576001600160a01b038416600090815260056020908152604080832033845290915290205482111561058757600080fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020805483900390555b6001600160a01b03808516600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60025460ff1681565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561047b5780601f106104505761010080835404028352916020019161047b565b60006106a53384846104ef565b9392505050565b600560209081526000928352604080842090915290825290205481565b7383d0d842e6db3b020f384a2af11bd14787bec8e78156fea265627a7a72315820e65a25b5be2a43243ee6f08c724c4d30028b277987f8a501bdd7dfb51b0fbddf64736f6c63430005110032
Deployed Bytecode Sourcemap
27:1804:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;687:8;:6;:8::i;:::-;27:1804;57:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57:42: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;57:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:181;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1031:181:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1031:181:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;177:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;177:23:0;;;:::i;:::-;;;;;;;;;;;;;;;;1351:477;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1351:477:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1351:477:0;;;;;;;;;;;;;;;;;:::i;143:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;143:27:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;502:65;;8:9:-1;5:2;;;30:1;27;20:12;5:2;502:65:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;502:65:0;-1:-1:-1;;;;;502:65:0;;:::i;106:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106:30:0;;;:::i;1220:123::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1220:123:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1220:123:0;;;;;;;;:::i;574:65::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;574:65:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;574:65:0;;;;;;;;;;:::i;209:83::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;209:83:0;;;:::i;:::-;;;;-1:-1:-1;;;;;209:83:0;;;;;;;;;;;;;;711:312;765:10;755:21;;;;:9;:21;;;;;;:34;;780:9;755:34;;;;;;800:11;:24;;;;;;853:31;;249:42;;780:9;755:21;853:31;755:21;853:31;780:9;249:42;853:31;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;835:49:0;;;903:7;895:16;;;;;;927:29;;;946:9;927:29;;;;934:10;;927:29;;;;;;;;;;972:43;;;1005:9;972:43;;;;993:10;;989:1;;972:43;;;;;;;;;711:312;:::o;57:42::-;;;;;;;;;;;;;;;-1:-1:-1;;57:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1031:181::-;1114:10;1087:4;1104:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1104:26:0;;;;;;;;;;;:32;;;1152:30;;;;;;;1087:4;;1104:26;;1114:10;;1152:30;;;;;;;;-1:-1:-1;1200:4:0;1031:181;;;;:::o;177:23::-;;;;:::o;1351:477::-;-1:-1:-1;;;;;1473:14:0;;1443:4;1473:14;;;:9;:14;;;;;;:21;-1:-1:-1;1473:21:0;1465:30;;;;;;-1:-1:-1;;;;;1512:17:0;;1519:10;1512:17;;;;:59;;-1:-1:-1;;;;;;1533:14:0;;;;;;:9;:14;;;;;;;;1548:10;1533:26;;;;;;;;-1:-1:-1;;1533:38:0;;1512:59;1508:182;;;-1:-1:-1;;;;;1596:14:0;;;;;;:9;:14;;;;;;;;1611:10;1596:26;;;;;;;;:33;-1:-1:-1;1596:33:0;1588:42;;;;;;-1:-1:-1;;;;;1645:14:0;;;;;;:9;:14;;;;;;;;1660:10;1645:26;;;;;;;:33;;;;;;;1508:182;-1:-1:-1;;;;;1702:14:0;;;;;;;:9;:14;;;;;;;;:21;;;;;;;1734:14;;;;;;;;;;:21;;;;;;1773:23;;;;;;;1734:14;;1773:23;;;;;;;;;;;-1:-1:-1;1816:4:0;1351:477;;;;;:::o;143:27::-;;;;;;:::o;502:65::-;;;;;;;;;;;;;:::o;106:30::-;;;;;;;;;;;;;;;-1:-1:-1;;106:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1220:123;1277:4;1301:34;1314:10;1326:3;1331;1301:12;:34::i;:::-;1294:41;1220:123;-1:-1:-1;;;1220:123:0:o;574:65::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;209:83::-;249:42;209:83;:::o
Swarm Source
bzzr://e65a25b5be2a43243ee6f08c724c4d30028b277987f8a501bdd7dfb51b0fbddf
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.