Skip to content
Verified contractPartialMIT

Payout_DEUT5902185983205485219T_erc20

Address0x9ac3bf4105c1eb6c298e8bb8e0073707b8cf6ea8
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
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,436,367
Creation transaction
0x9ed33988ee…b5dac0e3dc

Payout_DEUT5902185983205485219T_erc20.sol

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

interface IERC20USDT {
    function transfer(address recipient, uint256 amount) external;
    function balanceOf(address account) external view returns (uint256);
}

contract Payout_DEUT5902185983205485219T_erc20 {
    address public constant USDT_ADDRESS = 0xdAC17F958D2ee523a2206206994597C13D831ec7;

    address public wallet1;
    address public wallet2;
    address public wallet3;


    event USDTDistributed(address indexed caller, uint256 totalAmount);

    constructor(
        address _wallet1,
        address _wallet2,
        address _wallet3

    ) {
        require(
            _wallet1 != address(0) &&
            _wallet2 != address(0) &&
            _wallet3 != address(0), 
            "Invalid wallet address"
        );

        wallet1 = _wallet1;
        wallet2 = _wallet2;
        wallet3 = _wallet3;
    }

    function distributeUSDT() public {
        IERC20USDT usdt = IERC20USDT(USDT_ADDRESS);
        uint256 balance = usdt.balanceOf(address(this));
        require(balance > 0, "No USDT balance to distribute");

        uint256 share2 = (balance * 1818) / 10000; // 5.00%
        uint256 share3 = (balance * 909)  / 10000; // 2.50%
        uint256 share1 = balance - (share2 + share3); // 20,00%

        usdt.transfer(wallet1, share1);
        usdt.transfer(wallet2, share2);
        usdt.transfer(wallet3, share3);


        emit USDTDistributed(msg.sender, balance);
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.