S Price: $0.509169 (-1.75%)

Contract

0x405EE7F4f067604b787346bC22ACb66b06b15A4B

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Swap Info55783032025-01-27 13:28:403 days ago1737984520IN
0x405EE7F4...b06b15A4B
0 S0.0403756155
Set Swap Info51191512025-01-23 12:13:137 days ago1737634393IN
0x405EE7F4...b06b15A4B
0 S0.0403756155
Set Swap Info51187452025-01-23 12:08:377 days ago1737634117IN
0x405EE7F4...b06b15A4B
0 S0.0403868855
Set Swap Info51160942025-01-23 11:38:267 days ago1737632306IN
0x405EE7F4...b06b15A4B
0 S0.0403756155
Set Swap Info42690112025-01-17 13:47:2413 days ago1737121644IN
0x405EE7F4...b06b15A4B
0 S0.0734844110
Set Swap Info42632172025-01-17 12:39:3713 days ago1737117577IN
0x405EE7F4...b06b15A4B
0 S0.03675122110

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

Contract Source Code Verified (Exact Match)

Contract Name:
SimpleSwapper

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at SonicScan.org on 2025-01-17
*/

// SPDX-License-Identifier: MIT
// File: @openzeppelin-4/contracts/token/ERC20/IERC20.sol

// 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: @openzeppelin-4/contracts/token/ERC20/extensions/draft-IERC20Permit.sol

// 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: @openzeppelin-4/contracts/utils/Address.sol

// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin-4/contracts/token/ERC20/utils/SafeERC20.sol

// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



/**
 * @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: contracts/BIFI/utils/BytesLib.sol

/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity >=0.8.0 <0.9.0;


library BytesLib {
    function concat(
        bytes memory _preBytes,
        bytes memory _postBytes
    )
    internal
    pure
    returns (bytes memory)
    {
        bytes memory tempBytes;

        assembly {
        // Get a location of some free memory and store it in tempBytes as
        // Solidity does for memory variables.
            tempBytes := mload(0x40)

        // Store the length of the first bytes array at the beginning of
        // the memory for tempBytes.
            let length := mload(_preBytes)
            mstore(tempBytes, length)

        // Maintain a memory counter for the current write location in the
        // temp bytes array by adding the 32 bytes for the array length to
        // the starting location.
            let mc := add(tempBytes, 0x20)
        // Stop copying when the memory counter reaches the length of the
        // first bytes array.
            let end := add(mc, length)

            for {
            // Initialize a copy counter to the start of the _preBytes data,
            // 32 bytes into its memory.
                let cc := add(_preBytes, 0x20)
            } lt(mc, end) {
            // Increase both counters by 32 bytes each iteration.
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
            // Write the _preBytes data into the tempBytes memory 32 bytes
            // at a time.
                mstore(mc, mload(cc))
            }

        // Add the length of _postBytes to the current length of tempBytes
        // and store it as the new length in the first 32 bytes of the
        // tempBytes memory.
            length := mload(_postBytes)
            mstore(tempBytes, add(length, mload(tempBytes)))

        // Move the memory counter back from a multiple of 0x20 to the
        // actual end of the _preBytes data.
            mc := end
        // Stop copying when the memory counter reaches the new combined
        // length of the arrays.
            end := add(mc, length)

            for {
                let cc := add(_postBytes, 0x20)
            } lt(mc, end) {
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                mstore(mc, mload(cc))
            }

        // Update the free-memory pointer by padding our last write location
        // to 32 bytes: add 31 bytes to the end of tempBytes to move to the
        // next 32 byte block, then round down to the nearest multiple of
        // 32. If the sum of the length of the two arrays is zero then add
        // one before rounding down to leave a blank 32 bytes (the length block with 0).
            mstore(0x40, and(
            add(add(end, iszero(add(length, mload(_preBytes)))), 31),
            not(31) // Round down to the nearest 32 bytes.
            ))
        }

        return tempBytes;
    }

    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
        assembly {
        // Read the first 32 bytes of _preBytes storage, which is the length
        // of the array. (We don't need to use the offset into the slot
        // because arrays use the entire slot.)
            let fslot := sload(_preBytes.slot)
        // Arrays of 31 bytes or less have an even value in their slot,
        // while longer arrays have an odd value. The actual length is
        // the slot divided by two for odd values, and the lowest order
        // byte divided by two for even values.
        // If the slot is even, bitwise and the slot with 255 and divide by
        // two to get the length. If the slot is odd, bitwise and the slot
        // with -1 and divide by two.
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)
            let newlength := add(slength, mlength)
        // slength can contain both the length and contents of the array
        // if length < 32 bytes so let's prepare for that
        // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
            switch add(lt(slength, 32), lt(newlength, 32))
            case 2 {
            // Since the new array still fits in the slot, we just need to
            // update the contents of the slot.
            // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
                sstore(
                _preBytes.slot,
                // all the modifications to the slot are inside this
                // next block
                add(
                // we can just add to the slot contents because the
                // bytes we want to change are the LSBs
                fslot,
                add(
                mul(
                div(
                // load the bytes from memory
                mload(add(_postBytes, 0x20)),
                // zero all bytes to the right
                exp(0x100, sub(32, mlength))
                ),
                // and now shift left the number of bytes to
                // leave space for the length in the slot
                exp(0x100, sub(32, newlength))
                ),
                // increase length by the double of the memory
                // bytes length
                mul(mlength, 2)
                )
                )
                )
            }
            case 1 {
            // The stored value fits in the slot, but the combined value
            // will exceed it.
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // The contents of the _postBytes array start 32 bytes into
            // the structure. Our first read should obtain the `submod`
            // bytes that can fit into the unused space in the last word
            // of the stored array. To get this, we read 32 bytes starting
            // from `submod`, so the data we read overlaps with the array
            // contents by `submod` bytes. Masking the lowest-order
            // `submod` bytes allows us to add that value directly to the
            // stored value.

                let submod := sub(32, slength)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(
                sc,
                add(
                and(
                fslot,
                0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00
                ),
                and(mload(mc), mask)
                )
                )

                for {
                    mc := add(mc, 0x20)
                    sc := add(sc, 1)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
            default {
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
            // Start copying to the last used word of the stored array.
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // Copy over the first `submod` bytes of the new data as in
            // case 1 above.
                let slengthmod := mod(slength, 32)
                let mlengthmod := mod(mlength, 32)
                let submod := sub(32, slengthmod)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(sc, add(sload(sc), and(mload(mc), mask)))

                for {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
        }
    }

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    )
    internal
    pure
    returns (bytes memory)
    {
        require(_length + 31 >= _length, "slice_overflow");
        require(_bytes.length >= _start + _length, "slice_outOfBounds");

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
                tempBytes := mload(0x40)

            // The first word of the slice result is potentially a partial
            // word read from the original array. To read it, we calculate
            // the length of that partial word and start copying that many
            // bytes into the array. The first word we copy will start with
            // data we don't care about, but the last `lengthmod` bytes will
            // land at the beginning of the contents of the new array. When
            // we're done copying, we overwrite the full first word with
            // the actual length of the slice.
                let lengthmod := and(_length, 31)

            // The multiplication in the next line is necessary
            // because when slicing multiples of 32 bytes (lengthmod == 0)
            // the following copy loop was copying the origin's length
            // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                // The multiplication in the next line has the same exact purpose
                // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

            //update free-memory pointer
            //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)
            //zero out the 32 bytes slice we are about to return
            //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_bytes.length >= _start + 20, "toAddress_outOfBounds");
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_bytes.length >= _start + 1 , "toUint8_outOfBounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {
        require(_bytes.length >= _start + 2, "toUint16_outOfBounds");
        uint16 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x2), _start))
        }

        return tempUint;
    }

    function toUint24(bytes memory _bytes, uint256 _start) internal pure returns (uint24) {
        require(_start + 3 >= _start, 'toUint24_overflow');
        require(_bytes.length >= _start + 3, 'toUint24_outOfBounds');
        uint24 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x3), _start))
        }

        return tempUint;
    }

    function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {
        require(_bytes.length >= _start + 4, "toUint32_outOfBounds");
        uint32 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x4), _start))
        }

        return tempUint;
    }

    function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {
        require(_bytes.length >= _start + 8, "toUint64_outOfBounds");
        uint64 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x8), _start))
        }

        return tempUint;
    }

    function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {
        require(_bytes.length >= _start + 12, "toUint96_outOfBounds");
        uint96 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0xc), _start))
        }

        return tempUint;
    }

    function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {
        require(_bytes.length >= _start + 16, "toUint128_outOfBounds");
        uint128 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x10), _start))
        }

        return tempUint;
    }

    function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
        require(_bytes.length >= _start + 32, "toUint256_outOfBounds");
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
        require(_bytes.length >= _start + 32, "toBytes32_outOfBounds");
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }

    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
        bool success = true;

        assembly {
            let length := mload(_preBytes)

        // if lengths don't match the arrays are not equal
            switch eq(length, mload(_postBytes))
            case 1 {
            // cb is a circuit breaker in the for loop since there's
            //  no said feature for inline assembly loops
            // cb = 1 - don't breaker
            // cb = 0 - break
                let cb := 1

                let mc := add(_preBytes, 0x20)
                let end := add(mc, length)

                for {
                    let cc := add(_postBytes, 0x20)
                // the next line is the loop condition:
                // while(uint256(mc < end) + cb == 2)
                } eq(add(lt(mc, end), cb), 2) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                // if any of these checks fails then arrays are not equal
                    if iszero(eq(mload(mc), mload(cc))) {
                    // unsuccess:
                        success := 0
                        cb := 0
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }

    function equalStorage(
        bytes storage _preBytes,
        bytes memory _postBytes
    )
    internal
    view
    returns (bool)
    {
        bool success = true;

        assembly {
        // we know _preBytes_offset is 0
            let fslot := sload(_preBytes.slot)
        // Decode the length of the stored array like in concatStorage().
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)

        // if lengths don't match the arrays are not equal
            switch eq(slength, mlength)
            case 1 {
            // slength can contain both the length and contents of the array
            // if length < 32 bytes so let's prepare for that
            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
                if iszero(iszero(slength)) {
                    switch lt(slength, 32)
                    case 1 {
                    // blank the last byte which is the length
                        fslot := mul(div(fslot, 0x100), 0x100)

                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
                        // unsuccess:
                            success := 0
                        }
                    }
                    default {
                    // cb is a circuit breaker in the for loop since there's
                    //  no said feature for inline assembly loops
                    // cb = 1 - don't breaker
                    // cb = 0 - break
                        let cb := 1

                    // get the keccak hash to get the contents of the array
                        mstore(0x0, _preBytes.slot)
                        let sc := keccak256(0x0, 0x20)

                        let mc := add(_postBytes, 0x20)
                        let end := add(mc, mlength)

                    // the next line is the loop condition:
                    // while(uint256(mc < end) + cb == 2)
                        for {} eq(add(lt(mc, end), cb), 2) {
                            sc := add(sc, 1)
                            mc := add(mc, 0x20)
                        } {
                            if iszero(eq(sload(sc), mload(mc))) {
                            // unsuccess:
                                success := 0
                                cb := 0
                            }
                        }
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }
}

// File: contracts/BIFI/infra/SimpleSwapper.sol


pragma solidity ^0.8.0;


contract SimpleSwapper {
    using SafeERC20 for IERC20;
    using BytesLib for bytes;

    struct SwapInfo {
        address router;
        bytes data;
        uint256 amountIndex;
    }

    mapping(address => mapping(address => SwapInfo)) public swapInfo;

    address public native;
    address public keeper;
    address public deployer;

    constructor(address _native, address _keeper) {
        native = _native;
        keeper = _keeper;
        deployer = msg.sender;
    }

    modifier onlyManager() {
        require(msg.sender == deployer || msg.sender == keeper, "!manager");
        _;
    }

    error NoSwapData(address fromToken, address toToken);
    error SwapFailed(address router, bytes data);

    event Swap(address indexed caller, address indexed fromToken, address indexed toToken, uint256 amountIn, uint256 amountOut);
    event SetSwapInfo(address indexed fromToken, address indexed toToken, SwapInfo swapInfo);

    function swap(address _fromToken, address _toToken, uint256 _amountIn) external returns (uint256 amountOut) {
        IERC20(_fromToken).safeTransferFrom(msg.sender, address(this), _amountIn);
        _executeSwap(_fromToken, _toToken, _amountIn);
        amountOut = IERC20(_toToken).balanceOf(address(this));
        IERC20(_toToken).safeTransfer(msg.sender, amountOut);
        emit Swap(msg.sender, _fromToken, _toToken, _amountIn, amountOut);
    }

    function _executeSwap(address _fromToken, address _toToken, uint256 _amountIn) private {
        SwapInfo memory swapData = swapInfo[_fromToken][_toToken];
        address router = swapData.router;
        if (router == address(0)) revert NoSwapData(_fromToken, _toToken);
        bytes memory data = swapData.data;

        data = _insertData(data, swapData.amountIndex, abi.encode(_amountIn));

        _approveTokenIfNeeded(_fromToken, router);
        (bool success,) = router.call(data);
        if (!success) revert SwapFailed(router, data);
    }

    function _insertData(bytes memory _data, uint256 _index, bytes memory _newData) private pure returns (bytes memory data) {
        data = bytes.concat(
            bytes.concat(
                _data.slice(0, _index),
                _newData
            ),
            _data.slice(_index + 32, _data.length - (_index + 32))
        );
    }

    function setSwapInfo(address _fromToken, address _toToken, SwapInfo calldata _swapInfo) external onlyManager {
        swapInfo[_fromToken][_toToken] = _swapInfo;
        emit SetSwapInfo(_fromToken, _toToken, _swapInfo);
    }

    function setSwapInfos(address[] calldata _fromTokens, address[] calldata _toTokens, SwapInfo[] calldata _swapInfos) external onlyManager {
        uint256 tokenLength = _fromTokens.length;
        for (uint i; i < tokenLength;) {
            swapInfo[_fromTokens[i]][_toTokens[i]] = _swapInfos[i];
            emit SetSwapInfo(_fromTokens[i], _toTokens[i], _swapInfos[i]);
            unchecked {++i;}
        }
    }

    function _approveTokenIfNeeded(address token, address spender) private {
        if (IERC20(token).allowance(address(this), spender) == 0) {
            IERC20(token).safeApprove(spender, type(uint256).max);
        }
    }

    function fromNative(address _token) external view returns (address router, bytes memory data, uint256 amountIndex) {
        router = swapInfo[native][_token].router;
        data = swapInfo[native][_token].data;
        amountIndex = swapInfo[native][_token].amountIndex;
    }

    function toNative(address _token) external view returns (address router, bytes memory data, uint256 amountIndex) {
        router = swapInfo[_token][native].router;
        data = swapInfo[_token][native].data;
        amountIndex = swapInfo[_token][native].amountIndex;
    }

    function setKeeper(address _keeper) external onlyManager {
        keeper = _keeper;
    }

    function renounceDeployer() public onlyManager {
        deployer = address(0);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_native","type":"address"},{"internalType":"address","name":"_keeper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"}],"name":"NoSwapData","type":"error"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"SwapFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromToken","type":"address"},{"indexed":true,"internalType":"address","name":"toToken","type":"address"},{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"indexed":false,"internalType":"struct SimpleSwapper.SwapInfo","name":"swapInfo","type":"tuple"}],"name":"SetSwapInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"fromToken","type":"address"},{"indexed":true,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[],"name":"deployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"fromNative","outputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"native","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceDeployer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"internalType":"struct SimpleSwapper.SwapInfo","name":"_swapInfo","type":"tuple"}],"name":"setSwapInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_fromTokens","type":"address[]"},{"internalType":"address[]","name":"_toTokens","type":"address[]"},{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"internalType":"struct SimpleSwapper.SwapInfo[]","name":"_swapInfos","type":"tuple[]"}],"name":"setSwapInfos","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"swap","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"swapInfo","outputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"toNative","outputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561000f575f80fd5b506040516200176e3803806200176e8339810160408190526100309161008c565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169181169190911790915560038054909116331790556100bd565b80516001600160a01b0381168114610087575f80fd5b919050565b5f806040838503121561009d575f80fd5b6100a683610071565b91506100b460208401610071565b90509250929050565b6116a380620000cb5f395ff3fe608060405234801561000f575f80fd5b50600436106100a6575f3560e01c806384aad7fd1161006e57806384aad7fd1461013b578063aced16611461014e578063bf6f00d814610161578063d5f3948814610169578063df791e501461017c578063e0146c8e1461019d575f80fd5b80631147e140146100aa57806311b0b42d146100d5578063336748a2146101005780633c8f579014610115578063748747e614610128575b5f80fd5b6100bd6100b83660046110a0565b6101b0565b6040516100cc93929190611108565b60405180910390f35b6001546100e8906001600160a01b031681565b6040516001600160a01b0390911681526020016100cc565b61011361010e366004611183565b6102a2565b005b6100bd6101233660046110a0565b61047a565b6101136101363660046110a0565b610568565b610113610149366004611216565b6105c9565b6002546100e8906001600160a01b031681565b610113610689565b6003546100e8906001600160a01b031681565b61018f61018a36600461127a565b6106da565b6040519081526020016100cc565b6100bd6101ab3660046112b8565b6107c9565b600180546001600160a01b039081165f90815260208181526040808320868516845290915281208054930180549390921692606092906101ef906112ef565b80601f016020809104026020016040519081016040528092919081815260200182805461021b906112ef565b80156102665780601f1061023d57610100808354040283529160200191610266565b820191905f5260205f20905b81548152906001019060200180831161024957829003601f168201915b50506001546001600160a01b039081165f908152602081815260408083209b909316825299909952909720600201549597929650919350505050565b6003546001600160a01b03163314806102c557506002546001600160a01b031633145b6102ea5760405162461bcd60e51b81526004016102e190611327565b60405180910390fd5b845f5b818110156104705783838281811061030757610307611349565b9050602002810190610319919061135d565b5f808a8a8581811061032d5761032d611349565b905060200201602081019061034291906110a0565b6001600160a01b03166001600160a01b031681526020019081526020015f205f88888581811061037457610374611349565b905060200201602081019061038991906110a0565b6001600160a01b0316815260208101919091526040015f206103ab82826113c6565b9050508585828181106103c0576103c0611349565b90506020020160208101906103d591906110a0565b6001600160a01b03168888838181106103f0576103f0611349565b905060200201602081019061040591906110a0565b6001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b86868581811061044157610441611349565b9050602002810190610453919061135d565b60405161046091906114e5565b60405180910390a36001016102ed565b5050505050505050565b6001600160a01b038181165f908152602081815260408083206001805486168552925282208054910180549190931692606092916104b7906112ef565b80601f01602080910402602001604051908101604052809291908181526020018280546104e3906112ef565b801561052e5780601f106105055761010080835404028352916020019161052e565b820191905f5260205f20905b81548152906001019060200180831161051157829003601f168201915b505050506001600160a01b039586165f90815260208181526040808320600154909916835297905295909520600201549395909450915050565b6003546001600160a01b031633148061058b57506002546001600160a01b031633145b6105a75760405162461bcd60e51b81526004016102e190611327565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314806105ec57506002546001600160a01b031633145b6106085760405162461bcd60e51b81526004016102e190611327565b6001600160a01b038084165f90815260208181526040808320938616835292905220819061063682826113c6565b905050816001600160a01b0316836001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b8360405161067c91906114e5565b60405180910390a3505050565b6003546001600160a01b03163314806106ac57506002546001600160a01b031633145b6106c85760405162461bcd60e51b81526004016102e190611327565b600380546001600160a01b0319169055565b5f6106f06001600160a01b038516333085610883565b6106fb8484846108f4565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa15801561073d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107619190611583565b90506107776001600160a01b0384163383610ad4565b60408051838152602081018390526001600160a01b03808616929087169133917fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062910160405180910390a49392505050565b5f602081815292815260408082209093529081522080546001820180546001600160a01b0390921692916107fc906112ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610828906112ef565b80156108735780601f1061084a57610100808354040283529160200191610873565b820191905f5260205f20905b81548152906001019060200180831161085657829003601f168201915b5050505050908060020154905083565b6040516001600160a01b03808516602483015283166044820152606481018290526108ee9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b09565b50505050565b6001600160a01b038084165f90815260208181526040808320868516845282528083208151606081019092528054909416815260018401805493949193919284019161093f906112ef565b80601f016020809104026020016040519081016040528092919081815260200182805461096b906112ef565b80156109b65780601f1061098d576101008083540402835291602001916109b6565b820191905f5260205f20905b81548152906001019060200180831161099957829003601f168201915b50505091835250506002919091015460209091015280519091506001600160a01b038116610a0a5760405163661af8a960e11b81526001600160a01b038087166004830152851660248201526044016102e1565b5f82602001519050610a4281846040015186604051602001610a2e91815260200190565b604051602081830303815290604052610bda565b9050610a4e8683610c5f565b5f826001600160a01b031682604051610a67919061159a565b5f604051808303815f865af19150503d805f8114610aa0576040519150601f19603f3d011682016040523d82523d5f602084013e610aa5565b606091505b5050905080610acb578282604051630de816ad60e31b81526004016102e19291906115ab565b50505050505050565b6040516001600160a01b038316602482015260448101829052610b0490849063a9059cbb60e01b906064016108b7565b505050565b5f610b5d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610cec9092919063ffffffff16565b805190915015610b045780806020019051810190610b7b91906115ce565b610b045760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102e1565b6060610be7845f85610d04565b82604051602001610bf99291906115ed565b60408051601f19818403018152919052610c36610c1785602061162f565b610c2286602061162f565b8751610c2e9190611648565b879190610d04565b604051602001610c479291906115ed565b60405160208183030381529060405290509392505050565b604051636eb1769f60e11b81523060048201526001600160a01b03828116602483015283169063dd62ed3e90604401602060405180830381865afa158015610ca9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ccd9190611583565b5f03610ce857610ce86001600160a01b038316825f19610e10565b5050565b6060610cfa84845f85610f23565b90505b9392505050565b606081610d1281601f61162f565b1015610d515760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016102e1565b610d5b828461162f565b84511015610d9f5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102e1565b606082158015610dbd5760405191505f825260208201604052610e07565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610df6578051835260209283019201610dde565b5050858452601f01601f1916604052505b50949350505050565b801580610e885750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610e62573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e869190611583565b155b610ef35760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102e1565b6040516001600160a01b038316602482015260448101829052610b0490849063095ea7b360e01b906064016108b7565b606082471015610f845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102e1565b6001600160a01b0385163b610fdb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102e1565b5f80866001600160a01b03168587604051610ff6919061159a565b5f6040518083038185875af1925050503d805f8114611030576040519150601f19603f3d011682016040523d82523d5f602084013e611035565b606091505b5091509150611045828286611050565b979650505050505050565b6060831561105f575081610cfd565b82511561106f5782518084602001fd5b8160405162461bcd60e51b81526004016102e1919061165b565b6001600160a01b038116811461109d575f80fd5b50565b5f602082840312156110b0575f80fd5b8135610cfd81611089565b5f5b838110156110d55781810151838201526020016110bd565b50505f910152565b5f81518084526110f48160208601602086016110bb565b601f01601f19169290920160200192915050565b6001600160a01b03841681526060602082018190525f9061112b908301856110dd565b9050826040830152949350505050565b5f8083601f84011261114b575f80fd5b50813567ffffffffffffffff811115611162575f80fd5b6020830191508360208260051b850101111561117c575f80fd5b9250929050565b5f805f805f8060608789031215611198575f80fd5b863567ffffffffffffffff808211156111af575f80fd5b6111bb8a838b0161113b565b909850965060208901359150808211156111d3575f80fd5b6111df8a838b0161113b565b909650945060408901359150808211156111f7575f80fd5b5061120489828a0161113b565b979a9699509497509295939492505050565b5f805f60608486031215611228575f80fd5b833561123381611089565b9250602084013561124381611089565b9150604084013567ffffffffffffffff81111561125e575f80fd5b84016060818703121561126f575f80fd5b809150509250925092565b5f805f6060848603121561128c575f80fd5b833561129781611089565b925060208401356112a781611089565b929592945050506040919091013590565b5f80604083850312156112c9575f80fd5b82356112d481611089565b915060208301356112e481611089565b809150509250929050565b600181811c9082168061130357607f821691505b60208210810361132157634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526008908201526710b6b0b730b3b2b960c11b604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b5f8235605e19833603018112611371575f80fd5b9190910192915050565b601f821115610b0457805f5260205f20601f840160051c810160208510156113a05750805b601f840160051c820191505b818110156113bf575f81556001016113ac565b5050505050565b81356113d181611089565b81546001600160a01b0319166001600160a01b0391909116178155600181810160208481013536869003601e19018112611409575f80fd5b8501803567ffffffffffffffff811115611421575f80fd5b8036038383011315611431575f80fd5b6114458161143f86546112ef565b8661137b565b5f601f821160018114611478575f831561146157508382018501355b5f19600385901b1c1916600184901b1786556114d0565b5f86815260208120601f198516915b828110156114a657868501880135825593870193908901908701611487565b50848210156114c4575f1960f88660031b161c198785880101351681555b505060018360011b0186555b50505050505050604082013560028201555050565b602081525f82356114f581611089565b6001600160a01b031660208381019190915283013536849003601e1901811261151c575f80fd5b830160208101903567ffffffffffffffff811115611538575f80fd5b803603821315611546575f80fd5b60606040850152806080850152808260a08601375f60a082860101526040850135606085015260a0601f19601f8301168501019250505092915050565b5f60208284031215611593575f80fd5b5051919050565b5f82516113718184602087016110bb565b6001600160a01b03831681526040602082018190525f90610cfa908301846110dd565b5f602082840312156115de575f80fd5b81518015158114610cfd575f80fd5b5f83516115fe8184602088016110bb565b8351908301906116128183602088016110bb565b01949350505050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156116425761164261161b565b92915050565b818103818111156116425761164261161b565b602081525f610cfd60208301846110dd56fea2646970667358221220ee82e81d5e777ba7da91d57c32c4b34a728169bb17a34275f623bbd2a6ab00aa64736f6c63430008170033000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106100a6575f3560e01c806384aad7fd1161006e57806384aad7fd1461013b578063aced16611461014e578063bf6f00d814610161578063d5f3948814610169578063df791e501461017c578063e0146c8e1461019d575f80fd5b80631147e140146100aa57806311b0b42d146100d5578063336748a2146101005780633c8f579014610115578063748747e614610128575b5f80fd5b6100bd6100b83660046110a0565b6101b0565b6040516100cc93929190611108565b60405180910390f35b6001546100e8906001600160a01b031681565b6040516001600160a01b0390911681526020016100cc565b61011361010e366004611183565b6102a2565b005b6100bd6101233660046110a0565b61047a565b6101136101363660046110a0565b610568565b610113610149366004611216565b6105c9565b6002546100e8906001600160a01b031681565b610113610689565b6003546100e8906001600160a01b031681565b61018f61018a36600461127a565b6106da565b6040519081526020016100cc565b6100bd6101ab3660046112b8565b6107c9565b600180546001600160a01b039081165f90815260208181526040808320868516845290915281208054930180549390921692606092906101ef906112ef565b80601f016020809104026020016040519081016040528092919081815260200182805461021b906112ef565b80156102665780601f1061023d57610100808354040283529160200191610266565b820191905f5260205f20905b81548152906001019060200180831161024957829003601f168201915b50506001546001600160a01b039081165f908152602081815260408083209b909316825299909952909720600201549597929650919350505050565b6003546001600160a01b03163314806102c557506002546001600160a01b031633145b6102ea5760405162461bcd60e51b81526004016102e190611327565b60405180910390fd5b845f5b818110156104705783838281811061030757610307611349565b9050602002810190610319919061135d565b5f808a8a8581811061032d5761032d611349565b905060200201602081019061034291906110a0565b6001600160a01b03166001600160a01b031681526020019081526020015f205f88888581811061037457610374611349565b905060200201602081019061038991906110a0565b6001600160a01b0316815260208101919091526040015f206103ab82826113c6565b9050508585828181106103c0576103c0611349565b90506020020160208101906103d591906110a0565b6001600160a01b03168888838181106103f0576103f0611349565b905060200201602081019061040591906110a0565b6001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b86868581811061044157610441611349565b9050602002810190610453919061135d565b60405161046091906114e5565b60405180910390a36001016102ed565b5050505050505050565b6001600160a01b038181165f908152602081815260408083206001805486168552925282208054910180549190931692606092916104b7906112ef565b80601f01602080910402602001604051908101604052809291908181526020018280546104e3906112ef565b801561052e5780601f106105055761010080835404028352916020019161052e565b820191905f5260205f20905b81548152906001019060200180831161051157829003601f168201915b505050506001600160a01b039586165f90815260208181526040808320600154909916835297905295909520600201549395909450915050565b6003546001600160a01b031633148061058b57506002546001600160a01b031633145b6105a75760405162461bcd60e51b81526004016102e190611327565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314806105ec57506002546001600160a01b031633145b6106085760405162461bcd60e51b81526004016102e190611327565b6001600160a01b038084165f90815260208181526040808320938616835292905220819061063682826113c6565b905050816001600160a01b0316836001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b8360405161067c91906114e5565b60405180910390a3505050565b6003546001600160a01b03163314806106ac57506002546001600160a01b031633145b6106c85760405162461bcd60e51b81526004016102e190611327565b600380546001600160a01b0319169055565b5f6106f06001600160a01b038516333085610883565b6106fb8484846108f4565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa15801561073d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107619190611583565b90506107776001600160a01b0384163383610ad4565b60408051838152602081018390526001600160a01b03808616929087169133917fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062910160405180910390a49392505050565b5f602081815292815260408082209093529081522080546001820180546001600160a01b0390921692916107fc906112ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610828906112ef565b80156108735780601f1061084a57610100808354040283529160200191610873565b820191905f5260205f20905b81548152906001019060200180831161085657829003601f168201915b5050505050908060020154905083565b6040516001600160a01b03808516602483015283166044820152606481018290526108ee9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b09565b50505050565b6001600160a01b038084165f90815260208181526040808320868516845282528083208151606081019092528054909416815260018401805493949193919284019161093f906112ef565b80601f016020809104026020016040519081016040528092919081815260200182805461096b906112ef565b80156109b65780601f1061098d576101008083540402835291602001916109b6565b820191905f5260205f20905b81548152906001019060200180831161099957829003601f168201915b50505091835250506002919091015460209091015280519091506001600160a01b038116610a0a5760405163661af8a960e11b81526001600160a01b038087166004830152851660248201526044016102e1565b5f82602001519050610a4281846040015186604051602001610a2e91815260200190565b604051602081830303815290604052610bda565b9050610a4e8683610c5f565b5f826001600160a01b031682604051610a67919061159a565b5f604051808303815f865af19150503d805f8114610aa0576040519150601f19603f3d011682016040523d82523d5f602084013e610aa5565b606091505b5050905080610acb578282604051630de816ad60e31b81526004016102e19291906115ab565b50505050505050565b6040516001600160a01b038316602482015260448101829052610b0490849063a9059cbb60e01b906064016108b7565b505050565b5f610b5d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610cec9092919063ffffffff16565b805190915015610b045780806020019051810190610b7b91906115ce565b610b045760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102e1565b6060610be7845f85610d04565b82604051602001610bf99291906115ed565b60408051601f19818403018152919052610c36610c1785602061162f565b610c2286602061162f565b8751610c2e9190611648565b879190610d04565b604051602001610c479291906115ed565b60405160208183030381529060405290509392505050565b604051636eb1769f60e11b81523060048201526001600160a01b03828116602483015283169063dd62ed3e90604401602060405180830381865afa158015610ca9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ccd9190611583565b5f03610ce857610ce86001600160a01b038316825f19610e10565b5050565b6060610cfa84845f85610f23565b90505b9392505050565b606081610d1281601f61162f565b1015610d515760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016102e1565b610d5b828461162f565b84511015610d9f5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102e1565b606082158015610dbd5760405191505f825260208201604052610e07565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610df6578051835260209283019201610dde565b5050858452601f01601f1916604052505b50949350505050565b801580610e885750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610e62573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e869190611583565b155b610ef35760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102e1565b6040516001600160a01b038316602482015260448101829052610b0490849063095ea7b360e01b906064016108b7565b606082471015610f845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102e1565b6001600160a01b0385163b610fdb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102e1565b5f80866001600160a01b03168587604051610ff6919061159a565b5f6040518083038185875af1925050503d805f8114611030576040519150601f19603f3d011682016040523d82523d5f602084013e611035565b606091505b5091509150611045828286611050565b979650505050505050565b6060831561105f575081610cfd565b82511561106f5782518084602001fd5b8160405162461bcd60e51b81526004016102e1919061165b565b6001600160a01b038116811461109d575f80fd5b50565b5f602082840312156110b0575f80fd5b8135610cfd81611089565b5f5b838110156110d55781810151838201526020016110bd565b50505f910152565b5f81518084526110f48160208601602086016110bb565b601f01601f19169290920160200192915050565b6001600160a01b03841681526060602082018190525f9061112b908301856110dd565b9050826040830152949350505050565b5f8083601f84011261114b575f80fd5b50813567ffffffffffffffff811115611162575f80fd5b6020830191508360208260051b850101111561117c575f80fd5b9250929050565b5f805f805f8060608789031215611198575f80fd5b863567ffffffffffffffff808211156111af575f80fd5b6111bb8a838b0161113b565b909850965060208901359150808211156111d3575f80fd5b6111df8a838b0161113b565b909650945060408901359150808211156111f7575f80fd5b5061120489828a0161113b565b979a9699509497509295939492505050565b5f805f60608486031215611228575f80fd5b833561123381611089565b9250602084013561124381611089565b9150604084013567ffffffffffffffff81111561125e575f80fd5b84016060818703121561126f575f80fd5b809150509250925092565b5f805f6060848603121561128c575f80fd5b833561129781611089565b925060208401356112a781611089565b929592945050506040919091013590565b5f80604083850312156112c9575f80fd5b82356112d481611089565b915060208301356112e481611089565b809150509250929050565b600181811c9082168061130357607f821691505b60208210810361132157634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526008908201526710b6b0b730b3b2b960c11b604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b5f8235605e19833603018112611371575f80fd5b9190910192915050565b601f821115610b0457805f5260205f20601f840160051c810160208510156113a05750805b601f840160051c820191505b818110156113bf575f81556001016113ac565b5050505050565b81356113d181611089565b81546001600160a01b0319166001600160a01b0391909116178155600181810160208481013536869003601e19018112611409575f80fd5b8501803567ffffffffffffffff811115611421575f80fd5b8036038383011315611431575f80fd5b6114458161143f86546112ef565b8661137b565b5f601f821160018114611478575f831561146157508382018501355b5f19600385901b1c1916600184901b1786556114d0565b5f86815260208120601f198516915b828110156114a657868501880135825593870193908901908701611487565b50848210156114c4575f1960f88660031b161c198785880101351681555b505060018360011b0186555b50505050505050604082013560028201555050565b602081525f82356114f581611089565b6001600160a01b031660208381019190915283013536849003601e1901811261151c575f80fd5b830160208101903567ffffffffffffffff811115611538575f80fd5b803603821315611546575f80fd5b60606040850152806080850152808260a08601375f60a082860101526040850135606085015260a0601f19601f8301168501019250505092915050565b5f60208284031215611593575f80fd5b5051919050565b5f82516113718184602087016110bb565b6001600160a01b03831681526040602082018190525f90610cfa908301846110dd565b5f602082840312156115de575f80fd5b81518015158114610cfd575f80fd5b5f83516115fe8184602088016110bb565b8351908301906116128183602088016110bb565b01949350505050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156116425761164261161b565b92915050565b818103818111156116425761164261161b565b602081525f610cfd60208301846110dd56fea2646970667358221220ee82e81d5e777ba7da91d57c32c4b34a728169bb17a34275f623bbd2a6ab00aa64736f6c63430008170033

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

000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619

-----Decoded View---------------
Arg [0] : _native (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
Arg [1] : _keeper (address): 0x4fED5491693007f0CD49f4614FFC38Ab6A04B619

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [1] : 0000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619


Deployed Bytecode Sourcemap

37795:4050:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41077:282;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;38072:21;;;;;-1:-1:-1;;;;;38072:21:0;;;;;;-1:-1:-1;;;;;1486:32:1;;;1468:51;;1456:2;1441:18;38072:21:0;1322:203:1;40410:424:0;;;;;;:::i;:::-;;:::i;:::-;;41367:280;;;;;;:::i;:::-;;:::i;41655:92::-;;;;;;:::i;:::-;;:::i;40172:230::-;;;;;;:::i;:::-;;:::i;38100:21::-;;;;;-1:-1:-1;;;;;38100:21:0;;;41755:87;;;:::i;38128:23::-;;;;;-1:-1:-1;;;;;38128:23:0;;;38776:459;;;;;;:::i;:::-;;:::i;:::-;;;4298:25:1;;;4286:2;4271:18;38776:459:0;4152:177:1;37999:64:0;;;;;;:::i;:::-;;:::i;41077:282::-;41221:6;;;-1:-1:-1;;;;;41221:6:0;;;41136:14;41212:16;;;;;;;;;;;:24;;;;;;;;;;:31;;41261:29;;41254:36;;41212:31;;;;;41152:17;;41261:29;41254:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;41324:6:0;;-1:-1:-1;;;;;41324:6:0;;;41315:8;:16;;;;;;;;;;;:24;;;;;;;;;;;;;:36;;;41077:282;;41254:36;;-1:-1:-1;41077:282:0;;-1:-1:-1;;;;41077:282:0:o;40410:424::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;;;;;;;;;40580:11;40558:19:::1;40609:218;40626:11;40622:1;:15;40609:218;;;40696:10;;40707:1;40696:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;40655:8;:24:::0;40664:11:::1;;40676:1;40664:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40655:24:0::1;-1:-1:-1::0;;;;;40655:24:0::1;;;;;;;;;;;;:38;40680:9;;40690:1;40680:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40655:38:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;40655:38:0;:54:::1;::::0;:38;:54:::1;:::i;:::-;;;;40757:9;;40767:1;40757:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40729:56:0::1;40741:11;;40753:1;40741:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40729:56:0::1;;40771:10;;40782:1;40771:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;40729:56;;;;;;:::i;:::-;;;;;;;;40811:3;;40609:218;;;;40547:287;40410:424:::0;;;;;;:::o;41367:280::-;-1:-1:-1;;;;;41500:16:0;;;41424:14;41500:16;;;;;;;;;;;41517:6;;;;;41500:24;;;;;;:31;;41549:29;;41542:36;;41500:31;;;;;41440:17;;41424:14;41542:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;41603:16:0;;;:8;:16;;;;;;;;;;;41620:6;;;;;41603:24;;;;;;;;;:36;;;41367:280;;41542:36;;-1:-1:-1;41367:280:0;-1:-1:-1;;41367:280:0:o;41655:92::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;41723:6:::1;:16:::0;;-1:-1:-1;;;;;;41723:16:0::1;-1:-1:-1::0;;;;;41723:16:0;;;::::1;::::0;;;::::1;::::0;;41655:92::o;40172:230::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;40292:20:0;;::::1;:8;:20:::0;;;::::1;::::0;;;;;;;:30;;::::1;::::0;;;;;;40325:9;;40292:42:::1;40325:9:::0;40292:30;:42:::1;:::i;:::-;;;;40374:8;-1:-1:-1::0;;;;;40350:44:0::1;40362:10;-1:-1:-1::0;;;;;40350:44:0::1;;40384:9;40350:44;;;;;;:::i;:::-;;;;;;;;40172:230:::0;;;:::o;41755:87::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;41813:8:::1;:21:::0;;-1:-1:-1;;;;;;41813:21:0::1;::::0;;41755:87::o;38776:459::-;38865:17;38895:73;-1:-1:-1;;;;;38895:35:0;;38931:10;38951:4;38958:9;38895:35;:73::i;:::-;38979:45;38992:10;39004:8;39014:9;38979:12;:45::i;:::-;39047:41;;-1:-1:-1;;;39047:41:0;;39082:4;39047:41;;;1468:51:1;-1:-1:-1;;;;;39047:26:0;;;;;1441:18:1;;39047:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39035:53;-1:-1:-1;39099:52:0;-1:-1:-1;;;;;39099:29:0;;39129:10;39035:53;39099:29;:52::i;:::-;39167:60;;;10193:25:1;;;10249:2;10234:18;;10227:34;;;-1:-1:-1;;;;;39167:60:0;;;;;;;;39172:10;;39167:60;;10166:18:1;39167:60:0;;;;;;;38776:459;;;;;:::o;37999:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37999:64:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14761:248::-;14932:68;;-1:-1:-1;;;;;10530:15:1;;;14932:68:0;;;10512:34:1;10582:15;;10562:18;;;10555:43;10614:18;;;10607:34;;;14905:96:0;;14925:5;;-1:-1:-1;;;14955:27:0;10447:18:1;;14932:68:0;;;;-1:-1:-1;;14932:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;14932:68:0;-1:-1:-1;;;;;;14932:68:0;;;;;;;;;;14905:19;:96::i;:::-;14761:248;;;;:::o;39243:564::-;-1:-1:-1;;;;;39368:20:0;;;39341:24;39368:20;;;;;;;;;;;:30;;;;;;;;;;39341:57;;;;;;;;;;;;;;;;;;;;:24;;:57;;39368:30;;39341:57;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39341:57:0;;;-1:-1:-1;;39341:57:0;;;;;;;;;;;39426:15;;39341:57;;-1:-1:-1;;;;;;39456:20:0;;39452:65;;39485:32;;-1:-1:-1;;;39485:32:0;;-1:-1:-1;;;;;10882:15:1;;;39485:32:0;;;10864:34:1;10934:15;;10914:18;;;10907:43;10799:18;;39485:32:0;10652:304:1;39452:65:0;39528:17;39548:8;:13;;;39528:33;;39581:62;39593:4;39599:8;:20;;;39632:9;39621:21;;;;;;4298:25:1;;4286:2;4271:18;;4152:177;39621:21:0;;;;;;;;;;;;;39581:11;:62::i;:::-;39574:69;;39656:41;39678:10;39690:6;39656:21;:41::i;:::-;39709:12;39726:6;-1:-1:-1;;;;;39726:11:0;39738:4;39726:17;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39708:35;;;39759:7;39754:45;;39786:6;39794:4;39775:24;;-1:-1:-1;;;39775:24:0;;;;;;;;;:::i;39754:45::-;39330:477;;;;39243:564;;;:::o;14542:211::-;14686:58;;-1:-1:-1;;;;;11764:32:1;;14686:58:0;;;11746:51:1;11813:18;;;11806:34;;;14659:86:0;;14679:5;;-1:-1:-1;;;14709:23:0;11719:18:1;;14686:58:0;11572:274:1;14659:86:0;14542:211;;;:::o;17609:716::-;18033:23;18059:69;18087:4;18059:69;;;;;;;;;;;;;;;;;18067:5;-1:-1:-1;;;;;18059:27:0;;;:69;;;;;:::i;:::-;18143:17;;18033:95;;-1:-1:-1;18143:21:0;18139:179;;18240:10;18229:30;;;;;;;;;;;;:::i;:::-;18221:85;;;;-1:-1:-1;;;18221:85:0;;12335:2:1;18221:85:0;;;12317:21:1;12374:2;12354:18;;;12347:30;12413:34;12393:18;;;12386:62;-1:-1:-1;;;12464:18:1;;;12457:40;12514:19;;18221:85:0;12133:406:1;39815:349:0;39917:17;40012:22;:5;40024:1;40027:6;40012:11;:22::i;:::-;40053:8;39981:95;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;39981:95:0;;;;;;;;;40091:54;40103:11;:6;39981:95;40103:11;:::i;:::-;40132;:6;40141:2;40132:11;:::i;:::-;40116:5;:12;:28;;;;:::i;:::-;40091:5;;:54;:11;:54::i;:::-;39954:202;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39947:209;;39815:349;;;;;:::o;40842:227::-;40928:47;;-1:-1:-1;;;40928:47:0;;40960:4;40928:47;;;10864:34:1;-1:-1:-1;;;;;10934:15:1;;;10914:18;;;10907:43;40928:23:0;;;;;10799:18:1;;40928:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40979:1;40928:52;40924:138;;40997:53;-1:-1:-1;;;;;40997:25:0;;41023:7;-1:-1:-1;;40997:25:0;:53::i;:::-;40842:227;;:::o;9255:229::-;9392:12;9424:52;9446:6;9454:4;9460:1;9463:12;9424:21;:52::i;:::-;9417:59;;9255:229;;;;;;:::o;27431:2779::-;27572:12;27626:7;27610:12;27626:7;27620:2;27610:12;:::i;:::-;:23;;27602:50;;;;-1:-1:-1;;;27602:50:0;;13638:2:1;27602:50:0;;;13620:21:1;13677:2;13657:18;;;13650:30;-1:-1:-1;;;13696:18:1;;;13689:44;13750:18;;27602:50:0;13436:338:1;27602:50:0;27688:16;27697:7;27688:6;:16;:::i;:::-;27671:6;:13;:33;;27663:63;;;;-1:-1:-1;;;27663:63:0;;13981:2:1;27663:63:0;;;13963:21:1;14020:2;14000:18;;;13993:30;-1:-1:-1;;;14039:18:1;;;14032:47;14096:18;;27663:63:0;13779:341:1;27663:63:0;27739:22;27805:15;;27834:1933;;;;29911:4;29905:11;29892:24;;30092:1;30081:9;30074:20;30142:4;30131:9;30127:20;30121:4;30114:34;27798:2365;;27834:1933;28011:4;28005:11;27992:24;;28648:2;28639:7;28635:16;29020:9;29013:17;29007:4;29003:28;28991:9;28980;28976:25;28972:60;29069:7;29065:2;29061:16;29318:6;29304:9;29297:17;29291:4;29287:28;29275:9;29267:6;29263:22;29259:57;29255:70;29097:426;29352:3;29348:2;29345:11;29097:426;;;29494:9;;29483:21;;29394:4;29386:13;;;;29427;29097:426;;;-1:-1:-1;;29543:26:0;;;29747:2;29730:11;-1:-1:-1;;29726:25:0;29720:4;29713:39;-1:-1:-1;27798:2365:0;-1:-1:-1;30193:9:0;27431:2779;-1:-1:-1;;;;27431:2779:0:o;15278:616::-;15642:10;;;15641:62;;-1:-1:-1;15658:39:0;;-1:-1:-1;;;15658:39:0;;15682:4;15658:39;;;10864:34:1;-1:-1:-1;;;;;10934:15:1;;;10914:18;;;10907:43;15658:15:0;;;;;10799:18:1;;15658:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;15641:62;15619:166;;;;-1:-1:-1;;;15619:166:0;;14327:2:1;15619:166:0;;;14309:21:1;14366:2;14346:18;;;14339:30;14405:34;14385:18;;;14378:62;-1:-1:-1;;;14456:18:1;;;14449:52;14518:19;;15619:166:0;14125:418:1;15619:166:0;15823:62;;-1:-1:-1;;;;;11764:32:1;;15823:62:0;;;11746:51:1;11813:18;;;11806:34;;;15796:90:0;;15816:5;;-1:-1:-1;;;15846:22:0;11719:18:1;;15823:62:0;11572:274:1;10375:510:0;10545:12;10603:5;10578:21;:30;;10570:81;;;;-1:-1:-1;;;10570:81:0;;14750:2:1;10570:81:0;;;14732:21:1;14789:2;14769:18;;;14762:30;14828:34;14808:18;;;14801:62;-1:-1:-1;;;14879:18:1;;;14872:36;14925:19;;10570:81:0;14548:402:1;10570:81:0;-1:-1:-1;;;;;6805:19:0;;;10662:60;;;;-1:-1:-1;;;10662:60:0;;15157:2:1;10662:60:0;;;15139:21:1;15196:2;15176:18;;;15169:30;15235:31;15215:18;;;15208:59;15284:18;;10662:60:0;14955:353:1;10662:60:0;10736:12;10750:23;10777:6;-1:-1:-1;;;;;10777:11:0;10796:5;10803:4;10777:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10735:73;;;;10826:51;10843:7;10852:10;10864:12;10826:16;:51::i;:::-;10819:58;10375:510;-1:-1:-1;;;;;;;10375:510:0:o;13061:762::-;13211:12;13240:7;13236:580;;;-1:-1:-1;13271:10:0;13264:17;;13236:580;13385:17;;:21;13381:424;;13633:10;13627:17;13694:15;13681:10;13677:2;13673:19;13666:44;13381:424;13776:12;13769:20;;-1:-1:-1;;;13769:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:247::-;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;402:250::-;487:1;497:113;511:6;508:1;505:13;497:113;;;587:11;;;581:18;568:11;;;561:39;533:2;526:10;497:113;;;-1:-1:-1;;644:1:1;626:16;;619:27;402:250::o;657:270::-;698:3;736:5;730:12;763:6;758:3;751:19;779:76;848:6;841:4;836:3;832:14;825:4;818:5;814:16;779:76;:::i;:::-;909:2;888:15;-1:-1:-1;;884:29:1;875:39;;;;916:4;871:50;;657:270;-1:-1:-1;;657:270:1:o;932:385::-;-1:-1:-1;;;;;1135:32:1;;1117:51;;1204:2;1199;1184:18;;1177:30;;;-1:-1:-1;;1224:44:1;;1249:18;;1241:6;1224:44;:::i;:::-;1216:52;;1304:6;1299:2;1288:9;1284:18;1277:34;932:385;;;;;;:::o;1530:367::-;1593:8;1603:6;1657:3;1650:4;1642:6;1638:17;1634:27;1624:55;;1675:1;1672;1665:12;1624:55;-1:-1:-1;1698:20:1;;1741:18;1730:30;;1727:50;;;1773:1;1770;1763:12;1727:50;1810:4;1802:6;1798:17;1786:29;;1870:3;1863:4;1853:6;1850:1;1846:14;1838:6;1834:27;1830:38;1827:47;1824:67;;;1887:1;1884;1877:12;1824:67;1530:367;;;;;:::o;1902:1116::-;2088:6;2096;2104;2112;2120;2128;2181:2;2169:9;2160:7;2156:23;2152:32;2149:52;;;2197:1;2194;2187:12;2149:52;2237:9;2224:23;2266:18;2307:2;2299:6;2296:14;2293:34;;;2323:1;2320;2313:12;2293:34;2362:70;2424:7;2415:6;2404:9;2400:22;2362:70;:::i;:::-;2451:8;;-1:-1:-1;2336:96:1;-1:-1:-1;2539:2:1;2524:18;;2511:32;;-1:-1:-1;2555:16:1;;;2552:36;;;2584:1;2581;2574:12;2552:36;2623:72;2687:7;2676:8;2665:9;2661:24;2623:72;:::i;:::-;2714:8;;-1:-1:-1;2597:98:1;-1:-1:-1;2802:2:1;2787:18;;2774:32;;-1:-1:-1;2818:16:1;;;2815:36;;;2847:1;2844;2837:12;2815:36;;2886:72;2950:7;2939:8;2928:9;2924:24;2886:72;:::i;:::-;1902:1116;;;;-1:-1:-1;1902:1116:1;;-1:-1:-1;1902:1116:1;;2977:8;;1902:1116;-1:-1:-1;;;1902:1116:1:o;3023:663::-;3128:6;3136;3144;3197:2;3185:9;3176:7;3172:23;3168:32;3165:52;;;3213:1;3210;3203:12;3165:52;3252:9;3239:23;3271:31;3296:5;3271:31;:::i;:::-;3321:5;-1:-1:-1;3378:2:1;3363:18;;3350:32;3391:33;3350:32;3391:33;:::i;:::-;3443:7;-1:-1:-1;3501:2:1;3486:18;;3473:32;3528:18;3517:30;;3514:50;;;3560:1;3557;3550:12;3514:50;3583:22;;3639:2;3621:16;;;3617:25;3614:45;;;3655:1;3652;3645:12;3614:45;3678:2;3668:12;;;3023:663;;;;;:::o;3691:456::-;3768:6;3776;3784;3837:2;3825:9;3816:7;3812:23;3808:32;3805:52;;;3853:1;3850;3843:12;3805:52;3892:9;3879:23;3911:31;3936:5;3911:31;:::i;:::-;3961:5;-1:-1:-1;4018:2:1;4003:18;;3990:32;4031:33;3990:32;4031:33;:::i;:::-;3691:456;;4083:7;;-1:-1:-1;;;4137:2:1;4122:18;;;;4109:32;;3691:456::o;4334:388::-;4402:6;4410;4463:2;4451:9;4442:7;4438:23;4434:32;4431:52;;;4479:1;4476;4469:12;4431:52;4518:9;4505:23;4537:31;4562:5;4537:31;:::i;:::-;4587:5;-1:-1:-1;4644:2:1;4629:18;;4616:32;4657:33;4616:32;4657:33;:::i;:::-;4709:7;4699:17;;;4334:388;;;;;:::o;4727:380::-;4806:1;4802:12;;;;4849;;;4870:61;;4924:4;4916:6;4912:17;4902:27;;4870:61;4977:2;4969:6;4966:14;4946:18;4943:38;4940:161;;5023:10;5018:3;5014:20;5011:1;5004:31;5058:4;5055:1;5048:15;5086:4;5083:1;5076:15;4940:161;;4727:380;;;:::o;5112:331::-;5314:2;5296:21;;;5353:1;5333:18;;;5326:29;-1:-1:-1;;;5386:2:1;5371:18;;5364:38;5434:2;5419:18;;5112:331::o;5448:127::-;5509:10;5504:3;5500:20;5497:1;5490:31;5540:4;5537:1;5530:15;5564:4;5561:1;5554:15;5580:325;5674:4;5732:11;5719:25;5826:2;5822:7;5811:8;5795:14;5791:29;5787:43;5767:18;5763:68;5753:96;;5845:1;5842;5835:12;5753:96;5866:33;;;;;5580:325;-1:-1:-1;;5580:325:1:o;6035:517::-;6136:2;6131:3;6128:11;6125:421;;;6172:5;6169:1;6162:16;6216:4;6213:1;6203:18;6286:2;6274:10;6270:19;6267:1;6263:27;6257:4;6253:38;6322:4;6310:10;6307:20;6304:47;;;-1:-1:-1;6345:4:1;6304:47;6400:2;6395:3;6391:12;6388:1;6384:20;6378:4;6374:31;6364:41;;6455:81;6473:2;6466:5;6463:13;6455:81;;;6532:1;6518:16;;6499:1;6488:13;6455:81;;;6459:3;;6035:517;;;:::o;6728:1979::-;6895:5;6882:19;6910:33;6935:7;6910:33;:::i;:::-;6972:11;;-1:-1:-1;;;;;;6968:54:1;-1:-1:-1;;;;;7024:33:1;;;;6965:93;6952:107;;7054:1;7106:12;;;7137:2;7187:14;;;7174:28;7253:14;7249:26;;;-1:-1:-1;;7245:40:1;7221:65;;7211:93;;7300:1;7297;7290:12;7211:93;7325:30;;7378:18;;7419;7408:30;;7405:50;;;7451:1;7448;7441:12;7405:50;7506:6;7490:14;7486:27;7481:2;7475:4;7471:13;7467:47;7464:67;;;7527:1;7524;7517:12;7464:67;7540:108;7641:6;7595:44;7627:10;7621:17;7595:44;:::i;:::-;7583:10;7540:108;:::i;:::-;7674:1;7702:2;7694:6;7691:14;7719:1;7714:648;;;;8408:1;8425:6;8422:108;;;-1:-1:-1;8490:20:1;;;8486:29;;8473:43;8422:108;-1:-1:-1;;6685:1:1;6681:11;;;6677:24;6673:29;6663:40;6709:1;6705:11;;;6660:57;8543:89;;7684:958;;7714:648;5982:1;5975:14;;;6019:4;6006:18;;-1:-1:-1;;7750:20:1;;;7873:236;7887:7;7884:1;7881:14;7873:236;;;7978:20;;;7974:29;;7961:43;7946:59;;8077:18;;;;8032:15;;;;7903:10;;7873:236;;;7877:3;8137:6;8128:7;8125:19;8122:175;;;8277:1;8273:6;8267:3;8258:6;8255:1;8251:14;8247:24;8243:37;8239:42;8233:2;8221:9;8215:4;8211:20;8207:29;8194:43;8190:92;8182:6;8175:108;8122:175;;;8349:1;8340:6;8337:1;8333:14;8329:22;8317:10;8310:42;7684:958;;;;;;;;8696:2;8689:5;8685:14;8672:28;8668:1;8662:4;8658:12;8651:50;6728:1979;;:::o;8712:1113::-;8895:2;8884:9;8877:21;8858:4;8933:6;8920:20;8949:31;8974:5;8949:31;:::i;:::-;-1:-1:-1;;;;;9016:31:1;9011:2;8996:18;;;8989:59;;;;9096:15;;9083:29;9163:14;9159:27;;;-1:-1:-1;;9155:41:1;9131:66;;9121:94;;9211:1;9208;9201:12;9121:94;9239:31;;9351:2;9338:16;;;9293:21;9377:18;9366:30;;9363:50;;;9409:1;9406;9399:12;9363:50;9458:6;9442:14;9438:27;9429:7;9425:41;9422:61;;;9479:1;9476;9469:12;9422:61;9519:4;9514:2;9503:9;9499:18;9492:32;9561:6;9555:3;9544:9;9540:19;9533:35;9620:6;9611:7;9605:3;9594:9;9590:19;9577:50;9677:1;9671:3;9662:6;9651:9;9647:22;9643:32;9636:43;9742:2;9734:6;9730:15;9717:29;9710:4;9699:9;9695:20;9688:59;9815:3;9808:2;9804:7;9799:2;9791:6;9787:15;9783:29;9772:9;9768:45;9764:55;9756:63;;;;8712:1113;;;;:::o;9830:184::-;9900:6;9953:2;9941:9;9932:7;9928:23;9924:32;9921:52;;;9969:1;9966;9959:12;9921:52;-1:-1:-1;9992:16:1;;9830:184;-1:-1:-1;9830:184:1:o;10961:287::-;11090:3;11128:6;11122:13;11144:66;11203:6;11198:3;11191:4;11183:6;11179:17;11144:66;:::i;11253:314::-;-1:-1:-1;;;;;11428:32:1;;11410:51;;11497:2;11492;11477:18;;11470:30;;;-1:-1:-1;;11517:44:1;;11542:18;;11534:6;11517:44;:::i;11851:277::-;11918:6;11971:2;11959:9;11950:7;11946:23;11942:32;11939:52;;;11987:1;11984;11977:12;11939:52;12019:9;12013:16;12072:5;12065:13;12058:21;12051:5;12048:32;12038:60;;12094:1;12091;12084:12;12544:492;12719:3;12757:6;12751:13;12773:66;12832:6;12827:3;12820:4;12812:6;12808:17;12773:66;:::i;:::-;12902:13;;12861:16;;;;12924:70;12902:13;12861:16;12971:4;12959:17;;12924:70;:::i;:::-;13010:20;;12544:492;-1:-1:-1;;;;12544:492:1:o;13041:127::-;13102:10;13097:3;13093:20;13090:1;13083:31;13133:4;13130:1;13123:15;13157:4;13154:1;13147:15;13173:125;13238:9;;;13259:10;;;13256:36;;;13272:18;;:::i;:::-;13173:125;;;;:::o;13303:128::-;13370:9;;;13391:11;;;13388:37;;;13405:18;;:::i;15313:219::-;15462:2;15451:9;15444:21;15425:4;15482:44;15522:2;15511:9;15507:18;15499:6;15482:44;:::i

Swarm Source

ipfs://ee82e81d5e777ba7da91d57c32c4b34a728169bb17a34275f623bbd2a6ab00aa

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