POL Price: $0.697907 (-0.96%)
Gas: 0 GWei
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo5.348109082162496531 POL

POL Value

$3.73 (@ $0.70/POL)

Token Holdings

Multichain Info

Transaction Hash
Method
Block
From
To
Rescue ERC20584275362024-06-21 11:23:47169 days ago1718969027IN
0x2F2dD992...a270f0C99
0 POL0.002039950
Rescue ERC20540946992024-02-29 10:34:47282 days ago1709202887IN
0x2F2dD992...a270f0C99
0 POL0.0062766398.03877867
Rescue ETH507129092023-12-04 1:32:28369 days ago1701653548IN
0x2F2dD992...a270f0C99
0 POL0.0010536930.00000139
Rescue ERC20460794582023-08-09 1:42:30486 days ago1691545350IN
0x2F2dD992...a270f0C99
0 POL0.0063395898.88611364
Rescue ETH460044582023-08-07 4:07:42488 days ago1691381262IN
0x2F2dD992...a270f0C99
0 POL0.0024234768.99966515
Rescue ETH439759882023-06-16 12:00:30540 days ago1686916830IN
0x2F2dD992...a270f0C99
0 POL0.00999309241.07632269
0x24686579425512712023-05-10 22:53:32576 days ago1683759212IN
0x2F2dD992...a270f0C99
0.0000002 POL0.00609526188.64951428
0x24686579425510292023-05-10 22:44:58576 days ago1683758698IN
0x2F2dD992...a270f0C99
0 POL0.00612561189.58885283
Transfer417594212023-04-20 20:14:00596 days ago1682021640IN
0x2F2dD992...a270f0C99
0.4769 POL0.00546287259.4574444
Transfer Ownersh...362771272022-12-01 2:30:59737 days ago1669861859IN
0x2F2dD992...a270f0C99
0 POL0.0009110731.34733312
Unpause362542282022-11-30 13:13:39738 days ago1669814019IN
0x2F2dD992...a270f0C99
0 POL0.0029713398.22259942
Pause362541602022-11-30 13:11:19738 days ago1669813879IN
0x2F2dD992...a270f0C99
0 POL0.0029711698.42518344
Set Operator362536962022-11-30 12:55:23738 days ago1669812923IN
0x2F2dD992...a270f0C99
0 POL0.0024301549.01777141
Manager Caller362447932022-11-30 7:36:39738 days ago1669793799IN
0x2F2dD992...a270f0C99
0 POL0.002415349.50000186

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
652015452024-12-07 17:49:4511 mins ago1733593785
0x2F2dD992...a270f0C99
18.33809797 POL
652015452024-12-07 17:49:4511 mins ago1733593785
0x2F2dD992...a270f0C99
0.05517983 POL
652015452024-12-07 17:49:4511 mins ago1733593785
0x2F2dD992...a270f0C99
18.3932778 POL
652009932024-12-07 17:29:4731 mins ago1733592587
0x2F2dD992...a270f0C99
15.23094844 POL
652009932024-12-07 17:29:4731 mins ago1733592587
0x2F2dD992...a270f0C99
0.04583033 POL
652009932024-12-07 17:29:4731 mins ago1733592587
0x2F2dD992...a270f0C99
15.27677878 POL
652007322024-12-07 17:20:1140 mins ago1733592011
0x2F2dD992...a270f0C99
44.14011367 POL
652007322024-12-07 17:20:1140 mins ago1733592011
0x2F2dD992...a270f0C99
0.13281879 POL
652007322024-12-07 17:20:1140 mins ago1733592011
0x2F2dD992...a270f0C99
44.27293247 POL
652005402024-12-07 17:13:2347 mins ago1733591603
0x2F2dD992...a270f0C99
153.47679572 POL
652005402024-12-07 17:13:2347 mins ago1733591603
0x2F2dD992...a270f0C99
0.46181583 POL
652005402024-12-07 17:13:2347 mins ago1733591603
0x2F2dD992...a270f0C99
153.93861156 POL
652004822024-12-07 17:11:2149 mins ago1733591481
0x2F2dD992...a270f0C99
16.17970266 POL
652004822024-12-07 17:11:2149 mins ago1733591481
0x2F2dD992...a270f0C99
0.04868516 POL
652004822024-12-07 17:11:2149 mins ago1733591481
0x2F2dD992...a270f0C99
16.22838782 POL
652003392024-12-07 17:06:1754 mins ago1733591177
0x2F2dD992...a270f0C99
15.54452214 POL
652003392024-12-07 17:06:1754 mins ago1733591177
0x2F2dD992...a270f0C99
0.04677388 POL
652003392024-12-07 17:06:1754 mins ago1733591177
0x2F2dD992...a270f0C99
15.59129603 POL
651994872024-12-07 16:36:051 hr ago1733589365
0x2F2dD992...a270f0C99
11.40758291 POL
651994872024-12-07 16:36:051 hr ago1733589365
0x2F2dD992...a270f0C99
0.03432572 POL
651994872024-12-07 16:36:051 hr ago1733589365
0x2F2dD992...a270f0C99
11.44190864 POL
651991402024-12-07 16:23:491 hr ago1733588629
0x2F2dD992...a270f0C99
102.41778113 POL
651991402024-12-07 16:23:491 hr ago1733588629
0x2F2dD992...a270f0C99
0.30817787 POL
651991402024-12-07 16:23:491 hr ago1733588629
0x2F2dD992...a270f0C99
102.72595901 POL
651988502024-12-07 16:13:321 hr ago1733588012
0x2F2dD992...a270f0C99
101.46477944 POL
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BKSwap

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : BKSwap.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;

import "./BKCommon.sol";
import "./interfaces/IBKRegistry.sol";

contract BKSwap is BKCommon {
    address public bkRegistry;
    mapping(address => bool) public isCaller;

    event ManagerCaller(address operator, address caller, bool isCaller);
    event SetRegistry(address operator, address bkRegistry);

    constructor(address _bkRegistry, address _owner) {
        bkRegistry = _bkRegistry;
        emit SetRegistry(msg.sender, _bkRegistry);
        _transferOwnership(_owner);
    }
    
    function setRegistry(address _bkRegistry) external whenNotPaused onlyOwner {
        bkRegistry = _bkRegistry;
        emit SetRegistry(msg.sender, _bkRegistry);
    }

    function managerCaller(address _caller, bool _isCaller) external onlyOwner {
        isCaller[_caller] = _isCaller;
        emit ManagerCaller(msg.sender, _caller, _isCaller);
    }

    fallback() external payable whenNotPaused nonReentrant {
        if(!isCaller[msg.sender]) {
            revert InvalidCaller();
        }

        if (msg.sig.length != 4) {
            revert InvalidMsgSig();
        }

        (address proxy, bool isLib) = IBKRegistry(bkRegistry).getFeature(msg.sig);

        (bool success, bytes memory resultData) = isLib
            ? proxy.delegatecall(msg.data)
            : proxy.call{value: msg.value}(msg.data);

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

File 2 of 12 : BKCommon.sol
// SPDX-License-Identifier: BUSL-1.1
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 3 of 12 : IBKRegistry.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;

interface IBKRegistry {    
    function setFeature( bytes4 _methodId, address _proxy, bool _isLib, bool _isActive) external;

    function getFeature(bytes4 _methodId) external view returns(address proxy, bool isLib);

    function setCallTarget(bytes4 _methodId, address [] memory _targets, bool _isEnable) external;

    function isCallTarget(bytes4 _methodId, address _target) external view returns(bool);

    function setApproveTarget(bytes4 _methodId, address [] memory _targets, bool _isEnable) external;

    function isApproveTarget(bytes4 _methodId, address _target) external view returns(bool);
}

File 4 of 12 : 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 5 of 12 : 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 6 of 12 : 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 7 of 12 : 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 8 of 12 : IBKErrors.sol
// SPDX-License-Identifier: BUSL-1.1
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 9 of 12 : 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 12 : 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 11 of 12 : 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 12 of 12 : 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);
            }
        }
    }
}

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":"_bkRegistry","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":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bool","name":"isCaller","type":"bool"}],"name":"ManagerCaller","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":"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":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"bkRegistry","type":"address"}],"name":"SetRegistry","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"bkRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isCaller","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"bool","name":"_isCaller","type":"bool"}],"name":"managerCaller","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"_bkRegistry","type":"address"}],"name":"setRegistry","outputs":[],"stateMutability":"nonpayable","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"}]

60806040523480156200001157600080fd5b506040516200214138038062002141833981810160405281019062000037919062000243565b620000576200004b6200010d60201b60201c565b6200011560201b60201c565b60008060146101000a81548160ff0219169083151502179055506001808190555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa6cdf06494ab3c79fae6cca5316f6324ff80979c2a51d8f239aee07a4aecd35b3383604051620000ec9291906200029b565b60405180910390a162000105816200011560201b60201c565b5050620002c8565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200020b82620001de565b9050919050565b6200021d81620001fe565b81146200022957600080fd5b50565b6000815190506200023d8162000212565b92915050565b600080604083850312156200025d576200025c620001d9565b5b60006200026d858286016200022c565b925050602062000280858286016200022c565b9150509250929050565b6200029581620001fe565b82525050565b6000604082019050620002b260008301856200028a565b620002c160208301846200028a565b9392505050565b611e6980620002d86000396000f3fe6080604052600436106100c65760003560e01c80635d799f871161007f5780638456cb59116100595780638456cb591461050f5780638da5cb5b14610526578063a91ee0dc14610551578063f2fde38b1461057a576100cd565b80635d799f8714610492578063715018a6146104bb5780637ac07dcc146104d2576100cd565b806304824e70146103aa578063172bc838146103d35780631ed6144e146103fe5780632c1c0050146104275780633f4ba83a146104505780635c975abb14610467576100cd565b366100cd57005b6100d56105a3565b60026001540361011a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011190611305565b60405180910390fd5b6002600181905550600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166101a5576040517f48f5c3ed00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048060ff16146101e2576040517fbbfe1a3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633659871e6000357fffffffff00000000000000000000000000000000000000000000000000000000166040518263ffffffff1660e01b81526004016102649190611360565b6040805180830381865afa158015610280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a4919061141b565b9150915060008082610321578373ffffffffffffffffffffffffffffffffffffffff16346000366040516102d992919061149a565b60006040518083038185875af1925050503d8060008114610316576040519150601f19603f3d011682016040523d82523d6000602084013e61031b565b606091505b5061038b565b8373ffffffffffffffffffffffffffffffffffffffff1660003660405161034992919061149a565b600060405180830381855af49150503d8060008114610384576040519150601f19603f3d011682016040523d82523d6000602084013e610389565b606091505b505b915091508161039e5761039d816105ed565b5b50505050600180819055005b3480156103b657600080fd5b506103d160048036038101906103cc91906114c8565b6105f5565b005b3480156103df57600080fd5b506103e8610695565b6040516103f59190611504565b60405180910390f35b34801561040a57600080fd5b5061042560048036038101906104209190611599565b6106bb565b005b34801561043357600080fd5b5061044e600480360381019061044991906115f9565b6107c8565b005b34801561045c57600080fd5b50610465610866565b005b34801561047357600080fd5b5061047c610903565b6040516104899190611648565b60405180910390f35b34801561049e57600080fd5b506104b960048036038101906104b49190611663565b610919565b005b3480156104c757600080fd5b506104d0610aa2565b005b3480156104de57600080fd5b506104f960048036038101906104f491906114c8565b610ab6565b6040516105069190611648565b60405180910390f35b34801561051b57600080fd5b50610524610ad6565b005b34801561053257600080fd5b5061053b610b73565b6040516105489190611504565b60405180910390f35b34801561055d57600080fd5b50610578600480360381019061057391906114c8565b610b9c565b005b34801561058657600080fd5b506105a1600480360381019061059c91906114c8565b610c29565b005b6105ab610903565b156105eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e2906116ef565b60405180910390fd5b565b805160208201fd5b60026000610601610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610688576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067f90611781565b60405180910390fd5b6106928147610cb4565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6106c3610d55565b60005b838390508110156107c25781600260008686858181106106e9576106e86117a1565b5b90506020020160208101906106fe91906114c8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f1618a22a3b00b9ac70fd5a82f1f5cdd8cb272bd0f1b740ddf7c26ab05881dd5b848483818110610783576107826117a1565b5b905060200201602081019061079891906114c8565b836040516107a79291906117d0565b60405180910390a180806107ba90611832565b9150506106c6565b50505050565b6107d0610d55565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f80149de357d03a77a0524185910e7058c93bbe2501c1ff200ec899e699c84add33838360405161085a9392919061187a565b60405180910390a15050565b60026000610872610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166108f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f090611781565b60405180910390fd5b610901610dd3565b565b60008060149054906101000a900460ff16905090565b60026000610925610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a390611781565b60405180910390fd5b610a50818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109e99190611504565b602060405180830381865afa158015610a06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2a91906118dd565b8473ffffffffffffffffffffffffffffffffffffffff16610e359092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f8c4e91db779d40eb9afbcebd8cf9aa9195b7b057611e32ad5dc9e4025f56ada082604051610a969190611504565b60405180910390a25050565b610aaa610d55565b610ab46000610ebb565b565b60046020528060005260406000206000915054906101000a900460ff1681565b60026000610ae2610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6090611781565b60405180910390fd5b610b71610f7f565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ba46105a3565b610bac610d55565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa6cdf06494ab3c79fae6cca5316f6324ff80979c2a51d8f239aee07a4aecd35b3382604051610c1e92919061190a565b60405180910390a150565b610c31610d55565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ca0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c97906119a5565b60405180910390fd5b610ca981610ebb565b50565b600033905090565b600080600080600085875af1905080610d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf990611a37565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f77f67778e9529a2fd2147ffb2b10ca2e0d1efd8cb925e1f1d5702e39c5fa8da683604051610d489190611a66565b60405180910390a2505050565b610d5d610cac565b73ffffffffffffffffffffffffffffffffffffffff16610d7b610b73565b73ffffffffffffffffffffffffffffffffffffffff1614610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc890611acd565b60405180910390fd5b565b610ddb610fe2565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610e1e610cac565b604051610e2b9190611504565b60405180910390a1565b610eb68363a9059cbb60e01b8484604051602401610e54929190611aed565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061102b565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610f876105a3565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fcb610cac565b604051610fd89190611504565b60405180910390a1565b610fea610903565b611029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102090611b62565b60405180910390fd5b565b600061108d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110f29092919063ffffffff16565b90506000815111156110ed57808060200190518101906110ad9190611b82565b6110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390611c21565b60405180910390fd5b5b505050565b6060611101848460008561110a565b90509392505050565b60608247101561114f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114690611cb3565b60405180910390fd5b6111588561121e565b611197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118e90611d1f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111c09190611da5565b60006040518083038185875af1925050503d80600081146111fd576040519150601f19603f3d011682016040523d82523d6000602084013e611202565b606091505b5091509150611212828286611241565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611251578290506112a1565b6000835111156112645782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112989190611e11565b60405180910390fd5b9392505050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006112ef601f836112a8565b91506112fa826112b9565b602082019050919050565b6000602082019050818103600083015261131e816112e2565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61135a81611325565b82525050565b60006020820190506113756000830184611351565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113b082611385565b9050919050565b6113c0816113a5565b81146113cb57600080fd5b50565b6000815190506113dd816113b7565b92915050565b60008115159050919050565b6113f8816113e3565b811461140357600080fd5b50565b600081519050611415816113ef565b92915050565b600080604083850312156114325761143161137b565b5b6000611440858286016113ce565b925050602061145185828601611406565b9150509250929050565b600081905092915050565b82818337600083830152505050565b6000611481838561145b565b935061148e838584611466565b82840190509392505050565b60006114a7828486611475565b91508190509392505050565b6000813590506114c2816113b7565b92915050565b6000602082840312156114de576114dd61137b565b5b60006114ec848285016114b3565b91505092915050565b6114fe816113a5565b82525050565b600060208201905061151960008301846114f5565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126115445761154361151f565b5b8235905067ffffffffffffffff81111561156157611560611524565b5b60208301915083602082028301111561157d5761157c611529565b5b9250929050565b600081359050611593816113ef565b92915050565b6000806000604084860312156115b2576115b161137b565b5b600084013567ffffffffffffffff8111156115d0576115cf611380565b5b6115dc8682870161152e565b935093505060206115ef86828701611584565b9150509250925092565b600080604083850312156116105761160f61137b565b5b600061161e858286016114b3565b925050602061162f85828601611584565b9150509250929050565b611642816113e3565b82525050565b600060208201905061165d6000830184611639565b92915050565b6000806040838503121561167a5761167961137b565b5b6000611688858286016114b3565b9250506020611699858286016114b3565b9150509250929050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006116d96010836112a8565b91506116e4826116a3565b602082019050919050565b60006020820190508181036000830152611708816116cc565b9050919050565b7f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260008201527f61746f7200000000000000000000000000000000000000000000000000000000602082015250565b600061176b6024836112a8565b91506117768261170f565b604082019050919050565b6000602082019050818103600083015261179a8161175e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006040820190506117e560008301856114f5565b6117f26020830184611639565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600061183d82611828565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361186f5761186e6117f9565b5b600182019050919050565b600060608201905061188f60008301866114f5565b61189c60208301856114f5565b6118a96040830184611639565b949350505050565b6118ba81611828565b81146118c557600080fd5b50565b6000815190506118d7816118b1565b92915050565b6000602082840312156118f3576118f261137b565b5b6000611901848285016118c8565b91505092915050565b600060408201905061191f60008301856114f5565b61192c60208301846114f5565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061198f6026836112a8565b915061199a82611933565b604082019050919050565b600060208201905081810360008301526119be81611982565b9050919050565b7f5f7472616e736665724574683a20457468207472616e73666572206661696c6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000611a216021836112a8565b9150611a2c826119c5565b604082019050919050565b60006020820190508181036000830152611a5081611a14565b9050919050565b611a6081611828565b82525050565b6000602082019050611a7b6000830184611a57565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611ab76020836112a8565b9150611ac282611a81565b602082019050919050565b60006020820190508181036000830152611ae681611aaa565b9050919050565b6000604082019050611b0260008301856114f5565b611b0f6020830184611a57565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611b4c6014836112a8565b9150611b5782611b16565b602082019050919050565b60006020820190508181036000830152611b7b81611b3f565b9050919050565b600060208284031215611b9857611b9761137b565b5b6000611ba684828501611406565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611c0b602a836112a8565b9150611c1682611baf565b604082019050919050565b60006020820190508181036000830152611c3a81611bfe565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c9d6026836112a8565b9150611ca882611c41565b604082019050919050565b60006020820190508181036000830152611ccc81611c90565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611d09601d836112a8565b9150611d1482611cd3565b602082019050919050565b60006020820190508181036000830152611d3881611cfc565b9050919050565b600081519050919050565b60005b83811015611d68578082015181840152602081019050611d4d565b60008484015250505050565b6000611d7f82611d3f565b611d89818561145b565b9350611d99818560208601611d4a565b80840191505092915050565b6000611db18284611d74565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000611de382611dbc565b611ded81856112a8565b9350611dfd818560208601611d4a565b611e0681611dc7565b840191505092915050565b60006020820190508181036000830152611e2b8184611dd8565b90509291505056fea2646970667358221220952f4a9c9ce8b18400fc98bd5da187b3f90b272c27b2bd22c55af7dda36d706264736f6c634300081100330000000000000000000000009afd2948f573dd8684347924ebce1847d50621ed0000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7de

Deployed Bytecode

0x6080604052600436106100c65760003560e01c80635d799f871161007f5780638456cb59116100595780638456cb591461050f5780638da5cb5b14610526578063a91ee0dc14610551578063f2fde38b1461057a576100cd565b80635d799f8714610492578063715018a6146104bb5780637ac07dcc146104d2576100cd565b806304824e70146103aa578063172bc838146103d35780631ed6144e146103fe5780632c1c0050146104275780633f4ba83a146104505780635c975abb14610467576100cd565b366100cd57005b6100d56105a3565b60026001540361011a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011190611305565b60405180910390fd5b6002600181905550600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166101a5576040517f48f5c3ed00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60048060ff16146101e2576040517fbbfe1a3100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633659871e6000357fffffffff00000000000000000000000000000000000000000000000000000000166040518263ffffffff1660e01b81526004016102649190611360565b6040805180830381865afa158015610280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a4919061141b565b9150915060008082610321578373ffffffffffffffffffffffffffffffffffffffff16346000366040516102d992919061149a565b60006040518083038185875af1925050503d8060008114610316576040519150601f19603f3d011682016040523d82523d6000602084013e61031b565b606091505b5061038b565b8373ffffffffffffffffffffffffffffffffffffffff1660003660405161034992919061149a565b600060405180830381855af49150503d8060008114610384576040519150601f19603f3d011682016040523d82523d6000602084013e610389565b606091505b505b915091508161039e5761039d816105ed565b5b50505050600180819055005b3480156103b657600080fd5b506103d160048036038101906103cc91906114c8565b6105f5565b005b3480156103df57600080fd5b506103e8610695565b6040516103f59190611504565b60405180910390f35b34801561040a57600080fd5b5061042560048036038101906104209190611599565b6106bb565b005b34801561043357600080fd5b5061044e600480360381019061044991906115f9565b6107c8565b005b34801561045c57600080fd5b50610465610866565b005b34801561047357600080fd5b5061047c610903565b6040516104899190611648565b60405180910390f35b34801561049e57600080fd5b506104b960048036038101906104b49190611663565b610919565b005b3480156104c757600080fd5b506104d0610aa2565b005b3480156104de57600080fd5b506104f960048036038101906104f491906114c8565b610ab6565b6040516105069190611648565b60405180910390f35b34801561051b57600080fd5b50610524610ad6565b005b34801561053257600080fd5b5061053b610b73565b6040516105489190611504565b60405180910390f35b34801561055d57600080fd5b50610578600480360381019061057391906114c8565b610b9c565b005b34801561058657600080fd5b506105a1600480360381019061059c91906114c8565b610c29565b005b6105ab610903565b156105eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e2906116ef565b60405180910390fd5b565b805160208201fd5b60026000610601610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610688576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067f90611781565b60405180910390fd5b6106928147610cb4565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6106c3610d55565b60005b838390508110156107c25781600260008686858181106106e9576106e86117a1565b5b90506020020160208101906106fe91906114c8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f1618a22a3b00b9ac70fd5a82f1f5cdd8cb272bd0f1b740ddf7c26ab05881dd5b848483818110610783576107826117a1565b5b905060200201602081019061079891906114c8565b836040516107a79291906117d0565b60405180910390a180806107ba90611832565b9150506106c6565b50505050565b6107d0610d55565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f80149de357d03a77a0524185910e7058c93bbe2501c1ff200ec899e699c84add33838360405161085a9392919061187a565b60405180910390a15050565b60026000610872610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166108f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f090611781565b60405180910390fd5b610901610dd3565b565b60008060149054906101000a900460ff16905090565b60026000610925610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a390611781565b60405180910390fd5b610a50818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109e99190611504565b602060405180830381865afa158015610a06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2a91906118dd565b8473ffffffffffffffffffffffffffffffffffffffff16610e359092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f8c4e91db779d40eb9afbcebd8cf9aa9195b7b057611e32ad5dc9e4025f56ada082604051610a969190611504565b60405180910390a25050565b610aaa610d55565b610ab46000610ebb565b565b60046020528060005260406000206000915054906101000a900460ff1681565b60026000610ae2610cac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6090611781565b60405180910390fd5b610b71610f7f565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ba46105a3565b610bac610d55565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa6cdf06494ab3c79fae6cca5316f6324ff80979c2a51d8f239aee07a4aecd35b3382604051610c1e92919061190a565b60405180910390a150565b610c31610d55565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ca0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c97906119a5565b60405180910390fd5b610ca981610ebb565b50565b600033905090565b600080600080600085875af1905080610d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf990611a37565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f77f67778e9529a2fd2147ffb2b10ca2e0d1efd8cb925e1f1d5702e39c5fa8da683604051610d489190611a66565b60405180910390a2505050565b610d5d610cac565b73ffffffffffffffffffffffffffffffffffffffff16610d7b610b73565b73ffffffffffffffffffffffffffffffffffffffff1614610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc890611acd565b60405180910390fd5b565b610ddb610fe2565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610e1e610cac565b604051610e2b9190611504565b60405180910390a1565b610eb68363a9059cbb60e01b8484604051602401610e54929190611aed565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061102b565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610f876105a3565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fcb610cac565b604051610fd89190611504565b60405180910390a1565b610fea610903565b611029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102090611b62565b60405180910390fd5b565b600061108d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110f29092919063ffffffff16565b90506000815111156110ed57808060200190518101906110ad9190611b82565b6110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390611c21565b60405180910390fd5b5b505050565b6060611101848460008561110a565b90509392505050565b60608247101561114f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114690611cb3565b60405180910390fd5b6111588561121e565b611197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118e90611d1f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111c09190611da5565b60006040518083038185875af1925050503d80600081146111fd576040519150601f19603f3d011682016040523d82523d6000602084013e611202565b606091505b5091509150611212828286611241565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611251578290506112a1565b6000835111156112645782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112989190611e11565b60405180910390fd5b9392505050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006112ef601f836112a8565b91506112fa826112b9565b602082019050919050565b6000602082019050818103600083015261131e816112e2565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61135a81611325565b82525050565b60006020820190506113756000830184611351565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113b082611385565b9050919050565b6113c0816113a5565b81146113cb57600080fd5b50565b6000815190506113dd816113b7565b92915050565b60008115159050919050565b6113f8816113e3565b811461140357600080fd5b50565b600081519050611415816113ef565b92915050565b600080604083850312156114325761143161137b565b5b6000611440858286016113ce565b925050602061145185828601611406565b9150509250929050565b600081905092915050565b82818337600083830152505050565b6000611481838561145b565b935061148e838584611466565b82840190509392505050565b60006114a7828486611475565b91508190509392505050565b6000813590506114c2816113b7565b92915050565b6000602082840312156114de576114dd61137b565b5b60006114ec848285016114b3565b91505092915050565b6114fe816113a5565b82525050565b600060208201905061151960008301846114f5565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126115445761154361151f565b5b8235905067ffffffffffffffff81111561156157611560611524565b5b60208301915083602082028301111561157d5761157c611529565b5b9250929050565b600081359050611593816113ef565b92915050565b6000806000604084860312156115b2576115b161137b565b5b600084013567ffffffffffffffff8111156115d0576115cf611380565b5b6115dc8682870161152e565b935093505060206115ef86828701611584565b9150509250925092565b600080604083850312156116105761160f61137b565b5b600061161e858286016114b3565b925050602061162f85828601611584565b9150509250929050565b611642816113e3565b82525050565b600060208201905061165d6000830184611639565b92915050565b6000806040838503121561167a5761167961137b565b5b6000611688858286016114b3565b9250506020611699858286016114b3565b9150509250929050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006116d96010836112a8565b91506116e4826116a3565b602082019050919050565b60006020820190508181036000830152611708816116cc565b9050919050565b7f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260008201527f61746f7200000000000000000000000000000000000000000000000000000000602082015250565b600061176b6024836112a8565b91506117768261170f565b604082019050919050565b6000602082019050818103600083015261179a8161175e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006040820190506117e560008301856114f5565b6117f26020830184611639565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600061183d82611828565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361186f5761186e6117f9565b5b600182019050919050565b600060608201905061188f60008301866114f5565b61189c60208301856114f5565b6118a96040830184611639565b949350505050565b6118ba81611828565b81146118c557600080fd5b50565b6000815190506118d7816118b1565b92915050565b6000602082840312156118f3576118f261137b565b5b6000611901848285016118c8565b91505092915050565b600060408201905061191f60008301856114f5565b61192c60208301846114f5565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061198f6026836112a8565b915061199a82611933565b604082019050919050565b600060208201905081810360008301526119be81611982565b9050919050565b7f5f7472616e736665724574683a20457468207472616e73666572206661696c6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000611a216021836112a8565b9150611a2c826119c5565b604082019050919050565b60006020820190508181036000830152611a5081611a14565b9050919050565b611a6081611828565b82525050565b6000602082019050611a7b6000830184611a57565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611ab76020836112a8565b9150611ac282611a81565b602082019050919050565b60006020820190508181036000830152611ae681611aaa565b9050919050565b6000604082019050611b0260008301856114f5565b611b0f6020830184611a57565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611b4c6014836112a8565b9150611b5782611b16565b602082019050919050565b60006020820190508181036000830152611b7b81611b3f565b9050919050565b600060208284031215611b9857611b9761137b565b5b6000611ba684828501611406565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611c0b602a836112a8565b9150611c1682611baf565b604082019050919050565b60006020820190508181036000830152611c3a81611bfe565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c9d6026836112a8565b9150611ca882611c41565b604082019050919050565b60006020820190508181036000830152611ccc81611c90565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611d09601d836112a8565b9150611d1482611cd3565b602082019050919050565b60006020820190508181036000830152611d3881611cfc565b9050919050565b600081519050919050565b60005b83811015611d68578082015181840152602081019050611d4d565b60008484015250505050565b6000611d7f82611d3f565b611d89818561145b565b9350611d99818560208601611d4a565b80840191505092915050565b6000611db18284611d74565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000611de382611dbc565b611ded81856112a8565b9350611dfd818560208601611d4a565b611e0681611dc7565b840191505092915050565b60006020820190508181036000830152611e2b8184611dd8565b90509291505056fea2646970667358221220952f4a9c9ce8b18400fc98bd5da187b3f90b272c27b2bd22c55af7dda36d706264736f6c63430008110033

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

0000000000000000000000009afd2948f573dd8684347924ebce1847d50621ed0000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7de

-----Decoded View---------------
Arg [0] : _bkRegistry (address): 0x9aFD2948F573DD8684347924eBcE1847D50621eD
Arg [1] : _owner (address): 0x5DEFa9C83085c7F606CEB3B5f75Fc107945ed7de

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009afd2948f573dd8684347924ebce1847d50621ed
Arg [1] : 0000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7de


Block Transaction 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
Chain Token Portfolio % Price Amount Value
POL100.00%$0.06729970,045,619.5747$4,714,000.15
POL
Polygon (POL)
<0.01%$0.6985135.3481$3.74
POL<0.01%$0.22300714.9482$3.33
POL<0.01%$0.03397579.9989$2.72
POL<0.01%$0.0005374,844.33$2.6
POL<0.01%$0.03222473.1$2.36
POL<0.01%$0.01034173.6342$0.7614
POL<0.01%$10.7362$0.7369
POL<0.01%$0.9999680.6232$0.6232
POL<0.01%$0.0002152,619.8393$0.5639
POL<0.01%$0.003315124.7212$0.4134
POL<0.01%$99,5010.00000312$0.3104
POL<0.01%$0.0426167$0.2983
POL<0.01%$0.0002551,000$0.2549
POL<0.01%$0.00176883.511$0.1476
BASE<0.01%<$0.00000192,247,376.3626$4.51
BASE<0.01%$3.091.284$3.97
BASE<0.01%$0.21444318.4164$3.95
BASE<0.01%$0.003946861.9577$3.4
BASE<0.01%$0.0006724,776.2203$3.21
BASE<0.01%$0.00514615.5483$3.16
BASE<0.01%$0.0000012,000,000$2.48
BASE<0.01%$0.0010881,956.809$2.13
BASE<0.01%$0.0014161,337.2801$1.89
BASE<0.01%$0.0002487,461.42$1.85
BASE<0.01%$0.0003983,951.3134$1.57
BASE<0.01%$0.001641839.7489$1.38
BASE<0.01%$0.9999961.055$1.05
BASE<0.01%$0.002502410$1.03
BASE<0.01%$0.000067,000$0.419
BASE<0.01%$0.001247266.09$0.3317
BASE<0.01%$25.880.01$0.2587
BASE<0.01%$0.00848325$0.212
BASE<0.01%$0.01225611.77$0.1442
BASE<0.01%$0.000372340.69$0.1266
BASE<0.01%$0.001185100$0.1185
BASE<0.01%$0.000827138$0.1141
BASE<0.01%$3,995.690.00002849$0.1138
BASE<0.01%$0.0143897.458$0.1073
BASE<0.01%<$0.0000017,149,515.7151$0.1015
BASE<0.01%$3,996.740.00000355$0.014191
BSC<0.01%$0.011871,497.4104$17.77
BSC<0.01%$15.554$5.56
BSC<0.01%$0.0007776,515.8157$5.06
BSC<0.01%$240.570.00575603$1.38
BSC<0.01%<$0.000001109,489,658.5848$1.2
BSC<0.01%$0.00005814,606.9092$0.8473
BSC<0.01%$632.10.00109444$0.6917
BSC<0.01%$0.0497156$0.2982
BSC<0.01%$0.0002651,021.6904$0.2711
BSC<0.01%$755.20.00035884$0.2709
BSC<0.01%$3,995.10.00005845$0.2335
BSC<0.01%$99,622.930.00000152$0.1518
BSC<0.01%$757.190.000000000000000037<$0.000001
ARB<0.01%$4,745.290.00105708$5.02
ARB<0.01%$3,996.740.00086876$3.47
ARB<0.01%$0.009596149.7187$1.44
ARB<0.01%$99,4710.00000255$0.2536
ARB<0.01%$0.000397502$0.1995
ARB<0.01%$10.1851$0.185
ETH<0.01%$11.9362$1.94
ETH<0.01%$3,996.230.00037987$1.52
ETH<0.01%$0.06602310$0.6602
ETH<0.01%$0.000001190,000$0.1664
OP<0.01%$3,996.220.00045842$1.83
OP<0.01%$0.1672266.6705$1.12
OP<0.01%$99,4800.00000141$0.1402
AVAX<0.01%$51.920.0229$1.19
FTM<0.01%$1.330.000000000000001729<$0.000001
CELO<0.01%$1.060.000000000000000058<$0.000001
[ 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.