Contract Address Details
contract

0x72d535E8aF5018d340Cd6Ef266FFfDB3BBA7707f

Contract Name
Iugy
Creator
0x5f71b0–263a06 at 0x54f3f1–9a5744
Balance
0 BRISE ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
7329913
Contract name:
Iugy




Optimization enabled
true
Compiler version
v0.8.15+commit.e14f2714




Optimization runs
200
Verified at
2023-05-31T13:17:05.380044Z

Contract source code

// created by cryptodo.app
//   _____                      _          _____         
//  / ____|                    | |        |  __ \        
// | |      _ __  _   _  _ __  | |_  ___  | |  | |  ___  
// | |     | '__|| | | || '_ \ | __|/ _ \ | |  | | / _ \ 
// | |____ | |   | |_| || |_) || |_| (_) || |__| || (_) |
//  \_____||_|    \__, || .__/  \__|\___/ |_____/  \___/ 
//                 __/ || |                              
//                |___/ |_|      

// SPDX-License-Identifier: MIT

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);
}

// 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;
        }
    }
}

contract Iugy {
    using SafeMath for uint256;

    address public owner;
    uint256 public totalDistributedTokens;

    constructor() {
        owner = msg.sender;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Not an owner");
        _;
    }

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );
    event MultisendTokenEvent(
        address indexed sender,
        address indexed recipient,
        uint256 value
    );

    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0), "New owner is the zero address");
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }

    function multisendToken(
        IERC20 token,
        address[] memory recipients,
        uint256[] memory values
    ) external onlyOwner {
        for (uint256 i = 0; i < recipients.length; i++) {
            token.transferFrom(msg.sender, recipients[i], values[i]);
            totalDistributedTokens = totalDistributedTokens.add(values[i]);
            emit MultisendTokenEvent(msg.sender, recipients[i], values[i]);
        }
    }

    function withdraw(IERC20 token) external onlyOwner {
        uint256 contractTokenBalance = token.balanceOf(address(this));
        token.transfer(msg.sender, contractTokenBalance);
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"MultisendTokenEvent","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"address","name":"recipient","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"multisendToken","inputs":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"address[]","name":"recipients","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalDistributedTokens","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"address","name":"token","internalType":"contract IERC20"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610778806100326000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630b66f3f51461005c57806351cff8d9146100715780638da5cb5b14610084578063db5084ab146100b4578063f2fde38b146100cb575b600080fd5b61006f61006a366004610591565b6100de565b005b61006f61007f366004610667565b6102a7565b600054610097906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100bd60015481565b6040519081526020016100ab565b61006f6100d9366004610667565b6103b5565b6000546001600160a01b031633146101115760405162461bcd60e51b815260040161010890610684565b60405180910390fd5b60005b82518110156102a157836001600160a01b03166323b872dd3385848151811061013f5761013f6106aa565b6020026020010151858581518110610159576101596106aa565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156101b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101dc91906106c0565b5061020b8282815181106101f2576101f26106aa565b602002602001015160015461049090919063ffffffff16565b6001558251839082908110610222576102226106aa565b60200260200101516001600160a01b0316336001600160a01b03167f425a33cec6079bbaee6a52bc0b0e2bcea425694a2c9491147877f71313ef35c1848481518110610270576102706106aa565b602002602001015160405161028791815260200190565b60405180910390a380610299816106f8565b915050610114565b50505050565b6000546001600160a01b031633146102d15760405162461bcd60e51b815260040161010890610684565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033c9190610711565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561038c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b091906106c0565b505050565b6000546001600160a01b031633146103df5760405162461bcd60e51b815260040161010890610684565b6001600160a01b0381166104355760405162461bcd60e51b815260206004820152601d60248201527f4e6577206f776e657220697320746865207a65726f20616464726573730000006044820152606401610108565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061049c828461072a565b9392505050565b6001600160a01b03811681146104b857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156104fa576104fa6104bb565b604052919050565b600067ffffffffffffffff82111561051c5761051c6104bb565b5060051b60200190565b600082601f83011261053757600080fd5b8135602061054c61054783610502565b6104d1565b82815260059290921b8401810191818101908684111561056b57600080fd5b8286015b84811015610586578035835291830191830161056f565b509695505050505050565b6000806000606084860312156105a657600080fd5b83356105b1816104a3565b925060208481013567ffffffffffffffff808211156105cf57600080fd5b818701915087601f8301126105e357600080fd5b81356105f161054782610502565b81815260059190911b8301840190848101908a83111561061057600080fd5b938501935b82851015610637578435610628816104a3565b82529385019390850190610615565b96505050604087013592508083111561064f57600080fd5b505061065d86828701610526565b9150509250925092565b60006020828403121561067957600080fd5b813561049c816104a3565b6020808252600c908201526b2737ba1030b71037bbb732b960a11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156106d257600080fd5b8151801515811461049c57600080fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161070a5761070a6106e2565b5060010190565b60006020828403121561072357600080fd5b5051919050565b6000821982111561073d5761073d6106e2565b50019056fea26469706673582212203786b5365bdfc1e9b071600e0787993ce61877c1ac2e504299f6696512041c8e64736f6c634300080f0033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630b66f3f51461005c57806351cff8d9146100715780638da5cb5b14610084578063db5084ab146100b4578063f2fde38b146100cb575b600080fd5b61006f61006a366004610591565b6100de565b005b61006f61007f366004610667565b6102a7565b600054610097906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100bd60015481565b6040519081526020016100ab565b61006f6100d9366004610667565b6103b5565b6000546001600160a01b031633146101115760405162461bcd60e51b815260040161010890610684565b60405180910390fd5b60005b82518110156102a157836001600160a01b03166323b872dd3385848151811061013f5761013f6106aa565b6020026020010151858581518110610159576101596106aa565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156101b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101dc91906106c0565b5061020b8282815181106101f2576101f26106aa565b602002602001015160015461049090919063ffffffff16565b6001558251839082908110610222576102226106aa565b60200260200101516001600160a01b0316336001600160a01b03167f425a33cec6079bbaee6a52bc0b0e2bcea425694a2c9491147877f71313ef35c1848481518110610270576102706106aa565b602002602001015160405161028791815260200190565b60405180910390a380610299816106f8565b915050610114565b50505050565b6000546001600160a01b031633146102d15760405162461bcd60e51b815260040161010890610684565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033c9190610711565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561038c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b091906106c0565b505050565b6000546001600160a01b031633146103df5760405162461bcd60e51b815260040161010890610684565b6001600160a01b0381166104355760405162461bcd60e51b815260206004820152601d60248201527f4e6577206f776e657220697320746865207a65726f20616464726573730000006044820152606401610108565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061049c828461072a565b9392505050565b6001600160a01b03811681146104b857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156104fa576104fa6104bb565b604052919050565b600067ffffffffffffffff82111561051c5761051c6104bb565b5060051b60200190565b600082601f83011261053757600080fd5b8135602061054c61054783610502565b6104d1565b82815260059290921b8401810191818101908684111561056b57600080fd5b8286015b84811015610586578035835291830191830161056f565b509695505050505050565b6000806000606084860312156105a657600080fd5b83356105b1816104a3565b925060208481013567ffffffffffffffff808211156105cf57600080fd5b818701915087601f8301126105e357600080fd5b81356105f161054782610502565b81815260059190911b8301840190848101908a83111561061057600080fd5b938501935b82851015610637578435610628816104a3565b82529385019390850190610615565b96505050604087013592508083111561064f57600080fd5b505061065d86828701610526565b9150509250925092565b60006020828403121561067957600080fd5b813561049c816104a3565b6020808252600c908201526b2737ba1030b71037bbb732b960a11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156106d257600080fd5b8151801515811461049c57600080fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161070a5761070a6106e2565b5060010190565b60006020828403121561072357600080fd5b5051919050565b6000821982111561073d5761073d6106e2565b50019056fea26469706673582212203786b5365bdfc1e9b071600e0787993ce61877c1ac2e504299f6696512041c8e64736f6c634300080f0033