ETH Price: $3,388.50 (+0.93%)

Contract

0x086C40819110fc0B3953eaeC21577133bd0834Ba
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...147868802022-05-16 14:59:16957 days ago1652713156IN
0x086C4081...3bd0834Ba
0 ETH0.0017354760.49070074
Swap144914952022-03-31 3:14:111003 days ago1648696451IN
0x086C4081...3bd0834Ba
0.00163916 ETH0.0017153737.05878717
Swap144914932022-03-31 3:14:051003 days ago1648696445IN
0x086C4081...3bd0834Ba
0.00162389 ETH0.0013873236.71340981
Swap144863962022-03-30 8:05:001004 days ago1648627500IN
0x086C4081...3bd0834Ba
3.40099594 ETH0.0013635536.51334263
Swap144861022022-03-30 7:01:231004 days ago1648623683IN
0x086C4081...3bd0834Ba
0.00135442 ETH0.0011824428.85413825
Unoswap144834612022-03-29 21:10:501004 days ago1648588250IN
0x086C4081...3bd0834Ba
0.0014442 ETH0.0094308347.07650863
Unoswap144783362022-03-29 2:10:261005 days ago1648519826IN
0x086C4081...3bd0834Ba
0.00156369 ETH0.0087263850.54176101
Unoswap144776792022-03-28 23:39:501005 days ago1648510790IN
0x086C4081...3bd0834Ba
0.00099759 ETH0.006856652.67543025
Unoswap144776452022-03-28 23:30:221005 days ago1648510222IN
0x086C4081...3bd0834Ba
0.00189819 ETH0.0066805550.1144135
Unoswap144776422022-03-28 23:29:351005 days ago1648510175IN
0x086C4081...3bd0834Ba
0.00094909 ETH0.0066805550.1144135
Unoswap144773142022-03-28 22:16:141005 days ago1648505774IN
0x086C4081...3bd0834Ba
0.00120411 ETH0.0073949439.25027446
Unoswap144769722022-03-28 21:04:171005 days ago1648501457IN
0x086C4081...3bd0834Ba
0.00134808 ETH0.0114547771.18170076
Unoswap144768402022-03-28 20:36:061005 days ago1648499766IN
0x086C4081...3bd0834Ba
0.00103114 ETH0.01145154.44691326
Unoswap144768312022-03-28 20:34:441005 days ago1648499684IN
0x086C4081...3bd0834Ba
1.00139466 ETH0.0084760373.64129609
Unoswap144767442022-03-28 20:14:481005 days ago1648498488IN
0x086C4081...3bd0834Ba
0.25125502 ETH0.0128082259.09788587
Unoswap144767212022-03-28 20:10:501005 days ago1648498250IN
0x086C4081...3bd0834Ba
0.31113861 ETH0.0119911989.11876363
Unoswap144766612022-03-28 19:57:581005 days ago1648497478IN
0x086C4081...3bd0834Ba
0.00168241 ETH0.0118469488.83501332
Unoswap144766322022-03-28 19:51:111005 days ago1648497071IN
0x086C4081...3bd0834Ba
2.00135649 ETH0.0096202471.6261022
Swap144763162022-03-28 18:37:161006 days ago1648492636IN
0x086C4081...3bd0834Ba
3.00186906 ETH0.0027229967.3207802
Swap144762962022-03-28 18:34:491006 days ago1648492489IN
0x086C4081...3bd0834Ba
3.00509451 ETH0.0034480792.56074817
Unoswap144762582022-03-28 18:28:271006 days ago1648492107IN
0x086C4081...3bd0834Ba
0.00160683 ETH0.0113769784.84458162
Unoswap144759852022-03-28 17:29:091006 days ago1648488549IN
0x086C4081...3bd0834Ba
0.00272394 ETH0.01605025115.25306628
Unoswap144755362022-03-28 15:45:261006 days ago1648482326IN
0x086C4081...3bd0834Ba
0.92143956 ETH0.0104266576.01206381
Unoswap144753622022-03-28 15:04:361006 days ago1648479876IN
0x086C4081...3bd0834Ba
1.50095554 ETH0.0060581450.45469062
Unoswap144753312022-03-28 14:59:271006 days ago1648479567IN
0x086C4081...3bd0834Ba
0.00188514 ETH0.009805360.93168075
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
144834612022-03-29 21:10:501004 days ago1648588250
0x086C4081...3bd0834Ba
0.0014442 ETH
144783362022-03-29 2:10:261005 days ago1648519826
0x086C4081...3bd0834Ba
0.00156369 ETH
144776792022-03-28 23:39:501005 days ago1648510790
0x086C4081...3bd0834Ba
0.00099759 ETH
144776792022-03-28 23:39:501005 days ago1648510790
0x086C4081...3bd0834Ba
0.15226651 ETH
144776792022-03-28 23:39:501005 days ago1648510790
0x086C4081...3bd0834Ba
0.15226651 ETH
144776452022-03-28 23:30:221005 days ago1648510222
0x086C4081...3bd0834Ba
0.15226651 ETH
144776452022-03-28 23:30:221005 days ago1648510222
0x086C4081...3bd0834Ba
0.15226651 ETH
144776422022-03-28 23:29:351005 days ago1648510175
0x086C4081...3bd0834Ba
0.15226651 ETH
144776422022-03-28 23:29:351005 days ago1648510175
0x086C4081...3bd0834Ba
0.15226651 ETH
144773142022-03-28 22:16:141005 days ago1648505774
0x086C4081...3bd0834Ba
0.00120411 ETH
144768402022-03-28 20:36:061005 days ago1648499766
0x086C4081...3bd0834Ba
0.00103114 ETH
144768312022-03-28 20:34:441005 days ago1648499684
0x086C4081...3bd0834Ba
0.00139466 ETH
144768312022-03-28 20:34:441005 days ago1648499684
0x086C4081...3bd0834Ba
1 ETH
144767442022-03-28 20:14:481005 days ago1648498488
0x086C4081...3bd0834Ba
0.00125502 ETH
144767442022-03-28 20:14:481005 days ago1648498488
0x086C4081...3bd0834Ba
0.25 ETH
144767212022-03-28 20:10:501005 days ago1648498250
0x086C4081...3bd0834Ba
0.00113861 ETH
144767212022-03-28 20:10:501005 days ago1648498250
0x086C4081...3bd0834Ba
0.31 ETH
144766612022-03-28 19:57:581005 days ago1648497478
0x086C4081...3bd0834Ba
0.00168241 ETH
144766612022-03-28 19:57:581005 days ago1648497478
0x086C4081...3bd0834Ba
0.32491068 ETH
144766612022-03-28 19:57:581005 days ago1648497478
0x086C4081...3bd0834Ba
0.32491068 ETH
144766322022-03-28 19:51:111005 days ago1648497071
0x086C4081...3bd0834Ba
0.00135649 ETH
144766322022-03-28 19:51:111005 days ago1648497071
0x086C4081...3bd0834Ba
2 ETH
144762582022-03-28 18:28:271006 days ago1648492107
0x086C4081...3bd0834Ba
0.00160683 ETH
144762582022-03-28 18:28:271006 days ago1648492107
0x086C4081...3bd0834Ba
0.22063983 ETH
144762582022-03-28 18:28:271006 days ago1648492107
0x086C4081...3bd0834Ba
0.22063983 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DepoRouter

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : DepoRouter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.12;

import "contracts/helpers/Permitable.sol";
import "contracts/libraries/SafeMath.sol";
import "contracts/Ownable.sol";

contract DepoRouter is Permitable, Ownable {
    using SafeMath for uint256;

    uint256 private constant _TRANSFER_FROM_CALL_SELECTOR_32 =
        0x23b872dd00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _WETH_DEPOSIT_CALL_SELECTOR_32 =
        0xd0e30db000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _WETH_WITHDRAW_CALL_SELECTOR_32 =
        0x2e1a7d4d00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _ERC20_TRANSFER_CALL_SELECTOR_32 =
        0xa9059cbb00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _ADDRESS_MASK =
        0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff;
    uint256 private constant _REVERSE_MASK =
        0x8000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _WETH_MASK =
        0x4000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _NUMERATOR_MASK =
        0x0000000000000000ffffffff0000000000000000000000000000000000000000;
    uint256 private constant _WETH =
        0x000000000000000000000000C02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    uint256 private constant _UNISWAP_PAIR_RESERVES_CALL_SELECTOR_32 =
        0x0902f1ac00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _UNISWAP_PAIR_SWAP_CALL_SELECTOR_32 =
        0x022c0d9f00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _DENOMINATOR = 1000000000;
    uint256 private constant _NUMERATOR_OFFSET = 160;

    // treasury
    address public treasury;
    mapping(address => uint256) public userFeeCharged;

    event FeePayed(address user, uint256 amount);
    event TreasuryChanged(address oldTreasury, address newTreasury);

    receive() external payable {
        // solhint-disable-next-line avoid-tx-origin
        require(msg.sender != tx.origin, "ETH deposit rejected");
    }

    function setTreasury(address _treasury) external onlyOwner {
        require(_treasury != address(0), "Treasury address missing");

        address oldTreasury = treasury;
        treasury = _treasury;

        emit TreasuryChanged(oldTreasury, treasury);
    }

    function unoswapWithPermit(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata pools,
        bytes calldata permit
    ) external payable returns (uint256 returnAmount) {
        _permit(srcToken, amount, permit);
        return unoswap(srcToken, amount, minReturn, pools);
    }

    function unoswap(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata /* pools */
    ) public payable returns (uint256 returnAmount) {
        assembly {
            // solhint-disable-line no-inline-assembly
            function reRevert() {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            function revertWithReason(m, len) {
                mstore(
                    0,
                    0x08c379a000000000000000000000000000000000000000000000000000000000
                )
                mstore(
                    0x20,
                    0x0000002000000000000000000000000000000000000000000000000000000000
                )
                mstore(0x40, m)
                revert(0, len)
            }

            function swap(emptyPtr, swapAmount, pair, reversed, numerator, dst)
                -> ret
            {
                mstore(emptyPtr, _UNISWAP_PAIR_RESERVES_CALL_SELECTOR_32)
                if iszero(
                    staticcall(gas(), pair, emptyPtr, 0x4, emptyPtr, 0x40)
                ) {
                    reRevert()
                }

                let reserve0 := mload(emptyPtr)
                let reserve1 := mload(add(emptyPtr, 0x20))
                if reversed {
                    let tmp := reserve0
                    reserve0 := reserve1
                    reserve1 := tmp
                }
                ret := mul(swapAmount, numerator)
                ret := div(
                    mul(ret, reserve1),
                    add(ret, mul(reserve0, _DENOMINATOR))
                )

                mstore(emptyPtr, _UNISWAP_PAIR_SWAP_CALL_SELECTOR_32)
                switch reversed
                case 0 {
                    mstore(add(emptyPtr, 0x04), 0)
                    mstore(add(emptyPtr, 0x24), ret)
                }
                default {
                    mstore(add(emptyPtr, 0x04), ret)
                    mstore(add(emptyPtr, 0x24), 0)
                }
                mstore(add(emptyPtr, 0x44), dst)
                mstore(add(emptyPtr, 0x64), 0x80)
                mstore(add(emptyPtr, 0x84), 0)
                if iszero(call(gas(), pair, 0, emptyPtr, 0xa4, 0, 0)) {
                    reRevert()
                }
            }

            let emptyPtr := mload(0x40)
            mstore(0x40, add(emptyPtr, 0xc0))

            let poolsOffset := add(calldataload(0x64), 0x4)
            let poolsEndOffset := calldataload(poolsOffset)
            poolsOffset := add(poolsOffset, 0x20)
            poolsEndOffset := add(poolsOffset, mul(0x20, poolsEndOffset))
            let rawPair := calldataload(poolsOffset)
            switch srcToken
            case 0 {
                mstore(emptyPtr, _WETH_DEPOSIT_CALL_SELECTOR_32)
                if iszero(call(gas(), _WETH, amount, emptyPtr, 0x4, 0, 0)) {
                    reRevert()
                }

                mstore(emptyPtr, _ERC20_TRANSFER_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x4), and(rawPair, _ADDRESS_MASK))
                mstore(add(emptyPtr, 0x24), amount)
                if iszero(call(gas(), _WETH, 0, emptyPtr, 0x44, 0, 0)) {
                    reRevert()
                }
            }
            default {
                mstore(emptyPtr, _TRANSFER_FROM_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x4), caller())
                mstore(add(emptyPtr, 0x24), and(rawPair, _ADDRESS_MASK))
                mstore(add(emptyPtr, 0x44), amount)
                if iszero(call(gas(), srcToken, 0, emptyPtr, 0x64, 0, 0)) {
                    reRevert()
                }
            }

            returnAmount := amount

            for {
                let i := add(poolsOffset, 0x20)
            } lt(i, poolsEndOffset) {
                i := add(i, 0x20)
            } {
                let nextRawPair := calldataload(i)

                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    and(nextRawPair, _ADDRESS_MASK)
                )

                rawPair := nextRawPair
            }

            switch and(rawPair, _WETH_MASK)
            case 0 {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    caller()
                )
            }
            default {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    address()
                )

                mstore(emptyPtr, _WETH_WITHDRAW_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x04), returnAmount)
                if iszero(call(gas(), _WETH, 0, emptyPtr, 0x24, 0, 0)) {
                    reRevert()
                }

                if iszero(call(gas(), caller(), returnAmount, 0, 0, 0, 0)) {
                    reRevert()
                }
            }

            if lt(returnAmount, minReturn) {
                revertWithReason(
                    0x000000164d696e2072657475726e206e6f742072656163686564000000000000,
                    0x5a
                ) // "Min return not reached"
            }
        }

        uint256 fee = srcToken != IERC20(0) ? msg.value : msg.value - amount;
        safeTransferETH(treasury, fee);

        emit FeePayed(msg.sender, fee);
    }

    /**
     * @dev Transfer eth
     * @param _to     receipnt address
     * @param _value  amount
     */
    function safeTransferETH(address _to, uint256 _value) internal {
        (bool success, ) = _to.call{value: _value}(new bytes(0));
        require(success, "SafeTransferETH: ETH transfer failed");
    }
}

File 2 of 8 : Permitable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.12;

import "contracts/helpers/RevertReasonParser.sol";
import "contracts/interfaces/IERC20.sol";
import "contracts/interfaces/IERC20Permit.sol";

contract Permitable {
    event Error(string reason);

    function _permit(
        IERC20 token,
        uint256 amount,
        bytes calldata permit
    ) internal {
        if (permit.length == 32 * 7) {
            // solhint-disable-next-line avoid-low-level-calls
            (bool success, bytes memory result) = address(token).call(
                abi.encodePacked(IERC20Permit.permit.selector, permit)
            );
            if (!success) {
                string memory reason = RevertReasonParser.parse(
                    result,
                    "Permit call failed: "
                );
                if (token.allowance(msg.sender, address(this)) < amount) {
                    revert(reason);
                } else {
                    emit Error(reason);
                }
            }
        }
    }
}

File 3 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "contracts/Context.sol";

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

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

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

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

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

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

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

File 5 of 8 : RevertReasonParser.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.12;

library RevertReasonParser {
    function parse(bytes memory data, string memory prefix)
        internal
        pure
        returns (string memory)
    {
        // https://solidity.readthedocs.io/en/latest/control-structures.html#revert
        // We assume that revert reason is abi-encoded as Error(string)

        // 68 = 4-byte selector 0x08c379a0 + 32 bytes offset + 32 bytes length
        if (
            data.length >= 68 &&
            data[0] == "\x08" &&
            data[1] == "\xc3" &&
            data[2] == "\x79" &&
            data[3] == "\xa0"
        ) {
            string memory reason;
            // solhint-disable no-inline-assembly
            assembly {
                // 68 = 32 bytes data length + 4-byte selector + 32 bytes offset
                reason := add(data, 68)
            }
            /*
                revert reason is padded up to 32 bytes with ABI encoder: Error(string)
                also sometimes there is extra 32 bytes of zeros padded in the end:
                https://github.com/ethereum/solidity/issues/10170
                because of that we can't check for equality and instead check
                that string length + extra 68 bytes is less than overall data length
            */
            require(
                data.length >= 68 + bytes(reason).length,
                "Invalid revert reason"
            );
            return string(abi.encodePacked(prefix, "Error(", reason, ")"));
        }
        // 36 = 4-byte selector 0x4e487b71 + 32 bytes integer
        else if (
            data.length == 36 &&
            data[0] == "\x4e" &&
            data[1] == "\x48" &&
            data[2] == "\x7b" &&
            data[3] == "\x71"
        ) {
            uint256 code;
            // solhint-disable no-inline-assembly
            assembly {
                // 36 = 32 bytes data length + 4-byte selector
                code := mload(add(data, 36))
            }
            return
                string(abi.encodePacked(prefix, "Panic(", _toHex(code), ")"));
        }

        return string(abi.encodePacked(prefix, "Unknown(", _toHex(data), ")"));
    }

    function _toHex(uint256 value) private pure returns (string memory) {
        return _toHex(abi.encodePacked(value));
    }

    function _toHex(bytes memory data) private pure returns (string memory) {
        bytes16 alphabet = 0x30313233343536373839616263646566;
        bytes memory str = new bytes(2 + data.length * 2);
        str[0] = "0";
        str[1] = "x";
        for (uint256 i = 0; i < data.length; i++) {
            str[2 * i + 2] = alphabet[uint8(data[i] >> 4)];
            str[2 * i + 3] = alphabet[uint8(data[i] & 0x0f)];
        }
        return string(str);
    }
}

File 6 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

pragma solidity ^0.6.12;

interface IERC20Permit {
    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"Error","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeePayed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryChanged","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"name":"unoswap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"bytes32[]","name":"pools","type":"bytes32[]"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"unoswapWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userFeeCharged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6114368061007d6000396000f3fe60806040526004361061007f5760003560e01c8063a1251d751161004e578063a1251d75146101d0578063dcd440f2146102ae578063f0f44260146102e1578063f2fde38b14610314576100d2565b80632e95b6c8146100d757806361d027b314610175578063715018a6146101a65780638da5cb5b146101bb576100d2565b366100d257333214156100d0576040805162461bcd60e51b81526020600482015260146024820152731155120819195c1bdcda5d081c995a9958dd195960621b604482015290519081900360640190fd5b005b600080fd5b610163600480360360808110156100ed57600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561012457600080fd5b82018360208201111561013657600080fd5b8035906020019184602083028401116401000000008311171561015857600080fd5b509092509050610347565b60408051918252519081900360200190f35b34801561018157600080fd5b5061018a6106c0565b604080516001600160a01b039092168252519081900360200190f35b3480156101b257600080fd5b506100d06106cf565b3480156101c757600080fd5b5061018a61078d565b610163600480360360a08110156101e657600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561021d57600080fd5b82018360208201111561022f57600080fd5b8035906020019184602083028401116401000000008311171561025157600080fd5b91939092909160208101903564010000000081111561026f57600080fd5b82018360208201111561028157600080fd5b803590602001918460018302840111640100000000831117156102a357600080fd5b50909250905061079c565b3480156102ba57600080fd5b50610163600480360360208110156102d157600080fd5b50356001600160a01b03166107c3565b3480156102ed57600080fd5b506100d06004803603602081101561030457600080fd5b50356001600160a01b03166107d5565b34801561032057600080fd5b506100d06004803603602081101561033757600080fd5b50356001600160a01b0316610906565b600061041d565b3d6000803e3d6000fd5b62461bcd60e51b600052600160e51b60205280604052816000fd5b6000630240bc6b60e21b8252604082600484875afa6103945761039461034e565b8151602083015186156103a357905b63022c0d9f60e01b8452878502633b9aca0092909202820191020490508480156103d957816004840152600060248401526103e7565b600060048401528160248401525b50866044830152608060648301526000608483015260008060a4846000885af16104135761041361034e565b9695505050505050565b60405160c081016040526004606435018035602082019150806020028201905081358960008114610489576323b872dd60e01b85523360048601526001600160a01b038216602486015289604486015260008060648760008f5af16104845761048461034e565b610507565b630d0e30db60e41b85526000806004878d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16104bd576104bd61034e565b63a9059cbb60e01b85526001600160a01b0382166004860152896024860152600080604487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16105075761050761034e565b50889450602083015b8281101561055857803561054c6001600160a01b03821663ffffffff60a01b851660a01c600160ff1b86166001600160a01b0387168b8b610373565b96509150602001610510565b50600160fe1b811680156105e75761058f3063ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a610373565b9550632e1a7d4d60e01b8552856004860152600080602487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16105cc576105cc61034e565b60008060008089335af16105e2576105e261034e565b610613565b6106103363ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a610373565b95505b50505050508381101561064857610648605a7c164d696e2072657475726e206e6f742072656163686564000000000000610358565b60006001600160a01b03871661066057853403610662565b345b60015490915061067b906001600160a01b031682610a1a565b604080513381526020810183905281517f2899dc8c12def1caa9accb64257cf2fd9f960f21bb27a560a757eae3c2ec43c1929181900390910190a15095945050505050565b6001546001600160a01b031681565b6106d7610b12565b6001600160a01b03166106e861078d565b6001600160a01b031614610743576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60006107aa88888585610b16565b6107b78888888888610347565b98975050505050505050565b60026020526000908152604090205481565b6107dd610b12565b6001600160a01b03166107ee61078d565b6001600160a01b031614610849576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166108a4576040805162461bcd60e51b815260206004820152601860248201527f54726561737572792061646472657373206d697373696e670000000000000000604482015290519081900360640190fd5b600180546001600160a01b038381166001600160a01b0319831617928390556040805192821680845293909116602083015280517f8c3aa5f43a388513435861bf27dfad7829cd248696fed367c62d441f629544969281900390910190a15050565b61090e610b12565b6001600160a01b031661091f61078d565b6001600160a01b03161461097a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166109bf5760405162461bcd60e51b81526004018080602001828103825260268152602001806113db6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310610a665780518252601f199092019160209182019101610a47565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ac8576040519150601f19603f3d011682016040523d82523d6000602084013e610acd565b606091505b5050905080610b0d5760405162461bcd60e51b81526004018080602001828103825260248152602001806113b76024913960400191505060405180910390fd5b505050565b3390565b60e0811415610ded5760006060856001600160a01b031663d505accf60e01b858560405160200180846001600160e01b03191681526004018383808284378083019250505093505050506040516020818303038152906040526040518082805190602001908083835b60208310610b9e5780518252601f199092019160209182019101610b7f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610c00576040519150601f19603f3d011682016040523d82523d6000602084013e610c05565b606091505b509150915081610dea576060610c47826040518060400160405280601481526020017302832b936b4ba1031b0b636103330b4b632b21d160651b815250610df3565b60408051636eb1769f60e11b8152336004820152306024820152905191925087916001600160a01b038a169163dd62ed3e916044808301926020929190829003018186803b158015610c9857600080fd5b505afa158015610cac573d6000803e3d6000fd5b505050506040513d6020811015610cc257600080fd5b50511015610d4f578060405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d14578181015183820152602001610cfc565b50505050905090810190601f168015610d415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b7f08c379a0afcc32b1a39302f7cb8073359698411ab5fd6e3edb2c02c0b5fba8aa816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610dae578181015183820152602001610d96565b50505050905090810190601f168015610ddb5780820380516001836020036101000a031916815260200191505b509250505060405180910390a1505b50505b50505050565b60606044835110158015610e26575082600081518110610e0f57fe5b6020910101516001600160f81b031916600160fb1b145b8015610e51575082600181518110610e3a57fe5b6020910101516001600160f81b03191660c360f81b145b8015610e7c575082600281518110610e6557fe5b6020910101516001600160f81b031916607960f81b145b8015610ea7575082600381518110610e9057fe5b6020910101516001600160f81b031916600560fd1b145b15610fdd576060604484019050805160440184511015610f06576040805162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b604482015290519081900360640190fd5b82816040516020018083805190602001908083835b60208310610f3a5780518252601f199092019160209182019101610f1b565b51815160209384036101000a60001901801990921691161790526508ae4e4dee4560d31b919093019081528451600690910192850191508083835b60208310610f945780518252601f199092019160209182019101610f75565b6001836020036101000a03801982511681845116808217855250505050505090500180602960f81b8152506001019250505060405160208183030381529060405291505061120c565b8251602414801561100d575082600081518110610ff657fe5b6020910101516001600160f81b031916602760f91b145b801561103857508260018151811061102157fe5b6020910101516001600160f81b031916600960fb1b145b801561106357508260028151811061104c57fe5b6020910101516001600160f81b031916607b60f81b145b801561108e57508260038151811061107757fe5b6020910101516001600160f81b031916607160f81b145b15611130576024830151826110a282611212565b6040516020018083805190602001908083835b602083106110d45780518252601f1990920191602091820191016110b5565b51815160001960209485036101000a01908116901991909116179052650a0c2dcd2c6560d31b939091019283528451600690930192908501915080838360208310610f945780518252601f199092019160209182019101610f75565b8161113a84611238565b6040516020018083805190602001908083835b6020831061116c5780518252601f19909201916020918201910161114d565b51815160209384036101000a6000190180199092169116179052670aadcd6dcdeeedc560c31b919093019081528451600890910192850191508083835b602083106111c85780518252601f1990920191602091820191016111a9565b6001836020036101000a03801982511681845116808217855250505050505090500180602960f81b8152506001019250505060405160208183030381529060405290505b92915050565b606061120c82604051602001808281526020019150506040516020818303038152906040525b80516060906f181899199a1a9b1b9c1cb0b131b232b360811b90829060029081020167ffffffffffffffff8111801561127057600080fd5b506040519080825280601f01601f19166020018201604052801561129b576020820181803683370190505b509050600360fc1b816000815181106112b057fe5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106112d957fe5b60200101906001600160f81b031916908160001a90535060005b84518110156113ae5782600486838151811061130b57fe5b01602001516001600160f81b031916901c60f81c6010811061132957fe5b1a60f81b82826002026002018151811061133f57fe5b60200101906001600160f81b031916908160001a9053508285828151811061136357fe5b60209101015160f81c600f166010811061137957fe5b1a60f81b82826002026003018151811061138f57fe5b60200101906001600160f81b031916908160001a9053506001016112f3565b50939250505056fe536166655472616e736665724554483a20455448207472616e73666572206661696c65644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212207ba9613801df6c94d51b682eeae006f6b8f866632927050a75354c0fd31eb22364736f6c634300060c0033

Deployed Bytecode

0x60806040526004361061007f5760003560e01c8063a1251d751161004e578063a1251d75146101d0578063dcd440f2146102ae578063f0f44260146102e1578063f2fde38b14610314576100d2565b80632e95b6c8146100d757806361d027b314610175578063715018a6146101a65780638da5cb5b146101bb576100d2565b366100d257333214156100d0576040805162461bcd60e51b81526020600482015260146024820152731155120819195c1bdcda5d081c995a9958dd195960621b604482015290519081900360640190fd5b005b600080fd5b610163600480360360808110156100ed57600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561012457600080fd5b82018360208201111561013657600080fd5b8035906020019184602083028401116401000000008311171561015857600080fd5b509092509050610347565b60408051918252519081900360200190f35b34801561018157600080fd5b5061018a6106c0565b604080516001600160a01b039092168252519081900360200190f35b3480156101b257600080fd5b506100d06106cf565b3480156101c757600080fd5b5061018a61078d565b610163600480360360a08110156101e657600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561021d57600080fd5b82018360208201111561022f57600080fd5b8035906020019184602083028401116401000000008311171561025157600080fd5b91939092909160208101903564010000000081111561026f57600080fd5b82018360208201111561028157600080fd5b803590602001918460018302840111640100000000831117156102a357600080fd5b50909250905061079c565b3480156102ba57600080fd5b50610163600480360360208110156102d157600080fd5b50356001600160a01b03166107c3565b3480156102ed57600080fd5b506100d06004803603602081101561030457600080fd5b50356001600160a01b03166107d5565b34801561032057600080fd5b506100d06004803603602081101561033757600080fd5b50356001600160a01b0316610906565b600061041d565b3d6000803e3d6000fd5b62461bcd60e51b600052600160e51b60205280604052816000fd5b6000630240bc6b60e21b8252604082600484875afa6103945761039461034e565b8151602083015186156103a357905b63022c0d9f60e01b8452878502633b9aca0092909202820191020490508480156103d957816004840152600060248401526103e7565b600060048401528160248401525b50866044830152608060648301526000608483015260008060a4846000885af16104135761041361034e565b9695505050505050565b60405160c081016040526004606435018035602082019150806020028201905081358960008114610489576323b872dd60e01b85523360048601526001600160a01b038216602486015289604486015260008060648760008f5af16104845761048461034e565b610507565b630d0e30db60e41b85526000806004878d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16104bd576104bd61034e565b63a9059cbb60e01b85526001600160a01b0382166004860152896024860152600080604487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16105075761050761034e565b50889450602083015b8281101561055857803561054c6001600160a01b03821663ffffffff60a01b851660a01c600160ff1b86166001600160a01b0387168b8b610373565b96509150602001610510565b50600160fe1b811680156105e75761058f3063ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a610373565b9550632e1a7d4d60e01b8552856004860152600080602487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16105cc576105cc61034e565b60008060008089335af16105e2576105e261034e565b610613565b6106103363ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a610373565b95505b50505050508381101561064857610648605a7c164d696e2072657475726e206e6f742072656163686564000000000000610358565b60006001600160a01b03871661066057853403610662565b345b60015490915061067b906001600160a01b031682610a1a565b604080513381526020810183905281517f2899dc8c12def1caa9accb64257cf2fd9f960f21bb27a560a757eae3c2ec43c1929181900390910190a15095945050505050565b6001546001600160a01b031681565b6106d7610b12565b6001600160a01b03166106e861078d565b6001600160a01b031614610743576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60006107aa88888585610b16565b6107b78888888888610347565b98975050505050505050565b60026020526000908152604090205481565b6107dd610b12565b6001600160a01b03166107ee61078d565b6001600160a01b031614610849576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166108a4576040805162461bcd60e51b815260206004820152601860248201527f54726561737572792061646472657373206d697373696e670000000000000000604482015290519081900360640190fd5b600180546001600160a01b038381166001600160a01b0319831617928390556040805192821680845293909116602083015280517f8c3aa5f43a388513435861bf27dfad7829cd248696fed367c62d441f629544969281900390910190a15050565b61090e610b12565b6001600160a01b031661091f61078d565b6001600160a01b03161461097a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166109bf5760405162461bcd60e51b81526004018080602001828103825260268152602001806113db6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310610a665780518252601f199092019160209182019101610a47565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ac8576040519150601f19603f3d011682016040523d82523d6000602084013e610acd565b606091505b5050905080610b0d5760405162461bcd60e51b81526004018080602001828103825260248152602001806113b76024913960400191505060405180910390fd5b505050565b3390565b60e0811415610ded5760006060856001600160a01b031663d505accf60e01b858560405160200180846001600160e01b03191681526004018383808284378083019250505093505050506040516020818303038152906040526040518082805190602001908083835b60208310610b9e5780518252601f199092019160209182019101610b7f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610c00576040519150601f19603f3d011682016040523d82523d6000602084013e610c05565b606091505b509150915081610dea576060610c47826040518060400160405280601481526020017302832b936b4ba1031b0b636103330b4b632b21d160651b815250610df3565b60408051636eb1769f60e11b8152336004820152306024820152905191925087916001600160a01b038a169163dd62ed3e916044808301926020929190829003018186803b158015610c9857600080fd5b505afa158015610cac573d6000803e3d6000fd5b505050506040513d6020811015610cc257600080fd5b50511015610d4f578060405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d14578181015183820152602001610cfc565b50505050905090810190601f168015610d415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b7f08c379a0afcc32b1a39302f7cb8073359698411ab5fd6e3edb2c02c0b5fba8aa816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610dae578181015183820152602001610d96565b50505050905090810190601f168015610ddb5780820380516001836020036101000a031916815260200191505b509250505060405180910390a1505b50505b50505050565b60606044835110158015610e26575082600081518110610e0f57fe5b6020910101516001600160f81b031916600160fb1b145b8015610e51575082600181518110610e3a57fe5b6020910101516001600160f81b03191660c360f81b145b8015610e7c575082600281518110610e6557fe5b6020910101516001600160f81b031916607960f81b145b8015610ea7575082600381518110610e9057fe5b6020910101516001600160f81b031916600560fd1b145b15610fdd576060604484019050805160440184511015610f06576040805162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b604482015290519081900360640190fd5b82816040516020018083805190602001908083835b60208310610f3a5780518252601f199092019160209182019101610f1b565b51815160209384036101000a60001901801990921691161790526508ae4e4dee4560d31b919093019081528451600690910192850191508083835b60208310610f945780518252601f199092019160209182019101610f75565b6001836020036101000a03801982511681845116808217855250505050505090500180602960f81b8152506001019250505060405160208183030381529060405291505061120c565b8251602414801561100d575082600081518110610ff657fe5b6020910101516001600160f81b031916602760f91b145b801561103857508260018151811061102157fe5b6020910101516001600160f81b031916600960fb1b145b801561106357508260028151811061104c57fe5b6020910101516001600160f81b031916607b60f81b145b801561108e57508260038151811061107757fe5b6020910101516001600160f81b031916607160f81b145b15611130576024830151826110a282611212565b6040516020018083805190602001908083835b602083106110d45780518252601f1990920191602091820191016110b5565b51815160001960209485036101000a01908116901991909116179052650a0c2dcd2c6560d31b939091019283528451600690930192908501915080838360208310610f945780518252601f199092019160209182019101610f75565b8161113a84611238565b6040516020018083805190602001908083835b6020831061116c5780518252601f19909201916020918201910161114d565b51815160209384036101000a6000190180199092169116179052670aadcd6dcdeeedc560c31b919093019081528451600890910192850191508083835b602083106111c85780518252601f1990920191602091820191016111a9565b6001836020036101000a03801982511681845116808217855250505050505090500180602960f81b8152506001019250505060405160208183030381529060405290505b92915050565b606061120c82604051602001808281526020019150506040516020818303038152906040525b80516060906f181899199a1a9b1b9c1cb0b131b232b360811b90829060029081020167ffffffffffffffff8111801561127057600080fd5b506040519080825280601f01601f19166020018201604052801561129b576020820181803683370190505b509050600360fc1b816000815181106112b057fe5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106112d957fe5b60200101906001600160f81b031916908160001a90535060005b84518110156113ae5782600486838151811061130b57fe5b01602001516001600160f81b031916901c60f81c6010811061132957fe5b1a60f81b82826002026002018151811061133f57fe5b60200101906001600160f81b031916908160001a9053508285828151811061136357fe5b60209101015160f81c600f166010811061137957fe5b1a60f81b82826002026003018151811061138f57fe5b60200101906001600160f81b031916908160001a9053506001016112f3565b50939250505056fe536166655472616e736665724554483a20455448207472616e73666572206661696c65644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212207ba9613801df6c94d51b682eeae006f6b8f866632927050a75354c0fd31eb22364736f6c634300060c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.