ETH Price: $3,317.30 (+2.63%)
 
Transaction Hash
Method
Block
From
To
Pay Payroll217468442025-01-31 20:18:1136 mins ago1738354691IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000381824.49316012
Member Stake217463002025-01-31 18:28:592 hrs ago1738348139IN
0x22a8fe01...dd8B0A5B6
0 ETH0.0005546.49986812
Pay Payroll217459982025-01-31 17:28:113 hrs ago1738344491IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000511247.20231431
Pay Payroll217453502025-01-31 15:17:475 hrs ago1738336667IN
0x22a8fe01...dd8B0A5B6
0 ETH0.00084810.5748671
Withdraw Payroll...217397982025-01-30 20:40:2324 hrs ago1738269623IN
0x22a8fe01...dd8B0A5B6
0 ETH0.004168714.6760582
Withdraw Payroll...217397782025-01-30 20:35:5924 hrs ago1738269359IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000690173.92992327
Pay Payroll217393712025-01-30 19:13:5925 hrs ago1738264439IN
0x22a8fe01...dd8B0A5B6
0 ETH0.0004925.78886045
Pay Payroll217388982025-01-30 17:38:2327 hrs ago1738258703IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000526056.56003324
Member Stake217386992025-01-30 16:58:2327 hrs ago1738256303IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000486626.04997164
Pay Payroll217383082025-01-30 15:40:1129 hrs ago1738251611IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000681398.01834724
Pay Payroll217381942025-01-30 15:17:2329 hrs ago1738250243IN
0x22a8fe01...dd8B0A5B6
0 ETH0.0008076610.06658154
Pay Payroll217351542025-01-30 5:06:4739 hrs ago1738213607IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000202252.52218414
Pay Payroll217345032025-01-30 2:55:5941 hrs ago1738205759IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000209823
Pay Payroll217332612025-01-29 22:46:2346 hrs ago1738190783IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000235382.93533345
Pay Payroll217325932025-01-29 20:32:112 days ago1738182731IN
0x22a8fe01...dd8B0A5B6
0 ETH0.0010911813.60729935
Pay Payroll217325672025-01-29 20:26:592 days ago1738182419IN
0x22a8fe01...dd8B0A5B6
0 ETH0.0009874912.31427418
Pay Payroll217322132025-01-29 19:15:472 days ago1738178147IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000689648.6
Member Stake217320332025-01-29 18:39:232 days ago1738175963IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000310194.41904466
Pay Payroll217320292025-01-29 18:38:352 days ago1738175915IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000410894.83593883
Pay Payroll217319652025-01-29 18:25:472 days ago1738175147IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000286913.57841853
Pay Payroll217319492025-01-29 18:22:352 days ago1738174955IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000361754.2569776
Pay Payroll217318322025-01-29 17:59:112 days ago1738173551IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000373044.65269993
Pay Payroll217316952025-01-29 17:31:352 days ago1738171895IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000402434.73498843
Pay Payroll217316342025-01-29 17:19:232 days ago1738171163IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000367354.58097177
Pay Payroll217311502025-01-29 15:42:232 days ago1738165343IN
0x22a8fe01...dd8B0A5B6
0 ETH0.000414915.17479959
View all transactions

Latest 9 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
202215322024-07-02 21:32:47212 days ago1719955967
0x22a8fe01...dd8B0A5B6
0.00000292 ETH
197640692024-04-29 22:53:23276 days ago1714431203
0x22a8fe01...dd8B0A5B6
0.16409782 ETH
196627112024-04-15 18:31:11291 days ago1713205871
0x22a8fe01...dd8B0A5B6
0.90801063 ETH
195915222024-04-05 19:09:11301 days ago1712344151
0x22a8fe01...dd8B0A5B6
0.47361172 ETH
195421042024-03-29 20:43:35308 days ago1711745015
0x22a8fe01...dd8B0A5B6
0.44207953 ETH
194138592024-03-11 19:12:47326 days ago1710184367
0x22a8fe01...dd8B0A5B6
0.21089744 ETH
176360412023-07-06 16:38:59575 days ago1688661539
0x22a8fe01...dd8B0A5B6
0.0106214 ETH
173178082023-05-22 22:29:35619 days ago1684794575
0x22a8fe01...dd8B0A5B6
0.01098116 ETH
173152852023-05-22 14:00:23620 days ago1684764023
0x22a8fe01...dd8B0A5B6
0.02090051 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OpolisPay

Compiler Version
v0.8.5+commit.a4f2e591

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : OpolisPay.sol
pragma solidity 0.8.5;

// SPDX-License-Identifier: LGPLv3
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/// @notice custom errors for revert statements

/// @dev requires privileged access
error NotPermitted();

/// @dev not a whitelisted token
error NotWhitelisted();

/// @dev payroll id equals zero
error InvalidPayroll();

/// @dev payroll id used
error DuplicatePayroll();

/// @dev amount equals zero
error InvalidAmount();

/// @dev sender is not a member
error NotMember();

/// @dev stake must be a non zero amount of whitelisted token
/// or non zero amount of eth
error InvalidStake();

/// @dev stake must be a non zero amount of whitelisted token
/// or non zero amount of eth
error InvalidWithdraw();

/// @dev setting one of the role to zero address
error ZeroAddress();

/// @dev withdrawing non whitelisted token
error InvalidToken();

/// @dev whitelisting and empty list of tokens
error ZeroTokens();

/// @dev token has already been whitelisted
error AlreadyWhitelisted();

/// @dev sending eth directly to contract address
error DirectTransfer();

/// @dev token and destination length mismatch
error LengthMismatch();

/// @title OpolisPay
/// @notice Minimalist Contract for Crypto Payroll Payments
contract OpolisPay is ReentrancyGuard {
    using SafeERC20 for IERC20;

    address internal constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    address internal constant ZERO = address(0);

    address[] public supportedTokens; //Tokens that can be sent.
    address private opolisAdmin; //Should be Opolis multi-sig for security
    address private opolisHelper; //Can be bot wallet for convenience
    address private ethLiquidation; //Address for ETH liquidations

    event SetupComplete(
        address indexed admin,
        address indexed helper,
        address ethLiquidation,
        address[] tokens,
        address[] liqDestinations
    );
    event Staked(
        address indexed staker, address indexed token, uint256 amount, uint256 indexed memberId, uint256 stakeNumber
    );
    event Paid(address indexed payor, address indexed token, uint256 indexed payrollId, uint256 amount);
    event OpsPayrollWithdraw(address indexed token, uint256 indexed payrollId, uint256 amount);
    event OpsStakeWithdraw(address indexed token, uint256 indexed stakeId, uint256 stakeNumber, uint256 amount);
    event Sweep(address indexed token, uint256 amount);
    event NewDestination(address indexed oldDestination, address indexed token, address indexed destination);
    event NewAdmin(address indexed oldAdmin, address indexed opolisAdmin);
    event NewHelper(address indexed oldHelper, address indexed newHelper);
    event NewTokens(address[] newTokens, address[] newDestinations);

    mapping(uint256 => uint256) private stakes; //Tracks used stake ids
    mapping(uint256 => bool) private payrollIds; //Tracks used payroll ids
    mapping(uint256 => bool) public payrollWithdrawn; //Tracks payroll withdrawals
    mapping(uint256 => uint256) public stakeWithdrawn; //Tracks stake withdrawals
    mapping(address => bool) public whitelisted; //Tracks whitelisted tokens
    mapping(address => address) public liqDestinations; //Tracks liquidation destinations for tokens

    modifier onlyAdmin() {
        if (msg.sender != opolisAdmin) revert NotPermitted();
        _;
    }

    modifier onlyOpolis() {
        if (!(msg.sender == opolisAdmin || msg.sender == opolisHelper)) {
            revert NotPermitted();
        }
        _;
    }

    /// @notice launches contract with a destination as the Opolis wallet, the admins, and a token whitelist
    /// @param _opolisAdmin the multi-sig which is the ultimate admin
    /// @param _opolisHelper meant to allow for a bot to handle less sensitive items
    /// @param _ethLiq the address where we send eth or native token liquidations
    /// @param _tokenList initial whitelist of tokens for staking and payroll
    /// @param _destinationList the addresses where payroll and stakes will be sent when withdrawn based on token

    constructor(
        address _opolisAdmin,
        address _opolisHelper,
        address _ethLiq,
        address[] memory _tokenList,
        address[] memory _destinationList
    ) {
        if (_tokenList.length != _destinationList.length) revert LengthMismatch();
        opolisAdmin = _opolisAdmin;
        opolisHelper = _opolisHelper;
        ethLiquidation = _ethLiq;

        for (uint256 i = 0; i < _tokenList.length; i++) {
            _addToken(_tokenList[i]);
            _addDestination(_destinationList[i], _tokenList[i]);
        }

        emit SetupComplete(opolisAdmin, opolisHelper, _ethLiq, _tokenList, _destinationList);
    }

    /**
     *
     *                          CORE PAYROLL FUNCTIONS
     *
     */

    /// @notice core function for members to pay their payroll
    /// @param token the token being used to pay for their payroll
    /// @param amount the amount due for their payroll -- up to user / front-end to match
    /// @param payrollId the way we'll associate payments with members' invoices

    function payPayroll(address token, uint256 amount, uint256 payrollId) external nonReentrant {
        if (!whitelisted[token]) revert NotWhitelisted();
        if (payrollId == 0) revert InvalidPayroll();
        if (amount == 0) revert InvalidAmount();
        if (payrollIds[payrollId]) revert DuplicatePayroll();

        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
        payrollIds[payrollId] = true;

        emit Paid(msg.sender, token, payrollId, amount);
    }

    /// @notice staking function that allows for both ETH and whitelisted ERC20
    /// @param token the token being used to stake
    /// @param amount the amount due for staking -- up to user / front-end to match
    /// @param memberId the way we'll associate the stake with a new member

    function memberStake(address token, uint256 amount, uint256 memberId) public payable nonReentrant {
        if (!((whitelisted[token] && amount != 0) || (token == ETH && msg.value != 0))) {
            revert InvalidStake();
        }
        if (memberId == 0) revert NotMember();

        // @dev increments the stake id for each member
        uint256 stakeCount = ++stakes[memberId];

        // @dev function for auto transfering out stake
        if (msg.value > 0 && token == ETH) {
            payable(ethLiquidation).transfer(msg.value);
            emit Staked(msg.sender, ETH, msg.value, memberId, stakeCount);
        } else {
            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
            emit Staked(msg.sender, token, amount, memberId, stakeCount);
        }
    }

    /// @notice withdraw function for admin or OpsBot to call
    /// @param _payrollIds the paid payrolls we want to clear out
    /// @param _payrollTokens the tokens the payrolls were paid in
    /// @param _payrollAmounts the amount that was paid
    /// @dev we iterate through payrolls and clear them out with the funds being sent to the destination address
    function withdrawPayrolls(
        uint256[] calldata _payrollIds,
        address[] calldata _payrollTokens,
        uint256[] calldata _payrollAmounts
    ) external onlyOpolis {
        uint256[] memory withdrawAmounts = new uint256[](
            supportedTokens.length
        );
        for (uint256 i = 0; i < _payrollIds.length; i++) {
            uint256 id = _payrollIds[i];
            if (!payrollIds[id]) revert InvalidPayroll();

            address token = _payrollTokens[i];
            uint256 amount = _payrollAmounts[i];

            if (!payrollWithdrawn[id]) {
                uint256 j;
                for (; j < supportedTokens.length; j++) {
                    if (supportedTokens[j] == token) {
                        withdrawAmounts[j] += amount;
                        break;
                    }
                }
                if (j == supportedTokens.length) revert InvalidToken();
                payrollWithdrawn[id] = true;

                emit OpsPayrollWithdraw(token, id, amount);
            }
        }

        for (uint256 i = 0; i < withdrawAmounts.length; i++) {
            uint256 amount = withdrawAmounts[i];
            if (amount > 0) {
                _withdraw(supportedTokens[i], amount);
            }
        }
    }

    /// @notice withdraw function for admin or OpsBot to call
    /// @param _stakeIds the paid stakes id we want to clear out
    /// @param _stakeNum the particular stake number associated with that id
    /// @param _stakeTokens the tokens the stakes were paid in
    /// @param _stakeAmounts the amount that was paid
    /// @dev we iterate through stakes and clear them out with the funds being sent to the destination address
    function withdrawStakes(
        uint256[] calldata _stakeIds,
        uint256[] calldata _stakeNum,
        address[] calldata _stakeTokens,
        uint256[] calldata _stakeAmounts
    ) external onlyOpolis {
        uint256[] memory withdrawAmounts = new uint256[](
            supportedTokens.length
        );
        if (_stakeIds.length != _stakeNum.length) revert InvalidWithdraw();

        for (uint256 i = 0; i < _stakeIds.length; i++) {
            uint256 id = _stakeIds[i];
            address token = _stakeTokens[i];
            uint256 amount = _stakeAmounts[i];
            uint256 num = _stakeNum[i];

            if (stakeWithdrawn[id] < num) {
                uint256 j;
                for (; j < supportedTokens.length; j++) {
                    if (supportedTokens[j] == token) {
                        withdrawAmounts[j] += amount;
                        break;
                    }
                }
                if (j == supportedTokens.length) revert InvalidToken();
                stakeWithdrawn[id] = num;

                emit OpsStakeWithdraw(token, id, num, amount);
            }
        }

        for (uint256 i = 0; i < withdrawAmounts.length; i++) {
            uint256 amount = withdrawAmounts[i];
            if (amount > 0) {
                _withdraw(supportedTokens[i], amount);
            }
        }
    }

    /// @notice clearBalance() is meant to be a safety function to be used for stuck funds or upgrades
    /// @dev will mark any non-withdrawn payrolls as withdrawn

    function clearBalance() public onlyAdmin {
        for (uint256 i = 0; i < supportedTokens.length; i++) {
            address token = supportedTokens[i];
            uint256 balance = IERC20(token).balanceOf(address(this));

            if (balance > 0) {
                _withdraw(token, balance);
            }
            emit Sweep(token, balance);
        }
    }

    /// @notice fallback function to prevent accidental ether transfers
    /// @dev if someone tries to send ether directly to the contract the tx will fail

    receive() external payable {
        revert DirectTransfer();
    }

    /**
     *
     *                          ADMIN FUNCTIONS
     *
     */

    /// @notice this function is used to adjust where member funds are sent by contract
    /// @param token since each token has a new destination
    /// @param newDestination is the new address where funds are sent (assumes it's payable exchange address)
    /// @dev must be called by Opolis Admin multi-sig

    function updateDestination(address token, address newDestination) external onlyAdmin {
        if (newDestination == ZERO) revert ZeroAddress();

        address oldDestination = liqDestinations[token];
        liqDestinations[token] = newDestination;

        emit NewDestination(oldDestination, token, newDestination);
    }

    /// @notice this function is used to replace the admin multi-sig
    /// @param newAdmin is the new admin address
    /// @dev this should always be a mulit-sig

    function updateAdmin(address newAdmin) external onlyAdmin returns (address) {
        if (newAdmin == ZERO) revert ZeroAddress();

        emit NewAdmin(opolisAdmin, newAdmin);
        opolisAdmin = newAdmin;

        return opolisAdmin;
    }

    /// @notice this function is used to replace a bot
    /// @param newHelper is the new bot address
    /// @dev this can be a hot wallet, since it has limited powers

    function updateHelper(address newHelper) external onlyAdmin returns (address) {
        if (newHelper == ZERO) revert ZeroAddress();

        emit NewHelper(opolisHelper, newHelper);
        opolisHelper = newHelper;

        return opolisHelper;
    }

    /// @notice this function is used to add new whitelisted tokens
    /// @param newTokens are the tokens to be whitelisted
    /// @param newDestinations since each new token may have a different destination
    /// @dev restricted to admin b/c this is a business / compliance decision

    function addTokens(address[] memory newTokens, address[] memory newDestinations) external onlyAdmin {
        if (newTokens.length == 0) revert ZeroTokens();
        if (newTokens.length != newDestinations.length) revert LengthMismatch();

        for (uint256 i = 0; i < newTokens.length; i++) {
            _addToken(newTokens[i]);
            _addDestination(newDestinations[i], newTokens[i]);
        }

        emit NewTokens(newTokens, newDestinations);
    }

    /**
     *
     *                          INTERNAL FUNCTIONS
     *
     */

    function _addToken(address token) internal {
        if (whitelisted[token]) revert AlreadyWhitelisted();
        if (token == ZERO) revert ZeroAddress();
        supportedTokens.push(token);
        whitelisted[token] = true;
    }

    function _addDestination(address destination, address token) internal {
        if (destination == ZERO) revert ZeroAddress();
        liqDestinations[token] = destination;
    }

    function _withdraw(address token, uint256 amount) internal {
        address dest = liqDestinations[token];
        IERC20(token).safeTransfer(dest, amount);
    }
}

File 2 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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);
}

File 3 of 5 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 5 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 5 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_opolisAdmin","type":"address"},{"internalType":"address","name":"_opolisHelper","type":"address"},{"internalType":"address","name":"_ethLiq","type":"address"},{"internalType":"address[]","name":"_tokenList","type":"address[]"},{"internalType":"address[]","name":"_destinationList","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyWhitelisted","type":"error"},{"inputs":[],"name":"DirectTransfer","type":"error"},{"inputs":[],"name":"DuplicatePayroll","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidPayroll","type":"error"},{"inputs":[],"name":"InvalidStake","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"InvalidWithdraw","type":"error"},{"inputs":[],"name":"LengthMismatch","type":"error"},{"inputs":[],"name":"NotMember","type":"error"},{"inputs":[],"name":"NotPermitted","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroTokens","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"opolisAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldDestination","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"destination","type":"address"}],"name":"NewDestination","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldHelper","type":"address"},{"indexed":true,"internalType":"address","name":"newHelper","type":"address"}],"name":"NewHelper","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"newTokens","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"newDestinations","type":"address[]"}],"name":"NewTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"payrollId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OpsPayrollWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"stakeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OpsStakeWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payor","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"payrollId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Paid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"},{"indexed":true,"internalType":"address","name":"helper","type":"address"},{"indexed":false,"internalType":"address","name":"ethLiquidation","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"liqDestinations","type":"address[]"}],"name":"SetupComplete","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"memberId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeNumber","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sweep","type":"event"},{"inputs":[{"internalType":"address[]","name":"newTokens","type":"address[]"},{"internalType":"address[]","name":"newDestinations","type":"address[]"}],"name":"addTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"liqDestinations","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"memberId","type":"uint256"}],"name":"memberStake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"payrollId","type":"uint256"}],"name":"payPayroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payrollWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakeWithdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supportedTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"updateAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"newDestination","type":"address"}],"name":"updateDestination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newHelper","type":"address"}],"name":"updateHelper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_payrollIds","type":"uint256[]"},{"internalType":"address[]","name":"_payrollTokens","type":"address[]"},{"internalType":"uint256[]","name":"_payrollAmounts","type":"uint256[]"}],"name":"withdrawPayrolls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakeIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_stakeNum","type":"uint256[]"},{"internalType":"address[]","name":"_stakeTokens","type":"address[]"},{"internalType":"uint256[]","name":"_stakeAmounts","type":"uint256[]"}],"name":"withdrawStakes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162001fdc38038062001fdc833981016040819052620000349162000384565b600160005580518251146200005f576040516001621398b960e31b0319815260040160405180910390fd5b600280546001600160a01b038088166001600160a01b03199283161790925560038054878416908316179055600480549286169290911691909117905560005b82518110156200013557620000d6838281518110620000c257620000c2620004db565b60200260200101516200019560201b60201c565b62000120828281518110620000ef57620000ef620004db565b60200260200101518483815181106200010c576200010c620004db565b60200260200101516200025c60201b60201c565b806200012c81620004b1565b9150506200009f565b506003546002546040516001600160a01b0392831692909116907f1cf464cfe3a80f02fc830403fdc015fb4f8e46e18391703995ea4850c0f209ee9062000182908790879087906200046d565b60405180910390a3505050505062000507565b6001600160a01b03811660009081526009602052604090205460ff1615620001d05760405163b73e95e160e01b815260040160405180910390fd5b6001600160a01b038116620001f85760405163d92e233d60e01b815260040160405180910390fd5b6001805480820182557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b039093166001600160a01b031990931683179055600091825260096020526040909120805460ff19169091179055565b6001600160a01b038216620002845760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b039081166000908152600a602052604090208054919092166001600160a01b0319909116179055565b80516001600160a01b0381168114620002cc57600080fd5b919050565b600082601f830112620002e357600080fd5b815160206001600160401b0380831115620003025762000302620004f1565b8260051b604051601f19603f830116810181811084821117156200032a576200032a620004f1565b604052848152838101925086840182880185018910156200034a57600080fd5b600092505b8583101562000378576200036381620002b4565b8452928401926001929092019184016200034f565b50979650505050505050565b600080600080600060a086880312156200039d57600080fd5b620003a886620002b4565b9450620003b860208701620002b4565b9350620003c860408701620002b4565b60608701519093506001600160401b0380821115620003e657600080fd5b620003f489838a01620002d1565b935060808801519150808211156200040b57600080fd5b506200041a88828901620002d1565b9150509295509295909350565b600081518084526020808501945080840160005b83811015620004625781516001600160a01b0316875295820195908201906001016200043b565b509495945050505050565b6001600160a01b0384168152606060208201819052600090620004939083018562000427565b8281036040840152620004a7818562000427565b9695505050505050565b6000600019821415620004d457634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b611ac580620005176000396000f3fe6080604052600436106100e15760003560e01c8063c62556261161007f578063d3f73c9411610059578063d3f73c941461027c578063d936547e146102bc578063e2f273bd146102ec578063e5e388bb1461030c57600080fd5b8063c625562614610211578063caf5f67d14610231578063d0c567dc1461024657600080fd5b80638bcc4166116100bb5780638bcc4166146101665780639020a12d146101a357806391d194a3146101c3578063ae12f971146101fe57600080fd5b806302d5f05f14610104578063605acecc1461012657806362bfdf041461014657600080fd5b366100ff57604051633ebdb28f60e11b815260040160405180910390fd5b600080fd5b34801561011057600080fd5b5061012461011f3660046116e4565b61032c565b005b34801561013257600080fd5b5061012461014136600461177b565b6104ae565b34801561015257600080fd5b50610124610161366004611717565b61079a565b34801561017257600080fd5b50610186610181366004611696565b6108c3565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101af57600080fd5b506101246101be3660046116b1565b610977565b3480156101cf57600080fd5b506101f06101de3660046118fb565b60086020526000908152604090205481565b60405190815260200161019a565b61012461020c3660046116e4565b610a2c565b34801561021d57600080fd5b5061018661022c3660046118fb565b610c63565b34801561023d57600080fd5b50610124610c8d565b34801561025257600080fd5b50610186610261366004611696565b600a602052600090815260409020546001600160a01b031681565b34801561028857600080fd5b506102ac6102973660046118fb565b60076020526000908152604090205460ff1681565b604051901515815260200161019a565b3480156102c857600080fd5b506102ac6102d7366004611696565b60096020526000908152604090205460ff1681565b3480156102f857600080fd5b50610186610307366004611696565b610dcd565b34801561031857600080fd5b50610124610327366004611815565b610e7f565b600260005414156103845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260009081556001600160a01b03841681526009602052604090205460ff166103c157604051630b094f2760e31b815260040160405180910390fd5b806103df57604051635061173760e11b815260040160405180910390fd5b816103fd5760405163162908e360e11b815260040160405180910390fd5b60008181526006602052604090205460ff161561042d57604051631242148d60e31b815260040160405180910390fd5b6104426001600160a01b038416333085611154565b60008181526006602052604090819020805460ff191660011790555181906001600160a01b0385169033907f26c4308021cef5cdbc618fee8b61faf9de6b8f7e4e49fac43869dc1a267564089061049c9087815260200190565b60405180910390a45050600160005550565b6002546001600160a01b03163314806104d157506003546001600160a01b031633145b6104ee576040516339218f3b60e01b815260040160405180910390fd5b60015460009067ffffffffffffffff81111561050c5761050c611a79565b604051908082528060200260200182016040528015610535578160200160208202803683370190505b50905060005b8681101561071857600088888381811061055757610557611a63565b60209081029290920135600081815260069093526040909220549192505060ff1661059557604051635061173760e11b815260040160405180910390fd5b60008787848181106105a9576105a9611a63565b90506020020160208101906105be9190611696565b905060008686858181106105d4576105d4611a63565b6000868152600760209081526040909120549102929092013592505060ff166107025760005b60015481101561067d57826001600160a01b03166001828154811061062157610621611a63565b6000918252602090912001546001600160a01b0316141561066b578186828151811061064f5761064f611a63565b6020026020010181815161066391906119ee565b90525061067d565b8061067581611a32565b9150506105fa565b6001548114156106a05760405163c1ab6dc160e01b815260040160405180910390fd5b60008481526007602052604090819020805460ff191660011790555184906001600160a01b038516907f23a7eb1713e2646208e5402f77075131401665dadd2911c8bf37896fd71f44d0906106f89086815260200190565b60405180910390a3505b505050808061071090611a32565b91505061053b565b5060005b815181101561079057600082828151811061073957610739611a63565b60200260200101519050600081111561077d5761077d6001838154811061076257610762611a63565b6000918252602090912001546001600160a01b0316826111c5565b508061078881611a32565b91505061071c565b5050505050505050565b6002546001600160a01b031633146107c5576040516339218f3b60e01b815260040160405180910390fd5b81516107e45760405163b98a411360e01b815260040160405180910390fd5b8051825114610809576040516001621398b960e31b0319815260040160405180910390fd5b60005b82518110156108855761083783828151811061082a5761082a611a63565b60200260200101516111f3565b61087382828151811061084c5761084c611a63565b602002602001015184838151811061086657610866611a63565b60200260200101516112b8565b8061087d81611a32565b91505061080c565b507fd9d194011a7c8d40eabd7bedec3d680a10f5a6d6ec0fc33ee85139c72b578cc882826040516108b792919061198d565b60405180910390a15050565b6002546000906001600160a01b031633146108f1576040516339218f3b60e01b815260040160405180910390fd5b6001600160a01b0382166109185760405163d92e233d60e01b815260040160405180910390fd5b6003546040516001600160a01b038085169216907f06bc331032840de3e44179cee67a8860508a9c70737f1e433476e3a9a255b25f90600090a350600380546001600160a01b0319166001600160a01b0383169081179091555b919050565b6002546001600160a01b031633146109a2576040516339218f3b60e01b815260040160405180910390fd5b6001600160a01b0381166109c95760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038083166000818152600a602052604080822080548686166001600160a01b03198216811790925591519190941693929184917f29c43740e30a43a4bde80c974c8b8e58a0ee4541d926634a0b1704aa07fb38409190a4505050565b60026000541415610a7f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037b565b600260009081556001600160a01b03841681526009602052604090205460ff168015610aaa57508115155b80610adb57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148015610adb57503415155b610af857604051634eba4d4960e11b815260040160405180910390fd5b80610b165760405163148fe22160e11b815260040160405180910390fd5b600081815260056020526040812080548290610b3190611a32565b918290555090503415801590610b6357506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b15610bfa576004546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610ba1573d6000803e3d6000fd5b506040805134815260208101839052839173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9133917fad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69910160405180910390a4610c58565b610c0f6001600160a01b038516333086611154565b604080518481526020810183905283916001600160a01b0387169133917fad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69910160405180910390a45b505060016000555050565b60018181548110610c7357600080fd5b6000918252602090912001546001600160a01b0316905081565b6002546001600160a01b03163314610cb8576040516339218f3b60e01b815260040160405180910390fd5b60005b600154811015610dca57600060018281548110610cda57610cda611a63565b60009182526020822001546040516370a0823160e01b81523060048201526001600160a01b03909116925082906370a082319060240160206040518083038186803b158015610d2857600080fd5b505afa158015610d3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d609190611914565b90508015610d7257610d7282826111c5565b816001600160a01b03167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c7782604051610dad91815260200190565b60405180910390a250508080610dc290611a32565b915050610cbb565b50565b6002546000906001600160a01b03163314610dfb576040516339218f3b60e01b815260040160405180910390fd5b6001600160a01b038216610e225760405163d92e233d60e01b815260040160405180910390fd5b6002546040516001600160a01b038085169216907ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc90600090a350600280546001600160a01b0319166001600160a01b0392909216918217905590565b6002546001600160a01b0316331480610ea257506003546001600160a01b031633145b610ebf576040516339218f3b60e01b815260040160405180910390fd5b60015460009067ffffffffffffffff811115610edd57610edd611a79565b604051908082528060200260200182016040528015610f06578160200160208202803683370190505b509050878614610f29576040516335411d8b60e01b815260040160405180910390fd5b60005b888110156110eb5760008a8a83818110610f4857610f48611a63565b9050602002013590506000878784818110610f6557610f65611a63565b9050602002016020810190610f7a9190611696565b90506000868685818110610f9057610f90611a63565b90506020020135905060008b8b86818110610fad57610fad611a63565b90506020020135905080600860008681526020019081526020016000205410156110d45760005b60015481101561105757836001600160a01b031660018281548110610ffb57610ffb611a63565b6000918252602090912001546001600160a01b03161415611045578287828151811061102957611029611a63565b6020026020010181815161103d91906119ee565b905250611057565b8061104f81611a32565b915050610fd4565b60015481141561107a5760405163c1ab6dc160e01b815260040160405180910390fd5b600085815260086020908152604091829020849055815184815290810185905286916001600160a01b038716917fc7c2927bbf2a3cafe5c51105d5ee1aba33d0016c7192d1bb15128f25917414ee910160405180910390a3505b5050505080806110e390611a32565b915050610f2c565b5060005b815181101561114857600082828151811061110c5761110c611a63565b602002602001015190506000811115611135576111356001838154811061076257610762611a63565b508061114081611a32565b9150506110ef565b50505050505050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526111bf9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261130f565b50505050565b6001600160a01b038083166000818152600a6020526040902054909116906111ee9082846113e1565b505050565b6001600160a01b03811660009081526009602052604090205460ff161561122d5760405163b73e95e160e01b815260040160405180910390fd5b6001600160a01b0381166112545760405163d92e233d60e01b815260040160405180910390fd5b6001805480820182557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b039093166001600160a01b031990931683179055600091825260096020526040909120805460ff19169091179055565b6001600160a01b0382166112df5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b039081166000908152600a602052604090208054919092166001600160a01b0319909116179055565b6000611364826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114119092919063ffffffff16565b8051909150156111ee578080602001905181019061138291906118d9565b6111ee5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161037b565b6040516001600160a01b0383166024820152604481018290526111ee90849063a9059cbb60e01b90606401611188565b6060611420848460008561142a565b90505b9392505050565b60608247101561148b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161037b565b843b6114d95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161037b565b600080866001600160a01b031685876040516114f59190611971565b60006040518083038185875af1925050503d8060008114611532576040519150601f19603f3d011682016040523d82523d6000602084013e611537565b606091505b5091509150611547828286611552565b979650505050505050565b60608315611561575081611423565b8251156115715782518084602001fd5b8160405162461bcd60e51b815260040161037b91906119bb565b80356001600160a01b038116811461097257600080fd5b60008083601f8401126115b457600080fd5b50813567ffffffffffffffff8111156115cc57600080fd5b6020830191508360208260051b85010111156115e757600080fd5b9250929050565b600082601f8301126115ff57600080fd5b8135602067ffffffffffffffff8083111561161c5761161c611a79565b8260051b604051601f19603f8301168101818110848211171561164157611641611a79565b6040528481528381019250868401828801850189101561166057600080fd5b600092505b8583101561168a576116768161158b565b845292840192600192909201918401611665565b50979650505050505050565b6000602082840312156116a857600080fd5b6114238261158b565b600080604083850312156116c457600080fd5b6116cd8361158b565b91506116db6020840161158b565b90509250929050565b6000806000606084860312156116f957600080fd5b6117028461158b565b95602085013595506040909401359392505050565b6000806040838503121561172a57600080fd5b823567ffffffffffffffff8082111561174257600080fd5b61174e868387016115ee565b9350602085013591508082111561176457600080fd5b50611771858286016115ee565b9150509250929050565b6000806000806000806060878903121561179457600080fd5b863567ffffffffffffffff808211156117ac57600080fd5b6117b88a838b016115a2565b909850965060208901359150808211156117d157600080fd5b6117dd8a838b016115a2565b909650945060408901359150808211156117f657600080fd5b5061180389828a016115a2565b979a9699509497509295939492505050565b6000806000806000806000806080898b03121561183157600080fd5b883567ffffffffffffffff8082111561184957600080fd5b6118558c838d016115a2565b909a50985060208b013591508082111561186e57600080fd5b61187a8c838d016115a2565b909850965060408b013591508082111561189357600080fd5b61189f8c838d016115a2565b909650945060608b01359150808211156118b857600080fd5b506118c58b828c016115a2565b999c989b5096995094979396929594505050565b6000602082840312156118eb57600080fd5b8151801515811461142357600080fd5b60006020828403121561190d57600080fd5b5035919050565b60006020828403121561192657600080fd5b5051919050565b600081518084526020808501945080840160005b838110156119665781516001600160a01b031687529582019590820190600101611941565b509495945050505050565b60008251611983818460208701611a06565b9190910192915050565b6040815260006119a0604083018561192d565b82810360208401526119b2818561192d565b95945050505050565b60208152600082518060208401526119da816040850160208701611a06565b601f01601f19169190910160400192915050565b60008219821115611a0157611a01611a4d565b500190565b60005b83811015611a21578181015183820152602001611a09565b838111156111bf5750506000910152565b6000600019821415611a4657611a46611a4d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220af52a95939612de595158b451b6c3b01f3c8b73df056fde70e6d1b3fdc2fe18164736f6c6343000805003300000000000000000000000016e46dec73c0d372b461718869fba264ec08b1370000000000000000000000003d7098bf88675f09fb0c1c746dbe41af2686387a000000000000000000000000d7fb19f642aef171ff5eafc327247188d5a6fa2900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000300000000000000000000000044ea05092bbe5b9b756a4ef947fde8017f648bf4000000000000000000000000751da9be610b4bd834ea9b81570af41f9a238bf1000000000000000000000000956bd329fe55d3de016da1980f0925b8672f8931

Deployed Bytecode

0x6080604052600436106100e15760003560e01c8063c62556261161007f578063d3f73c9411610059578063d3f73c941461027c578063d936547e146102bc578063e2f273bd146102ec578063e5e388bb1461030c57600080fd5b8063c625562614610211578063caf5f67d14610231578063d0c567dc1461024657600080fd5b80638bcc4166116100bb5780638bcc4166146101665780639020a12d146101a357806391d194a3146101c3578063ae12f971146101fe57600080fd5b806302d5f05f14610104578063605acecc1461012657806362bfdf041461014657600080fd5b366100ff57604051633ebdb28f60e11b815260040160405180910390fd5b600080fd5b34801561011057600080fd5b5061012461011f3660046116e4565b61032c565b005b34801561013257600080fd5b5061012461014136600461177b565b6104ae565b34801561015257600080fd5b50610124610161366004611717565b61079a565b34801561017257600080fd5b50610186610181366004611696565b6108c3565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101af57600080fd5b506101246101be3660046116b1565b610977565b3480156101cf57600080fd5b506101f06101de3660046118fb565b60086020526000908152604090205481565b60405190815260200161019a565b61012461020c3660046116e4565b610a2c565b34801561021d57600080fd5b5061018661022c3660046118fb565b610c63565b34801561023d57600080fd5b50610124610c8d565b34801561025257600080fd5b50610186610261366004611696565b600a602052600090815260409020546001600160a01b031681565b34801561028857600080fd5b506102ac6102973660046118fb565b60076020526000908152604090205460ff1681565b604051901515815260200161019a565b3480156102c857600080fd5b506102ac6102d7366004611696565b60096020526000908152604090205460ff1681565b3480156102f857600080fd5b50610186610307366004611696565b610dcd565b34801561031857600080fd5b50610124610327366004611815565b610e7f565b600260005414156103845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260009081556001600160a01b03841681526009602052604090205460ff166103c157604051630b094f2760e31b815260040160405180910390fd5b806103df57604051635061173760e11b815260040160405180910390fd5b816103fd5760405163162908e360e11b815260040160405180910390fd5b60008181526006602052604090205460ff161561042d57604051631242148d60e31b815260040160405180910390fd5b6104426001600160a01b038416333085611154565b60008181526006602052604090819020805460ff191660011790555181906001600160a01b0385169033907f26c4308021cef5cdbc618fee8b61faf9de6b8f7e4e49fac43869dc1a267564089061049c9087815260200190565b60405180910390a45050600160005550565b6002546001600160a01b03163314806104d157506003546001600160a01b031633145b6104ee576040516339218f3b60e01b815260040160405180910390fd5b60015460009067ffffffffffffffff81111561050c5761050c611a79565b604051908082528060200260200182016040528015610535578160200160208202803683370190505b50905060005b8681101561071857600088888381811061055757610557611a63565b60209081029290920135600081815260069093526040909220549192505060ff1661059557604051635061173760e11b815260040160405180910390fd5b60008787848181106105a9576105a9611a63565b90506020020160208101906105be9190611696565b905060008686858181106105d4576105d4611a63565b6000868152600760209081526040909120549102929092013592505060ff166107025760005b60015481101561067d57826001600160a01b03166001828154811061062157610621611a63565b6000918252602090912001546001600160a01b0316141561066b578186828151811061064f5761064f611a63565b6020026020010181815161066391906119ee565b90525061067d565b8061067581611a32565b9150506105fa565b6001548114156106a05760405163c1ab6dc160e01b815260040160405180910390fd5b60008481526007602052604090819020805460ff191660011790555184906001600160a01b038516907f23a7eb1713e2646208e5402f77075131401665dadd2911c8bf37896fd71f44d0906106f89086815260200190565b60405180910390a3505b505050808061071090611a32565b91505061053b565b5060005b815181101561079057600082828151811061073957610739611a63565b60200260200101519050600081111561077d5761077d6001838154811061076257610762611a63565b6000918252602090912001546001600160a01b0316826111c5565b508061078881611a32565b91505061071c565b5050505050505050565b6002546001600160a01b031633146107c5576040516339218f3b60e01b815260040160405180910390fd5b81516107e45760405163b98a411360e01b815260040160405180910390fd5b8051825114610809576040516001621398b960e31b0319815260040160405180910390fd5b60005b82518110156108855761083783828151811061082a5761082a611a63565b60200260200101516111f3565b61087382828151811061084c5761084c611a63565b602002602001015184838151811061086657610866611a63565b60200260200101516112b8565b8061087d81611a32565b91505061080c565b507fd9d194011a7c8d40eabd7bedec3d680a10f5a6d6ec0fc33ee85139c72b578cc882826040516108b792919061198d565b60405180910390a15050565b6002546000906001600160a01b031633146108f1576040516339218f3b60e01b815260040160405180910390fd5b6001600160a01b0382166109185760405163d92e233d60e01b815260040160405180910390fd5b6003546040516001600160a01b038085169216907f06bc331032840de3e44179cee67a8860508a9c70737f1e433476e3a9a255b25f90600090a350600380546001600160a01b0319166001600160a01b0383169081179091555b919050565b6002546001600160a01b031633146109a2576040516339218f3b60e01b815260040160405180910390fd5b6001600160a01b0381166109c95760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038083166000818152600a602052604080822080548686166001600160a01b03198216811790925591519190941693929184917f29c43740e30a43a4bde80c974c8b8e58a0ee4541d926634a0b1704aa07fb38409190a4505050565b60026000541415610a7f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037b565b600260009081556001600160a01b03841681526009602052604090205460ff168015610aaa57508115155b80610adb57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148015610adb57503415155b610af857604051634eba4d4960e11b815260040160405180910390fd5b80610b165760405163148fe22160e11b815260040160405180910390fd5b600081815260056020526040812080548290610b3190611a32565b918290555090503415801590610b6357506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b15610bfa576004546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610ba1573d6000803e3d6000fd5b506040805134815260208101839052839173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9133917fad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69910160405180910390a4610c58565b610c0f6001600160a01b038516333086611154565b604080518481526020810183905283916001600160a01b0387169133917fad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69910160405180910390a45b505060016000555050565b60018181548110610c7357600080fd5b6000918252602090912001546001600160a01b0316905081565b6002546001600160a01b03163314610cb8576040516339218f3b60e01b815260040160405180910390fd5b60005b600154811015610dca57600060018281548110610cda57610cda611a63565b60009182526020822001546040516370a0823160e01b81523060048201526001600160a01b03909116925082906370a082319060240160206040518083038186803b158015610d2857600080fd5b505afa158015610d3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d609190611914565b90508015610d7257610d7282826111c5565b816001600160a01b03167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c7782604051610dad91815260200190565b60405180910390a250508080610dc290611a32565b915050610cbb565b50565b6002546000906001600160a01b03163314610dfb576040516339218f3b60e01b815260040160405180910390fd5b6001600160a01b038216610e225760405163d92e233d60e01b815260040160405180910390fd5b6002546040516001600160a01b038085169216907ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc90600090a350600280546001600160a01b0319166001600160a01b0392909216918217905590565b6002546001600160a01b0316331480610ea257506003546001600160a01b031633145b610ebf576040516339218f3b60e01b815260040160405180910390fd5b60015460009067ffffffffffffffff811115610edd57610edd611a79565b604051908082528060200260200182016040528015610f06578160200160208202803683370190505b509050878614610f29576040516335411d8b60e01b815260040160405180910390fd5b60005b888110156110eb5760008a8a83818110610f4857610f48611a63565b9050602002013590506000878784818110610f6557610f65611a63565b9050602002016020810190610f7a9190611696565b90506000868685818110610f9057610f90611a63565b90506020020135905060008b8b86818110610fad57610fad611a63565b90506020020135905080600860008681526020019081526020016000205410156110d45760005b60015481101561105757836001600160a01b031660018281548110610ffb57610ffb611a63565b6000918252602090912001546001600160a01b03161415611045578287828151811061102957611029611a63565b6020026020010181815161103d91906119ee565b905250611057565b8061104f81611a32565b915050610fd4565b60015481141561107a5760405163c1ab6dc160e01b815260040160405180910390fd5b600085815260086020908152604091829020849055815184815290810185905286916001600160a01b038716917fc7c2927bbf2a3cafe5c51105d5ee1aba33d0016c7192d1bb15128f25917414ee910160405180910390a3505b5050505080806110e390611a32565b915050610f2c565b5060005b815181101561114857600082828151811061110c5761110c611a63565b602002602001015190506000811115611135576111356001838154811061076257610762611a63565b508061114081611a32565b9150506110ef565b50505050505050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526111bf9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261130f565b50505050565b6001600160a01b038083166000818152600a6020526040902054909116906111ee9082846113e1565b505050565b6001600160a01b03811660009081526009602052604090205460ff161561122d5760405163b73e95e160e01b815260040160405180910390fd5b6001600160a01b0381166112545760405163d92e233d60e01b815260040160405180910390fd5b6001805480820182557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b039093166001600160a01b031990931683179055600091825260096020526040909120805460ff19169091179055565b6001600160a01b0382166112df5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b039081166000908152600a602052604090208054919092166001600160a01b0319909116179055565b6000611364826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114119092919063ffffffff16565b8051909150156111ee578080602001905181019061138291906118d9565b6111ee5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161037b565b6040516001600160a01b0383166024820152604481018290526111ee90849063a9059cbb60e01b90606401611188565b6060611420848460008561142a565b90505b9392505050565b60608247101561148b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161037b565b843b6114d95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161037b565b600080866001600160a01b031685876040516114f59190611971565b60006040518083038185875af1925050503d8060008114611532576040519150601f19603f3d011682016040523d82523d6000602084013e611537565b606091505b5091509150611547828286611552565b979650505050505050565b60608315611561575081611423565b8251156115715782518084602001fd5b8160405162461bcd60e51b815260040161037b91906119bb565b80356001600160a01b038116811461097257600080fd5b60008083601f8401126115b457600080fd5b50813567ffffffffffffffff8111156115cc57600080fd5b6020830191508360208260051b85010111156115e757600080fd5b9250929050565b600082601f8301126115ff57600080fd5b8135602067ffffffffffffffff8083111561161c5761161c611a79565b8260051b604051601f19603f8301168101818110848211171561164157611641611a79565b6040528481528381019250868401828801850189101561166057600080fd5b600092505b8583101561168a576116768161158b565b845292840192600192909201918401611665565b50979650505050505050565b6000602082840312156116a857600080fd5b6114238261158b565b600080604083850312156116c457600080fd5b6116cd8361158b565b91506116db6020840161158b565b90509250929050565b6000806000606084860312156116f957600080fd5b6117028461158b565b95602085013595506040909401359392505050565b6000806040838503121561172a57600080fd5b823567ffffffffffffffff8082111561174257600080fd5b61174e868387016115ee565b9350602085013591508082111561176457600080fd5b50611771858286016115ee565b9150509250929050565b6000806000806000806060878903121561179457600080fd5b863567ffffffffffffffff808211156117ac57600080fd5b6117b88a838b016115a2565b909850965060208901359150808211156117d157600080fd5b6117dd8a838b016115a2565b909650945060408901359150808211156117f657600080fd5b5061180389828a016115a2565b979a9699509497509295939492505050565b6000806000806000806000806080898b03121561183157600080fd5b883567ffffffffffffffff8082111561184957600080fd5b6118558c838d016115a2565b909a50985060208b013591508082111561186e57600080fd5b61187a8c838d016115a2565b909850965060408b013591508082111561189357600080fd5b61189f8c838d016115a2565b909650945060608b01359150808211156118b857600080fd5b506118c58b828c016115a2565b999c989b5096995094979396929594505050565b6000602082840312156118eb57600080fd5b8151801515811461142357600080fd5b60006020828403121561190d57600080fd5b5035919050565b60006020828403121561192657600080fd5b5051919050565b600081518084526020808501945080840160005b838110156119665781516001600160a01b031687529582019590820190600101611941565b509495945050505050565b60008251611983818460208701611a06565b9190910192915050565b6040815260006119a0604083018561192d565b82810360208401526119b2818561192d565b95945050505050565b60208152600082518060208401526119da816040850160208701611a06565b601f01601f19169190910160400192915050565b60008219821115611a0157611a01611a4d565b500190565b60005b83811015611a21578181015183820152602001611a09565b838111156111bf5750506000910152565b6000600019821415611a4657611a46611a4d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220af52a95939612de595158b451b6c3b01f3c8b73df056fde70e6d1b3fdc2fe18164736f6c63430008050033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000016e46dec73c0d372b461718869fba264ec08b1370000000000000000000000003d7098bf88675f09fb0c1c746dbe41af2686387a000000000000000000000000d7fb19f642aef171ff5eafc327247188d5a6fa2900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000300000000000000000000000044ea05092bbe5b9b756a4ef947fde8017f648bf4000000000000000000000000751da9be610b4bd834ea9b81570af41f9a238bf1000000000000000000000000956bd329fe55d3de016da1980f0925b8672f8931

-----Decoded View---------------
Arg [0] : _opolisAdmin (address): 0x16e46dec73c0D372b461718869Fba264eC08b137
Arg [1] : _opolisHelper (address): 0x3d7098bF88675F09Fb0c1c746dbe41aF2686387A
Arg [2] : _ethLiq (address): 0xd7FB19F642AeF171ff5EAFC327247188d5A6FA29
Arg [3] : _tokenList (address[]): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0x6B175474E89094C44Da98b954EedeAC495271d0F,0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [4] : _destinationList (address[]): 0x44EA05092bbE5b9b756a4EF947FDE8017F648bf4,0x751DA9Be610B4Bd834EA9B81570aF41F9A238bf1,0x956bD329Fe55d3De016DA1980f0925B8672F8931

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000016e46dec73c0d372b461718869fba264ec08b137
Arg [1] : 0000000000000000000000003d7098bf88675f09fb0c1c746dbe41af2686387a
Arg [2] : 000000000000000000000000d7fb19f642aef171ff5eafc327247188d5a6fa29
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [7] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [8] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 00000000000000000000000044ea05092bbe5b9b756a4ef947fde8017f648bf4
Arg [11] : 000000000000000000000000751da9be610b4bd834ea9b81570af41f9a238bf1
Arg [12] : 000000000000000000000000956bd329fe55d3de016da1980f0925b8672f8931


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.