Skip to content
Verified contractPartialMIT

MultiSender

Address0x6b862e55393ee0bbd2600d6cf7da2dae4eda2e7d
Balance

0 ETH

 

Transactions

5

 

Compiler

solc 0.8.27

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.27+commit.40a35a09
Language
solidity
Optimization
Yes, 200 runs
EVM version
cancun
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
20,718,061
Creation transaction
0xae8ad3e25b…9e34571750

MultiSender.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.27;

contract MultiSender {

    function multiSendTokens(address _tokenAddress, address[] memory _recipients, uint256[] memory _amounts) external {
        require(_recipients.length == _amounts.length, "Arrays length mismatch");

        for (uint256 i = 0; i < _recipients.length; i++) {
            uint256 adjustedAmount = _amounts[i] * 10**18; // Adjust amount to 18 decimals

            require(
                ERC20(_tokenAddress).transferFrom(msg.sender, _recipients[i], adjustedAmount),
                "Token transfer failed"
            );
        }
    }
}


interface ERC20 {
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "cancun",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.