ERC-20
MEME
Overview
Max Total Supply
1,000,000,000 BRETTOS
Holders
24 (0.00%)
Total Transfers
-
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:
Brettos
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-07-23 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.18; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval( address indexed owner, address indexed spender, uint256 value ); } contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } function owner() public view returns (address) { return _owner; } modifier onlyOwner() { require(isOwner()); _; } function isOwner() private view returns (bool) { return msg.sender == _owner; } function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal { require(newOwner != address(0)); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } contract Brettos is Context, IERC20, Ownable { string private constant _name = "Brettos"; string private constant _symbol = "BRETTOS"; uint256 private constant _totalSupply = 1_000_000_000 * 10**18; uint8 private constant _decimals = 18; mapping(address => uint256) private _balance; mapping(address => mapping(address => uint256)) private _allowances; constructor() { _balance[0xFF01FBEd27D20758bC8681F142B61fED1A819777] = _totalSupply; emit Transfer(address(0), 0xFF01FBEd27D20758bC8681F142B61fED1A819777, _totalSupply); } function name() public pure returns (string memory) { return _name; } function symbol() public pure returns (string memory) { return _symbol; } function decimals() public pure returns (uint8) { return _decimals; } function totalSupply() public pure override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view override returns (uint256) { return _balance[account]; } function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()] - amount ); return true; } function _approve( address owner, address spender, uint256 amount ) private { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(amount > 1e9, "Min transfer amt"); _balance[from] -= amount; _balance[to] += amount; emit Transfer(from, to, amount); } }
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":"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":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a373ff01fbed27d20758bc8681f142b61fed1a8197776000818152600160209081526b033b2e3c9fd0803ce80000007fc15105c37349229d885629e55b202e32408ed7e109a162d5f8a2556c48b5e8978190556040519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610793806100e26000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063715018a611610071578063715018a6146101785780638da5cb5b1461018257806395d89b411461019d578063a9059cbb146101c0578063dd62ed3e146101d3578063f2fde38b1461020c57600080fd5b806306fdde03146100b9578063095ea7b3146100ee57806318160ddd1461011157806323b872dd1461012d578063313ce5671461014057806370a082311461014f575b600080fd5b60408051808201909152600781526642726574746f7360c81b60208201525b6040516100e591906105fc565b60405180910390f35b6101016100fc366004610666565b61021f565b60405190151581526020016100e5565b6b033b2e3c9fd0803ce80000005b6040519081526020016100e5565b61010161013b366004610690565b610236565b604051601281526020016100e5565b61011f61015d3660046106cc565b6001600160a01b031660009081526001602052604090205490565b610180610288565b005b6000546040516001600160a01b0390911681526020016100e5565b60408051808201909152600781526642524554544f5360c81b60208201526100d8565b6101016101ce366004610666565b6102e9565b61011f6101e13660046106ee565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61018061021a3660046106cc565b6102f6565b600061022c338484610319565b5060015b92915050565b6000610243848484610443565b6001600160a01b03841660009081526002602090815260408083203380855292529091205461027e918691610279908690610737565b610319565b5060019392505050565b6000546001600160a01b0316331461029f57600080fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061022c338484610443565b6000546001600160a01b0316331461030d57600080fd5b6103168161058e565b50565b6001600160a01b0383166103805760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b0382166103e15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610377565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166104a75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610377565b633b9aca0081116104ed5760405162461bcd60e51b815260206004820152601060248201526f135a5b881d1c985b9cd9995c88185b5d60821b6044820152606401610377565b6001600160a01b03831660009081526001602052604081208054839290610515908490610737565b90915550506001600160a01b0382166000908152600160205260408120805483929061054290849061074a565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161043691815260200190565b6001600160a01b0381166105a157600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600060208083528351808285015260005b818110156106295785810183015185820160400152820161060d565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461066157600080fd5b919050565b6000806040838503121561067957600080fd5b6106828361064a565b946020939093013593505050565b6000806000606084860312156106a557600080fd5b6106ae8461064a565b92506106bc6020850161064a565b9150604084013590509250925092565b6000602082840312156106de57600080fd5b6106e78261064a565b9392505050565b6000806040838503121561070157600080fd5b61070a8361064a565b91506107186020840161064a565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561023057610230610721565b808201808211156102305761023061072156fea2646970667358221220b794a0669950204b601c822160096fc7e6df0f91cd96cd3213d4150655f2061a64736f6c63430008120033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063715018a611610071578063715018a6146101785780638da5cb5b1461018257806395d89b411461019d578063a9059cbb146101c0578063dd62ed3e146101d3578063f2fde38b1461020c57600080fd5b806306fdde03146100b9578063095ea7b3146100ee57806318160ddd1461011157806323b872dd1461012d578063313ce5671461014057806370a082311461014f575b600080fd5b60408051808201909152600781526642726574746f7360c81b60208201525b6040516100e591906105fc565b60405180910390f35b6101016100fc366004610666565b61021f565b60405190151581526020016100e5565b6b033b2e3c9fd0803ce80000005b6040519081526020016100e5565b61010161013b366004610690565b610236565b604051601281526020016100e5565b61011f61015d3660046106cc565b6001600160a01b031660009081526001602052604090205490565b610180610288565b005b6000546040516001600160a01b0390911681526020016100e5565b60408051808201909152600781526642524554544f5360c81b60208201526100d8565b6101016101ce366004610666565b6102e9565b61011f6101e13660046106ee565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61018061021a3660046106cc565b6102f6565b600061022c338484610319565b5060015b92915050565b6000610243848484610443565b6001600160a01b03841660009081526002602090815260408083203380855292529091205461027e918691610279908690610737565b610319565b5060019392505050565b6000546001600160a01b0316331461029f57600080fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061022c338484610443565b6000546001600160a01b0316331461030d57600080fd5b6103168161058e565b50565b6001600160a01b0383166103805760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b0382166103e15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610377565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166104a75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610377565b633b9aca0081116104ed5760405162461bcd60e51b815260206004820152601060248201526f135a5b881d1c985b9cd9995c88185b5d60821b6044820152606401610377565b6001600160a01b03831660009081526001602052604081208054839290610515908490610737565b90915550506001600160a01b0382166000908152600160205260408120805483929061054290849061074a565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161043691815260200190565b6001600160a01b0381166105a157600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600060208083528351808285015260005b818110156106295785810183015185820160400152820161060d565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461066157600080fd5b919050565b6000806040838503121561067957600080fd5b6106828361064a565b946020939093013593505050565b6000806000606084860312156106a557600080fd5b6106ae8461064a565b92506106bc6020850161064a565b9150604084013590509250925092565b6000602082840312156106de57600080fd5b6106e78261064a565b9392505050565b6000806040838503121561070157600080fd5b61070a8361064a565b91506107186020840161064a565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561023057610230610721565b808201808211156102305761023061072156fea2646970667358221220b794a0669950204b601c822160096fc7e6df0f91cd96cd3213d4150655f2061a64736f6c63430008120033
Deployed Bytecode Sourcemap
1989:2819:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2587:83;2657:5;;;;;;;;;;;;-1:-1:-1;;;2657:5:0;;;;2587:83;;;;;;;:::i;:::-;;;;;;;;3497:193;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;3497:193:0;1004:187:1;2864:100:0;2185:22;2864:100;;;1342:25:1;;;1330:2;1315:18;2864:100:0;1196:177:1;3698:350:0;;;;;;:::i;:::-;;:::i;2773:83::-;;;2249:2;1853:36:1;;1841:2;1826:18;2773:83:0;1711:184:1;2972:118:0;;;;;;:::i;:::-;-1:-1:-1;;;;;3065:17:0;3038:7;3065:17;;;:8;:17;;;;;;;2972:118;1530:140;;;:::i;:::-;;1264:79;1302:7;1329:6;1264:79;;-1:-1:-1;;;;;1329:6:0;;;2237:51:1;;2225:2;2210:18;1264:79:0;2091:203:1;2678:87:0;2750:7;;;;;;;;;;;;-1:-1:-1;;;2750:7:0;;;;2678:87;;3098:199;;;;;;:::i;:::-;;:::i;3305:184::-;;;;;;:::i;:::-;-1:-1:-1;;;;;3454:18:0;;;3422:7;3454:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3305:184;1678:109;;;;;;:::i;:::-;;:::i;3497:193::-;3599:4;3621:39;173:10;3644:7;3653:6;3621:8;:39::i;:::-;-1:-1:-1;3678:4:0;3497:193;;;;;:::o;3698:350::-;3830:4;3847:36;3857:6;3865:9;3876:6;3847:9;:36::i;:::-;-1:-1:-1;;;;;3965:19:0;;;;;;:11;:19;;;;;;;;173:10;3965:33;;;;;;;;;3894:124;;3917:6;;3965:42;;4001:6;;3965:42;:::i;:::-;3894:8;:124::i;:::-;-1:-1:-1;4036:4:0;3698:350;;;;;:::o;1530:140::-;1470:4;1508:6;-1:-1:-1;;;;;1508:6:0;1494:10;:20;1383:18;;;;;;1629:1:::1;1613:6:::0;;1592:40:::1;::::0;-1:-1:-1;;;;;1613:6:0;;::::1;::::0;1592:40:::1;::::0;1629:1;;1592:40:::1;1660:1;1643:19:::0;;-1:-1:-1;;;;;;1643:19:0::1;::::0;;1530:140::o;3098:199::-;3203:4;3225:42;173:10;3249:9;3260:6;3225:9;:42::i;1678:109::-;1470:4;1508:6;-1:-1:-1;;;;;1508:6:0;1494:10;:20;1383:18;;;;;;1751:28:::1;1770:8;1751:18;:28::i;:::-;1678:109:::0;:::o;4056:369::-;-1:-1:-1;;;;;4183:19:0;;4175:68;;;;-1:-1:-1;;;4175:68:0;;3031:2:1;4175:68:0;;;3013:21:1;3070:2;3050:18;;;3043:30;3109:34;3089:18;;;3082:62;-1:-1:-1;;;3160:18:1;;;3153:34;3204:19;;4175:68:0;;;;;;;;;-1:-1:-1;;;;;4262:21:0;;4254:68;;;;-1:-1:-1;;;4254:68:0;;3436:2:1;4254:68:0;;;3418:21:1;3475:2;3455:18;;;3448:30;3514:34;3494:18;;;3487:62;-1:-1:-1;;;3565:18:1;;;3558:32;3607:19;;4254:68:0;3234:398:1;4254:68:0;-1:-1:-1;;;;;4333:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;4385:32;;1342:25:1;;;4385:32:0;;1315:18:1;4385:32:0;;;;;;;;4056:369;;;:::o;4439:364::-;-1:-1:-1;;;;;4561:18:0;;4553:68;;;;-1:-1:-1;;;4553:68:0;;3839:2:1;4553:68:0;;;3821:21:1;3878:2;3858:18;;;3851:30;3917:34;3897:18;;;3890:62;-1:-1:-1;;;3968:18:1;;;3961:35;4013:19;;4553:68:0;3637:401:1;4553:68:0;4649:3;4640:6;:12;4632:41;;;;-1:-1:-1;;;4632:41:0;;4245:2:1;4632:41:0;;;4227:21:1;4284:2;4264:18;;;4257:30;-1:-1:-1;;;4303:18:1;;;4296:46;4359:18;;4632:41:0;4043:340:1;4632:41:0;-1:-1:-1;;;;;4688:14:0;;;;;;:8;:14;;;;;:24;;4706:6;;4688:14;:24;;4706:6;;4688:24;:::i;:::-;;;;-1:-1:-1;;;;;;;4727:12:0;;;;;;:8;:12;;;;;:22;;4743:6;;4727:12;:22;;4743:6;;4727:22;:::i;:::-;;;;;;;;4784:2;-1:-1:-1;;;;;4769:26:0;4778:4;-1:-1:-1;;;;;4769:26:0;;4788:6;4769:26;;;;1342:25:1;;1330:2;1315:18;;1196:177;1795:187:0;-1:-1:-1;;;;;1869:22:0;;1861:31;;;;;;1929:6;;;1908:38;;-1:-1:-1;;;;;1908:38:0;;;;1929:6;;;1908:38;;;1957:6;:17;;-1:-1:-1;;;;;;1957:17:0;-1:-1:-1;;;;;1957:17:0;;;;;;;;;;1795:187::o;14:548:1:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:186::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;2051:29;2070:9;2051:29;:::i;:::-;2041:39;1900:186;-1:-1:-1;;;1900:186:1:o;2299:260::-;2367:6;2375;2428:2;2416:9;2407:7;2403:23;2399:32;2396:52;;;2444:1;2441;2434:12;2396:52;2467:29;2486:9;2467:29;:::i;:::-;2457:39;;2515:38;2549:2;2538:9;2534:18;2515:38;:::i;:::-;2505:48;;2299:260;;;;;:::o;2564:127::-;2625:10;2620:3;2616:20;2613:1;2606:31;2656:4;2653:1;2646:15;2680:4;2677:1;2670:15;2696:128;2763:9;;;2784:11;;;2781:37;;;2798:18;;:::i;4388:125::-;4453:9;;;4474:10;;;4471:36;;;4487:18;;:::i
Swarm Source
ipfs://b794a0669950204b601c822160096fc7e6df0f91cd96cd3213d4150655f2061a
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.