Skip to content
Verified contractExactMIT

DistroContract

Address0xbe0cb69a6f8107482e9dd771a8fa59804fba94ee
Balance

0 ETH

 

Transactions

56

 

Compiler

solc 0.6.12

 

Same code

Only this contract

 

Details

Compiler
solc 0.6.12+commit.27d51765
Language
solidity
Optimization
Yes, 200 runs
EVM version
istanbul
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
12,459,014
Creation transaction
0x4a6d7c1f90…fa7421b546

distro.sol

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

library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }


    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }


    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }


    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }


    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }


    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }


    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }


    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}



contract DistroContract {
    using SafeMath for uint256;

    address payable wallet1 = 0x4A1a435a550A05f940D1114af167b06308f2cE8E;
    address payable wallet2 = 0x653Cf82b7344e38eE7A2c73ce3A5CBA671944417;
    address payable wallet3 = 0x9fcA7e51Af009fC928976355e1C32BFc48E408bc;
    address payable wallet4 = 0xdD54346268ee90D06B2EBCbFE778476D00Bf6846;
    address payable wallet5 = 0x9502289Eaa0282b11a1730f34d19a11f2e59eD97;
    address payable wallet6 = 0x2FF02621648Cd1dA959F9C15111F3bC1fe33b9f0;

    receive() external payable {
        if (msg.sender == wallet6 || msg.sender == wallet5  || msg.sender == wallet4  || msg.sender == wallet3  || msg.sender == wallet2) {
            if (msg.value == 0) {
                require(address(this).balance > 100, "Insufficient contract balance to distribute.");
                uint256 total = address(this).balance;
                uint256 amount1 = total.mul(40).div(100);
                wallet1.transfer(amount1);
                uint256 amount2 = total.mul(12).div(100);
                wallet2.transfer(amount2);
                wallet3.transfer(amount2);
                wallet4.transfer(amount2);
                wallet5.transfer(amount2);
                wallet6.transfer(total.sub(amount1).sub(amount2.mul(4)));
            }
        }
    }


}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.