Overview
APE Balance
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Ownable
Compiler Version
v0.8.28+commit.7893614a
Contract Source Code (Solidity)
/** *Submitted for verification at apescan.io on 2024-11-01 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.28; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner, "Only the owner can call this function"); _; } function renounceOwnership() public onlyOwner { emit OwnershipTransferred(owner, address(0)); owner = address(0); } } 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 transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function approve(address spender, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } contract BUIDL is Ownable, IERC20 { string public name = "APE Card"; string public symbol = "APRD"; uint8 public decimals = 18; uint256 private _totalSupply; bool tradingOpen = true; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; constructor() { _totalSupply = 100_000_000_000_000 * 10**uint256(decimals); _balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public override returns (bool) { address sender = msg.sender; require(sender != address(0), "Transfer from the zero address"); require(recipient != address(0), "Transfer to the zero address"); require(_balances[sender] >= amount, "Insufficient balance"); _balances[sender] -= amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { address spender = msg.sender; require(sender != address(0), "Transfer from the zero address"); require(recipient != address(0), "Transfer to the zero address"); require(_balances[sender] >= amount, "Insufficient balance"); require(_allowances[sender][spender] >= amount, "Allowance exceeded"); _balances[sender] -= amount; _balances[recipient] += amount; _allowances[sender][spender] -= amount; emit Transfer(sender, recipient, amount); return true; } function LockLPToken() public onlyOwner { tradingOpen = true; } function approve(address spender, uint256 amount) public override returns (bool) { address sender = msg.sender; require(sender != address(0), "Approve from the zero address"); require(spender != address(0), "Approve to the zero address"); _allowances[sender][spender] = amount; emit Approval(sender, spender, amount); return true; } function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052348015600e575f5ffd5b50335f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f98061005b5f395ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063715018a6146100385780638da5cb5b14610042575b5f5ffd5b610040610060565b005b61004a6101a9565b604051610057919061020c565b60405180910390f35b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100e5906102a5565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f5f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6101f6826101cd565b9050919050565b610206816101ec565b82525050565b5f60208201905061021f5f8301846101fd565b92915050565b5f82825260208201905092915050565b7f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e5f8201527f6374696f6e000000000000000000000000000000000000000000000000000000602082015250565b5f61028f602583610225565b915061029a82610235565b604082019050919050565b5f6020820190508181035f8301526102bc81610283565b905091905056fea2646970667358221220d478a36aa5879e0c5bee9b57fa1e782ff6b07ac8374b3f3186862ce9181bc0e664736f6c634300081c0033
Deployed Bytecode
0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063715018a6146100385780638da5cb5b14610042575b5f5ffd5b610040610060565b005b61004a6101a9565b604051610057919061020c565b60405180910390f35b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100e5906102a5565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f5f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6101f6826101cd565b9050919050565b610206816101ec565b82525050565b5f60208201905061021f5f8301846101fd565b92915050565b5f82825260208201905092915050565b7f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e5f8201527f6374696f6e000000000000000000000000000000000000000000000000000000602082015250565b5f61028f602583610225565b915061029a82610235565b604082019050919050565b5f6020820190508181035f8301526102bc81610283565b905091905056fea2646970667358221220d478a36aa5879e0c5bee9b57fa1e782ff6b07ac8374b3f3186862ce9181bc0e664736f6c634300081c0033
Deployed Bytecode Sourcemap
63:474:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;396:138;;;:::i;:::-;;87:20;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;396:138;321:5;;;;;;;;;;;307:19;;:10;:19;;;299:69;;;;;;;;;;;;:::i;:::-;;;;;;;;;494:1:::1;458:39;;479:5;;;;;;;;;;;458:39;;;;;;;;;;;;524:1;508:5;;:18;;;;;;;;;;;;;;;;;;396:138::o:0;87:20::-;;;;;;;;;;;;;:::o;7:126:1:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:96::-;176:7;205:24;223:5;205:24;:::i;:::-;194:35;;139:96;;;:::o;241:118::-;328:24;346:5;328:24;:::i;:::-;323:3;316:37;241:118;;:::o;365:222::-;458:4;496:2;485:9;481:18;473:26;;509:71;577:1;566:9;562:17;553:6;509:71;:::i;:::-;365:222;;;;:::o;593:169::-;677:11;711:6;706:3;699:19;751:4;746:3;742:14;727:29;;593:169;;;;:::o;768:224::-;908:34;904:1;896:6;892:14;885:58;977:7;972:2;964:6;960:15;953:32;768:224;:::o;998:366::-;1140:3;1161:67;1225:2;1220:3;1161:67;:::i;:::-;1154:74;;1237:93;1326:3;1237:93;:::i;:::-;1355:2;1350:3;1346:12;1339:19;;998:366;;;:::o;1370:419::-;1536:4;1574:2;1563:9;1559:18;1551:26;;1623:9;1617:4;1613:20;1609:1;1598:9;1594:17;1587:47;1651:131;1777:4;1651:131;:::i;:::-;1643:139;;1370:419;;;:::o
Swarm Source
ipfs://d478a36aa5879e0c5bee9b57fa1e782ff6b07ac8374b3f3186862ce9181bc0e6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.