Skip to content
Verified contractPartialMIT

MultiTransfer

Address0x061d588c7e46ff716d6fee5d0da2f62a6e997986
Balance

0 ETH

 

Transactions

8

 

Compiler

solc 0.8.18

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.18+commit.87f61d96
Language
solidity
Optimization
Yes, 200 runs
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
16,821,291
Creation transaction
0xa725ae86d9…0011ab8726

MultiTransfer.sol

// SPDX-License-Identifier: MIT
pragma solidity =0.8.18;

interface IERC20 {
    function decimals() external view returns (uint8);
    function transfer(address recipient, uint256 amount) external returns (bool);
}
abstract contract Ownable {
    address internal owner;
    constructor(address _owner) {
        owner = _owner;
    }
    modifier onlyOwner() {
        require(isOwner(msg.sender) , "!Owner"); _;
    }
    function isOwner(address account) private view returns (bool) {
        return account == owner;
    }
    function renounceOwnership() public onlyOwner {
        owner = address(0);
        emit OwnershipTransferred(address(0));
    }  
    event OwnershipTransferred(address owner);
}
contract MultiTransfer is Ownable(msg.sender) {
    constructor() {}
    function transfer(IERC20 ERC, address[] calldata _a, uint256[] calldata _am) external onlyOwner {
        for(uint i = 0;i<_a.length;i++){
            ERC.transfer(_a[i], _am[i]*(10**ERC.decimals()));
        }
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.