Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
107558349 | 545 days ago | 0 ETH | ||||
107558123 | 545 days ago | 0 ETH | ||||
107557980 | 545 days ago | 0 ETH | ||||
107557459 | 545 days ago | 0 ETH | ||||
107556989 | 545 days ago | 0 ETH | ||||
107554755 | 545 days ago | 0 ETH | ||||
107554416 | 545 days ago | 0.003695800331698 ETH | ||||
107553976 | 545 days ago | 0 ETH | ||||
107552960 | 545 days ago | 0.022 ETH | ||||
107551768 | 545 days ago | 0 ETH | ||||
107551587 | 545 days ago | 0 ETH | ||||
107549664 | 545 days ago | 0 ETH | ||||
107549594 | 545 days ago | 0.00051 ETH | ||||
107549539 | 545 days ago | 0.0006 ETH | ||||
107547729 | 545 days ago | 0 ETH | ||||
107547707 | 545 days ago | 0 ETH | ||||
107547701 | 545 days ago | 0 ETH | ||||
107547413 | 545 days ago | 0 ETH | ||||
107546789 | 545 days ago | 0 ETH | ||||
107543899 | 545 days ago | 0 ETH | ||||
107543887 | 545 days ago | 0 ETH | ||||
107542719 | 545 days ago | 0 ETH | ||||
107541660 | 545 days ago | 0 ETH | ||||
107539788 | 545 days ago | 0 ETH | ||||
107537525 | 545 days ago | 0 ETH |
Loading...
Loading
Contract Name:
AggregationFeature
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; import "../interfaces/IBKFees.sol"; import "../interfaces/IBKRegistry.sol"; import "../utils/TransferHelper.sol"; import { BasicParams, AggregationParams, SwapType, OrderInfo } from "../interfaces/IBKStructsAndEnums.sol"; import { IBKErrors } from "../interfaces/IBKErrors.sol"; library AggregationFeature { string public constant FEATURE_NAME = "BitKeep SOR: Aggregation Feature"; string public constant FEATURE_VERSION = "1.0"; address public constant BK_FEES = 0xE4DA6f981a78b8b9edEfE4D7a955C04bA7e67D8D; address public constant BK_REGISTRY = 0x9aFD2948F573DD8684347924eBcE1847D50621eD; bytes4 public constant FUNC_SWAP = bytes4(keccak256(bytes("swap(AggregationFeature.SwapDetail)"))); // 0x6a2b69f0 event BKSwapV2( SwapType indexed swapType, address indexed receiver, uint feeAmount, string featureName, string featureVersion ); event OrderInfoEvent( bytes transferId, uint dstChainId, address sender, address bridgeReceiver, address tokenIn, address desireToken, uint amount ); struct SwapDetail { BasicParams basicParams; AggregationParams aggregationParams; OrderInfo orderInfo; } function swap(SwapDetail calldata swapDetail) public { if(!IBKRegistry(BK_REGISTRY).isCallTarget(FUNC_SWAP, swapDetail.aggregationParams.callTarget)) { revert IBKErrors.IllegalCallTarget(); } if(!IBKRegistry(BK_REGISTRY).isApproveTarget(FUNC_SWAP, swapDetail.aggregationParams.approveTarget)) { revert IBKErrors.IllegalApproveTarget(); } (address feeTo, address altcoinFeeTo, uint feeRate) = IBKFees(BK_FEES).getFeeTo(); if(swapDetail.basicParams.swapType > SwapType.WHITE_TO_TOKEN) { revert IBKErrors.SwapTypeNotAvailable(); } if(swapDetail.basicParams.swapType == SwapType.FREE) { _swapForFree(swapDetail); } else if(swapDetail.basicParams.swapType == SwapType.ETH_TOKEN) { if(msg.value < swapDetail.basicParams.amountInForSwap) { revert IBKErrors.SwapEthBalanceNotEnough(); } _swapEth2Token(swapDetail, payable(feeTo), feeRate); } else { _swapToken2Others(swapDetail, payable(feeTo), altcoinFeeTo, feeRate); } } function _swapForFree(SwapDetail calldata swapDetail) internal { IBKFees(BK_FEES).checkIsSigner( swapDetail.basicParams.signParams.nonceHash, swapDetail.basicParams.signParams.signature ); IERC20 fromToken = IERC20(swapDetail.basicParams.fromTokenAddress); bool toTokenIsETH = TransferHelper.isETH(swapDetail.basicParams.toTokenAddress); if(TransferHelper.isETH(swapDetail.basicParams.fromTokenAddress)) { if(msg.value < swapDetail.basicParams.amountInForSwap) { revert IBKErrors.SwapEthBalanceNotEnough(); } } else { uint fromBalanceOfThis = fromToken.balanceOf(address(this)); if(fromBalanceOfThis < swapDetail.basicParams.amountInTotal) { revert IBKErrors.BurnToMuch(); } TransferHelper.approveMax( fromToken, swapDetail.aggregationParams.approveTarget, swapDetail.basicParams.amountInTotal ); } uint balanceOfThis = toTokenIsETH ? address(this).balance : IERC20(swapDetail.basicParams.toTokenAddress).balanceOf(address(this)); (bool success, ) = swapDetail.aggregationParams.callTarget.call{value: msg.value}(swapDetail.aggregationParams.data); _checkCallResult(success); uint balanceNow = toTokenIsETH ? address(this).balance : IERC20(swapDetail.basicParams.toTokenAddress).balanceOf(address(this)); if(toTokenIsETH) { TransferHelper.safeTransferETH(swapDetail.basicParams.receiver, balanceNow - balanceOfThis); } else { TransferHelper.safeTransfer(swapDetail.basicParams.toTokenAddress, swapDetail.basicParams.receiver, balanceNow - balanceOfThis); } emit BKSwapV2( swapDetail.basicParams.swapType, swapDetail.basicParams.receiver, 0, FEATURE_NAME, FEATURE_VERSION ); emit OrderInfoEvent( swapDetail.orderInfo.transferId, swapDetail.orderInfo.dstChainId, msg.sender, swapDetail.orderInfo.bridgeReceiver, swapDetail.basicParams.fromTokenAddress, swapDetail.orderInfo.desireToken, balanceNow - balanceOfThis ); } function _swapEth2Token(SwapDetail calldata swapDetail, address payable _feeTo, uint _feeRate) internal { IERC20 toToken = IERC20(swapDetail.basicParams.toTokenAddress); uint beforeBalanceOfToken = toToken.balanceOf(address(this)); uint feeAmount = swapDetail.basicParams.amountInTotal * _feeRate / 1e4; TransferHelper.safeTransferETH(_feeTo, feeAmount); (bool success, ) = swapDetail.aggregationParams.callTarget.call{value: swapDetail.basicParams.amountInForSwap}(swapDetail.aggregationParams.data); _checkCallResult(success); uint afterBalanceOfToken = toToken.balanceOf(address(this)); TransferHelper.safeTransfer( swapDetail.basicParams.toTokenAddress, swapDetail.basicParams.receiver, afterBalanceOfToken - beforeBalanceOfToken ); emit BKSwapV2( swapDetail.basicParams.swapType, swapDetail.basicParams.receiver, feeAmount, FEATURE_NAME, FEATURE_VERSION ); emit OrderInfoEvent( swapDetail.orderInfo.transferId, swapDetail.orderInfo.dstChainId, msg.sender, swapDetail.orderInfo.bridgeReceiver, swapDetail.basicParams.fromTokenAddress, swapDetail.orderInfo.desireToken, afterBalanceOfToken - beforeBalanceOfToken ); } function _swapToken2Others(SwapDetail calldata swapDetail, address feeTo, address altcoinFeeTo, uint feeRate) internal { IERC20 fromToken = IERC20(swapDetail.basicParams.fromTokenAddress); uint balanceOfThis = fromToken.balanceOf(address(this)); if(balanceOfThis < swapDetail.basicParams.amountInTotal) { revert IBKErrors.BurnToMuch(); } TransferHelper.approveMax( fromToken, swapDetail.aggregationParams.approveTarget, swapDetail.basicParams.amountInTotal ); if(swapDetail.basicParams.swapType == SwapType.TOKEN_ETH) { _swapToken2ETH(swapDetail, payable(feeTo), feeRate); } else if(swapDetail.basicParams.swapType == SwapType.TOKEN_TO_WHITE) { _swapToken2white(swapDetail, feeTo, feeRate); } else { _swapToken2token( swapDetail, swapDetail.basicParams.swapType == SwapType.TOKEN_TOKEN ? altcoinFeeTo : feeTo, feeRate ); } } function _swapToken2ETH(SwapDetail calldata swapDetail, address payable _feeTo, uint _feeRate) internal { uint balanceBefore = address(this).balance; uint feeAmount; uint swappedAmount; (bool success, ) = swapDetail.aggregationParams.callTarget.call{value: 0}(swapDetail.aggregationParams.data); _checkCallResult(success); swappedAmount = address(this).balance - balanceBefore; feeAmount = swappedAmount * _feeRate / 1e4; TransferHelper.safeTransferETH(_feeTo, feeAmount); TransferHelper.safeTransferETH(swapDetail.basicParams.receiver, swappedAmount - feeAmount); emit BKSwapV2( swapDetail.basicParams.swapType, swapDetail.basicParams.receiver, feeAmount, FEATURE_NAME, FEATURE_VERSION ); emit OrderInfoEvent( swapDetail.orderInfo.transferId, swapDetail.orderInfo.dstChainId, msg.sender, swapDetail.orderInfo.bridgeReceiver, swapDetail.basicParams.fromTokenAddress, swapDetail.orderInfo.desireToken, swappedAmount - feeAmount ); } function _swapToken2token(SwapDetail calldata swapDetail, address _feeTo, uint _feeRate) internal { IERC20 toToken = IERC20(swapDetail.basicParams.toTokenAddress); uint balanceBefore = toToken.balanceOf(address(this)); uint feeAmount; feeAmount = swapDetail.basicParams.amountInTotal * _feeRate / 1e4; TransferHelper.safeTransfer(swapDetail.basicParams.fromTokenAddress, _feeTo, feeAmount); (bool success, ) = swapDetail.aggregationParams.callTarget.call{value: 0}(swapDetail.aggregationParams.data); _checkCallResult(success); uint balanceAfter = toToken.balanceOf(address(this)); TransferHelper.safeTransfer( swapDetail.basicParams.toTokenAddress, swapDetail.basicParams.receiver, balanceAfter- balanceBefore ); emit BKSwapV2( swapDetail.basicParams.swapType, swapDetail.basicParams.receiver, feeAmount, FEATURE_NAME, FEATURE_VERSION ); emit OrderInfoEvent( swapDetail.orderInfo.transferId, swapDetail.orderInfo.dstChainId, msg.sender, swapDetail.orderInfo.bridgeReceiver, swapDetail.basicParams.fromTokenAddress, swapDetail.orderInfo.desireToken, balanceAfter- balanceBefore ); } function _swapToken2white(SwapDetail calldata swapDetail, address _feeTo, uint _feeRate) internal { IERC20 toToken = IERC20(swapDetail.basicParams.toTokenAddress); uint balanceBefore = toToken.balanceOf(address(this)); uint swappedAmount; uint feeAmount; (bool success, ) = swapDetail.aggregationParams.callTarget.call{value: 0}(swapDetail.aggregationParams.data); _checkCallResult(success); swappedAmount = toToken.balanceOf(address(this)) - balanceBefore; feeAmount = swappedAmount * _feeRate / 1e4; TransferHelper.safeTransfer(swapDetail.basicParams.toTokenAddress, _feeTo, feeAmount); TransferHelper.safeTransfer(swapDetail.basicParams.toTokenAddress, swapDetail.basicParams.receiver, swappedAmount - feeAmount); emit BKSwapV2( swapDetail.basicParams.swapType, swapDetail.basicParams.receiver, feeAmount, FEATURE_NAME, FEATURE_VERSION ); emit OrderInfoEvent( swapDetail.orderInfo.transferId, swapDetail.orderInfo.dstChainId, msg.sender, swapDetail.orderInfo.bridgeReceiver, swapDetail.basicParams.fromTokenAddress, swapDetail.orderInfo.desireToken, swappedAmount - feeAmount ); } function _checkCallResult(bool _success) internal pure { if (!_success) { // Copy revert reason from call assembly { returndatacopy(0, 0, returndatasize()) revert(0, returndatasize()) } } } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; interface IBKFees { function checkIsSigner(bytes32 _nonceHash, bytes calldata _signature) external; function setSigner(address _signer) external; function getSigner() external view returns(address); function setFeeTo ( address payable _feeTo, address payable _altcoinsFeeTo, uint _feeRate ) external; function getFeeTo () external view returns( address payable _feeTo, address payable _altcoinsFeeTo, uint _feeRate ); }
// 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); }
//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); } }
// SPDX-License-Identifier: BUSL-1.1 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; }
// 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); }
// 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"); } } }
// 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); }
// 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); }
// 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); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"BurnToMuch","type":"error"},{"inputs":[],"name":"IllegalApproveTarget","type":"error"},{"inputs":[],"name":"IllegalCallTarget","type":"error"},{"inputs":[],"name":"SwapEthBalanceNotEnough","type":"error"},{"inputs":[],"name":"SwapTypeNotAvailable","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum SwapType","name":"swapType","type":"uint8"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":false,"internalType":"string","name":"featureName","type":"string"},{"indexed":false,"internalType":"string","name":"featureVersion","type":"string"}],"name":"BKSwapV2","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"transferId","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"dstChainId","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"bridgeReceiver","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"desireToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OrderInfoEvent","type":"event"},{"inputs":[],"name":"BK_FEES","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BK_REGISTRY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNC_SWAP","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
613599610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c8063031b905c146100715780632dde2b7f1461008f5780636a2b69f0146100ad5780636ae4b4f7146100d657806386a4a6ef146100f4578063c4d9122014610112575b600080fd5b610079610130565b60405161008691906128d7565b60405180910390f35b610097610169565b6040516100a4919061293a565b60405180910390f35b8180156100b957600080fd5b506100d460048036038101906100cf9190612983565b610181565b005b6100de6105b3565b6040516100eb91906128d7565b60405180910390f35b6100fc6105ec565b604051610109919061293a565b60405180910390f35b61011a610604565b6040516101279190612a07565b60405180910390f35b6040518060400160405280600381526020017f312e30000000000000000000000000000000000000000000000000000000000081525081565b739afd2948f573dd8684347924ebce1847d50621ed81565b739afd2948f573dd8684347924ebce1847d50621ed73ffffffffffffffffffffffffffffffffffffffff1663f090fa8d60405180606001604052806023815260200161354160239139805190602001208380602001906101e19190612a31565b60200160208101906101f39190612a85565b6040518363ffffffff1660e01b8152600401610210929190612ad0565b602060405180830381865afa15801561022d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102519190612b31565b610287576040517f45bb4ea800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b739afd2948f573dd8684347924ebce1847d50621ed73ffffffffffffffffffffffffffffffffffffffff1663af2d9d8160405180606001604052806023815260200161354160239139805190602001208380602001906102e79190612a31565b60000160208101906102f99190612a85565b6040518363ffffffff1660e01b8152600401610316929190612ad0565b602060405180830381865afa158015610333573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103579190612b31565b61038d576040517f2b0fe4a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600073e4da6f981a78b8b9edefe4d7a955c04ba7e67d8d73ffffffffffffffffffffffffffffffffffffffff16636611f5286040518163ffffffff1660e01b8152600401606060405180830381865afa1580156103f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104159190612bd2565b92509250925060058081111561042e5761042d612c25565b5b84806000019061043e9190612c54565b60200160208101906104509190612ca2565b600581111561046257610461612c25565b5b111561049a576040517fd4371b3000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060058111156104ae576104ad612c25565b5b8480600001906104be9190612c54565b60200160208101906104d09190612ca2565b60058111156104e2576104e1612c25565b5b036104f5576104f084610627565b6105ad565b6001600581111561050957610508612c25565b5b8480600001906105199190612c54565b602001602081019061052b9190612ca2565b600581111561053d5761053c612c25565b5b0361059f578380600001906105529190612c54565b60a0013534101561058f576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61059a848483610d7d565b6105ac565b6105ab848484846111f9565b5b5b50505050565b6040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e204665617475726581525081565b73e4da6f981a78b8b9edefe4d7a955c04ba7e67d8d81565b604051806060016040528060238152602001613541602391398051906020012081565b73e4da6f981a78b8b9edefe4d7a955c04ba7e67d8d73ffffffffffffffffffffffffffffffffffffffff16632cf886718280600001906106679190612c54565b80600001906106769190612ccf565b6000013583806000019061068a9190612c54565b80600001906106999190612ccf565b80602001906106a89190612cf7565b6040518463ffffffff1660e01b81526004016106c693929190612dc0565b600060405180830381600087803b1580156106e057600080fd5b505af11580156106f4573d6000803e3d6000fd5b50505050600081806000019061070a9190612c54565b604001602081019061071c9190612a85565b9050600061074a8380600001906107339190612c54565b60600160208101906107459190612a85565b61144c565b905061077683806000019061075f9190612c54565b60400160208101906107719190612a85565b61144c565b156107cd5782806000019061078b9190612c54565b60a001353410156107c8576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108d9565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108089190612df2565b602060405180830381865afa158015610825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108499190612e0d565b905083806000019061085b9190612c54565b60800135811015610898576040517f2cc2b0be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108d7838580602001906108ac9190612a31565b60000160208101906108be9190612a85565b8680600001906108ce9190612c54565b608001356114cf565b505b600081610980578380600001906108f09190612c54565b60600160208101906109029190612a85565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161093a9190612df2565b602060405180830381865afa158015610957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097b9190612e0d565b610982565b475b905060008480602001906109969190612a31565b60200160208101906109a89190612a85565b73ffffffffffffffffffffffffffffffffffffffff16348680602001906109cf9190612a31565b80604001906109de9190612cf7565b6040516109ec929190612e6a565b60006040518083038185875af1925050503d8060008114610a29576040519150601f19603f3d011682016040523d82523d6000602084013e610a2e565b606091505b50509050610a3b816115df565b600083610ae257858060000190610a529190612c54565b6060016020810190610a649190612a85565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a9c9190612df2565b602060405180830381865afa158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add9190612e0d565b610ae4565b475b90508315610b2757610b22868060000190610aff9190612c54565b60c0016020810190610b119190612a85565b8483610b1d9190612eb2565b6115f1565b610b80565b610b7f868060000190610b3a9190612c54565b6060016020810190610b4c9190612a85565b878060000190610b5c9190612c54565b60c0016020810190610b6e9190612a85565b8584610b7a9190612eb2565b6116f1565b5b858060000190610b909190612c54565b60c0016020810190610ba29190612a85565b73ffffffffffffffffffffffffffffffffffffffff16868060000190610bc89190612c54565b6020016020810190610bda9190612ca2565b6005811115610bec57610beb612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c0360006040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e300000000000000000000000000000000000000000000000000000000000815250604051610c8a93929190612f75565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b72868060400190610cc39190612fba565b8060000190610cd29190612cf7565b888060400190610ce29190612fba565b60200135338a8060400190610cf79190612fba565b6060016020810190610d099190612a85565b8b8060000190610d199190612c54565b6040016020810190610d2b9190612a85565b8c8060400190610d3b9190612fba565b6040016020810190610d4d9190612a85565b8a89610d599190612eb2565b604051610d6d989796959493929190612ff1565b60405180910390a1505050505050565b6000838060000190610d8f9190612c54565b6060016020810190610da19190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dde9190612df2565b602060405180830381865afa158015610dfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1f9190612e0d565b9050600061271084878060000190610e379190612c54565b60800135610e459190613069565b610e4f91906130da565b9050610e5b85826115f1565b6000868060200190610e6d9190612a31565b6020016020810190610e7f9190612a85565b73ffffffffffffffffffffffffffffffffffffffff16878060000190610ea59190612c54565b60a00135888060200190610eb99190612a31565b8060400190610ec89190612cf7565b604051610ed6929190612e6a565b60006040518083038185875af1925050503d8060008114610f13576040519150601f19603f3d011682016040523d82523d6000602084013e610f18565b606091505b50509050610f25816115df565b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f609190612df2565b602060405180830381865afa158015610f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa19190612e0d565b9050610ffb888060000190610fb69190612c54565b6060016020810190610fc89190612a85565b898060000190610fd89190612c54565b60c0016020810190610fea9190612a85565b8684610ff69190612eb2565b6116f1565b87806000019061100b9190612c54565b60c001602081019061101d9190612a85565b73ffffffffffffffffffffffffffffffffffffffff168880600001906110439190612c54565b60200160208101906110559190612ca2565b600581111561106757611066612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03856040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e3000000000000000000000000000000000000000000000000000000000008152506040516111049392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b7288806040019061113d9190612fba565b806000019061114c9190612cf7565b8a806040019061115c9190612fba565b60200135338c80604001906111719190612fba565b60600160208101906111839190612a85565b8d80600001906111939190612c54565b60400160208101906111a59190612a85565b8e80604001906111b59190612fba565b60400160208101906111c79190612a85565b8b896111d39190612eb2565b6040516111e7989796959493929190612ff1565b60405180910390a15050505050505050565b600084806000019061120b9190612c54565b604001602081019061121d9190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161125a9190612df2565b602060405180830381865afa158015611277573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129b9190612e0d565b90508580600001906112ad9190612c54565b608001358110156112ea576040517f2cc2b0be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611329828780602001906112fe9190612a31565b60000160208101906113109190612a85565b8880600001906113209190612c54565b608001356114cf565b6002600581111561133d5761133c612c25565b5b86806000019061134d9190612c54565b602001602081019061135f9190612ca2565b600581111561137157611370612c25565b5b0361138657611381868685611846565b611444565b6004600581111561139a57611399612c25565b5b8680600001906113aa9190612c54565b60200160208101906113bc9190612ca2565b60058111156113ce576113cd612c25565b5b036113e3576113de868685611b6c565b611443565b61144286600360058111156113fb576113fa612c25565b5b88806000019061140b9190612c54565b602001602081019061141d9190612ca2565b600581111561142f5761142e612c25565b5b1461143a578661143c565b855b85611fef565b5b5b505050505050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806114c85750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161150c929190613150565b602060405180830381865afa158015611529573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154d9190612e0d565b9050818110156115d957600081111561158d5761158c8360008673ffffffffffffffffffffffffffffffffffffffff1661247b9092919063ffffffff16565b5b6115d8837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff1661247b9092919063ffffffff16565b5b50505050565b806115ee573d6000803e3d6000fd5b50565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff81111561162657611625613179565b5b6040519080825280601f01601f1916602001820160405280156116585781602001600182028036833780820191505090505b5060405161166691906131e4565b60006040518083038185875af1925050503d80600081146116a3576040519150601f19603f3d011682016040523d82523d6000602084013e6116a8565b606091505b50509050806116ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e390613247565b60405180910390fd5b505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b8585604051602401611726929190613267565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161179091906131e4565b6000604051808303816000865af19150503d80600081146117cd576040519150601f19603f3d011682016040523d82523d6000602084013e6117d2565b606091505b509150915081801561180057506000815114806117ff5750808060200190518101906117fe9190612b31565b5b5b61183f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611836906132dc565b60405180910390fd5b5050505050565b600047905060008060008680602001906118609190612a31565b60200160208101906118729190612a85565b73ffffffffffffffffffffffffffffffffffffffff16600088806020019061189a9190612a31565b80604001906118a99190612cf7565b6040516118b7929190612e6a565b60006040518083038185875af1925050503d80600081146118f4576040519150601f19603f3d011682016040523d82523d6000602084013e6118f9565b606091505b50509050611906816115df565b83476119129190612eb2565b915061271085836119239190613069565b61192d91906130da565b925061193986846115f1565b61196f87806000019061194c9190612c54565b60c001602081019061195e9190612a85565b848461196a9190612eb2565b6115f1565b86806000019061197f9190612c54565b60c00160208101906119919190612a85565b73ffffffffffffffffffffffffffffffffffffffff168780600001906119b79190612c54565b60200160208101906119c99190612ca2565b60058111156119db576119da612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03856040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e300000000000000000000000000000000000000000000000000000000000815250604051611a789392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b72878060400190611ab19190612fba565b8060000190611ac09190612cf7565b898060400190611ad09190612fba565b60200135338b8060400190611ae59190612fba565b6060016020810190611af79190612a85565b8c8060000190611b079190612c54565b6040016020810190611b199190612a85565b8d8060400190611b299190612fba565b6040016020810190611b3b9190612a85565b8a8a611b479190612eb2565b604051611b5b989796959493929190612ff1565b60405180910390a150505050505050565b6000838060000190611b7e9190612c54565b6060016020810190611b909190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611bcd9190612df2565b602060405180830381865afa158015611bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0e9190612e0d565b90506000806000878060200190611c259190612a31565b6020016020810190611c379190612a85565b73ffffffffffffffffffffffffffffffffffffffff166000898060200190611c5f9190612a31565b8060400190611c6e9190612cf7565b604051611c7c929190612e6a565b60006040518083038185875af1925050503d8060008114611cb9576040519150601f19603f3d011682016040523d82523d6000602084013e611cbe565b606091505b50509050611ccb816115df565b838573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611d059190612df2565b602060405180830381865afa158015611d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d469190612e0d565b611d509190612eb2565b92506127108684611d619190613069565b611d6b91906130da565b9150611d99888060000190611d809190612c54565b6060016020810190611d929190612a85565b88846116f1565b611df1888060000190611dac9190612c54565b6060016020810190611dbe9190612a85565b898060000190611dce9190612c54565b60c0016020810190611de09190612a85565b8486611dec9190612eb2565b6116f1565b878060000190611e019190612c54565b60c0016020810190611e139190612a85565b73ffffffffffffffffffffffffffffffffffffffff16888060000190611e399190612c54565b6020016020810190611e4b9190612ca2565b6005811115611e5d57611e5c612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03846040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e300000000000000000000000000000000000000000000000000000000000815250604051611efa9392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b72888060400190611f339190612fba565b8060000190611f429190612cf7565b8a8060400190611f529190612fba565b60200135338c8060400190611f679190612fba565b6060016020810190611f799190612a85565b8d8060000190611f899190612c54565b6040016020810190611f9b9190612a85565b8e8060400190611fab9190612fba565b6040016020810190611fbd9190612a85565b898b611fc99190612eb2565b604051611fdd989796959493929190612ff1565b60405180910390a15050505050505050565b60008380600001906120019190612c54565b60600160208101906120139190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016120509190612df2565b602060405180830381865afa15801561206d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120919190612e0d565b90506000612710848780600001906120a99190612c54565b608001356120b79190613069565b6120c191906130da565b90506120ef8680600001906120d69190612c54565b60400160208101906120e89190612a85565b86836116f1565b60008680602001906121019190612a31565b60200160208101906121139190612a85565b73ffffffffffffffffffffffffffffffffffffffff16600088806020019061213b9190612a31565b806040019061214a9190612cf7565b604051612158929190612e6a565b60006040518083038185875af1925050503d8060008114612195576040519150601f19603f3d011682016040523d82523d6000602084013e61219a565b606091505b505090506121a7816115df565b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016121e29190612df2565b602060405180830381865afa1580156121ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122239190612e0d565b905061227d8880600001906122389190612c54565b606001602081019061224a9190612a85565b89806000019061225a9190612c54565b60c001602081019061226c9190612a85565b86846122789190612eb2565b6116f1565b87806000019061228d9190612c54565b60c001602081019061229f9190612a85565b73ffffffffffffffffffffffffffffffffffffffff168880600001906122c59190612c54565b60200160208101906122d79190612ca2565b60058111156122e9576122e8612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03856040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e3000000000000000000000000000000000000000000000000000000000008152506040516123869392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b728880604001906123bf9190612fba565b80600001906123ce9190612cf7565b8a80604001906123de9190612fba565b60200135338c80604001906123f39190612fba565b60600160208101906124059190612a85565b8d80600001906124159190612c54565b60400160208101906124279190612a85565b8e80604001906124379190612fba565b60400160208101906124499190612a85565b8b896124559190612eb2565b604051612469989796959493929190612ff1565b60405180910390a15050505050505050565b6000811480612505575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016124c2929190613150565b602060405180830381865afa1580156124df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125039190612e0d565b145b612544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253b9061336e565b60405180910390fd5b6125c58363095ea7b360e01b8484604051602401612563929190613267565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125ca565b505050565b600061262c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126919092919063ffffffff16565b905060008151111561268c578080602001905181019061264c9190612b31565b61268b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268290613400565b60405180910390fd5b5b505050565b60606126a084846000856126a9565b90509392505050565b6060824710156126ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e590613492565b60405180910390fd5b6126f7856127bd565b612736576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272d906134fe565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161275f91906131e4565b60006040518083038185875af1925050503d806000811461279c576040519150601f19603f3d011682016040523d82523d6000602084013e6127a1565b606091505b50915091506127b18282866127e0565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606083156127f057829050612840565b6000835111156128035782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612837919061351e565b60405180910390fd5b9392505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612881578082015181840152602081019050612866565b60008484015250505050565b6000601f19601f8301169050919050565b60006128a982612847565b6128b38185612852565b93506128c3818560208601612863565b6128cc8161288d565b840191505092915050565b600060208201905081810360008301526128f1818461289e565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612924826128f9565b9050919050565b61293481612919565b82525050565b600060208201905061294f600083018461292b565b92915050565b600080fd5b600080fd5b600080fd5b60006060828403121561297a5761297961295f565b5b81905092915050565b60006020828403121561299957612998612955565b5b600082013567ffffffffffffffff8111156129b7576129b661295a565b5b6129c384828501612964565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a01816129cc565b82525050565b6000602082019050612a1c60008301846129f8565b92915050565b600080fd5b600080fd5b600080fd5b600082356001606003833603038112612a4d57612a4c612a22565b5b80830191505092915050565b612a6281612919565b8114612a6d57600080fd5b50565b600081359050612a7f81612a59565b92915050565b600060208284031215612a9b57612a9a612955565b5b6000612aa984828501612a70565b91505092915050565b612abb816129cc565b82525050565b612aca81612919565b82525050565b6000604082019050612ae56000830185612ab2565b612af26020830184612ac1565b9392505050565b60008115159050919050565b612b0e81612af9565b8114612b1957600080fd5b50565b600081519050612b2b81612b05565b92915050565b600060208284031215612b4757612b46612955565b5b6000612b5584828501612b1c565b91505092915050565b6000612b69826128f9565b9050919050565b612b7981612b5e565b8114612b8457600080fd5b50565b600081519050612b9681612b70565b92915050565b6000819050919050565b612baf81612b9c565b8114612bba57600080fd5b50565b600081519050612bcc81612ba6565b92915050565b600080600060608486031215612beb57612bea612955565b5b6000612bf986828701612b87565b9350506020612c0a86828701612b87565b9250506040612c1b86828701612bbd565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008235600161010003833603038112612c7157612c70612a22565b5b80830191505092915050565b60068110612c8a57600080fd5b50565b600081359050612c9c81612c7d565b92915050565b600060208284031215612cb857612cb7612955565b5b6000612cc684828501612c8d565b91505092915050565b600082356001604003833603038112612ceb57612cea612a22565b5b80830191505092915050565b60008083356001602003843603038112612d1457612d13612a22565b5b80840192508235915067ffffffffffffffff821115612d3657612d35612a27565b5b602083019250600182023603831315612d5257612d51612a2c565b5b509250929050565b6000819050919050565b612d6d81612d5a565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000612d9f8385612d73565b9350612dac838584612d84565b612db58361288d565b840190509392505050565b6000604082019050612dd56000830186612d64565b8181036020830152612de8818486612d93565b9050949350505050565b6000602082019050612e076000830184612ac1565b92915050565b600060208284031215612e2357612e22612955565b5b6000612e3184828501612bbd565b91505092915050565b600081905092915050565b6000612e518385612e3a565b9350612e5e838584612d84565b82840190509392505050565b6000612e77828486612e45565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ebd82612b9c565b9150612ec883612b9c565b9250828203905081811115612ee057612edf612e83565b5b92915050565b6000819050919050565b6000819050919050565b6000612f15612f10612f0b84612ee6565b612ef0565b612b9c565b9050919050565b612f2581612efa565b82525050565b600082825260208201905092915050565b6000612f4782612847565b612f518185612f2b565b9350612f61818560208601612863565b612f6a8161288d565b840191505092915050565b6000606082019050612f8a6000830186612f1c565b8181036020830152612f9c8185612f3c565b90508181036040830152612fb08184612f3c565b9050949350505050565b600082356001608003833603038112612fd657612fd5612a22565b5b80830191505092915050565b612feb81612b9c565b82525050565b600060e082019050818103600083015261300c818a8c612d93565b905061301b6020830189612fe2565b6130286040830188612ac1565b6130356060830187612ac1565b6130426080830186612ac1565b61304f60a0830185612ac1565b61305c60c0830184612fe2565b9998505050505050505050565b600061307482612b9c565b915061307f83612b9c565b925082820261308d81612b9c565b915082820484148315176130a4576130a3612e83565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130e582612b9c565b91506130f083612b9c565b925082613100576130ff6130ab565b5b828204905092915050565b60006060820190506131206000830186612fe2565b81810360208301526131328185612f3c565b905081810360408301526131468184612f3c565b9050949350505050565b60006040820190506131656000830185612ac1565b6131726020830184612ac1565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081519050919050565b60006131be826131a8565b6131c88185612e3a565b93506131d8818560208601612863565b80840191505092915050565b60006131f082846131b3565b915081905092915050565b7f5354450000000000000000000000000000000000000000000000000000000000600082015250565b6000613231600383612f2b565b915061323c826131fb565b602082019050919050565b6000602082019050818103600083015261326081613224565b9050919050565b600060408201905061327c6000830185612ac1565b6132896020830184612fe2565b9392505050565b7f5354000000000000000000000000000000000000000000000000000000000000600082015250565b60006132c6600283612f2b565b91506132d182613290565b602082019050919050565b600060208201905081810360008301526132f5816132b9565b9050919050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6000613358603683612f2b565b9150613363826132fc565b604082019050919050565b600060208201905081810360008301526133878161334b565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006133ea602a83612f2b565b91506133f58261338e565b604082019050919050565b60006020820190508181036000830152613419816133dd565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061347c602683612f2b565b915061348782613420565b604082019050919050565b600060208201905081810360008301526134ab8161346f565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006134e8601d83612f2b565b91506134f3826134b2565b602082019050919050565b60006020820190508181036000830152613517816134db565b9050919050565b600060208201905081810360008301526135388184612f3c565b90509291505056fe73776170284167677265676174696f6e466561747572652e5377617044657461696c29a2646970667358221220a21e9863f7cb2d8f8c71e1a2b034f117a709fde7d0b6de6de9e4cb0c66ce5aac64736f6c63430008110033
Deployed Bytecode
0x7377b9d028ed2d2106ca7e0a336332f43557257571301460806040526004361061006c5760003560e01c8063031b905c146100715780632dde2b7f1461008f5780636a2b69f0146100ad5780636ae4b4f7146100d657806386a4a6ef146100f4578063c4d9122014610112575b600080fd5b610079610130565b60405161008691906128d7565b60405180910390f35b610097610169565b6040516100a4919061293a565b60405180910390f35b8180156100b957600080fd5b506100d460048036038101906100cf9190612983565b610181565b005b6100de6105b3565b6040516100eb91906128d7565b60405180910390f35b6100fc6105ec565b604051610109919061293a565b60405180910390f35b61011a610604565b6040516101279190612a07565b60405180910390f35b6040518060400160405280600381526020017f312e30000000000000000000000000000000000000000000000000000000000081525081565b739afd2948f573dd8684347924ebce1847d50621ed81565b739afd2948f573dd8684347924ebce1847d50621ed73ffffffffffffffffffffffffffffffffffffffff1663f090fa8d60405180606001604052806023815260200161354160239139805190602001208380602001906101e19190612a31565b60200160208101906101f39190612a85565b6040518363ffffffff1660e01b8152600401610210929190612ad0565b602060405180830381865afa15801561022d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102519190612b31565b610287576040517f45bb4ea800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b739afd2948f573dd8684347924ebce1847d50621ed73ffffffffffffffffffffffffffffffffffffffff1663af2d9d8160405180606001604052806023815260200161354160239139805190602001208380602001906102e79190612a31565b60000160208101906102f99190612a85565b6040518363ffffffff1660e01b8152600401610316929190612ad0565b602060405180830381865afa158015610333573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103579190612b31565b61038d576040517f2b0fe4a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600073e4da6f981a78b8b9edefe4d7a955c04ba7e67d8d73ffffffffffffffffffffffffffffffffffffffff16636611f5286040518163ffffffff1660e01b8152600401606060405180830381865afa1580156103f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104159190612bd2565b92509250925060058081111561042e5761042d612c25565b5b84806000019061043e9190612c54565b60200160208101906104509190612ca2565b600581111561046257610461612c25565b5b111561049a576040517fd4371b3000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060058111156104ae576104ad612c25565b5b8480600001906104be9190612c54565b60200160208101906104d09190612ca2565b60058111156104e2576104e1612c25565b5b036104f5576104f084610627565b6105ad565b6001600581111561050957610508612c25565b5b8480600001906105199190612c54565b602001602081019061052b9190612ca2565b600581111561053d5761053c612c25565b5b0361059f578380600001906105529190612c54565b60a0013534101561058f576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61059a848483610d7d565b6105ac565b6105ab848484846111f9565b5b5b50505050565b6040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e204665617475726581525081565b73e4da6f981a78b8b9edefe4d7a955c04ba7e67d8d81565b604051806060016040528060238152602001613541602391398051906020012081565b73e4da6f981a78b8b9edefe4d7a955c04ba7e67d8d73ffffffffffffffffffffffffffffffffffffffff16632cf886718280600001906106679190612c54565b80600001906106769190612ccf565b6000013583806000019061068a9190612c54565b80600001906106999190612ccf565b80602001906106a89190612cf7565b6040518463ffffffff1660e01b81526004016106c693929190612dc0565b600060405180830381600087803b1580156106e057600080fd5b505af11580156106f4573d6000803e3d6000fd5b50505050600081806000019061070a9190612c54565b604001602081019061071c9190612a85565b9050600061074a8380600001906107339190612c54565b60600160208101906107459190612a85565b61144c565b905061077683806000019061075f9190612c54565b60400160208101906107719190612a85565b61144c565b156107cd5782806000019061078b9190612c54565b60a001353410156107c8576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108d9565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108089190612df2565b602060405180830381865afa158015610825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108499190612e0d565b905083806000019061085b9190612c54565b60800135811015610898576040517f2cc2b0be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108d7838580602001906108ac9190612a31565b60000160208101906108be9190612a85565b8680600001906108ce9190612c54565b608001356114cf565b505b600081610980578380600001906108f09190612c54565b60600160208101906109029190612a85565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161093a9190612df2565b602060405180830381865afa158015610957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097b9190612e0d565b610982565b475b905060008480602001906109969190612a31565b60200160208101906109a89190612a85565b73ffffffffffffffffffffffffffffffffffffffff16348680602001906109cf9190612a31565b80604001906109de9190612cf7565b6040516109ec929190612e6a565b60006040518083038185875af1925050503d8060008114610a29576040519150601f19603f3d011682016040523d82523d6000602084013e610a2e565b606091505b50509050610a3b816115df565b600083610ae257858060000190610a529190612c54565b6060016020810190610a649190612a85565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a9c9190612df2565b602060405180830381865afa158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add9190612e0d565b610ae4565b475b90508315610b2757610b22868060000190610aff9190612c54565b60c0016020810190610b119190612a85565b8483610b1d9190612eb2565b6115f1565b610b80565b610b7f868060000190610b3a9190612c54565b6060016020810190610b4c9190612a85565b878060000190610b5c9190612c54565b60c0016020810190610b6e9190612a85565b8584610b7a9190612eb2565b6116f1565b5b858060000190610b909190612c54565b60c0016020810190610ba29190612a85565b73ffffffffffffffffffffffffffffffffffffffff16868060000190610bc89190612c54565b6020016020810190610bda9190612ca2565b6005811115610bec57610beb612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c0360006040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e300000000000000000000000000000000000000000000000000000000000815250604051610c8a93929190612f75565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b72868060400190610cc39190612fba565b8060000190610cd29190612cf7565b888060400190610ce29190612fba565b60200135338a8060400190610cf79190612fba565b6060016020810190610d099190612a85565b8b8060000190610d199190612c54565b6040016020810190610d2b9190612a85565b8c8060400190610d3b9190612fba565b6040016020810190610d4d9190612a85565b8a89610d599190612eb2565b604051610d6d989796959493929190612ff1565b60405180910390a1505050505050565b6000838060000190610d8f9190612c54565b6060016020810190610da19190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dde9190612df2565b602060405180830381865afa158015610dfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1f9190612e0d565b9050600061271084878060000190610e379190612c54565b60800135610e459190613069565b610e4f91906130da565b9050610e5b85826115f1565b6000868060200190610e6d9190612a31565b6020016020810190610e7f9190612a85565b73ffffffffffffffffffffffffffffffffffffffff16878060000190610ea59190612c54565b60a00135888060200190610eb99190612a31565b8060400190610ec89190612cf7565b604051610ed6929190612e6a565b60006040518083038185875af1925050503d8060008114610f13576040519150601f19603f3d011682016040523d82523d6000602084013e610f18565b606091505b50509050610f25816115df565b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f609190612df2565b602060405180830381865afa158015610f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa19190612e0d565b9050610ffb888060000190610fb69190612c54565b6060016020810190610fc89190612a85565b898060000190610fd89190612c54565b60c0016020810190610fea9190612a85565b8684610ff69190612eb2565b6116f1565b87806000019061100b9190612c54565b60c001602081019061101d9190612a85565b73ffffffffffffffffffffffffffffffffffffffff168880600001906110439190612c54565b60200160208101906110559190612ca2565b600581111561106757611066612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03856040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e3000000000000000000000000000000000000000000000000000000000008152506040516111049392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b7288806040019061113d9190612fba565b806000019061114c9190612cf7565b8a806040019061115c9190612fba565b60200135338c80604001906111719190612fba565b60600160208101906111839190612a85565b8d80600001906111939190612c54565b60400160208101906111a59190612a85565b8e80604001906111b59190612fba565b60400160208101906111c79190612a85565b8b896111d39190612eb2565b6040516111e7989796959493929190612ff1565b60405180910390a15050505050505050565b600084806000019061120b9190612c54565b604001602081019061121d9190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161125a9190612df2565b602060405180830381865afa158015611277573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129b9190612e0d565b90508580600001906112ad9190612c54565b608001358110156112ea576040517f2cc2b0be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611329828780602001906112fe9190612a31565b60000160208101906113109190612a85565b8880600001906113209190612c54565b608001356114cf565b6002600581111561133d5761133c612c25565b5b86806000019061134d9190612c54565b602001602081019061135f9190612ca2565b600581111561137157611370612c25565b5b0361138657611381868685611846565b611444565b6004600581111561139a57611399612c25565b5b8680600001906113aa9190612c54565b60200160208101906113bc9190612ca2565b60058111156113ce576113cd612c25565b5b036113e3576113de868685611b6c565b611443565b61144286600360058111156113fb576113fa612c25565b5b88806000019061140b9190612c54565b602001602081019061141d9190612ca2565b600581111561142f5761142e612c25565b5b1461143a578661143c565b855b85611fef565b5b5b505050505050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806114c85750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161150c929190613150565b602060405180830381865afa158015611529573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154d9190612e0d565b9050818110156115d957600081111561158d5761158c8360008673ffffffffffffffffffffffffffffffffffffffff1661247b9092919063ffffffff16565b5b6115d8837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff1661247b9092919063ffffffff16565b5b50505050565b806115ee573d6000803e3d6000fd5b50565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff81111561162657611625613179565b5b6040519080825280601f01601f1916602001820160405280156116585781602001600182028036833780820191505090505b5060405161166691906131e4565b60006040518083038185875af1925050503d80600081146116a3576040519150601f19603f3d011682016040523d82523d6000602084013e6116a8565b606091505b50509050806116ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e390613247565b60405180910390fd5b505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b8585604051602401611726929190613267565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161179091906131e4565b6000604051808303816000865af19150503d80600081146117cd576040519150601f19603f3d011682016040523d82523d6000602084013e6117d2565b606091505b509150915081801561180057506000815114806117ff5750808060200190518101906117fe9190612b31565b5b5b61183f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611836906132dc565b60405180910390fd5b5050505050565b600047905060008060008680602001906118609190612a31565b60200160208101906118729190612a85565b73ffffffffffffffffffffffffffffffffffffffff16600088806020019061189a9190612a31565b80604001906118a99190612cf7565b6040516118b7929190612e6a565b60006040518083038185875af1925050503d80600081146118f4576040519150601f19603f3d011682016040523d82523d6000602084013e6118f9565b606091505b50509050611906816115df565b83476119129190612eb2565b915061271085836119239190613069565b61192d91906130da565b925061193986846115f1565b61196f87806000019061194c9190612c54565b60c001602081019061195e9190612a85565b848461196a9190612eb2565b6115f1565b86806000019061197f9190612c54565b60c00160208101906119919190612a85565b73ffffffffffffffffffffffffffffffffffffffff168780600001906119b79190612c54565b60200160208101906119c99190612ca2565b60058111156119db576119da612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03856040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e300000000000000000000000000000000000000000000000000000000000815250604051611a789392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b72878060400190611ab19190612fba565b8060000190611ac09190612cf7565b898060400190611ad09190612fba565b60200135338b8060400190611ae59190612fba565b6060016020810190611af79190612a85565b8c8060000190611b079190612c54565b6040016020810190611b199190612a85565b8d8060400190611b299190612fba565b6040016020810190611b3b9190612a85565b8a8a611b479190612eb2565b604051611b5b989796959493929190612ff1565b60405180910390a150505050505050565b6000838060000190611b7e9190612c54565b6060016020810190611b909190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611bcd9190612df2565b602060405180830381865afa158015611bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0e9190612e0d565b90506000806000878060200190611c259190612a31565b6020016020810190611c379190612a85565b73ffffffffffffffffffffffffffffffffffffffff166000898060200190611c5f9190612a31565b8060400190611c6e9190612cf7565b604051611c7c929190612e6a565b60006040518083038185875af1925050503d8060008114611cb9576040519150601f19603f3d011682016040523d82523d6000602084013e611cbe565b606091505b50509050611ccb816115df565b838573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611d059190612df2565b602060405180830381865afa158015611d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d469190612e0d565b611d509190612eb2565b92506127108684611d619190613069565b611d6b91906130da565b9150611d99888060000190611d809190612c54565b6060016020810190611d929190612a85565b88846116f1565b611df1888060000190611dac9190612c54565b6060016020810190611dbe9190612a85565b898060000190611dce9190612c54565b60c0016020810190611de09190612a85565b8486611dec9190612eb2565b6116f1565b878060000190611e019190612c54565b60c0016020810190611e139190612a85565b73ffffffffffffffffffffffffffffffffffffffff16888060000190611e399190612c54565b6020016020810190611e4b9190612ca2565b6005811115611e5d57611e5c612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03846040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e300000000000000000000000000000000000000000000000000000000000815250604051611efa9392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b72888060400190611f339190612fba565b8060000190611f429190612cf7565b8a8060400190611f529190612fba565b60200135338c8060400190611f679190612fba565b6060016020810190611f799190612a85565b8d8060000190611f899190612c54565b6040016020810190611f9b9190612a85565b8e8060400190611fab9190612fba565b6040016020810190611fbd9190612a85565b898b611fc99190612eb2565b604051611fdd989796959493929190612ff1565b60405180910390a15050505050505050565b60008380600001906120019190612c54565b60600160208101906120139190612a85565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016120509190612df2565b602060405180830381865afa15801561206d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120919190612e0d565b90506000612710848780600001906120a99190612c54565b608001356120b79190613069565b6120c191906130da565b90506120ef8680600001906120d69190612c54565b60400160208101906120e89190612a85565b86836116f1565b60008680602001906121019190612a31565b60200160208101906121139190612a85565b73ffffffffffffffffffffffffffffffffffffffff16600088806020019061213b9190612a31565b806040019061214a9190612cf7565b604051612158929190612e6a565b60006040518083038185875af1925050503d8060008114612195576040519150601f19603f3d011682016040523d82523d6000602084013e61219a565b606091505b505090506121a7816115df565b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016121e29190612df2565b602060405180830381865afa1580156121ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122239190612e0d565b905061227d8880600001906122389190612c54565b606001602081019061224a9190612a85565b89806000019061225a9190612c54565b60c001602081019061226c9190612a85565b86846122789190612eb2565b6116f1565b87806000019061228d9190612c54565b60c001602081019061229f9190612a85565b73ffffffffffffffffffffffffffffffffffffffff168880600001906122c59190612c54565b60200160208101906122d79190612ca2565b60058111156122e9576122e8612c25565b5b7fa3a0edf0526ed08d875540e19888f79e48c7fd86b501e3145a99f2f3e56e0c03856040518060400160405280602081526020017f4269744b65657020534f523a204167677265676174696f6e20466561747572658152506040518060400160405280600381526020017f312e3000000000000000000000000000000000000000000000000000000000008152506040516123869392919061310b565b60405180910390a37f65015729990773c576a3b60dabbbebc51d01eae66dea69e06f4b79f345cf5b728880604001906123bf9190612fba565b80600001906123ce9190612cf7565b8a80604001906123de9190612fba565b60200135338c80604001906123f39190612fba565b60600160208101906124059190612a85565b8d80600001906124159190612c54565b60400160208101906124279190612a85565b8e80604001906124379190612fba565b60400160208101906124499190612a85565b8b896124559190612eb2565b604051612469989796959493929190612ff1565b60405180910390a15050505050505050565b6000811480612505575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016124c2929190613150565b602060405180830381865afa1580156124df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125039190612e0d565b145b612544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253b9061336e565b60405180910390fd5b6125c58363095ea7b360e01b8484604051602401612563929190613267565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125ca565b505050565b600061262c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126919092919063ffffffff16565b905060008151111561268c578080602001905181019061264c9190612b31565b61268b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268290613400565b60405180910390fd5b5b505050565b60606126a084846000856126a9565b90509392505050565b6060824710156126ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e590613492565b60405180910390fd5b6126f7856127bd565b612736576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272d906134fe565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161275f91906131e4565b60006040518083038185875af1925050503d806000811461279c576040519150601f19603f3d011682016040523d82523d6000602084013e6127a1565b606091505b50915091506127b18282866127e0565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606083156127f057829050612840565b6000835111156128035782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612837919061351e565b60405180910390fd5b9392505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612881578082015181840152602081019050612866565b60008484015250505050565b6000601f19601f8301169050919050565b60006128a982612847565b6128b38185612852565b93506128c3818560208601612863565b6128cc8161288d565b840191505092915050565b600060208201905081810360008301526128f1818461289e565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612924826128f9565b9050919050565b61293481612919565b82525050565b600060208201905061294f600083018461292b565b92915050565b600080fd5b600080fd5b600080fd5b60006060828403121561297a5761297961295f565b5b81905092915050565b60006020828403121561299957612998612955565b5b600082013567ffffffffffffffff8111156129b7576129b661295a565b5b6129c384828501612964565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a01816129cc565b82525050565b6000602082019050612a1c60008301846129f8565b92915050565b600080fd5b600080fd5b600080fd5b600082356001606003833603038112612a4d57612a4c612a22565b5b80830191505092915050565b612a6281612919565b8114612a6d57600080fd5b50565b600081359050612a7f81612a59565b92915050565b600060208284031215612a9b57612a9a612955565b5b6000612aa984828501612a70565b91505092915050565b612abb816129cc565b82525050565b612aca81612919565b82525050565b6000604082019050612ae56000830185612ab2565b612af26020830184612ac1565b9392505050565b60008115159050919050565b612b0e81612af9565b8114612b1957600080fd5b50565b600081519050612b2b81612b05565b92915050565b600060208284031215612b4757612b46612955565b5b6000612b5584828501612b1c565b91505092915050565b6000612b69826128f9565b9050919050565b612b7981612b5e565b8114612b8457600080fd5b50565b600081519050612b9681612b70565b92915050565b6000819050919050565b612baf81612b9c565b8114612bba57600080fd5b50565b600081519050612bcc81612ba6565b92915050565b600080600060608486031215612beb57612bea612955565b5b6000612bf986828701612b87565b9350506020612c0a86828701612b87565b9250506040612c1b86828701612bbd565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008235600161010003833603038112612c7157612c70612a22565b5b80830191505092915050565b60068110612c8a57600080fd5b50565b600081359050612c9c81612c7d565b92915050565b600060208284031215612cb857612cb7612955565b5b6000612cc684828501612c8d565b91505092915050565b600082356001604003833603038112612ceb57612cea612a22565b5b80830191505092915050565b60008083356001602003843603038112612d1457612d13612a22565b5b80840192508235915067ffffffffffffffff821115612d3657612d35612a27565b5b602083019250600182023603831315612d5257612d51612a2c565b5b509250929050565b6000819050919050565b612d6d81612d5a565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000612d9f8385612d73565b9350612dac838584612d84565b612db58361288d565b840190509392505050565b6000604082019050612dd56000830186612d64565b8181036020830152612de8818486612d93565b9050949350505050565b6000602082019050612e076000830184612ac1565b92915050565b600060208284031215612e2357612e22612955565b5b6000612e3184828501612bbd565b91505092915050565b600081905092915050565b6000612e518385612e3a565b9350612e5e838584612d84565b82840190509392505050565b6000612e77828486612e45565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ebd82612b9c565b9150612ec883612b9c565b9250828203905081811115612ee057612edf612e83565b5b92915050565b6000819050919050565b6000819050919050565b6000612f15612f10612f0b84612ee6565b612ef0565b612b9c565b9050919050565b612f2581612efa565b82525050565b600082825260208201905092915050565b6000612f4782612847565b612f518185612f2b565b9350612f61818560208601612863565b612f6a8161288d565b840191505092915050565b6000606082019050612f8a6000830186612f1c565b8181036020830152612f9c8185612f3c565b90508181036040830152612fb08184612f3c565b9050949350505050565b600082356001608003833603038112612fd657612fd5612a22565b5b80830191505092915050565b612feb81612b9c565b82525050565b600060e082019050818103600083015261300c818a8c612d93565b905061301b6020830189612fe2565b6130286040830188612ac1565b6130356060830187612ac1565b6130426080830186612ac1565b61304f60a0830185612ac1565b61305c60c0830184612fe2565b9998505050505050505050565b600061307482612b9c565b915061307f83612b9c565b925082820261308d81612b9c565b915082820484148315176130a4576130a3612e83565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130e582612b9c565b91506130f083612b9c565b925082613100576130ff6130ab565b5b828204905092915050565b60006060820190506131206000830186612fe2565b81810360208301526131328185612f3c565b905081810360408301526131468184612f3c565b9050949350505050565b60006040820190506131656000830185612ac1565b6131726020830184612ac1565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081519050919050565b60006131be826131a8565b6131c88185612e3a565b93506131d8818560208601612863565b80840191505092915050565b60006131f082846131b3565b915081905092915050565b7f5354450000000000000000000000000000000000000000000000000000000000600082015250565b6000613231600383612f2b565b915061323c826131fb565b602082019050919050565b6000602082019050818103600083015261326081613224565b9050919050565b600060408201905061327c6000830185612ac1565b6132896020830184612fe2565b9392505050565b7f5354000000000000000000000000000000000000000000000000000000000000600082015250565b60006132c6600283612f2b565b91506132d182613290565b602082019050919050565b600060208201905081810360008301526132f5816132b9565b9050919050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6000613358603683612f2b565b9150613363826132fc565b604082019050919050565b600060208201905081810360008301526133878161334b565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006133ea602a83612f2b565b91506133f58261338e565b604082019050919050565b60006020820190508181036000830152613419816133dd565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061347c602683612f2b565b915061348782613420565b604082019050919050565b600060208201905081810360008301526134ab8161346f565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006134e8601d83612f2b565b91506134f3826134b2565b602082019050919050565b60006020820190508181036000830152613517816134db565b9050919050565b600060208201905081810360008301526135388184612f3c565b90509291505056fe73776170284167677265676174696f6e466561747572652e5377617044657461696c29a2646970667358221220a21e9863f7cb2d8f8c71e1a2b034f117a709fde7d0b6de6de9e4cb0c66ce5aac64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.