Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit | 23043958 | 193 days ago | IN | 0.01 ETH | 0.00009562 |
Latest 6 internal transactions
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ReentrancyCat
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.30;
import "../interface/BugCat.sol";
contract ReentrancyCat is BugCat {
mapping(address => uint) public balance;
function deposit() public payable {
balance[msg.sender] += msg.value;
}
function withdraw() public {
(bool success, ) = msg.sender.call{value: balance[msg.sender]}("");
require(success);
balance[msg.sender] = 0;
}
function caress() public {
if (address(this).balance == 0) {
emit Meow(msg.sender, "reentrancy");
}
}
function remember() external view returns (bool) {
address TheDAO = 0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413;
return TheDAO.code.length > 0;
}
}// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.30;
interface BugCat {
event Meow(address indexed caretaker, string wound);
function caress() external;
function remember() external view returns (bool);
}{
"viaIR": true,
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caretaker","type":"address"},{"indexed":false,"internalType":"string","name":"wound","type":"string"}],"name":"Meow","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"caress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"remember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60808060405234601557610248908161001b8239f35b600080fdfe608080604052600436101561001357600080fd5b60003560e01c90816301288f3c146101b3575080633ccfd60b1461010c5780635ac687a8146100d9578063d0e30db0146100995763e3d670d71461005657600080fd5b34610094576020366003190112610094576004356001600160a01b038116908190036100945760005260006020526020604060002054604051908152f35b600080fd5b60003660031901126100945733600052600060205260406000208054903482018092116100c35755005b634e487b7160e01b600052601160045260246000fd5b3461009457600036600319011261009457602073bb9bc244d798123fde783fcc1c72d3bb8c1894133b1515604051908152f35b346100945760003660031901126100945733600052600060205260008080806040812054335af13d156101ae573d67ffffffffffffffff81116101985760405190601f8101601f19908116603f0116820167ffffffffffffffff811183821017610198576040528152600060203d92013e5b156100945733600052600060205260006040812055600080f35b634e487b7160e01b600052604160045260246000fd5b61017e565b346100945760003660031901126100945747156101cc57005b60208152600a6020820152697265656e7472616e637960b01b60408201527f55d68e0254b44d1d00659bd7e45544dea474c1b9d01304669332e1111dcd9d3360603392a200fea264697066735822122047035d28905bc373b1e74145d49a451b78a33da3f6c85822649380d964a74e3064736f6c634300081e0033
Deployed Bytecode
0x608080604052600436101561001357600080fd5b60003560e01c90816301288f3c146101b3575080633ccfd60b1461010c5780635ac687a8146100d9578063d0e30db0146100995763e3d670d71461005657600080fd5b34610094576020366003190112610094576004356001600160a01b038116908190036100945760005260006020526020604060002054604051908152f35b600080fd5b60003660031901126100945733600052600060205260406000208054903482018092116100c35755005b634e487b7160e01b600052601160045260246000fd5b3461009457600036600319011261009457602073bb9bc244d798123fde783fcc1c72d3bb8c1894133b1515604051908152f35b346100945760003660031901126100945733600052600060205260008080806040812054335af13d156101ae573d67ffffffffffffffff81116101985760405190601f8101601f19908116603f0116820167ffffffffffffffff811183821017610198576040528152600060203d92013e5b156100945733600052600060205260006040812055600080f35b634e487b7160e01b600052604160045260246000fd5b61017e565b346100945760003660031901126100945747156101cc57005b60208152600a6020820152697265656e7472616e637960b01b60408201527f55d68e0254b44d1d00659bd7e45544dea474c1b9d01304669332e1111dcd9d3360603392a200fea264697066735822122047035d28905bc373b1e74145d49a451b78a33da3f6c85822649380d964a74e3064736f6c634300081e0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.