Overview
ETH Balance
0.015363706705167095 ETH
Eth Value
$47.90 (@ $3,117.76/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 41 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Distribute | 19732018 | 75 days ago | IN | 0 ETH | 0.00052035 | ||||
Distribute | 18914424 | 190 days ago | IN | 0 ETH | 0.00103356 | ||||
Distribute | 18849055 | 199 days ago | IN | 0 ETH | 0.00180008 | ||||
Distribute | 18643690 | 228 days ago | IN | 0 ETH | 0.00192758 | ||||
Distribute | 18597536 | 234 days ago | IN | 0 ETH | 0.00168886 | ||||
Distribute | 18566189 | 239 days ago | IN | 0 ETH | 0.00202699 | ||||
Distribute | 18534348 | 243 days ago | IN | 0 ETH | 0.00164959 | ||||
Distribute | 18512244 | 246 days ago | IN | 0 ETH | 0.00117077 | ||||
Distribute | 18497270 | 248 days ago | IN | 0 ETH | 0.00102915 | ||||
Distribute | 18490908 | 249 days ago | IN | 0 ETH | 0.00124805 | ||||
Distribute | 18483937 | 250 days ago | IN | 0 ETH | 0.00108851 | ||||
Distribute | 18473231 | 252 days ago | IN | 0 ETH | 0.00084748 | ||||
Distribute | 18473231 | 252 days ago | IN | 0 ETH | 0.00084748 | ||||
Distribute | 18465389 | 253 days ago | IN | 0 ETH | 0.00157215 | ||||
Distribute | 18444758 | 256 days ago | IN | 0 ETH | 0.00078649 | ||||
Distribute | 18440939 | 256 days ago | IN | 0 ETH | 0.0008616 | ||||
Distribute | 18433043 | 257 days ago | IN | 0 ETH | 0.00111354 | ||||
Distribute | 18429950 | 258 days ago | IN | 0 ETH | 0.00146186 | ||||
Distribute | 18383099 | 264 days ago | IN | 0 ETH | 0.00036732 | ||||
Distribute | 18379275 | 265 days ago | IN | 0 ETH | 0.00067075 | ||||
Distribute | 18370600 | 266 days ago | IN | 0 ETH | 0.0009427 | ||||
Distribute | 18350302 | 269 days ago | IN | 0 ETH | 0.00030569 | ||||
Distribute | 18144355 | 298 days ago | IN | 0 ETH | 0.00079699 | ||||
Distribute | 18027209 | 314 days ago | IN | 0 ETH | 0.00124876 | ||||
Distribute | 18016684 | 316 days ago | IN | 0 ETH | 0.00117555 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
20265529 | 27 hrs ago | 0.00042418 ETH | ||||
20149759 | 17 days ago | 0.00086123 ETH | ||||
20107161 | 23 days ago | 0.00085641 ETH | ||||
20104941 | 23 days ago | 0.00039695 ETH | ||||
20057212 | 30 days ago | 0.00067925 ETH | ||||
20036119 | 33 days ago | 0.00070873 ETH | ||||
20036103 | 33 days ago | 0.00185883 ETH | ||||
19972053 | 42 days ago | 0.00058446 ETH | ||||
19927337 | 48 days ago | 0.00087539 ETH | ||||
19925953 | 48 days ago | 0.00087539 ETH | ||||
19902766 | 51 days ago | 0.00072085 ETH | ||||
19855817 | 58 days ago | 0.00428722 ETH | ||||
19852359 | 58 days ago | 0.00055972 ETH | ||||
19828997 | 62 days ago | 0.00117783 ETH | ||||
19820631 | 63 days ago | 0.0006999 ETH | ||||
19789422 | 67 days ago | 0.00060645 ETH | ||||
19762827 | 71 days ago | 0.00092263 ETH | ||||
19732018 | 75 days ago | 0.09360343 ETH | ||||
19732018 | 75 days ago | 0.09360343 ETH | ||||
19720615 | 77 days ago | 0.00074388 ETH | ||||
19702493 | 79 days ago | 0.00058472 ETH | ||||
19682720 | 82 days ago | 0.00234469 ETH | ||||
19657947 | 86 days ago | 0.00234469 ETH | ||||
19604712 | 93 days ago | 0.00234469 ETH | ||||
19599302 | 94 days ago | 0.00162222 ETH |
Loading...
Loading
Contract Name:
Splitter
Compiler Version
v0.8.20+commit.a1b79de6
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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,117.76 | 0.0154 | $47.9 |
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.