ETH Price: $3,154.15 (-2.57%)
Gas: 5.8 Gwei

Contract

0xD1ca1F4dBB645710f5D5a9917AA984a47524f49A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Transaction Hash
Method
Block
From
To
Swap216147852025-01-13 9:52:111 min ago1736761931IN
Bitget Wallet:Swap Router v2
0 ETH0.002836187.72140434
Swap216147512025-01-13 9:45:118 mins ago1736761511IN
Bitget Wallet:Swap Router v2
0 ETH0.002420646.6997565
Swap216147482025-01-13 9:44:359 mins ago1736761475IN
Bitget Wallet:Swap Router v2
0 ETH0.003015997.02980888
Swap216147462025-01-13 9:44:119 mins ago1736761451IN
Bitget Wallet:Swap Router v2
0 ETH0.00415718.47951463
Swap216146312025-01-13 9:20:5932 mins ago1736760059IN
Bitget Wallet:Swap Router v2
0 ETH0.002162813.89736576
Swap216145922025-01-13 9:13:1140 mins ago1736759591IN
Bitget Wallet:Swap Router v2
0 ETH0.001058433.95672498
Swap216145912025-01-13 9:12:5940 mins ago1736759579IN
Bitget Wallet:Swap Router v2
0 ETH0.001195193.91073159
Swap216145372025-01-13 9:02:1151 mins ago1736758931IN
Bitget Wallet:Swap Router v2
0 ETH0.001534173.69135251
Swap216145332025-01-13 9:00:5952 mins ago1736758859IN
Bitget Wallet:Swap Router v2
0 ETH0.001402073.69530468
Swap216145202025-01-13 8:58:2355 mins ago1736758703IN
Bitget Wallet:Swap Router v2
0 ETH0.004794483.95022363
Swap216145022025-01-13 8:54:471 hrs ago1736758487IN
Bitget Wallet:Swap Router v2
0 ETH0.001534993.64577305
Swap216144992025-01-13 8:54:111 hrs ago1736758451IN
Bitget Wallet:Swap Router v2
0 ETH0.001017243.4909831
Swap216144992025-01-13 8:54:111 hrs ago1736758451IN
Bitget Wallet:Swap Router v2
0 ETH0.001384213.4808499
Swap216144932025-01-13 8:52:591 hr ago1736758379IN
Bitget Wallet:Swap Router v2
0 ETH0.001113513.18919953
Swap216144842025-01-13 8:51:111 hr ago1736758271IN
Bitget Wallet:Swap Router v2
0 ETH0.001369633.83673939
Swap216144832025-01-13 8:50:591 hr ago1736758259IN
Bitget Wallet:Swap Router v2
0 ETH0.001797754.39329756
Swap216144792025-01-13 8:50:111 hr ago1736758211IN
Bitget Wallet:Swap Router v2
0 ETH0.001077523.4222085
Swap216144462025-01-13 8:43:351 hr ago1736757815IN
Bitget Wallet:Swap Router v2
0 ETH0.001247793.82312672
Swap216144432025-01-13 8:42:591 hr ago1736757779IN
Bitget Wallet:Swap Router v2
0 ETH0.00145063.756138
Swap216143802025-01-13 8:30:231 hr ago1736757023IN
Bitget Wallet:Swap Router v2
0 ETH0.001130825.03293986
Swap216143552025-01-13 8:25:231 hr ago1736756723IN
Bitget Wallet:Swap Router v2
0.00405388 ETH0.00169734.31856168
Swap216143082025-01-13 8:15:351 hr ago1736756135IN
Bitget Wallet:Swap Router v2
0 ETH0.000961052.2592084
Swap216143082025-01-13 8:15:351 hr ago1736756135IN
Bitget Wallet:Swap Router v2
0 ETH0.001231552.2592084
Swap216143032025-01-13 8:14:351 hr ago1736756075IN
Bitget Wallet:Swap Router v2
0 ETH0.000862422.41698832
Swap216142952025-01-13 8:12:591 hr ago1736755979IN
Bitget Wallet:Swap Router v2
0 ETH0.001022962.25851526
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
216143552025-01-13 8:25:231 hr ago1736756723
Bitget Wallet:Swap Router v2
0.00405388 ETH
216142782025-01-13 8:09:351 hr ago1736755775
Bitget Wallet:Swap Router v2
0.004 ETH
216139532025-01-13 7:03:592 hrs ago1736751839
Bitget Wallet:Swap Router v2
0.0045 ETH
216135152025-01-13 5:35:114 hrs ago1736746511
Bitget Wallet:Swap Router v2
0.05001932 ETH
216130992025-01-13 4:11:475 hrs ago1736741507
Bitget Wallet:Swap Router v2
0.045 ETH
216126432025-01-13 2:39:597 hrs ago1736735999
Bitget Wallet:Swap Router v2
0.0037 ETH
216125902025-01-13 2:29:237 hrs ago1736735363
Bitget Wallet:Swap Router v2
1.1 ETH
216121652025-01-13 1:03:118 hrs ago1736730191
Bitget Wallet:Swap Router v2
0.0055 ETH
216115742025-01-12 23:04:1110 hrs ago1736723051
Bitget Wallet:Swap Router v2
0.04881732 ETH
216113012025-01-12 22:09:2311 hrs ago1736719763
Bitget Wallet:Swap Router v2
0.03274026 ETH
216096662025-01-12 16:40:2317 hrs ago1736700023
Bitget Wallet:Swap Router v2
0.183 ETH
216089462025-01-12 14:15:4719 hrs ago1736691347
Bitget Wallet:Swap Router v2
0.00140927 ETH
216084002025-01-12 12:26:1121 hrs ago1736684771
Bitget Wallet:Swap Router v2
0.0262492 ETH
216078612025-01-12 10:38:1123 hrs ago1736678291
Bitget Wallet:Swap Router v2
0.004 ETH
216075242025-01-12 9:30:2324 hrs ago1736674223
Bitget Wallet:Swap Router v2
0.004 ETH
216073522025-01-12 8:55:5924 hrs ago1736672159
Bitget Wallet:Swap Router v2
0.13263226 ETH
216067702025-01-12 6:58:5926 hrs ago1736665139
Bitget Wallet:Swap Router v2
0.0031 ETH
216067102025-01-12 6:46:5927 hrs ago1736664419
Bitget Wallet:Swap Router v2
0.00325833 ETH
216065342025-01-12 6:11:4727 hrs ago1736662307
Bitget Wallet:Swap Router v2
0.00634697 ETH
216054702025-01-12 2:38:1131 hrs ago1736649491
Bitget Wallet:Swap Router v2
0.008 ETH
216050562025-01-12 1:15:1132 hrs ago1736644511
Bitget Wallet:Swap Router v2
0.00512289 ETH
216045362025-01-11 23:31:1134 hrs ago1736638271
Bitget Wallet:Swap Router v2
0.0031 ETH
216020312025-01-11 15:07:3542 hrs ago1736608055
Bitget Wallet:Swap Router v2
0.01 ETH
216016792025-01-11 13:56:2343 hrs ago1736603783
Bitget Wallet:Swap Router v2
0.03 ETH
216016772025-01-11 13:55:5943 hrs ago1736603759
Bitget Wallet:Swap Router v2
0.03 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BKSwapRouter

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : BKSwapRouter.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.17;

import "./BKCommon.sol";
import "./utils/TransferHelper.sol";
import {BasicParams, AggregationParams, SwapType, OrderInfo} from "./interfaces/IBKStructsAndEnums.sol";
import {IBKErrors} from "./interfaces/IBKErrors.sol";

contract BKSwapRouter is BKCommon {
    address public immutable BKSWAP_V2;

    struct SwapParams {
        address fromTokenAddress;
        uint256 amountInTotal;
        bytes data;
    }

    constructor(address bkSwapAddress, address owner) {
        BKSWAP_V2 = bkSwapAddress;
        _transferOwnership(owner);
    }

    function swap(SwapParams calldata swapParams)
        external
        payable
        whenNotPaused
        nonReentrant
    {
        if (!TransferHelper.isETH(swapParams.fromTokenAddress)) {

            TransferHelper.safeTransferFrom(
                swapParams.fromTokenAddress,
                msg.sender,
                BKSWAP_V2,
                swapParams.amountInTotal
            );
        } else {
            if (msg.value < swapParams.amountInTotal) {
                revert IBKErrors.SwapEthBalanceNotEnough();
            }
        }

        (bool success, bytes memory resultData) = BKSWAP_V2.call{
            value: msg.value
        }(swapParams.data);

        if (!success) {
            _revertWithData(resultData);
        }
    }
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 13 : 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 13 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 6 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 13 : BKCommon.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IBKErrors.sol";

contract BKCommon is IBKErrors, Ownable, Pausable, ReentrancyGuard {
    
    using SafeERC20 for IERC20;

    mapping(address => bool) isOperator;
        
    event RescueETH(address indexed recipient, uint256 amount);
    event RescueERC20(address indexed asset, address recipient);
    event SetOperator(address operator, bool isOperator);

    modifier onlyOperator() {
        require(isOperator[_msgSender()], "Operator: caller is not the operator");
        _;
    }
    
    function setOperator(address[] calldata _operators, bool _isOperator) external onlyOwner {
        for(uint i = 0; i < _operators.length; i++) {
            isOperator[_operators[i]] = _isOperator;
            emit SetOperator(_operators[i], _isOperator);
        }
    }

    function pause() external onlyOperator {
        _pause();
    }

    function unpause() external onlyOperator {
        _unpause();
    }

    function rescueERC20(address asset, address recipient) external onlyOperator {
        IERC20(asset).safeTransfer(
            recipient,
            IERC20(asset).balanceOf(address(this))
        );
        emit RescueERC20(asset, recipient);
    }
    
    function rescueETH(address recipient) external onlyOperator {
        _transferEth(recipient, address(this).balance);
    }

    function _transferEth(address _to, uint256 _amount) internal {
        bool callStatus;
        assembly {
            // Transfer the ETH and store if it succeeded or not.
            callStatus := call(gas(), _to, _amount, 0, 0, 0, 0)
        }
        require(callStatus, "_transferEth: Eth transfer failed");
        emit RescueETH(_to, _amount);
    }

    /// @dev Revert with arbitrary bytes.
    /// @param data Revert data.
    function _revertWithData(bytes memory data) internal pure {
        assembly { revert(add(data, 32), mload(data)) }
    }

    receive() external payable {}
}

File 11 of 13 : IBKErrors.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.17;

interface IBKErrors {
    error InvalidMsgSig();
    error InsufficientEtherSupplied();
    error FeatureNotExist();
    error FeatureInActive();
    error InvalidCaller();
    error InvalidSigner();
    error InvalidNonce(bytes32 signMsg);
    error InvalidZeroAddress();  
    error InvalidFeeRate(uint256 feeRate);
    error SwapEthBalanceNotEnough();
    error SwapTokenBalanceNotEnough();
    error SwapTokenApproveNotEnough();
    error SwapInsuffenceOutPut();
    error SwapTypeNotAvailable();
    error BurnToMuch();
    error IllegalCallTarget();
    error IllegalApproveTarget(); 
    error InvalidSwapAddress(address);
    error CallException(address);
}

File 12 of 13 : IBKStructsAndEnums.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.17;

struct OrderInfo{
    bytes transferId;
    uint dstChainId;
    address desireToken;
    address bridgeReceiver;
}

enum SwapType {
    FREE,
    ETH_TOKEN,
    TOKEN_ETH,
    TOKEN_TOKEN,
    TOKEN_TO_WHITE,
    WHITE_TO_TOKEN
}

struct SignParams {
    bytes32 nonceHash;
    bytes signature;
}

struct BasicParams {
    SignParams signParams;
    SwapType swapType;
    address fromTokenAddress;
    address toTokenAddress;
    uint amountInTotal;
    uint amountInForSwap;
    address receiver;
    uint minAmountOut;
}

struct AggregationParams {
    address approveTarget;
    address callTarget;
    bytes data;
}

File 13 of 13 : TransferHelper.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

library TransferHelper {
    using SafeERC20 for IERC20;

    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(
                IERC20.transferFrom.selector,
                from,
                to,
                value
            )
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "STF"
        );
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.transfer.selector, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "ST"
        );
    }

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.approve.selector, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "SA"
        );
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
       (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, "STE");
    }

    function approveMax(
        IERC20 _token,
        address _spender,
        uint256 _amount
    ) internal {
        uint256 allowance = _token.allowance(address(this), address(_spender));
        if (allowance < _amount) {
            if (allowance > 0) {
                _token.safeApprove(address(_spender), 0);
            }
            _token.safeApprove(address(_spender), type(uint256).max);
        }
    }

    function isETH(address _tokenAddress) internal pure returns (bool) {
        return
            (_tokenAddress == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) ||
            (_tokenAddress == 0x0000000000000000000000000000000000000000);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"bkSwapAddress","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BurnToMuch","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"CallException","type":"error"},{"inputs":[],"name":"FeatureInActive","type":"error"},{"inputs":[],"name":"FeatureNotExist","type":"error"},{"inputs":[],"name":"IllegalApproveTarget","type":"error"},{"inputs":[],"name":"IllegalCallTarget","type":"error"},{"inputs":[],"name":"InsufficientEtherSupplied","type":"error"},{"inputs":[],"name":"InvalidCaller","type":"error"},{"inputs":[{"internalType":"uint256","name":"feeRate","type":"uint256"}],"name":"InvalidFeeRate","type":"error"},{"inputs":[],"name":"InvalidMsgSig","type":"error"},{"inputs":[{"internalType":"bytes32","name":"signMsg","type":"bytes32"}],"name":"InvalidNonce","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"InvalidSwapAddress","type":"error"},{"inputs":[],"name":"InvalidZeroAddress","type":"error"},{"inputs":[],"name":"SwapEthBalanceNotEnough","type":"error"},{"inputs":[],"name":"SwapInsuffenceOutPut","type":"error"},{"inputs":[],"name":"SwapTokenApproveNotEnough","type":"error"},{"inputs":[],"name":"SwapTokenBalanceNotEnough","type":"error"},{"inputs":[],"name":"SwapTypeNotAvailable","type":"error"},{"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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"RescueERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RescueETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"isOperator","type":"bool"}],"name":"SetOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BKSWAP_V2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_operators","type":"address[]"},{"internalType":"bool","name":"_isOperator","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"fromTokenAddress","type":"address"},{"internalType":"uint256","name":"amountInTotal","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct BKSwapRouter.SwapParams","name":"swapParams","type":"tuple"}],"name":"swap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b5060405162001fde38038062001fde8339818101604052810190620000379190620001fb565b620000576200004b620000c560201b60201c565b620000cd60201b60201c565b60008060146101000a81548160ff021916908315150217905550600180819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050620000bd81620000cd60201b60201c565b505062000242565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001c38262000196565b9050919050565b620001d581620001b6565b8114620001e157600080fd5b50565b600081519050620001f581620001ca565b92915050565b6000806040838503121562000215576200021462000191565b5b60006200022585828601620001e4565b92505060206200023885828601620001e4565b9150509250929050565b608051611d726200026c600039600081816105090152818161057b01526108ac0152611d726000f3fe6080604052600436106100a05760003560e01c80635d799f87116100645780635d799f871461015c578063715018a6146101855780638456cb591461019c5780638da5cb5b146101b3578063b9624e22146101de578063f2fde38b14610209576100a7565b806304824e70146100ac5780631ed6144e146100d55780633f4ba83a146100fe5780635742f567146101155780635c975abb14610131576100a7565b366100a757005b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce91906111e2565b610232565b005b3480156100e157600080fd5b506100fc60048036038101906100f791906112ac565b6102d2565b005b34801561010a57600080fd5b506101136103df565b005b61012f600480360381019061012a9190611330565b61047c565b005b34801561013d57600080fd5b50610146610631565b6040516101539190611388565b60405180910390f35b34801561016857600080fd5b50610183600480360381019061017e91906113a3565b610647565b005b34801561019157600080fd5b5061019a6107d0565b005b3480156101a857600080fd5b506101b16107e4565b005b3480156101bf57600080fd5b506101c8610881565b6040516101d591906113f2565b60405180910390f35b3480156101ea57600080fd5b506101f36108aa565b60405161020091906113f2565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b91906111e2565b6108ce565b005b6002600061023e610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166102c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102bc90611490565b60405180910390fd5b6102cf8147610959565b50565b6102da6109fa565b60005b838390508110156103d9578160026000868685818110610300576102ff6114b0565b5b905060200201602081019061031591906111e2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f1618a22a3b00b9ac70fd5a82f1f5cdd8cb272bd0f1b740ddf7c26ab05881dd5b84848381811061039a576103996114b0565b5b90506020020160208101906103af91906111e2565b836040516103be9291906114df565b60405180910390a180806103d190611541565b9150506102dd565b50505050565b600260006103eb610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046990611490565b60405180910390fd5b61047a610a78565b565b610484610ada565b6002600154036104c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c0906115d5565b60405180910390fd5b60026001819055506104ec8160000160208101906104e791906111e2565b610b24565b6105375761053281600001602081019061050691906111e2565b337f00000000000000000000000000000000000000000000000000000000000000008460200135610ba7565b610576565b8060200135341015610575576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16348480604001906105c19190611604565b6040516105cf9291906116a6565b60006040518083038185875af1925050503d806000811461060c576040519150601f19603f3d011682016040523d82523d6000602084013e610611565b606091505b5091509150816106255761062481610cff565b5b50506001808190555050565b60008060149054906101000a900460ff16905090565b60026000610653610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190611490565b60405180910390fd5b61077e818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161071791906113f2565b602060405180830381865afa158015610734573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075891906116eb565b8473ffffffffffffffffffffffffffffffffffffffff16610d079092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f8c4e91db779d40eb9afbcebd8cf9aa9195b7b057611e32ad5dc9e4025f56ada0826040516107c491906113f2565b60405180910390a25050565b6107d86109fa565b6107e26000610d8d565b565b600260006107f0610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086e90611490565b60405180910390fd5b61087f610e51565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6108d66109fa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093c9061178a565b60405180910390fd5b61094e81610d8d565b50565b600033905090565b600080600080600085875af19050806109a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099e9061181c565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f77f67778e9529a2fd2147ffb2b10ca2e0d1efd8cb925e1f1d5702e39c5fa8da6836040516109ed919061184b565b60405180910390a2505050565b610a02610951565b73ffffffffffffffffffffffffffffffffffffffff16610a20610881565b73ffffffffffffffffffffffffffffffffffffffff1614610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d906118b2565b60405180910390fd5b565b610a80610eb4565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610ac3610951565b604051610ad091906113f2565b60405180910390a1565b610ae2610631565b15610b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b199061191e565b60405180910390fd5b565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610ba05750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401610bde9392919061193e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610c4891906119db565b6000604051808303816000865af19150503d8060008114610c85576040519150601f19603f3d011682016040523d82523d6000602084013e610c8a565b606091505b5091509150818015610cb85750600081511480610cb7575080806020019051810190610cb69190611a07565b5b5b610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee90611a80565b60405180910390fd5b505050505050565b805160208201fd5b610d888363a9059cbb60e01b8484604051602401610d26929190611aa0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610efd565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610e59610ada565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e9d610951565b604051610eaa91906113f2565b60405180910390a1565b610ebc610631565b610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290611b15565b60405180910390fd5b565b6000610f5f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fc49092919063ffffffff16565b9050600081511115610fbf5780806020019051810190610f7f9190611a07565b610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb590611ba7565b60405180910390fd5b5b505050565b6060610fd38484600085610fdc565b90509392505050565b606082471015611021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101890611c39565b60405180910390fd5b61102a856110f0565b611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090611ca5565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161109291906119db565b60006040518083038185875af1925050503d80600081146110cf576040519150601f19603f3d011682016040523d82523d6000602084013e6110d4565b606091505b50915091506110e4828286611113565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561112357829050611173565b6000835111156111365782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116a9190611d1a565b60405180910390fd5b9392505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111af82611184565b9050919050565b6111bf816111a4565b81146111ca57600080fd5b50565b6000813590506111dc816111b6565b92915050565b6000602082840312156111f8576111f761117a565b5b6000611206848285016111cd565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126112345761123361120f565b5b8235905067ffffffffffffffff81111561125157611250611214565b5b60208301915083602082028301111561126d5761126c611219565b5b9250929050565b60008115159050919050565b61128981611274565b811461129457600080fd5b50565b6000813590506112a681611280565b92915050565b6000806000604084860312156112c5576112c461117a565b5b600084013567ffffffffffffffff8111156112e3576112e261117f565b5b6112ef8682870161121e565b9350935050602061130286828701611297565b9150509250925092565b600080fd5b6000606082840312156113275761132661130c565b5b81905092915050565b6000602082840312156113465761134561117a565b5b600082013567ffffffffffffffff8111156113645761136361117f565b5b61137084828501611311565b91505092915050565b61138281611274565b82525050565b600060208201905061139d6000830184611379565b92915050565b600080604083850312156113ba576113b961117a565b5b60006113c8858286016111cd565b92505060206113d9858286016111cd565b9150509250929050565b6113ec816111a4565b82525050565b600060208201905061140760008301846113e3565b92915050565b600082825260208201905092915050565b7f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260008201527f61746f7200000000000000000000000000000000000000000000000000000000602082015250565b600061147a60248361140d565b91506114858261141e565b604082019050919050565b600060208201905081810360008301526114a98161146d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006040820190506114f460008301856113e3565b6115016020830184611379565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600061154c82611537565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361157e5761157d611508565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006115bf601f8361140d565b91506115ca82611589565b602082019050919050565b600060208201905081810360008301526115ee816115b2565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112611621576116206115f5565b5b80840192508235915067ffffffffffffffff821115611643576116426115fa565b5b60208301925060018202360383131561165f5761165e6115ff565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061168d8385611667565b935061169a838584611672565b82840190509392505050565b60006116b3828486611681565b91508190509392505050565b6116c881611537565b81146116d357600080fd5b50565b6000815190506116e5816116bf565b92915050565b6000602082840312156117015761170061117a565b5b600061170f848285016116d6565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061177460268361140d565b915061177f82611718565b604082019050919050565b600060208201905081810360008301526117a381611767565b9050919050565b7f5f7472616e736665724574683a20457468207472616e73666572206661696c6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061180660218361140d565b9150611811826117aa565b604082019050919050565b60006020820190508181036000830152611835816117f9565b9050919050565b61184581611537565b82525050565b6000602082019050611860600083018461183c565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061189c60208361140d565b91506118a782611866565b602082019050919050565b600060208201905081810360008301526118cb8161188f565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061190860108361140d565b9150611913826118d2565b602082019050919050565b60006020820190508181036000830152611937816118fb565b9050919050565b600060608201905061195360008301866113e3565b61196060208301856113e3565b61196d604083018461183c565b949350505050565b600081519050919050565b60005b8381101561199e578082015181840152602081019050611983565b60008484015250505050565b60006119b582611975565b6119bf8185611667565b93506119cf818560208601611980565b80840191505092915050565b60006119e782846119aa565b915081905092915050565b600081519050611a0181611280565b92915050565b600060208284031215611a1d57611a1c61117a565b5b6000611a2b848285016119f2565b91505092915050565b7f5354460000000000000000000000000000000000000000000000000000000000600082015250565b6000611a6a60038361140d565b9150611a7582611a34565b602082019050919050565b60006020820190508181036000830152611a9981611a5d565b9050919050565b6000604082019050611ab560008301856113e3565b611ac2602083018461183c565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611aff60148361140d565b9150611b0a82611ac9565b602082019050919050565b60006020820190508181036000830152611b2e81611af2565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611b91602a8361140d565b9150611b9c82611b35565b604082019050919050565b60006020820190508181036000830152611bc081611b84565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c2360268361140d565b9150611c2e82611bc7565b604082019050919050565b60006020820190508181036000830152611c5281611c16565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611c8f601d8361140d565b9150611c9a82611c59565b602082019050919050565b60006020820190508181036000830152611cbe81611c82565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611cec82611cc5565b611cf6818561140d565b9350611d06818560208601611980565b611d0f81611cd0565b840191505092915050565b60006020820190508181036000830152611d348184611ce1565b90509291505056fea26469706673582212200b18f4804ac8063cf1f8c7f536c8b3729ad5732a1107d96dc9f709abd035f05b64736f6c634300081100330000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c990000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7de

Deployed Bytecode

0x6080604052600436106100a05760003560e01c80635d799f87116100645780635d799f871461015c578063715018a6146101855780638456cb591461019c5780638da5cb5b146101b3578063b9624e22146101de578063f2fde38b14610209576100a7565b806304824e70146100ac5780631ed6144e146100d55780633f4ba83a146100fe5780635742f567146101155780635c975abb14610131576100a7565b366100a757005b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce91906111e2565b610232565b005b3480156100e157600080fd5b506100fc60048036038101906100f791906112ac565b6102d2565b005b34801561010a57600080fd5b506101136103df565b005b61012f600480360381019061012a9190611330565b61047c565b005b34801561013d57600080fd5b50610146610631565b6040516101539190611388565b60405180910390f35b34801561016857600080fd5b50610183600480360381019061017e91906113a3565b610647565b005b34801561019157600080fd5b5061019a6107d0565b005b3480156101a857600080fd5b506101b16107e4565b005b3480156101bf57600080fd5b506101c8610881565b6040516101d591906113f2565b60405180910390f35b3480156101ea57600080fd5b506101f36108aa565b60405161020091906113f2565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b91906111e2565b6108ce565b005b6002600061023e610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166102c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102bc90611490565b60405180910390fd5b6102cf8147610959565b50565b6102da6109fa565b60005b838390508110156103d9578160026000868685818110610300576102ff6114b0565b5b905060200201602081019061031591906111e2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f1618a22a3b00b9ac70fd5a82f1f5cdd8cb272bd0f1b740ddf7c26ab05881dd5b84848381811061039a576103996114b0565b5b90506020020160208101906103af91906111e2565b836040516103be9291906114df565b60405180910390a180806103d190611541565b9150506102dd565b50505050565b600260006103eb610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046990611490565b60405180910390fd5b61047a610a78565b565b610484610ada565b6002600154036104c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c0906115d5565b60405180910390fd5b60026001819055506104ec8160000160208101906104e791906111e2565b610b24565b6105375761053281600001602081019061050691906111e2565b337f0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c998460200135610ba7565b610576565b8060200135341015610575576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b6000807f0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c9973ffffffffffffffffffffffffffffffffffffffff16348480604001906105c19190611604565b6040516105cf9291906116a6565b60006040518083038185875af1925050503d806000811461060c576040519150601f19603f3d011682016040523d82523d6000602084013e610611565b606091505b5091509150816106255761062481610cff565b5b50506001808190555050565b60008060149054906101000a900460ff16905090565b60026000610653610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190611490565b60405180910390fd5b61077e818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161071791906113f2565b602060405180830381865afa158015610734573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075891906116eb565b8473ffffffffffffffffffffffffffffffffffffffff16610d079092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f8c4e91db779d40eb9afbcebd8cf9aa9195b7b057611e32ad5dc9e4025f56ada0826040516107c491906113f2565b60405180910390a25050565b6107d86109fa565b6107e26000610d8d565b565b600260006107f0610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086e90611490565b60405180910390fd5b61087f610e51565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c9981565b6108d66109fa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093c9061178a565b60405180910390fd5b61094e81610d8d565b50565b600033905090565b600080600080600085875af19050806109a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099e9061181c565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f77f67778e9529a2fd2147ffb2b10ca2e0d1efd8cb925e1f1d5702e39c5fa8da6836040516109ed919061184b565b60405180910390a2505050565b610a02610951565b73ffffffffffffffffffffffffffffffffffffffff16610a20610881565b73ffffffffffffffffffffffffffffffffffffffff1614610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d906118b2565b60405180910390fd5b565b610a80610eb4565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610ac3610951565b604051610ad091906113f2565b60405180910390a1565b610ae2610631565b15610b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b199061191e565b60405180910390fd5b565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610ba05750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401610bde9392919061193e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610c4891906119db565b6000604051808303816000865af19150503d8060008114610c85576040519150601f19603f3d011682016040523d82523d6000602084013e610c8a565b606091505b5091509150818015610cb85750600081511480610cb7575080806020019051810190610cb69190611a07565b5b5b610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee90611a80565b60405180910390fd5b505050505050565b805160208201fd5b610d888363a9059cbb60e01b8484604051602401610d26929190611aa0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610efd565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610e59610ada565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e9d610951565b604051610eaa91906113f2565b60405180910390a1565b610ebc610631565b610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290611b15565b60405180910390fd5b565b6000610f5f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fc49092919063ffffffff16565b9050600081511115610fbf5780806020019051810190610f7f9190611a07565b610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb590611ba7565b60405180910390fd5b5b505050565b6060610fd38484600085610fdc565b90509392505050565b606082471015611021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101890611c39565b60405180910390fd5b61102a856110f0565b611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090611ca5565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161109291906119db565b60006040518083038185875af1925050503d80600081146110cf576040519150601f19603f3d011682016040523d82523d6000602084013e6110d4565b606091505b50915091506110e4828286611113565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561112357829050611173565b6000835111156111365782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116a9190611d1a565b60405180910390fd5b9392505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111af82611184565b9050919050565b6111bf816111a4565b81146111ca57600080fd5b50565b6000813590506111dc816111b6565b92915050565b6000602082840312156111f8576111f761117a565b5b6000611206848285016111cd565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126112345761123361120f565b5b8235905067ffffffffffffffff81111561125157611250611214565b5b60208301915083602082028301111561126d5761126c611219565b5b9250929050565b60008115159050919050565b61128981611274565b811461129457600080fd5b50565b6000813590506112a681611280565b92915050565b6000806000604084860312156112c5576112c461117a565b5b600084013567ffffffffffffffff8111156112e3576112e261117f565b5b6112ef8682870161121e565b9350935050602061130286828701611297565b9150509250925092565b600080fd5b6000606082840312156113275761132661130c565b5b81905092915050565b6000602082840312156113465761134561117a565b5b600082013567ffffffffffffffff8111156113645761136361117f565b5b61137084828501611311565b91505092915050565b61138281611274565b82525050565b600060208201905061139d6000830184611379565b92915050565b600080604083850312156113ba576113b961117a565b5b60006113c8858286016111cd565b92505060206113d9858286016111cd565b9150509250929050565b6113ec816111a4565b82525050565b600060208201905061140760008301846113e3565b92915050565b600082825260208201905092915050565b7f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260008201527f61746f7200000000000000000000000000000000000000000000000000000000602082015250565b600061147a60248361140d565b91506114858261141e565b604082019050919050565b600060208201905081810360008301526114a98161146d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006040820190506114f460008301856113e3565b6115016020830184611379565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600061154c82611537565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361157e5761157d611508565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006115bf601f8361140d565b91506115ca82611589565b602082019050919050565b600060208201905081810360008301526115ee816115b2565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112611621576116206115f5565b5b80840192508235915067ffffffffffffffff821115611643576116426115fa565b5b60208301925060018202360383131561165f5761165e6115ff565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061168d8385611667565b935061169a838584611672565b82840190509392505050565b60006116b3828486611681565b91508190509392505050565b6116c881611537565b81146116d357600080fd5b50565b6000815190506116e5816116bf565b92915050565b6000602082840312156117015761170061117a565b5b600061170f848285016116d6565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061177460268361140d565b915061177f82611718565b604082019050919050565b600060208201905081810360008301526117a381611767565b9050919050565b7f5f7472616e736665724574683a20457468207472616e73666572206661696c6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061180660218361140d565b9150611811826117aa565b604082019050919050565b60006020820190508181036000830152611835816117f9565b9050919050565b61184581611537565b82525050565b6000602082019050611860600083018461183c565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061189c60208361140d565b91506118a782611866565b602082019050919050565b600060208201905081810360008301526118cb8161188f565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061190860108361140d565b9150611913826118d2565b602082019050919050565b60006020820190508181036000830152611937816118fb565b9050919050565b600060608201905061195360008301866113e3565b61196060208301856113e3565b61196d604083018461183c565b949350505050565b600081519050919050565b60005b8381101561199e578082015181840152602081019050611983565b60008484015250505050565b60006119b582611975565b6119bf8185611667565b93506119cf818560208601611980565b80840191505092915050565b60006119e782846119aa565b915081905092915050565b600081519050611a0181611280565b92915050565b600060208284031215611a1d57611a1c61117a565b5b6000611a2b848285016119f2565b91505092915050565b7f5354460000000000000000000000000000000000000000000000000000000000600082015250565b6000611a6a60038361140d565b9150611a7582611a34565b602082019050919050565b60006020820190508181036000830152611a9981611a5d565b9050919050565b6000604082019050611ab560008301856113e3565b611ac2602083018461183c565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611aff60148361140d565b9150611b0a82611ac9565b602082019050919050565b60006020820190508181036000830152611b2e81611af2565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611b91602a8361140d565b9150611b9c82611b35565b604082019050919050565b60006020820190508181036000830152611bc081611b84565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c2360268361140d565b9150611c2e82611bc7565b604082019050919050565b60006020820190508181036000830152611c5281611c16565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611c8f601d8361140d565b9150611c9a82611c59565b602082019050919050565b60006020820190508181036000830152611cbe81611c82565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611cec82611cc5565b611cf6818561140d565b9350611d06818560208601611980565b611d0f81611cd0565b840191505092915050565b60006020820190508181036000830152611d348184611ce1565b90509291505056fea26469706673582212200b18f4804ac8063cf1f8c7f536c8b3729ad5732a1107d96dc9f709abd035f05b64736f6c63430008110033

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

0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c990000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7de

-----Decoded View---------------
Arg [0] : bkSwapAddress (address): 0x2F2dD99235Cb728fc79Af575f1325Eaa270f0C99
Arg [1] : owner (address): 0x5DEFa9C83085c7F606CEB3B5f75Fc107945ed7de

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c99
Arg [1] : 0000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7de


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.