Overview
APE Balance
0 APE
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60c06040 | 2792701 | 19 days ago | IN | 0 APE | 0.01453094 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
WAPE
Compiler Version
v0.8.24+commit.e11b9ed9
Contract Source Code (Solidity)
/** *Submitted for verification at apescan.io on 2024-10-30 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; contract WAPE { string public name = "Wrapped APE"; string public symbol = "WAPE"; uint8 public decimals = 18; event Approval(address indexed src, address indexed guy, uint256 wad); event Transfer(address indexed src, address indexed dst, uint256 wad); event Deposit(address indexed dst, uint256 wad); event Withdrawal(address indexed src, uint256 wad); mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; function deposit() public payable { balanceOf[msg.sender] += msg.value; emit Deposit(msg.sender, msg.value); } function withdraw(uint256 wad) public { require(balanceOf[msg.sender] >= wad, "Insufficient balance"); balanceOf[msg.sender] -= wad; payable(msg.sender).transfer(wad); emit Withdrawal(msg.sender, wad); } function totalSupply() public view returns (uint256) { return address(this).balance; } function approve(address guy, uint256 wad) public returns (bool) { allowance[msg.sender][guy] = wad; emit Approval(msg.sender, guy, wad); return true; } function transfer(address dst, uint256 wad) public returns (bool) { return transferFrom(msg.sender, dst, wad); } function transferFrom( address src, address dst, uint256 wad ) public returns (bool) { require(balanceOf[src] >= wad, "Insufficient balance for transfer"); if ( src != msg.sender && allowance[src][msg.sender] != type(uint256).max ) { 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":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Deposit","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052600b60809081526a577261707065642041504560a81b60a0525f906100299082610109565b506040805180820190915260048152635741504560e01b60208201526001906100529082610109565b506002805460ff1916601217905534801561006b575f80fd5b506101c8565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061009957607f821691505b6020821081036100b757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561010457805f5260205f20601f840160051c810160208510156100e25750805b601f840160051c820191505b81811015610101575f81556001016100ee565b50505b505050565b81516001600160401b0381111561012257610122610071565b610136816101308454610085565b846100bd565b602080601f831160018114610169575f84156101525750858301515b5f19600386901b1c1916600185901b1785556101c0565b5f85815260208120601f198616915b8281101561019757888601518255948401946001909101908401610178565b50858210156101b457878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b610805806101d55f395ff3fe60806040526004361061009a575f3560e01c8063313ce56711610062578063313ce5671461015357806370a082311461017e57806395d89b41146101a9578063a9059cbb146101bd578063d0e30db0146101dc578063dd62ed3e146101e4575f80fd5b806306fdde031461009e578063095ea7b3146100c857806318160ddd146100f757806323b872dd146101135780632e1a7d4d14610132575b5f80fd5b3480156100a9575f80fd5b506100b261021a565b6040516100bf9190610634565b60405180910390f35b3480156100d3575f80fd5b506100e76100e236600461069b565b6102a5565b60405190151581526020016100bf565b348015610102575f80fd5b50475b6040519081526020016100bf565b34801561011e575f80fd5b506100e761012d3660046106c3565b610311565b34801561013d575f80fd5b5061015161014c3660046106fc565b6104df565b005b34801561015e575f80fd5b5060025461016c9060ff1681565b60405160ff90911681526020016100bf565b348015610189575f80fd5b50610105610198366004610713565b60036020525f908152604090205481565b3480156101b4575f80fd5b506100b26105ba565b3480156101c8575f80fd5b506100e76101d736600461069b565b6105c7565b6101516105da565b3480156101ef575f80fd5b506101056101fe36600461072c565b600460209081525f928352604080842090915290825290205481565b5f80546102269061075d565b80601f01602080910402602001604051908101604052809291908181526020018280546102529061075d565b801561029d5780601f106102745761010080835404028352916020019161029d565b820191905f5260205f20905b81548152906001019060200180831161028057829003601f168201915b505050505081565b335f8181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102ff9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383165f908152600360205260408120548211156103875760405162461bcd60e51b815260206004820152602160248201527f496e73756666696369656e742062616c616e636520666f72207472616e7366656044820152603960f91b60648201526084015b60405180910390fd5b6001600160a01b03841633148015906103c357506001600160a01b0384165f9081526004602090815260408083203384529091529020545f1914155b1561042e576001600160a01b0384165f9081526004602090815260408083203384529091529020548211156103f6575f80fd5b6001600160a01b0384165f908152600460209081526040808320338452909152812080548492906104289084906107a9565b90915550505b6001600160a01b0384165f90815260036020526040812080548492906104559084906107a9565b90915550506001600160a01b0383165f90815260036020526040812080548492906104819084906107bc565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516104cd91815260200190565b60405180910390a35060019392505050565b335f908152600360205260409020548111156105345760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161037e565b335f90815260036020526040812080548392906105529084906107a9565b9091555050604051339082156108fc029083905f818181858888f19350505050158015610581573d5f803e3d5ffd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102269061075d565b5f6105d3338484610311565b9392505050565b335f90815260036020526040812080543492906105f89084906107bc565b909155505060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b5f602080835283518060208501525f5b8181101561066057858101830151858201604001528201610644565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610696575f80fd5b919050565b5f80604083850312156106ac575f80fd5b6106b583610680565b946020939093013593505050565b5f805f606084860312156106d5575f80fd5b6106de84610680565b92506106ec60208501610680565b9150604084013590509250925092565b5f6020828403121561070c575f80fd5b5035919050565b5f60208284031215610723575f80fd5b6105d382610680565b5f806040838503121561073d575f80fd5b61074683610680565b915061075460208401610680565b90509250929050565b600181811c9082168061077157607f821691505b60208210810361078f57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561030b5761030b610795565b8082018082111561030b5761030b61079556fea2646970667358221220f74a7403dc2228570a1f64cad693e4dd889c056a592d9c8b734a70f990a618e864736f6c63430008180033
Deployed Bytecode
0x60806040526004361061009a575f3560e01c8063313ce56711610062578063313ce5671461015357806370a082311461017e57806395d89b41146101a9578063a9059cbb146101bd578063d0e30db0146101dc578063dd62ed3e146101e4575f80fd5b806306fdde031461009e578063095ea7b3146100c857806318160ddd146100f757806323b872dd146101135780632e1a7d4d14610132575b5f80fd5b3480156100a9575f80fd5b506100b261021a565b6040516100bf9190610634565b60405180910390f35b3480156100d3575f80fd5b506100e76100e236600461069b565b6102a5565b60405190151581526020016100bf565b348015610102575f80fd5b50475b6040519081526020016100bf565b34801561011e575f80fd5b506100e761012d3660046106c3565b610311565b34801561013d575f80fd5b5061015161014c3660046106fc565b6104df565b005b34801561015e575f80fd5b5060025461016c9060ff1681565b60405160ff90911681526020016100bf565b348015610189575f80fd5b50610105610198366004610713565b60036020525f908152604090205481565b3480156101b4575f80fd5b506100b26105ba565b3480156101c8575f80fd5b506100e76101d736600461069b565b6105c7565b6101516105da565b3480156101ef575f80fd5b506101056101fe36600461072c565b600460209081525f928352604080842090915290825290205481565b5f80546102269061075d565b80601f01602080910402602001604051908101604052809291908181526020018280546102529061075d565b801561029d5780601f106102745761010080835404028352916020019161029d565b820191905f5260205f20905b81548152906001019060200180831161028057829003601f168201915b505050505081565b335f8181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102ff9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383165f908152600360205260408120548211156103875760405162461bcd60e51b815260206004820152602160248201527f496e73756666696369656e742062616c616e636520666f72207472616e7366656044820152603960f91b60648201526084015b60405180910390fd5b6001600160a01b03841633148015906103c357506001600160a01b0384165f9081526004602090815260408083203384529091529020545f1914155b1561042e576001600160a01b0384165f9081526004602090815260408083203384529091529020548211156103f6575f80fd5b6001600160a01b0384165f908152600460209081526040808320338452909152812080548492906104289084906107a9565b90915550505b6001600160a01b0384165f90815260036020526040812080548492906104559084906107a9565b90915550506001600160a01b0383165f90815260036020526040812080548492906104819084906107bc565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516104cd91815260200190565b60405180910390a35060019392505050565b335f908152600360205260409020548111156105345760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161037e565b335f90815260036020526040812080548392906105529084906107a9565b9091555050604051339082156108fc029083905f818181858888f19350505050158015610581573d5f803e3d5ffd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102269061075d565b5f6105d3338484610311565b9392505050565b335f90815260036020526040812080543492906105f89084906107bc565b909155505060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b5f602080835283518060208501525f5b8181101561066057858101830151858201604001528201610644565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610696575f80fd5b919050565b5f80604083850312156106ac575f80fd5b6106b583610680565b946020939093013593505050565b5f805f606084860312156106d5575f80fd5b6106de84610680565b92506106ec60208501610680565b9150604084013590509250925092565b5f6020828403121561070c575f80fd5b5035919050565b5f60208284031215610723575f80fd5b6105d382610680565b5f806040838503121561073d575f80fd5b61074683610680565b915061075460208401610680565b90509250929050565b600181811c9082168061077157607f821691505b60208210810361078f57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561030b5761030b610795565b8082018082111561030b5761030b61079556fea2646970667358221220f74a7403dc2228570a1f64cad693e4dd889c056a592d9c8b734a70f990a618e864736f6c63430008180033
Deployed Bytecode Sourcemap
61:1913:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82:34;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1084:184;;;;;;;;;;-1:-1:-1;1084:184:0;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;1084:184:0;1004:187:1;976:100:0;;;;;;;;;;-1:-1:-1;1047:21:0;976:100;;;1342:25:1;;;1330:2;1315:18;976:100:0;1196:177:1;1410:561:0;;;;;;;;;;-1:-1:-1;1410:561:0;;;;;:::i;:::-;;:::i;724:244::-;;;;;;;;;;-1:-1:-1;724:244:0;;;;;:::i;:::-;;:::i;:::-;;159:26;;;;;;;;;;-1:-1:-1;159:26:0;;;;;;;;;;;2068:4:1;2056:17;;;2038:36;;2026:2;2011:18;159:26:0;1896:184:1;459:44:0;;;;;;;;;;-1:-1:-1;459:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;123:29;;;;;;;;;;;;;:::i;1276:126::-;;;;;;;;;;-1:-1:-1;1276:126:0;;;;;:::i;:::-;;:::i;583:133::-;;;:::i;510:64::-;;;;;;;;;;-1:-1:-1;510:64:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;82:34;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1084:184::-;1170:10;1143:4;1160:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1160:26:0;;;;;;;;;;:32;;;1208:30;1143:4;;1160:26;;1208:30;;;;1189:3;1342:25:1;;1330:2;1315:18;;1196:177;1208:30:0;;;;;;;;-1:-1:-1;1256:4:0;1084:184;;;;;:::o;1410:561::-;-1:-1:-1;;;;;1546:14:0;;1521:4;1546:14;;;:9;:14;;;;;;:21;-1:-1:-1;1546:21:0;1538:67;;;;-1:-1:-1;;;1538:67:0;;3128:2:1;1538:67:0;;;3110:21:1;3167:2;3147:18;;;3140:30;3206:34;3186:18;;;3179:62;-1:-1:-1;;;3257:18:1;;;3250:31;3298:19;;1538:67:0;;;;;;;;;-1:-1:-1;;;;;1636:17:0;;1643:10;1636:17;;;;:68;;-1:-1:-1;;;;;;1657:14:0;;;;;;:9;:14;;;;;;;;1672:10;1657:26;;;;;;;;-1:-1:-1;;1657:47:0;;1636:68;1618:215;;;-1:-1:-1;;;;;1739:14:0;;;;;;:9;:14;;;;;;;;1754:10;1739:26;;;;;;;;:33;-1:-1:-1;1739:33:0;1731:42;;;;;;-1:-1:-1;;;;;1788:14:0;;;;;;:9;:14;;;;;;;;1803:10;1788:26;;;;;;;:33;;1818:3;;1788:14;:33;;1818:3;;1788:33;:::i;:::-;;;;-1:-1:-1;;1618:215:0;-1:-1:-1;;;;;1845:14:0;;;;;;:9;:14;;;;;:21;;1863:3;;1845:14;:21;;1863:3;;1845:21;:::i;:::-;;;;-1:-1:-1;;;;;;;1877:14:0;;;;;;:9;:14;;;;;:21;;1895:3;;1877:14;:21;;1895:3;;1877:21;:::i;:::-;;;;;;;;1930:3;-1:-1:-1;;;;;1916:23:0;1925:3;-1:-1:-1;;;;;1916:23:0;;1935:3;1916:23;;;;1342:25:1;;1330:2;1315:18;;1196:177;1916:23:0;;;;;;;;-1:-1:-1;1959:4:0;1410:561;;;;;:::o;724:244::-;791:10;781:21;;;;:9;:21;;;;;;:28;-1:-1:-1;781:28:0;773:61;;;;-1:-1:-1;;;773:61:0;;3925:2:1;773:61:0;;;3907:21:1;3964:2;3944:18;;;3937:30;-1:-1:-1;;;3983:18:1;;;3976:50;4043:18;;773:61:0;3723:344:1;773:61:0;855:10;845:21;;;;:9;:21;;;;;:28;;870:3;;845:21;:28;;870:3;;845:28;:::i;:::-;;;;-1:-1:-1;;884:33:0;;892:10;;884:33;;;;;913:3;;884:33;;;;913:3;892:10;884:33;;;;;;;;;;;;;;;;;;;;-1:-1:-1;933:27:0;;1342:25:1;;;944:10:0;;933:27;;1330:2:1;1315:18;933:27:0;;;;;;;724:244;:::o;123:29::-;;;;;;;:::i;1276:126::-;1336:4;1360:34;1373:10;1385:3;1390;1360:12;:34::i;:::-;1353:41;1276:126;-1:-1:-1;;;1276:126:0:o;583:133::-;638:10;628:21;;;;:9;:21;;;;;:34;;653:9;;628:21;:34;;653:9;;628:34;:::i;:::-;;;;-1:-1:-1;;678:30:0;;698:9;1342:25:1;;686:10:0;;678:30;;1330:2:1;1315:18;678:30:0;;;;;;;583:133::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;1711:180::-;1770:6;1823:2;1811:9;1802:7;1798:23;1794:32;1791:52;;;1839:1;1836;1829:12;1791:52;-1:-1:-1;1862:23:1;;1711:180;-1:-1:-1;1711:180:1:o;2085:186::-;2144:6;2197:2;2185:9;2176:7;2172:23;2168:32;2165:52;;;2213:1;2210;2203:12;2165:52;2236:29;2255:9;2236:29;:::i;2276:260::-;2344:6;2352;2405:2;2393:9;2384:7;2380:23;2376:32;2373:52;;;2421:1;2418;2411:12;2373:52;2444:29;2463:9;2444:29;:::i;:::-;2434:39;;2492:38;2526:2;2515:9;2511:18;2492:38;:::i;:::-;2482:48;;2276:260;;;;;:::o;2541:380::-;2620:1;2616:12;;;;2663;;;2684:61;;2738:4;2730:6;2726:17;2716:27;;2684:61;2791:2;2783:6;2780:14;2760:18;2757:38;2754:161;;2837:10;2832:3;2828:20;2825:1;2818:31;2872:4;2869:1;2862:15;2900:4;2897:1;2890:15;2754:161;;2541:380;;;:::o;3328:127::-;3389:10;3384:3;3380:20;3377:1;3370:31;3420:4;3417:1;3410:15;3444:4;3441:1;3434:15;3460:128;3527:9;;;3548:11;;;3545:37;;;3562:18;;:::i;3593:125::-;3658:9;;;3679:10;;;3676:36;;;3692:18;;:::i
Swarm Source
ipfs://f74a7403dc2228570a1f64cad693e4dd889c056a592d9c8b734a70f990a618e8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
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.