ETH Price: $3,117.76 (+1.53%)
Gas: 5 Gwei

Contract

0x7B855BAfB82d23392C7461e52c875a9265471fa1
 

Overview

ETH Balance

0.015363706705167095 ETH

Eth Value

$47.90 (@ $3,117.76/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Distribute197320182024-04-25 11:15:2375 days ago1714043723IN
0x7B855BAf...265471fa1
0 ETH0.000520359.10834249
Distribute189144242024-01-01 18:40:47190 days ago1704134447IN
0x7B855BAf...265471fa1
0 ETH0.0010335615.58213876
Distribute188490552023-12-23 14:17:47199 days ago1703341067IN
0x7B855BAf...265471fa1
0 ETH0.0018000830.18760631
Distribute186436902023-11-24 19:36:11228 days ago1700854571IN
0x7B855BAf...265471fa1
0 ETH0.0019275829.06049687
Distribute185975362023-11-18 8:26:11234 days ago1700295971IN
0x7B855BAf...265471fa1
0 ETH0.0016888628.32239948
Distribute185661892023-11-13 23:14:11239 days ago1699917251IN
0x7B855BAf...265471fa1
0 ETH0.0020269930.55926779
Distribute185343482023-11-09 12:20:11243 days ago1699532411IN
0x7B855BAf...265471fa1
0 ETH0.0016495927.66377204
Distribute185122442023-11-06 10:07:35246 days ago1699265255IN
0x7B855BAf...265471fa1
0 ETH0.0011707717.65075722
Distribute184972702023-11-04 7:45:11248 days ago1699083911IN
0x7B855BAf...265471fa1
0 ETH0.0010291515.5157251
Distribute184909082023-11-03 10:22:35249 days ago1699006955IN
0x7B855BAf...265471fa1
0 ETH0.0012480518.81587252
Distribute184839372023-11-02 10:54:59250 days ago1698922499IN
0x7B855BAf...265471fa1
0 ETH0.0010885118.25454321
Distribute184732312023-10-31 22:57:23252 days ago1698793043IN
0x7B855BAf...265471fa1
0 ETH0.0008474819.37987809
Distribute184732312023-10-31 22:57:23252 days ago1698793043IN
0x7B855BAf...265471fa1
0 ETH0.0008474819.37987809
Distribute184653892023-10-30 20:34:47253 days ago1698698087IN
0x7B855BAf...265471fa1
0 ETH0.0015721527.51885081
Distribute184447582023-10-27 23:14:59256 days ago1698448499IN
0x7B855BAf...265471fa1
0 ETH0.0007864913.76669922
Distribute184409392023-10-27 10:26:23256 days ago1698402383IN
0x7B855BAf...265471fa1
0 ETH0.000861614.44915709
Distribute184330432023-10-26 7:56:11257 days ago1698306971IN
0x7B855BAf...265471fa1
0 ETH0.0011135416.78788819
Distribute184299502023-10-25 21:33:11258 days ago1698269591IN
0x7B855BAf...265471fa1
0 ETH0.0014618624.51564874
Distribute183830992023-10-19 8:09:35264 days ago1697702975IN
0x7B855BAf...265471fa1
0 ETH0.000367326.42967941
Distribute183792752023-10-18 19:18:59265 days ago1697656739IN
0x7B855BAf...265471fa1
0 ETH0.0006707510.50850921
Distribute183706002023-10-17 14:10:35266 days ago1697551835IN
0x7B855BAf...265471fa1
0 ETH0.000942714.76892471
Distribute183503022023-10-14 18:06:59269 days ago1697306819IN
0x7B855BAf...265471fa1
0 ETH0.000305695.35080163
Distribute181443552023-09-15 21:44:59298 days ago1694814299IN
0x7B855BAf...265471fa1
0 ETH0.0007969912.48613908
Distribute180272092023-08-30 11:47:11314 days ago1693396031IN
0x7B855BAf...265471fa1
0 ETH0.0012487619.56391629
Distribute180166842023-08-29 0:22:11316 days ago1693268531IN
0x7B855BAf...265471fa1
0 ETH0.0011755520.57689906
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
202655292024-07-09 1:02:5927 hrs ago1720486979
0x7B855BAf...265471fa1
0.00042418 ETH
201497592024-06-22 20:54:5917 days ago1719089699
0x7B855BAf...265471fa1
0.00086123 ETH
201071612024-06-16 21:53:2323 days ago1718574803
0x7B855BAf...265471fa1
0.00085641 ETH
201049412024-06-16 14:25:5923 days ago1718547959
0x7B855BAf...265471fa1
0.00039695 ETH
200572122024-06-09 22:20:3530 days ago1717971635
0x7B855BAf...265471fa1
0.00067925 ETH
200361192024-06-06 23:38:2333 days ago1717717103
0x7B855BAf...265471fa1
0.00070873 ETH
200361032024-06-06 23:35:1133 days ago1717716911
0x7B855BAf...265471fa1
0.00185883 ETH
199720532024-05-29 0:50:3542 days ago1716943835
0x7B855BAf...265471fa1
0.00058446 ETH
199273372024-05-22 18:53:4748 days ago1716404027
0x7B855BAf...265471fa1
0.00087539 ETH
199259532024-05-22 14:15:5948 days ago1716387359
0x7B855BAf...265471fa1
0.00087539 ETH
199027662024-05-19 8:23:1151 days ago1716106991
0x7B855BAf...265471fa1
0.00072085 ETH
198558172024-05-12 18:46:2358 days ago1715539583
0x7B855BAf...265471fa1
0.00428722 ETH
198523592024-05-12 7:09:1158 days ago1715497751
0x7B855BAf...265471fa1
0.00055972 ETH
198289972024-05-09 0:45:3562 days ago1715215535
0x7B855BAf...265471fa1
0.00117783 ETH
198206312024-05-07 20:39:3563 days ago1715114375
0x7B855BAf...265471fa1
0.0006999 ETH
197894222024-05-03 11:54:4767 days ago1714737287
0x7B855BAf...265471fa1
0.00060645 ETH
197628272024-04-29 18:43:1171 days ago1714416191
0x7B855BAf...265471fa1
0.00092263 ETH
197320182024-04-25 11:15:2375 days ago1714043723
0x7B855BAf...265471fa1
0.09360343 ETH
197320182024-04-25 11:15:2375 days ago1714043723
0x7B855BAf...265471fa1
0.09360343 ETH
197206152024-04-23 20:56:1177 days ago1713905771
0x7B855BAf...265471fa1
0.00074388 ETH
197024932024-04-21 8:09:1179 days ago1713686951
0x7B855BAf...265471fa1
0.00058472 ETH
196827202024-04-18 13:44:1182 days ago1713447851
0x7B855BAf...265471fa1
0.00234469 ETH
196579472024-04-15 2:30:2386 days ago1713148223
0x7B855BAf...265471fa1
0.00234469 ETH
196047122024-04-07 15:28:5993 days ago1712503739
0x7B855BAf...265471fa1
0.00234469 ETH
195993022024-04-06 21:16:4794 days ago1712438207
0x7B855BAf...265471fa1
0.00162222 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Splitter

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-07-16
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}


pragma solidity >=0.8.10 < 0.9;

contract Splitter{
    event Success(bool indexed transferred);

    address[4] _split;
    uint8[4] _weights;
    uint8 totalWeight;
    constructor(){
        _split[0] = address(0xC150d79d805907a9F078f2Ab0641D0ed22B99Eb3);
        _weights[0] = uint8(1);
        _split[1]= address(0x91a5a695D82742E1cb647b7A4386953B91c164A5);
        _weights[1] = uint8(1);
        totalWeight = 2;
    }

    modifier onlyOwner(uint256 index){
        require(index <=3, "index out of bounds");
        require(_split[index]==msg.sender,"Not Authorized.");
        _;
    }

    function changeAddress(uint256 index, address account)external onlyOwner(index){
        _split[index] = account;
    }

    function distribute()external{

        uint256 baseETH = address(this).balance/totalWeight;

        for(uint256 i =0; i <3; i++){
            uint256 amount = baseETH*_weights[i];
            (bool success, ) = address(_split[i]).call{value: amount}("");
            emit Success(success);
        }

        (bool truth, ) = address(_split[0]).call{value: address(this).balance}("");
        emit Success(truth);
    }
    receive() external payable {}

    function distributeERC20(address token)external {
        uint256 amount = IERC20(token).balanceOf(address(this))/totalWeight;
        require(amount >0, "Not Enough");
        for(uint256 i =0; i <3; i++){
            uint256 _amount = amount*_weights[i];
            IERC20(token).transfer(_split[i], _amount);
        }
        IERC20(token).transfer(_split[0], IERC20(token).balanceOf(address(this)));
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"transferred","type":"bool"}],"name":"Success","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"changeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"distributeERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561000f575f80fd5b505f80546001600160a01b031990811673c150d79d805907a9f078f2ab0641d0ed22b99eb317825560048054600180547391a5a695d82742e1cb647b7a4386953b91c164a594169390931790925561ffff199091166101011790556005805460ff191660021790556106c690819061008690395ff3fe608060405260043610610036575f3560e01c80631d5ad18b14610041578063bce5826914610062578063e4fc6b6d14610081575f80fd5b3661003d57005b5f80fd5b34801561004c575f80fd5b5061006061005b366004610594565b610095565b005b34801561006d575f80fd5b5061006061007c3660046105be565b610176565b34801561008c575f80fd5b506100606103f9565b8160038111156100e25760405162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b60448201526064015b60405180910390fd5b335f82600481106100f5576100f56105de565b01546001600160a01b03161461013f5760405162461bcd60e51b815260206004820152600f60248201526e2737ba1020baba3437b934bd32b21760891b60448201526064016100d9565b815f8460048110610152576101526105de565b0180546001600160a01b0319166001600160a01b0392909216919091179055505050565b6005546040516370a0823160e01b81523060048201525f9160ff16906001600160a01b038416906370a0823190602401602060405180830381865afa1580156101c1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101e591906105f2565b6101ef919061061d565b90505f811161022d5760405162461bcd60e51b815260206004820152600a60248201526909cdee8408adcdeeaced60b31b60448201526064016100d9565b5f5b6003811015610313575f6004826004811061024c5761024c6105de565b60208104919091015461026b91601f166101000a900460ff168461063c565b9050836001600160a01b031663a9059cbb5f846004811061028e5761028e6105de565b015460405160e083901b6001600160e01b03191681526001600160a01b039091166004820152602481018490526044016020604051808303815f875af11580156102da573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102fe9190610659565b5050808061030b90610678565b91505061022f565b505f546040516370a0823160e01b81523060048201526001600160a01b038481169263a9059cbb9291169083906370a0823190602401602060405180830381865afa158015610364573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061038891906105f2565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af11580156103d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103f49190610659565b505050565b6005545f9061040b9060ff164761061d565b90505f5b60038110156104f4575f6004826004811061042c5761042c6105de565b60208104919091015461044b91601f166101000a900460ff168461063c565b90505f808360048110610460576104606105de565b01546040516001600160a01b039091169083905f81818185875af1925050503d805f81146104a9576040519150601f19603f3d011682016040523d82523d5f602084013e6104ae565b606091505b5050604051909150811515907f3b0a8ddef325df2bfdfa6b430ae4c8421841cd135bfa8fb5e432f200787520bb905f90a2505080806104ec90610678565b91505061040f565b505f80546040516001600160a01b039091169047908381818185875af1925050503d805f811461053f576040519150601f19603f3d011682016040523d82523d5f602084013e610544565b606091505b5050604051909150811515907f3b0a8ddef325df2bfdfa6b430ae4c8421841cd135bfa8fb5e432f200787520bb905f90a25050565b80356001600160a01b038116811461058f575f80fd5b919050565b5f80604083850312156105a5575f80fd5b823591506105b560208401610579565b90509250929050565b5f602082840312156105ce575f80fd5b6105d782610579565b9392505050565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215610602575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b5f8261063757634e487b7160e01b5f52601260045260245ffd5b500490565b808202811582820484141761065357610653610609565b92915050565b5f60208284031215610669575f80fd5b815180151581146105d7575f80fd5b5f6001820161068957610689610609565b506001019056fea2646970667358221220ee874b0dc25f32016075aeb4cf5744e8c7b75953b0b38533d49959e61b45735064736f6c63430008140033

Deployed Bytecode

0x608060405260043610610036575f3560e01c80631d5ad18b14610041578063bce5826914610062578063e4fc6b6d14610081575f80fd5b3661003d57005b5f80fd5b34801561004c575f80fd5b5061006061005b366004610594565b610095565b005b34801561006d575f80fd5b5061006061007c3660046105be565b610176565b34801561008c575f80fd5b506100606103f9565b8160038111156100e25760405162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b60448201526064015b60405180910390fd5b335f82600481106100f5576100f56105de565b01546001600160a01b03161461013f5760405162461bcd60e51b815260206004820152600f60248201526e2737ba1020baba3437b934bd32b21760891b60448201526064016100d9565b815f8460048110610152576101526105de565b0180546001600160a01b0319166001600160a01b0392909216919091179055505050565b6005546040516370a0823160e01b81523060048201525f9160ff16906001600160a01b038416906370a0823190602401602060405180830381865afa1580156101c1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101e591906105f2565b6101ef919061061d565b90505f811161022d5760405162461bcd60e51b815260206004820152600a60248201526909cdee8408adcdeeaced60b31b60448201526064016100d9565b5f5b6003811015610313575f6004826004811061024c5761024c6105de565b60208104919091015461026b91601f166101000a900460ff168461063c565b9050836001600160a01b031663a9059cbb5f846004811061028e5761028e6105de565b015460405160e083901b6001600160e01b03191681526001600160a01b039091166004820152602481018490526044016020604051808303815f875af11580156102da573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102fe9190610659565b5050808061030b90610678565b91505061022f565b505f546040516370a0823160e01b81523060048201526001600160a01b038481169263a9059cbb9291169083906370a0823190602401602060405180830381865afa158015610364573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061038891906105f2565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af11580156103d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103f49190610659565b505050565b6005545f9061040b9060ff164761061d565b90505f5b60038110156104f4575f6004826004811061042c5761042c6105de565b60208104919091015461044b91601f166101000a900460ff168461063c565b90505f808360048110610460576104606105de565b01546040516001600160a01b039091169083905f81818185875af1925050503d805f81146104a9576040519150601f19603f3d011682016040523d82523d5f602084013e6104ae565b606091505b5050604051909150811515907f3b0a8ddef325df2bfdfa6b430ae4c8421841cd135bfa8fb5e432f200787520bb905f90a2505080806104ec90610678565b91505061040f565b505f80546040516001600160a01b039091169047908381818185875af1925050503d805f811461053f576040519150601f19603f3d011682016040523d82523d5f602084013e610544565b606091505b5050604051909150811515907f3b0a8ddef325df2bfdfa6b430ae4c8421841cd135bfa8fb5e432f200787520bb905f90a25050565b80356001600160a01b038116811461058f575f80fd5b919050565b5f80604083850312156105a5575f80fd5b823591506105b560208401610579565b90509250929050565b5f602082840312156105ce575f80fd5b6105d782610579565b9392505050565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215610602575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b5f8261063757634e487b7160e01b5f52601260045260245ffd5b500490565b808202811582820484141761065357610653610609565b92915050565b5f60208284031215610669575f80fd5b815180151581146105d7575f80fd5b5f6001820161068957610689610609565b506001019056fea2646970667358221220ee874b0dc25f32016075aeb4cf5744e8c7b75953b0b38533d49959e61b45735064736f6c63430008140033

Deployed Bytecode Sourcemap

24413:1615:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25001:121;;;;;;;;;;-1:-1:-1;25001:121:0;;;;;:::i;:::-;;:::i;:::-;;25606:419;;;;;;;;;;-1:-1:-1;25606:419:0;;;;;:::i;:::-;;:::i;25130:433::-;;;;;;;;;;;;;:::i;25001:121::-;25074:5;24885:1;24877:5;:9;;24869:41;;;;-1:-1:-1;;;24869:41:0;;844:2:1;24869:41:0;;;826:21:1;883:2;863:18;;;856:30;-1:-1:-1;;;902:18:1;;;895:49;961:18;;24869:41:0;;;;;;;;;24944:10;24929:6;24936:5;24929:13;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;24929:13:0;:25;24921:52;;;;-1:-1:-1;;;24921:52:0;;1324:2:1;24921:52:0;;;1306:21:1;1363:2;1343:18;;;1336:30;-1:-1:-1;;;1382:18:1;;;1375:45;1437:18;;24921:52:0;1122:339:1;24921:52:0;25107:7:::1;25091:6;25098:5;25091:13;;;;;;;:::i;:::-;;:23:::0;;-1:-1:-1;;;;;;25091:23:0::1;-1:-1:-1::0;;;;;25091:23:0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;25001:121:0:o;25606:419::-;25721:11;;25682:38;;-1:-1:-1;;;25682:38:0;;25714:4;25682:38;;;1612:51:1;25665:14:0;;25721:11;;;-1:-1:-1;;;;;25682:23:0;;;;;1585:18:1;;25682:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:50;;;;:::i;:::-;25665:67;;25759:1;25751:6;:9;25743:32;;;;-1:-1:-1;;;25743:32:0;;2419:2:1;25743:32:0;;;2401:21:1;2458:2;2438:18;;;2431:30;-1:-1:-1;;;2477:18:1;;;2470:40;2527:18;;25743:32:0;2217:334:1;25743:32:0;25790:9;25786:148;25807:1;25804;:4;25786:148;;;25829:15;25854:8;25863:1;25854:11;;;;;;;:::i;:::-;;;;;;;;;25847:18;;25854:11;;;;;;;;25847:6;:18;:::i;:::-;25829:36;;25887:5;-1:-1:-1;;;;;25880:22:0;;25903:6;25910:1;25903:9;;;;;;;:::i;:::-;;;25880:42;;;;;;-1:-1:-1;;;;;;25880:42:0;;;-1:-1:-1;;;;;25903:9:0;;;25880:42;;;2903:51:1;2970:18;;;2963:34;;;2876:18;;25880:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25814:120;25810:3;;;;;:::i;:::-;;;;25786:148;;;-1:-1:-1;25967:6:0;:9;25978:38;;-1:-1:-1;;;25978:38:0;;26010:4;25978:38;;;1612:51:1;-1:-1:-1;;;;;25944:22:0;;;;;;25967:9;;;25944:22;;25978:23;;1585:18:1;;25978:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25944:73;;-1:-1:-1;;;;;;25944:73:0;;;;;;;-1:-1:-1;;;;;2921:32:1;;;25944:73:0;;;2903:51:1;2970:18;;;2963:34;2876:18;;25944:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25654:371;25606:419;:::o;25130:433::-;25212:11;;25172:15;;25190:33;;25212:11;;25190:21;:33;:::i;:::-;25172:51;;25240:9;25236:203;25257:1;25254;:4;25236:203;;;25279:14;25304:8;25313:1;25304:11;;;;;;;:::i;:::-;;;;;;;;;25296:19;;25304:11;;;;;;;;25296:7;:19;:::i;:::-;25279:36;;25331:12;25357:6;25364:1;25357:9;;;;;;;:::i;:::-;;;25349:42;;-1:-1:-1;;;;;25357:9:0;;;;25380:6;;25349:42;;;;25380:6;25357:9;25349:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25411:16:0;;25330:61;;-1:-1:-1;25411:16:0;;;;;;;;;25264:175;;25260:3;;;;;:::i;:::-;;;;25236:203;;;-1:-1:-1;25452:10:0;25476:9;;25468:57;;-1:-1:-1;;;;;25476:9:0;;;;25499:21;;25452:10;25468:57;25452:10;25468:57;25499:21;25476:9;25468:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25541:14:0;;25451:74;;-1:-1:-1;25541:14:0;;;;;;;;;25159:404;;25130:433::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:254::-;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;373:9;360:23;350:33;;402:38;436:2;425:9;421:18;402:38;:::i;:::-;392:48;;192:254;;;;;:::o;451:186::-;510:6;563:2;551:9;542:7;538:23;534:32;531:52;;;579:1;576;569:12;531:52;602:29;621:9;602:29;:::i;:::-;592:39;451:186;-1:-1:-1;;;451:186:1:o;990:127::-;1051:10;1046:3;1042:20;1039:1;1032:31;1082:4;1079:1;1072:15;1106:4;1103:1;1096:15;1674:184;1744:6;1797:2;1785:9;1776:7;1772:23;1768:32;1765:52;;;1813:1;1810;1803:12;1765:52;-1:-1:-1;1836:16:1;;1674:184;-1:-1:-1;1674:184:1:o;1863:127::-;1924:10;1919:3;1915:20;1912:1;1905:31;1955:4;1952:1;1945:15;1979:4;1976:1;1969:15;1995:217;2035:1;2061;2051:132;;2105:10;2100:3;2096:20;2093:1;2086:31;2140:4;2137:1;2130:15;2168:4;2165:1;2158:15;2051:132;-1:-1:-1;2197:9:1;;1995:217::o;2556:168::-;2629:9;;;2660;;2677:15;;;2671:22;;2657:37;2647:71;;2698:18;;:::i;:::-;2556:168;;;;:::o;3008:277::-;3075:6;3128:2;3116:9;3107:7;3103:23;3099:32;3096:52;;;3144:1;3141;3134:12;3096:52;3176:9;3170:16;3229:5;3222:13;3215:21;3208:5;3205:32;3195:60;;3251:1;3248;3241:12;3290:135;3329:3;3350:17;;;3347:43;;3370:18;;:::i;:::-;-1:-1:-1;3417:1:1;3406:13;;3290:135::o

Swarm Source

ipfs://ee874b0dc25f32016075aeb4cf5744e8c7b75953b0b38533d49959e61b457350

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.