ETH Price: $2,355.71 (-0.33%)

Contract

0x29Bfea46b96A9c92D7B134AFcEd640809628e703
Transaction Hash
Method
Block
From
To
Convert Multiple158763032024-09-10 8:57:412 days ago1725958661IN
0x29Bfea46...09628e703
0 ETH0.000085710.0415
Convert Multiple156785102024-09-03 11:16:399 days ago1725362199IN
0x29Bfea46...09628e703
0 ETH0.000066460.033
Convert Multiple154797592024-08-27 12:54:5616 days ago1724763296IN
0x29Bfea46...09628e703
0 ETH0.000034220.017
Convert Multiple152784882024-08-20 12:03:1423 days ago1724155394IN
0x29Bfea46...09628e703
0 ETH0.000046170.0231
Convert Multiple152784742024-08-20 12:02:3423 days ago1724155354IN
0x29Bfea46...09628e703
0 ETH0.000046120.0229
Convert Multiple150770732024-08-13 11:23:5630 days ago1723548236IN
0x29Bfea46...09628e703
0 ETH0.000047310.0235
Convert Multiple148782052024-08-06 12:45:0837 days ago1722948308IN
0x29Bfea46...09628e703
0 ETH0.000093720.0458
Convert Multiple148781792024-08-06 12:43:5237 days ago1722948232IN
0x29Bfea46...09628e703
0 ETH0.000099240.0483
Convert Multiple144760642024-07-23 11:29:1451 days ago1721734154IN
0x29Bfea46...09628e703
0 ETH0.000132970.0654
Convert Multiple136738742024-06-25 9:15:0379 days ago1719306903IN
0x29Bfea46...09628e703
0 ETH0.000125620.0628
Convert Multiple134725252024-06-18 8:39:0286 days ago1718699942IN
0x29Bfea46...09628e703
0 ETH0.00012960.0633
Convert Multiple128680812024-05-28 5:32:08107 days ago1716874328IN
0x29Bfea46...09628e703
0 ETH0.000305830.155
Convert128680422024-05-28 5:30:12107 days ago1716874212IN
0x29Bfea46...09628e703
0 ETH0.000049630.152
Convert Multiple124689822024-05-14 6:56:04121 days ago1715669764IN
0x29Bfea46...09628e703
0 ETH0.000169290.0829
Convert Multiple120658682024-04-30 7:09:59135 days ago1714460999IN
0x29Bfea46...09628e703
0 ETH0.000775280.572
Convert Multiple114594612024-04-09 6:50:37156 days ago1712645437IN
0x29Bfea46...09628e703
0 ETH0.006758363.26
Convert Multiple114594252024-04-09 6:48:47156 days ago1712645327IN
0x29Bfea46...09628e703
0 ETH0.006828673.27
Convert Multiple108785472024-03-19 5:54:58177 days ago1710827698IN
0x29Bfea46...09628e703
0 ETH0.007182413.56
Convert106787652024-03-12 6:43:59184 days ago1710225839IN
0x29Bfea46...09628e703
0 ETH0.001407217.87
Convert106787652024-03-12 6:43:59184 days ago1710225839IN
0x29Bfea46...09628e703
0 ETH0.002922568.602
Convert Multiple104777932024-03-05 5:52:57191 days ago1709617977IN
0x29Bfea46...09628e703
0 ETH0.0072668511.5
Convert104777622024-03-05 5:51:23191 days ago1709617883IN
0x29Bfea46...09628e703
0 ETH0.0076444211.7
Convert104777522024-03-05 5:50:52191 days ago1709617852IN
0x29Bfea46...09628e703
0 ETH0.0065168410.4
Convert104777402024-03-05 5:50:16191 days ago1709617816IN
0x29Bfea46...09628e703
0 ETH0.0040703110.9
Convert104777282024-03-05 5:49:40191 days ago1709617780IN
0x29Bfea46...09628e703
0 ETH0.0067433610.7

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ConverterV3

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 7 : ConverterV3.sol
pragma solidity 0.7.6;
pragma abicoder v2;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/access/Ownable.sol';


interface ISwapRouter {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 limitSqrtPrice;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);
}


contract ConverterV3 is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 private constant MAX_UINT = type(uint256).max;

    address public immutable platformToken;

    address public immutable WNATIVE;

    address[] public receivers;

    uint256[] public feeShare;

    address public router;

    // V1 - V5: OK
    mapping(address => address) internal _bridges;

    // E1: OK
    event LogBridgeSet(address indexed token, address indexed bridge);
    // E1: OK
    event LogConvert(
        address indexed server,
        address indexed token,
        uint256 amount
    );

    event ReceiverChanged(
        address newReceiver,
        address oldReceiver,
        uint256 indexed index
    );

    event FeeShareChanged(
        uint256[] oldFeeShare,
        uint256[] newFeeShare
    );

    constructor(
        address _platformToken,
        address _WNATIVE,
        address _router,
        address[] memory _receivers,
        uint256[] memory _feeShare
    ) public {
        platformToken = _platformToken;
        WNATIVE = _WNATIVE;
        router = _router;

        require(_receivers.length == _feeShare.length, "Invalid data");
        receivers = _receivers;

        uint256 totalFee = 0;

        for (uint256 i = 0; i < _feeShare.length; i++) {
            totalFee = totalFee + _feeShare[i];
        }

        require(totalFee == 10000, "Invalid fee params");

        feeShare = _feeShare;
    }

    function changeRouter(address _router) external onlyOwner {
        require(_router != address(0), "Invalid router");
        router = _router;
    }
    
    function bridgeFor(address token) public view returns (address bridge) {
        bridge = _bridges[token];
        if (bridge == address(0)) {
            bridge = WNATIVE;
        }
    }

    
    function setBridge(address token, address bridge) external onlyOwner {
        // Checks
        require(
            token != platformToken && token != WNATIVE && token != bridge,
            "QuickConverter: Invalid bridge"
        );

        // Effects
        _bridges[token] = bridge;
        emit LogBridgeSet(token, bridge);
    }

    function changeReceiver(address _receiver, uint256 index) external onlyOwner {
        require(_receiver != address(0), "Inavlid receiver");
        address oldReceiver = receivers[index];
        receivers[index] = _receiver;

        emit ReceiverChanged(
            _receiver,
            oldReceiver,
            index
        );
    }

    function changeFeeShareConfig(uint256[] memory _feeShare) external onlyOwner {
        require(receivers.length == _feeShare.length, "Invalid data");

        uint256 totalFee = 0;

        for (uint256 i = 0; i < _feeShare.length; i++) {
            totalFee = totalFee + _feeShare[i];
        }

        require(totalFee == 10000, "Invalid fee params");

        emit FeeShareChanged(
            feeShare,
            _feeShare
        );

        feeShare = _feeShare;

    }

    
    // It's not a fool proof solution, but it prevents flash loans, so here it's ok to use tx.origin
    modifier onlyEOA() {
        // Try to make flash-loan exploit harder to do by only allowing externally owned addresses.
        require(msg.sender == tx.origin, "QuickConverter: must use EOA");
        _;
    }

    // F1 - F10: OK
    // F3: _convert is separate to save gas by only checking the 'onlyEOA' modifier once in case of convertMultiple
    // F6: There is an exploit to add lots of QUICK to the dragonLair, run convert, then remove the QUICK again.
    //     As the size of the DragonLair has grown, this requires large amounts of funds and isn't super profitable anymore
    //     The onlyEOA modifier prevents this being done with a flash loan.
    // C1 - C24: OK
    function convert(address token) external onlyEOA() {
        _convert(token);
        distribute();
    }


    // F1 - F10: OK, see convert
    // C1 - C24: OK
    // C3: Loop is under control of the caller
    function convertMultiple(
        address[] calldata tokens
    ) external onlyEOA() {
        // TODO: This can be optimized a fair bit, but this is safer and simpler for now
        uint256 len = tokens.length;
        for (uint256 i = 0; i < len; i++) {
            _convert(tokens[i]);
        }

        distribute();
    }

    function _convert(address token) internal {
        
        uint256 amount = IERC20(token).balanceOf(address(this));
        if (amount > 0) {
            _convertStep(token, amount);
        }

        emit LogConvert(
            msg.sender,
            token,
            amount
        );
        
    }

    // F1 - F10: OK
    // C1 - C24: OK
    // All _swap, _toPlatformToken, _convertStep: X1 - X5: OK
    function _convertStep(
        address token,
        uint256 amount
    ) internal returns (uint256 platformTokenOut) {
        // Interactions
        if (token == platformToken) {
            // eg. QUICK
            platformTokenOut = amount;
        } else if (token == WNATIVE) {
            // eg. WMATIC
            platformTokenOut = _toPlatformToken(
                WNATIVE,
                amount
            );
        } else {
            // eg. USDC
            address bridge = bridgeFor(token);
            platformTokenOut = _convertStep(
                bridge,
                _swap(token, bridge, amount, address(this))
            );
            
        }
    }

    // F1 - F10: OK
    // C1 - C24: OK
    // All safeTransfer, swap: X1 - X5: OK
    function _swap(
        address fromToken,
        address toToken,
        uint256 amountIn,
        address to
    ) internal returns (uint256 amountOut) {

        ISwapRouter.ExactInputSingleParams memory params = ISwapRouter.ExactInputSingleParams({
            tokenIn: fromToken,
            tokenOut: toToken,
            recipient: to,
            deadline: block.timestamp + 100,
            amountIn: amountIn,
            amountOutMinimum: 1,
            limitSqrtPrice: 0
        });
        approve(
            router,
            fromToken,
            amountIn
        );
        amountOut = ISwapRouter(router).exactInputSingle(params);
    }

    // F1 - F10: OK
    // C1 - C24: OK
    function _toPlatformToken(address token, uint256 amountIn)
        internal
        returns (uint256 amountOut)
    {
        // X1 - X5: OK
        amountOut = _swap(token, platformToken, amountIn, address(this));
    }

    function distribute() public {
        uint256 amountPT = IERC20(platformToken).balanceOf(address(this));

        for (uint256 i = 0; i < receivers.length; i++) {
            address receiverAddress = receivers[i];
            uint256 receiverShare = feeShare[i];

            uint256 amount = amountPT.mul(receiverShare).div(10000);

            if (i == receivers.length - 1) {
                amount = IERC20(platformToken).balanceOf(address(this));
            }

            IERC20(platformToken).safeTransfer(receiverAddress, amount);

        }
    }

    function approve(
        address addressToApprove,
        address token,
        uint256 amount
    ) internal {
        IERC20 _token = IERC20(token);
        uint256 allowance = _token.allowance(address(this), addressToApprove);
        if (allowance < amount) {
            _token.safeApprove(addressToApprove, 0);
            _token.safeIncreaseAllowance(addressToApprove, MAX_UINT);
        }
        
    }
}

File 2 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.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 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
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) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        // 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) {
        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) {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @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. 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) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 6 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_platformToken","type":"address"},{"internalType":"address","name":"_WNATIVE","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_feeShare","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"oldFeeShare","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"newFeeShare","type":"uint256[]"}],"name":"FeeShareChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"bridge","type":"address"}],"name":"LogBridgeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"server","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newReceiver","type":"address"},{"indexed":false,"internalType":"address","name":"oldReceiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"}],"name":"ReceiverChanged","type":"event"},{"inputs":[],"name":"WNATIVE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"bridgeFor","outputs":[{"internalType":"address","name":"bridge","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_feeShare","type":"uint256[]"}],"name":"changeFeeShareConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"changeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"changeRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"convertMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"receivers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200277d3803806200277d8339810160408190526200003491620002d4565b60006200004062000180565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160601b0319606086811b821660805285901b1660a052600380546001600160a01b0385166001600160a01b03199091161790558051825114620000ee5760405162461bcd60e51b8152600401620000e590620003db565b60405180910390fd5b81516200010390600190602085019062000184565b506000805b825181101562000139578281815181106200011f57fe5b602002602001015182019150808060010191505062000108565b5080612710146200015e5760405162461bcd60e51b8152600401620000e59062000401565b815162000173906002906020850190620001ee565b505050505050506200046f565b3390565b828054828255906000526020600020908101928215620001dc579160200282015b82811115620001dc57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620001a5565b50620001ea9291506200022c565b5090565b828054828255906000526020600020908101928215620001dc579160200282015b82811115620001dc5782518255916020019190600101906200020f565b5b80821115620001ea57600081556001016200022d565b80516001600160a01b03811681146200025b57600080fd5b919050565b600082601f83011262000271578081fd5b815160206200028a620002848362000451565b6200042d565b8281528181019085830183850287018401881015620002a7578586fd5b855b85811015620002c757815184529284019290840190600101620002a9565b5090979650505050505050565b600080600080600060a08688031215620002ec578081fd5b620002f78662000243565b945060206200030881880162000243565b9450620003186040880162000243565b60608801519094506001600160401b038082111562000335578384fd5b818901915089601f83011262000349578384fd5b81516200035a620002848262000451565b81815284810190848601868402860187018e101562000377578788fd5b8795505b83861015620003a4576200038f8162000243565b8352600195909501949186019186016200037b565b5060808c01519097509450505080831115620003be578384fd5b5050620003ce8882890162000260565b9150509295509295909350565b6020808252600c908201526b496e76616c6964206461746160a01b604082015260600190565b602080825260129082015271496e76616c69642066656520706172616d7360701b604082015260600190565b6040518181016001600160401b03811182821017156200044957fe5b604052919050565b60006001600160401b038211156200046557fe5b5060209081020190565b60805160601c60a05160601c6122b2620004cb600039806109175280610a805280610b26528061133a52806113915250806108c05280610b815280610c305280610d965280610e3852806112df52806114c752506122b26000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063b11e93a911610097578063def2489b11610066578063def2489b146101e2578063e4fc6b6d146101f5578063f2fde38b146101fd578063f887ea401461021057610100565b8063b11e93a9146101ac578063b381cf40146101bf578063bfd772fc146101c7578063d1b812cd146101da57610100565b8063768c4c82116100d3578063768c4c821461015e5780638da5cb5b146101715780639d22ae8c14610186578063a761a9391461019957610100565b8063340ac20f146101055780633e0d6e501461011a578063715018a61461014357806374b45ed51461014b575b600080fd5b610118610113366004611d90565b610218565b005b61012d610128366004611f22565b61035d565b60405161013a91906121cf565b60405180910390f35b61011861037e565b610118610159366004611e74565b610495565b61011861016c366004611ddc565b610639565b6101796107fa565b60405161013a9190611f52565b610118610194366004611daa565b610816565b6101796101a7366004611d90565b610a50565b6101186101ba366004611e05565b610aa5565b610179610b24565b6101796101d5366004611f22565b610b48565b610179610b7f565b6101186101f0366004611d90565b610ba3565b610118610bf0565b61011861020b366004611d90565b610e6e565b61017961100f565b61022061102b565b73ffffffffffffffffffffffffffffffffffffffff1661023e6107fa565b73ffffffffffffffffffffffffffffffffffffffff16146102c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d9061212c565b60405180910390fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6002818154811061036d57600080fd5b600091825260209091200154905081565b61038661102b565b73ffffffffffffffffffffffffffffffffffffffff166103a46107fa565b73ffffffffffffffffffffffffffffffffffffffff161461042657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b61049d61102b565b73ffffffffffffffffffffffffffffffffffffffff166104bb6107fa565b73ffffffffffffffffffffffffffffffffffffffff161461053d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b805160015414610579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612019565b6000805b82518110156105ab5782818151811061059257fe5b602002602001015182019150808060010191505061057d565b5080612710146105e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d906120f5565b7fe570af3424190abbb44972cd072e006ad126c4c8c4ad8ab72219eb83c91f6d23600283604051610619929190611f9a565b60405180910390a18151610634906002906020850190611d0c565b505050565b61064161102b565b73ffffffffffffffffffffffffffffffffffffffff1661065f6107fa565b73ffffffffffffffffffffffffffffffffffffffff16146106e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821661072e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d906120be565b60006001828154811061073d57fe5b6000918252602090912001546001805473ffffffffffffffffffffffffffffffffffffffff909216925084918490811061077357fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550817fa4f0519509ecedb907867dc65c99b1779b5acf97f115662800d7d582f8539a8884836040516107ed929190611f73565b60405180910390a2505050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61081e61102b565b73ffffffffffffffffffffffffffffffffffffffff1661083c6107fa565b73ffffffffffffffffffffffffffffffffffffffff16146108be57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561096657507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561099e57508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6109d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612050565b73ffffffffffffffffffffffffffffffffffffffff82811660008181526004602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169486169485179055517f2e103aa707acc565f9a1547341914802b2bfe977fd79c595209f248ae4b006139190a35050565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600460205260409020541680610aa057507f00000000000000000000000000000000000000000000000000000000000000005b919050565b333214610ade576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612087565b8060005b81811015610b1b57610b13848483818110610af957fe5b9050602002016020810190610b0e9190611d90565b61102f565b600101610ae2565b50610634610bf0565b7f000000000000000000000000000000000000000000000000000000000000000081565b60018181548110610b5857600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b7f000000000000000000000000000000000000000000000000000000000000000081565b333214610bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612087565b610be58161102f565b610bed610bf0565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610c65903090600401611f52565b60206040518083038186803b158015610c7d57600080fd5b505afa158015610c91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb59190611f3a565b905060005b600154811015610e6a57600060018281548110610cd357fe5b60009182526020822001546002805473ffffffffffffffffffffffffffffffffffffffff90921693509084908110610d0757fe5b60009182526020822001549150610d2a612710610d248785611151565b906111cd565b6001549091507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01841415610e1e576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610dcb903090600401611f52565b60206040518083038186803b158015610de357600080fd5b505afa158015610df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1b9190611f3a565b90505b610e5f73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016848361124e565b505050600101610cba565b5050565b610e7661102b565b73ffffffffffffffffffffffffffffffffffffffff16610e946107fa565b73ffffffffffffffffffffffffffffffffffffffff1614610f1657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610f82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806121d96026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b3390565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190611084903090600401611f52565b60206040518083038186803b15801561109c57600080fd5b505afa1580156110b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d49190611f3a565b905080156110e8576110e682826112db565b505b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fa99b1b6cca4f7e8cc6239870877afb13732b63c9569c23fdf2e8b9f1281bf3818360405161114591906121cf565b60405180910390a35050565b600082611160575060006111c7565b8282028284828161116d57fe5b04146111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122256021913960400191505060405180910390fd5b90505b92915050565b600080821161123d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161124657fe5b049392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526106349084906113e7565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113385750806111c7565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113bd576113b67f0000000000000000000000000000000000000000000000000000000000000000836114bf565b90506111c7565b60006113c884610a50565b90506113df816113da868487306114f4565b6112db565b949350505050565b6000611449826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661160d9092919063ffffffff16565b8051909150156106345780806020019051602081101561146857600080fd5b5051610634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612246602a913960400191505060405180910390fd5b60006114ed837f000000000000000000000000000000000000000000000000000000000000000084306114f4565b9392505050565b6040805160e08101825273ffffffffffffffffffffffffffffffffffffffff808716825285811660208301528381169282019290925260644201606082015260808101849052600160a0820152600060c08201819052600354909261155b9116878661161c565b6003546040517fbc65118800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063bc651188906115b1908490600401612163565b602060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190611f3a565b9695505050505050565b60606113df8484600085611739565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152829060009073ffffffffffffffffffffffffffffffffffffffff83169063dd62ed3e906116759030908990600401611f73565b60206040518083038186803b15801561168d57600080fd5b505afa1580156116a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c59190611f3a565b905082811015611732576116f173ffffffffffffffffffffffffffffffffffffffff83168660006118f3565b61173273ffffffffffffffffffffffffffffffffffffffff8316867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611a81565b5050505050565b606082471015611794576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806121ff6026913960400191505060405180910390fd5b61179d85611bd4565b61180857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061187157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611834565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146118d3576040519150601f19603f3d011682016040523d82523d6000602084013e6118d8565b606091505b50915091506118e8828286611bda565b979650505050505050565b80158061199f5750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561197157600080fd5b505afa158015611985573d6000803e3d6000fd5b505050506040513d602081101561199b57600080fd5b5051155b6119f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806122706036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526106349084906113e7565b6000611b3e828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b158015611b0c57600080fd5b505afa158015611b20573d6000803e3d6000fd5b505050506040513d6020811015611b3657600080fd5b505190611c98565b6040805173ffffffffffffffffffffffffffffffffffffffff8616602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000179052909150611bce9085906113e7565b50505050565b3b151590565b60608315611be95750816114ed565b825115611bf95782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c5d578181015183820152602001611c45565b50505050905090810190601f168015611c8a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000828201838110156111c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b828054828255906000526020600020908101928215611d47579160200282015b82811115611d47578251825591602001919060010190611d2c565b50611d53929150611d57565b5090565b5b80821115611d535760008155600101611d58565b803573ffffffffffffffffffffffffffffffffffffffff81168114610aa057600080fd5b600060208284031215611da1578081fd5b6114ed82611d6c565b60008060408385031215611dbc578081fd5b611dc583611d6c565b9150611dd360208401611d6c565b90509250929050565b60008060408385031215611dee578182fd5b611df783611d6c565b946020939093013593505050565b60008060208385031215611e17578182fd5b823567ffffffffffffffff80821115611e2e578384fd5b818501915085601f830112611e41578384fd5b813581811115611e4f578485fd5b8660208083028501011115611e62578485fd5b60209290920196919550909350505050565b60006020808385031215611e86578182fd5b823567ffffffffffffffff80821115611e9d578384fd5b818501915085601f830112611eb0578384fd5b813581811115611ebc57fe5b83810260405185828201018181108582111715611ed557fe5b604052828152858101935084860182860187018a1015611ef3578788fd5b8795505b83861015611f15578035855260019590950194938601938601611ef7565b5098975050505050505050565b600060208284031215611f33578081fd5b5035919050565b600060208284031215611f4b578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b6000604082016040835280855480835260608501915086845260209250828420845b82811015611fd857815484529284019260019182019101611fbc565b50505083810382850152845180825285830191830190845b8181101561200c57835183529284019291840191600101611ff0565b5090979650505050505050565b6020808252600c908201527f496e76616c696420646174610000000000000000000000000000000000000000604082015260600190565b6020808252601e908201527f517569636b436f6e7665727465723a20496e76616c6964206272696467650000604082015260600190565b6020808252601c908201527f517569636b436f6e7665727465723a206d7573742075736520454f4100000000604082015260600190565b60208082526010908201527f496e61766c696420726563656976657200000000000000000000000000000000604082015260600190565b60208082526012908201527f496e76616c69642066656520706172616d730000000000000000000000000000604082015260600190565b6020808252600e908201527f496e76616c696420726f75746572000000000000000000000000000000000000604082015260600190565b600060e08201905073ffffffffffffffffffffffffffffffffffffffff808451168352806020850151166020840152806040850151166040840152606084015160608401526080840151608084015260a084015160a08401528060c08501511660c08401525092915050565b9081526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c6343000706000a00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e60000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9000000000000000000000000f6ad3ccf71abb3e12becf6b3d2a74c963859adcd00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000cf0b86f9944a60a0ba22b51a33c11d9e4de1ce9f0000000000000000000000001d8b6fa722230153be08c4fa4aa4b4c7cd01a95a0000000000000000000000006adf19594bc5cd86b4fab4ba1c2b8bc6a8e74ed3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000001a90

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063b11e93a911610097578063def2489b11610066578063def2489b146101e2578063e4fc6b6d146101f5578063f2fde38b146101fd578063f887ea401461021057610100565b8063b11e93a9146101ac578063b381cf40146101bf578063bfd772fc146101c7578063d1b812cd146101da57610100565b8063768c4c82116100d3578063768c4c821461015e5780638da5cb5b146101715780639d22ae8c14610186578063a761a9391461019957610100565b8063340ac20f146101055780633e0d6e501461011a578063715018a61461014357806374b45ed51461014b575b600080fd5b610118610113366004611d90565b610218565b005b61012d610128366004611f22565b61035d565b60405161013a91906121cf565b60405180910390f35b61011861037e565b610118610159366004611e74565b610495565b61011861016c366004611ddc565b610639565b6101796107fa565b60405161013a9190611f52565b610118610194366004611daa565b610816565b6101796101a7366004611d90565b610a50565b6101186101ba366004611e05565b610aa5565b610179610b24565b6101796101d5366004611f22565b610b48565b610179610b7f565b6101186101f0366004611d90565b610ba3565b610118610bf0565b61011861020b366004611d90565b610e6e565b61017961100f565b61022061102b565b73ffffffffffffffffffffffffffffffffffffffff1661023e6107fa565b73ffffffffffffffffffffffffffffffffffffffff16146102c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d9061212c565b60405180910390fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6002818154811061036d57600080fd5b600091825260209091200154905081565b61038661102b565b73ffffffffffffffffffffffffffffffffffffffff166103a46107fa565b73ffffffffffffffffffffffffffffffffffffffff161461042657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b61049d61102b565b73ffffffffffffffffffffffffffffffffffffffff166104bb6107fa565b73ffffffffffffffffffffffffffffffffffffffff161461053d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b805160015414610579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612019565b6000805b82518110156105ab5782818151811061059257fe5b602002602001015182019150808060010191505061057d565b5080612710146105e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d906120f5565b7fe570af3424190abbb44972cd072e006ad126c4c8c4ad8ab72219eb83c91f6d23600283604051610619929190611f9a565b60405180910390a18151610634906002906020850190611d0c565b505050565b61064161102b565b73ffffffffffffffffffffffffffffffffffffffff1661065f6107fa565b73ffffffffffffffffffffffffffffffffffffffff16146106e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821661072e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d906120be565b60006001828154811061073d57fe5b6000918252602090912001546001805473ffffffffffffffffffffffffffffffffffffffff909216925084918490811061077357fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550817fa4f0519509ecedb907867dc65c99b1779b5acf97f115662800d7d582f8539a8884836040516107ed929190611f73565b60405180910390a2505050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61081e61102b565b73ffffffffffffffffffffffffffffffffffffffff1661083c6107fa565b73ffffffffffffffffffffffffffffffffffffffff16146108be57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b7f00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561096657507f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e973ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561099e57508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6109d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612050565b73ffffffffffffffffffffffffffffffffffffffff82811660008181526004602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169486169485179055517f2e103aa707acc565f9a1547341914802b2bfe977fd79c595209f248ae4b006139190a35050565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600460205260409020541680610aa057507f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e95b919050565b333214610ade576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612087565b8060005b81811015610b1b57610b13848483818110610af957fe5b9050602002016020810190610b0e9190611d90565b61102f565b600101610ae2565b50610634610bf0565b7f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e981565b60018181548110610b5857600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b7f00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e681565b333214610bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030d90612087565b610be58161102f565b610bed610bf0565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e616906370a0823190610c65903090600401611f52565b60206040518083038186803b158015610c7d57600080fd5b505afa158015610c91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb59190611f3a565b905060005b600154811015610e6a57600060018281548110610cd357fe5b60009182526020822001546002805473ffffffffffffffffffffffffffffffffffffffff90921693509084908110610d0757fe5b60009182526020822001549150610d2a612710610d248785611151565b906111cd565b6001549091507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01841415610e1e576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e616906370a0823190610dcb903090600401611f52565b60206040518083038186803b158015610de357600080fd5b505afa158015610df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1b9190611f3a565b90505b610e5f73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e616848361124e565b505050600101610cba565b5050565b610e7661102b565b73ffffffffffffffffffffffffffffffffffffffff16610e946107fa565b73ffffffffffffffffffffffffffffffffffffffff1614610f1657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610f82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806121d96026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b3390565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190611084903090600401611f52565b60206040518083038186803b15801561109c57600080fd5b505afa1580156110b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d49190611f3a565b905080156110e8576110e682826112db565b505b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fa99b1b6cca4f7e8cc6239870877afb13732b63c9569c23fdf2e8b9f1281bf3818360405161114591906121cf565b60405180910390a35050565b600082611160575060006111c7565b8282028284828161116d57fe5b04146111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122256021913960400191505060405180910390fd5b90505b92915050565b600080821161123d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161124657fe5b049392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526106349084906113e7565b60007f00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113385750806111c7565b7f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e973ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113bd576113b67f0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9836114bf565b90506111c7565b60006113c884610a50565b90506113df816113da868487306114f4565b6112db565b949350505050565b6000611449826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661160d9092919063ffffffff16565b8051909150156106345780806020019051602081101561146857600080fd5b5051610634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612246602a913960400191505060405180910390fd5b60006114ed837f00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e684306114f4565b9392505050565b6040805160e08101825273ffffffffffffffffffffffffffffffffffffffff808716825285811660208301528381169282019290925260644201606082015260808101849052600160a0820152600060c08201819052600354909261155b9116878661161c565b6003546040517fbc65118800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063bc651188906115b1908490600401612163565b602060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190611f3a565b9695505050505050565b60606113df8484600085611739565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152829060009073ffffffffffffffffffffffffffffffffffffffff83169063dd62ed3e906116759030908990600401611f73565b60206040518083038186803b15801561168d57600080fd5b505afa1580156116a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c59190611f3a565b905082811015611732576116f173ffffffffffffffffffffffffffffffffffffffff83168660006118f3565b61173273ffffffffffffffffffffffffffffffffffffffff8316867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611a81565b5050505050565b606082471015611794576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806121ff6026913960400191505060405180910390fd5b61179d85611bd4565b61180857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061187157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611834565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146118d3576040519150601f19603f3d011682016040523d82523d6000602084013e6118d8565b606091505b50915091506118e8828286611bda565b979650505050505050565b80158061199f5750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561197157600080fd5b505afa158015611985573d6000803e3d6000fd5b505050506040513d602081101561199b57600080fd5b5051155b6119f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806122706036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526106349084906113e7565b6000611b3e828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b158015611b0c57600080fd5b505afa158015611b20573d6000803e3d6000fd5b505050506040513d6020811015611b3657600080fd5b505190611c98565b6040805173ffffffffffffffffffffffffffffffffffffffff8616602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000179052909150611bce9085906113e7565b50505050565b3b151590565b60608315611be95750816114ed565b825115611bf95782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c5d578181015183820152602001611c45565b50505050905090810190601f168015611c8a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000828201838110156111c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b828054828255906000526020600020908101928215611d47579160200282015b82811115611d47578251825591602001919060010190611d2c565b50611d53929150611d57565b5090565b5b80821115611d535760008155600101611d58565b803573ffffffffffffffffffffffffffffffffffffffff81168114610aa057600080fd5b600060208284031215611da1578081fd5b6114ed82611d6c565b60008060408385031215611dbc578081fd5b611dc583611d6c565b9150611dd360208401611d6c565b90509250929050565b60008060408385031215611dee578182fd5b611df783611d6c565b946020939093013593505050565b60008060208385031215611e17578182fd5b823567ffffffffffffffff80821115611e2e578384fd5b818501915085601f830112611e41578384fd5b813581811115611e4f578485fd5b8660208083028501011115611e62578485fd5b60209290920196919550909350505050565b60006020808385031215611e86578182fd5b823567ffffffffffffffff80821115611e9d578384fd5b818501915085601f830112611eb0578384fd5b813581811115611ebc57fe5b83810260405185828201018181108582111715611ed557fe5b604052828152858101935084860182860187018a1015611ef3578788fd5b8795505b83861015611f15578035855260019590950194938601938601611ef7565b5098975050505050505050565b600060208284031215611f33578081fd5b5035919050565b600060208284031215611f4b578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b6000604082016040835280855480835260608501915086845260209250828420845b82811015611fd857815484529284019260019182019101611fbc565b50505083810382850152845180825285830191830190845b8181101561200c57835183529284019291840191600101611ff0565b5090979650505050505050565b6020808252600c908201527f496e76616c696420646174610000000000000000000000000000000000000000604082015260600190565b6020808252601e908201527f517569636b436f6e7665727465723a20496e76616c6964206272696467650000604082015260600190565b6020808252601c908201527f517569636b436f6e7665727465723a206d7573742075736520454f4100000000604082015260600190565b60208082526010908201527f496e61766c696420726563656976657200000000000000000000000000000000604082015260600190565b60208082526012908201527f496e76616c69642066656520706172616d730000000000000000000000000000604082015260600190565b6020808252600e908201527f496e76616c696420726f75746572000000000000000000000000000000000000604082015260600190565b600060e08201905073ffffffffffffffffffffffffffffffffffffffff808451168352806020850151166020840152806040850151166040840152606084015160608401526080840151608084015260a084015160a08401528060c08501511660c08401525092915050565b9081526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c6343000706000a

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

00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e60000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9000000000000000000000000f6ad3ccf71abb3e12becf6b3d2a74c963859adcd00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000cf0b86f9944a60a0ba22b51a33c11d9e4de1ce9f0000000000000000000000001d8b6fa722230153be08c4fa4aa4b4c7cd01a95a0000000000000000000000006adf19594bc5cd86b4fab4ba1c2b8bc6a8e74ed3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000001a90

-----Decoded View---------------
Arg [0] : _platformToken (address): 0x68286607A1d43602d880D349187c3c48c0fD05E6
Arg [1] : _WNATIVE (address): 0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9
Arg [2] : _router (address): 0xF6Ad3CcF71Abb3E12beCf6b3D2a74C963859ADCd
Arg [3] : _receivers (address[]): 0xCf0B86f9944A60A0ba22b51a33C11d9E4dE1CE9F,0x1d8b6fA722230153BE08C4Fa4Aa4B4c7cd01A95a,0x6adf19594Bc5CD86B4FAB4Ba1C2B8Bc6a8e74eD3
Arg [4] : _feeShare (uint256[]): 1700,1500,6800

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000068286607a1d43602d880d349187c3c48c0fd05e6
Arg [1] : 0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9
Arg [2] : 000000000000000000000000f6ad3ccf71abb3e12becf6b3d2a74c963859adcd
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 000000000000000000000000cf0b86f9944a60a0ba22b51a33c11d9e4de1ce9f
Arg [7] : 0000000000000000000000001d8b6fa722230153be08c4fa4aa4b4c7cd01a95a
Arg [8] : 0000000000000000000000006adf19594bc5cd86b4fab4ba1c2b8bc6a8e74ed3
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 00000000000000000000000000000000000000000000000000000000000006a4
Arg [11] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [12] : 0000000000000000000000000000000000000000000000000000000000001a90


Block Transaction Gas Used Reward
view all blocks sequenced

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
[ 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.