AVAX Price: $22.77 (+11.71%)
Gas: 1.1 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo0 AVAX

AVAX Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap Tokens For ...289799502023-04-20 5:56:12734 days ago1681970172IN
0x73256EC7...Fd8DA7D12
0 AVAX0.016099329.73423888
Swap Tokens For ...289796502023-04-20 5:45:52734 days ago1681969552IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0154738128.57963854
Swap Tokens For ...289228842023-04-18 21:54:39735 days ago1681854879IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0142262428.12361393
Swap Tokens For ...288813822023-04-17 22:40:14736 days ago1681771214IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0136276226.5
Swap Tokens For ...288813712023-04-17 22:39:51736 days ago1681771191IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0135690826.5
Swap Tokens For ...288745012023-04-17 18:45:24736 days ago1681757124IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0134668226.5
Swap Tokens For ...288743052023-04-17 18:38:25736 days ago1681756705IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0137126527
Swap Tokens For ...288741002023-04-17 18:30:41736 days ago1681756241IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0135830626.53268907
Swap Tokens For ...288694802023-04-17 15:47:21736 days ago1681746441IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0134370626.5
Swap Tokens For ...288611512023-04-17 10:55:42736 days ago1681728942IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0147271826.5
Swap Tokens For ...288608472023-04-17 10:45:24736 days ago1681728324IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0132831526.5
Swap Tokens For ...288206162023-04-16 12:19:47737 days ago1681647587IN
0x73256EC7...Fd8DA7D12
0 AVAX0.013857826.5
Swap Tokens For ...288090592023-04-16 5:51:57738 days ago1681624317IN
0x73256EC7...Fd8DA7D12
0 AVAX0.013868926.5
Swap Tokens For ...288072142023-04-16 4:49:48738 days ago1681620588IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0130897526.5
Swap Tokens For ...288048522023-04-16 3:30:11738 days ago1681615811IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0120505526.5
Swap Tokens For ...287926302023-04-15 20:39:42738 days ago1681591182IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0134930127.15755898
Swap Tokens For ...287925862023-04-15 20:38:09738 days ago1681591089IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0143942126.5
Swap Tokens For ...287270412023-04-14 7:54:45740 days ago1681458885IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0126699826.41
Swap Tokens For ...287094362023-04-13 22:03:38740 days ago1681423418IN
0x73256EC7...Fd8DA7D12
0 AVAX0.013856526.5
Swap Tokens For ...287007752023-04-13 17:13:01740 days ago1681405981IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0116872426.58524803
Swap Tokens For ...286677242023-04-12 22:45:19741 days ago1681339519IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0136780226
Swap Tokens For ...286628222023-04-12 20:00:43741 days ago1681329643IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0141179427
Swap Tokens For ...286511492023-04-12 13:30:54741 days ago1681306254IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0131456126.78535839
Swap Tokens For ...285984832023-04-11 8:02:10743 days ago1681200130IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0142205228
Swap Tokens For ...285778522023-04-10 20:29:08743 days ago1681158548IN
0x73256EC7...Fd8DA7D12
0 AVAX0.0134934926.62294277
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
PlatypusRouter01

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 9 : PlatypusRouter01.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.9;

import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';

import '../interfaces/IPool.sol';
import '../interfaces/IPlatypusRouter01.sol';

/**
 * @title PlatypusRouter01
 * @notice Allows routing on different platypus pools
 * @dev Owner is allowed and required to approve token spending by pools via approveSpendingByPool function
 */
contract PlatypusRouter01 is Ownable, ReentrancyGuard, IPlatypusRouter01 {
    using SafeERC20 for IERC20;

    /// @dev Modifier ensuring a certain deadline for a function to complete execution
    modifier ensure(uint256 deadline) {
        require(deadline >= block.timestamp, 'expired');
        _;
    }

    /// @notice approve spending of router tokens by pool
    /// @param tokens array of tokens to be approved
    /// @param pool to be approved to spend
    /// @dev needs to be done after asset deployment for router to be able to support the tokens
    function approveSpendingByPool(address[] calldata tokens, address pool) external onlyOwner {
        for (uint256 i; i < tokens.length; ++i) {
            IERC20(tokens[i]).approve(pool, type(uint256).max);
        }
    }

    /// @notice swapExactTokensForTokens swaps
    /// @param tokenPath An array of token addresses. path.length must be >= 2.
    /// @param tokenPath The first element of the path is the input token, the last element is the output token.
    /// @param poolPath An array of pool addresses. The pools where the pathTokens are contained in order.
    /// @param fromAmount the amount in
    /// @param minimumToAmount the minimum amount to get for user
    /// @param to the user to send the tokens to
    /// @param deadline the deadline to respect
    /// @return amountOut received by user
    /// @return haircut total fee charged by pool
    function swapTokensForTokens(
        address[] calldata tokenPath,
        address[] calldata poolPath,
        uint256 fromAmount,
        uint256 minimumToAmount,
        address to,
        uint256 deadline
    ) external override ensure(deadline) nonReentrant returns (uint256 amountOut, uint256 haircut) {
        require(fromAmount > 0, 'invalid from amount');
        require(tokenPath.length >= 2, 'invalid token path');
        require(poolPath.length == tokenPath.length - 1, 'invalid pool path');
        require(to != address(0), 'zero address');

        // get from token from users
        IERC20(tokenPath[0]).safeTransferFrom(address(msg.sender), address(this), fromAmount);

        (amountOut, haircut) = _swap(tokenPath, poolPath, fromAmount, to);
        require(amountOut >= minimumToAmount, 'amountOut too low');
    }

    /// @notice _swap private function. Assumes router has initial fromAmount in balance.
    /// @dev assumes tokens being swapped have been approve via the approveSpendingByPool function
    /// @param tokenPath An array of token addresses. path.length must be >= 2.
    /// @param tokenPath The first element of the path is the input token, the last element is the output token.
    /// @param poolPath An array of pool addresses. The pools where the pathTokens are contained in order.
    /// @param fromAmount the amount in
    /// @param to the user to send the tokens to
    /// @return amountOut received by user
    /// @return haircut total fee charged by pool
    function _swap(
        address[] calldata tokenPath,
        address[] calldata poolPath,
        uint256 fromAmount,
        address to
    ) internal returns (uint256 amountOut, uint256 haircut) {
        // haircut of current call
        uint256 localHaircut;
        // next from amount, starts with fromAmount in arg
        uint256 nextFromAmount = fromAmount;
        // where to send tokens on next step
        address nextTo;

        for (uint256 i; i < poolPath.length; ++i) {
            // check if we're reaching the beginning or end of the poolPath array
            if (i == 0 && poolPath.length == 1) {
                // only one element in pool path - simple swap
                nextTo = to;
            } else if (i == 0) {
                // first element of a larger than one poolPath
                nextTo = address(this);
            } else if (i < poolPath.length - 1) {
                // middle element of a larger than one poolPath
                nextTo = address(this);
                nextFromAmount = amountOut;
            } else {
                // send final swapped tokens to user
                nextTo = to;
                nextFromAmount = amountOut;
            }

            // make the swap with the correct arguments
            (amountOut, localHaircut) = IPool(poolPath[i]).swap(
                tokenPath[i],
                tokenPath[i + 1],
                nextFromAmount,
                0, // minimum amount received is ensured on calling function
                nextTo,
                type(uint256).max // deadline is ensured on calling function
            );
            // increment total haircut
            haircut += localHaircut;
        }
    }

    /**
     * @notice Quotes potential outcome of a swap given current tokenPath and poolPath,
     taking in account slippage and haircut
     * @dev To be used by frontend
     * @param tokenPath The token swap path
     * @param poolPath The token pool path
     * @param fromAmount The amount to quote
     * @return potentialOutcome The potential final amount user would receive
     * @return haircut The total haircut that would be applied
     */
    function quotePotentialSwaps(
        address[] calldata tokenPath,
        address[] calldata poolPath,
        uint256 fromAmount
    ) external view returns (uint256 potentialOutcome, uint256 haircut) {
        require(fromAmount > 0, 'invalid from amount');
        require(tokenPath.length >= 2, 'invalid token path');
        require(poolPath.length == tokenPath.length - 1, 'invalid pool path');

        // haircut of current call
        uint256 localHaircut;
        // next from amount, starts with fromAmount in arg
        uint256 nextFromAmount = fromAmount;
        // where to send tokens on next step

        for (uint256 i; i < poolPath.length; ++i) {
            // check if we're reaching the beginning or end of the poolPath array
            if (i != 0) {
                nextFromAmount = potentialOutcome;
            }

            // make the swap with the correct arguments
            (potentialOutcome, localHaircut) = IPool(poolPath[i]).quotePotentialSwap(
                tokenPath[i],
                tokenPath[i + 1],
                nextFromAmount
            );
            // increment total haircut
            haircut += localHaircut;
        }
    }
}

File 2 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @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 3 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 9 : IPool.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.9;

interface IPool {
    function assetOf(address token) external view returns (address);

    function deposit(
        address token,
        uint256 amount,
        address to,
        uint256 deadline
    ) external returns (uint256 liquidity);

    function withdraw(
        address token,
        uint256 liquidity,
        uint256 minimumAmount,
        address to,
        uint256 deadline
    ) external returns (uint256 amount);

    function withdrawFromOtherAsset(
        address initialToken,
        address wantedToken,
        uint256 liquidity,
        uint256 minimumAmount,
        address to,
        uint256 deadline
    ) external returns (uint256 amount);

    function swap(
        address fromToken,
        address toToken,
        uint256 fromAmount,
        uint256 minimumToAmount,
        address to,
        uint256 deadline
    ) external returns (uint256 actualToAmount, uint256 haircut);

    function quotePotentialSwap(
        address fromToken,
        address toToken,
        uint256 fromAmount
    ) external view returns (uint256 potentialOutcome, uint256 haircut);

    function quotePotentialWithdraw(address token, uint256 liquidity)
        external
        view
        returns (
            uint256 amount,
            uint256 fee,
            bool enoughCash
        );

    function quotePotentialWithdrawFromOtherAsset(
        address initialToken,
        address wantedToken,
        uint256 liquidity
    ) external view returns (uint256 amount, uint256 fee);

    function quoteMaxInitialAssetWithdrawable(address initialToken, address wantedToken)
        external
        view
        returns (uint256 maxInitialAssetAmount);

    function getTokenAddresses() external view returns (address[] memory);
}

File 6 of 9 : IPlatypusRouter01.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.9;

interface IPlatypusRouter01 {
    function swapTokensForTokens(
        address[] calldata tokenPath,
        address[] calldata poolPath,
        uint256 fromAmount,
        uint256 minimumToAmount,
        address to,
        uint256 deadline
    ) external returns (uint256 amountOut, uint256 haircut);
}

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 8 of 9 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address","name":"pool","type":"address"}],"name":"approveSpendingByPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenPath","type":"address[]"},{"internalType":"address[]","name":"poolPath","type":"address[]"},{"internalType":"uint256","name":"fromAmount","type":"uint256"}],"name":"quotePotentialSwaps","outputs":[{"internalType":"uint256","name":"potentialOutcome","type":"uint256"},{"internalType":"uint256","name":"haircut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenPath","type":"address[]"},{"internalType":"address[]","name":"poolPath","type":"address[]"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"minimumToAmount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForTokens","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"haircut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a33610023565b60018055610073565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6112bf806100826000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80638d8f82e6116100505780638d8f82e6146100c15780638da5cb5b146100d4578063f2fde38b146100fc57600080fd5b806321579b79146100775780634209bed0146100a4578063715018a6146100b7575b600080fd5b61008a610085366004610f65565b61010f565b604080519283526020830191909152015b60405180910390f35b61008a6100b2366004611001565b6103dd565b6100bf610662565b005b6100bf6100cf366004611075565b6106d5565b60005460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009b565b6100bf61010a3660046110c9565b61084e565b60008082428110156101685760405162461bcd60e51b815260206004820152600760248201527f657870697265640000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600260015414156101bb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161015f565b60026001558661020d5760405162461bcd60e51b815260206004820152601360248201527f696e76616c69642066726f6d20616d6f756e7400000000000000000000000000604482015260640161015f565b60028a101561025e5760405162461bcd60e51b815260206004820152601260248201527f696e76616c696420746f6b656e20706174680000000000000000000000000000604482015260640161015f565b61026960018b611113565b88146102b75760405162461bcd60e51b815260206004820152601160248201527f696e76616c696420706f6f6c2070617468000000000000000000000000000000604482015260640161015f565b73ffffffffffffffffffffffffffffffffffffffff851661031a5760405162461bcd60e51b815260206004820152600c60248201527f7a65726f20616464726573730000000000000000000000000000000000000000604482015260640161015f565b6103663330898e8e60008181106103335761033361112a565b905060200201602081019061034891906110c9565b73ffffffffffffffffffffffffffffffffffffffff1692919061094a565b6103748b8b8b8b8b8a6109df565b9093509150858310156103c95760405162461bcd60e51b815260206004820152601160248201527f616d6f756e744f757420746f6f206c6f77000000000000000000000000000000604482015260640161015f565b506001805590999098509650505050505050565b600080600083116104305760405162461bcd60e51b815260206004820152601360248201527f696e76616c69642066726f6d20616d6f756e7400000000000000000000000000604482015260640161015f565b60028610156104815760405162461bcd60e51b815260206004820152601260248201527f696e76616c696420746f6b656e20706174680000000000000000000000000000604482015260640161015f565b61048c600187611113565b84146104da5760405162461bcd60e51b815260206004820152601160248201527f696e76616c696420706f6f6c2070617468000000000000000000000000000000604482015260640161015f565b600083815b868110156106555780156104f1578491505b8787828181106105035761050361112a565b905060200201602081019061051891906110c9565b73ffffffffffffffffffffffffffffffffffffffff166343c2e2f58b8b848181106105455761054561112a565b905060200201602081019061055a91906110c9565b8c8c610567866001611159565b8181106105765761057661112a565b905060200201602081019061058b91906110c9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff92831660048201529116602482015260448101859052606401604080518083038186803b1580156105fc57600080fd5b505afa158015610610573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106349190611171565b90955092506106438385611159565b935061064e81611195565b90506104df565b5050509550959350505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015f565b6106d36000610be6565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461073c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015f565b60005b82811015610848578383828181106107595761075961112a565b905060200201602081019061076e91906110c9565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6024830152919091169063095ea7b390604401602060405180830381600087803b1580156107ff57600080fd5b505af1158015610813573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083791906111ce565b5061084181611195565b905061073f565b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015f565b73ffffffffffffffffffffffffffffffffffffffff811661093e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161015f565b61094781610be6565b50565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610848908590610c5b565b600080808481805b88811015610bd757801580156109fd5750600189145b15610a0a57869150610a3b565b80610a1757309150610a3b565b610a2260018a611113565b811015610a3457309150859250610a3b565b8691508592505b898982818110610a4d57610a4d61112a565b9050602002016020810190610a6291906110c9565b73ffffffffffffffffffffffffffffffffffffffff16639908fc8b8d8d84818110610a8f57610a8f61112a565b9050602002016020810190610aa491906110c9565b8e8e610ab1866001611159565b818110610ac057610ac061112a565b9050602002016020810190610ad591906110c9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff92831660048201529082166024820152604481018790526000606482015290851660848201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60a482015260c4016040805180830381600087803b158015610b7e57600080fd5b505af1158015610b92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb69190611171565b9096509350610bc58486611159565b9450610bd081611195565b90506109e7565b50505050965096945050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610cbd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610d529092919063ffffffff16565b805190915015610d4d5780806020019051810190610cdb91906111ce565b610d4d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161015f565b505050565b6060610d618484600085610d6b565b90505b9392505050565b606082471015610de35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161015f565b843b610e315760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161015f565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610e5a919061121c565b60006040518083038185875af1925050503d8060008114610e97576040519150601f19603f3d011682016040523d82523d6000602084013e610e9c565b606091505b5091509150610eac828286610eb7565b979650505050505050565b60608315610ec6575081610d64565b825115610ed65782518084602001fd5b8160405162461bcd60e51b815260040161015f9190611238565b60008083601f840112610f0257600080fd5b50813567ffffffffffffffff811115610f1a57600080fd5b6020830191508360208260051b8501011115610f3557600080fd5b9250929050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610f6057600080fd5b919050565b60008060008060008060008060c0898b031215610f8157600080fd5b883567ffffffffffffffff80821115610f9957600080fd5b610fa58c838d01610ef0565b909a50985060208b0135915080821115610fbe57600080fd5b50610fcb8b828c01610ef0565b9097509550506040890135935060608901359250610feb60808a01610f3c565b915060a089013590509295985092959890939650565b60008060008060006060868803121561101957600080fd5b853567ffffffffffffffff8082111561103157600080fd5b61103d89838a01610ef0565b9097509550602088013591508082111561105657600080fd5b5061106388828901610ef0565b96999598509660400135949350505050565b60008060006040848603121561108a57600080fd5b833567ffffffffffffffff8111156110a157600080fd5b6110ad86828701610ef0565b90945092506110c0905060208501610f3c565b90509250925092565b6000602082840312156110db57600080fd5b610d6482610f3c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611125576111256110e4565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000821982111561116c5761116c6110e4565b500190565b6000806040838503121561118457600080fd5b505080516020909101519092909150565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156111c7576111c76110e4565b5060010190565b6000602082840312156111e057600080fd5b81518015158114610d6457600080fd5b60005b8381101561120b5781810151838201526020016111f3565b838111156108485750506000910152565b6000825161122e8184602087016111f0565b9190910192915050565b60208152600082518060208401526112578160408501602087016111f0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220bfecba0ee295546124e4edb2a37b43846cdb6e3206200dcf4cc59f346f79313664736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100725760003560e01c80638d8f82e6116100505780638d8f82e6146100c15780638da5cb5b146100d4578063f2fde38b146100fc57600080fd5b806321579b79146100775780634209bed0146100a4578063715018a6146100b7575b600080fd5b61008a610085366004610f65565b61010f565b604080519283526020830191909152015b60405180910390f35b61008a6100b2366004611001565b6103dd565b6100bf610662565b005b6100bf6100cf366004611075565b6106d5565b60005460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009b565b6100bf61010a3660046110c9565b61084e565b60008082428110156101685760405162461bcd60e51b815260206004820152600760248201527f657870697265640000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600260015414156101bb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161015f565b60026001558661020d5760405162461bcd60e51b815260206004820152601360248201527f696e76616c69642066726f6d20616d6f756e7400000000000000000000000000604482015260640161015f565b60028a101561025e5760405162461bcd60e51b815260206004820152601260248201527f696e76616c696420746f6b656e20706174680000000000000000000000000000604482015260640161015f565b61026960018b611113565b88146102b75760405162461bcd60e51b815260206004820152601160248201527f696e76616c696420706f6f6c2070617468000000000000000000000000000000604482015260640161015f565b73ffffffffffffffffffffffffffffffffffffffff851661031a5760405162461bcd60e51b815260206004820152600c60248201527f7a65726f20616464726573730000000000000000000000000000000000000000604482015260640161015f565b6103663330898e8e60008181106103335761033361112a565b905060200201602081019061034891906110c9565b73ffffffffffffffffffffffffffffffffffffffff1692919061094a565b6103748b8b8b8b8b8a6109df565b9093509150858310156103c95760405162461bcd60e51b815260206004820152601160248201527f616d6f756e744f757420746f6f206c6f77000000000000000000000000000000604482015260640161015f565b506001805590999098509650505050505050565b600080600083116104305760405162461bcd60e51b815260206004820152601360248201527f696e76616c69642066726f6d20616d6f756e7400000000000000000000000000604482015260640161015f565b60028610156104815760405162461bcd60e51b815260206004820152601260248201527f696e76616c696420746f6b656e20706174680000000000000000000000000000604482015260640161015f565b61048c600187611113565b84146104da5760405162461bcd60e51b815260206004820152601160248201527f696e76616c696420706f6f6c2070617468000000000000000000000000000000604482015260640161015f565b600083815b868110156106555780156104f1578491505b8787828181106105035761050361112a565b905060200201602081019061051891906110c9565b73ffffffffffffffffffffffffffffffffffffffff166343c2e2f58b8b848181106105455761054561112a565b905060200201602081019061055a91906110c9565b8c8c610567866001611159565b8181106105765761057661112a565b905060200201602081019061058b91906110c9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff92831660048201529116602482015260448101859052606401604080518083038186803b1580156105fc57600080fd5b505afa158015610610573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106349190611171565b90955092506106438385611159565b935061064e81611195565b90506104df565b5050509550959350505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015f565b6106d36000610be6565b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461073c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015f565b60005b82811015610848578383828181106107595761075961112a565b905060200201602081019061076e91906110c9565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6024830152919091169063095ea7b390604401602060405180830381600087803b1580156107ff57600080fd5b505af1158015610813573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083791906111ce565b5061084181611195565b905061073f565b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108b55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161015f565b73ffffffffffffffffffffffffffffffffffffffff811661093e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161015f565b61094781610be6565b50565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610848908590610c5b565b600080808481805b88811015610bd757801580156109fd5750600189145b15610a0a57869150610a3b565b80610a1757309150610a3b565b610a2260018a611113565b811015610a3457309150859250610a3b565b8691508592505b898982818110610a4d57610a4d61112a565b9050602002016020810190610a6291906110c9565b73ffffffffffffffffffffffffffffffffffffffff16639908fc8b8d8d84818110610a8f57610a8f61112a565b9050602002016020810190610aa491906110c9565b8e8e610ab1866001611159565b818110610ac057610ac061112a565b9050602002016020810190610ad591906110c9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff92831660048201529082166024820152604481018790526000606482015290851660848201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60a482015260c4016040805180830381600087803b158015610b7e57600080fd5b505af1158015610b92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb69190611171565b9096509350610bc58486611159565b9450610bd081611195565b90506109e7565b50505050965096945050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610cbd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610d529092919063ffffffff16565b805190915015610d4d5780806020019051810190610cdb91906111ce565b610d4d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161015f565b505050565b6060610d618484600085610d6b565b90505b9392505050565b606082471015610de35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161015f565b843b610e315760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161015f565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610e5a919061121c565b60006040518083038185875af1925050503d8060008114610e97576040519150601f19603f3d011682016040523d82523d6000602084013e610e9c565b606091505b5091509150610eac828286610eb7565b979650505050505050565b60608315610ec6575081610d64565b825115610ed65782518084602001fd5b8160405162461bcd60e51b815260040161015f9190611238565b60008083601f840112610f0257600080fd5b50813567ffffffffffffffff811115610f1a57600080fd5b6020830191508360208260051b8501011115610f3557600080fd5b9250929050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610f6057600080fd5b919050565b60008060008060008060008060c0898b031215610f8157600080fd5b883567ffffffffffffffff80821115610f9957600080fd5b610fa58c838d01610ef0565b909a50985060208b0135915080821115610fbe57600080fd5b50610fcb8b828c01610ef0565b9097509550506040890135935060608901359250610feb60808a01610f3c565b915060a089013590509295985092959890939650565b60008060008060006060868803121561101957600080fd5b853567ffffffffffffffff8082111561103157600080fd5b61103d89838a01610ef0565b9097509550602088013591508082111561105657600080fd5b5061106388828901610ef0565b96999598509660400135949350505050565b60008060006040848603121561108a57600080fd5b833567ffffffffffffffff8111156110a157600080fd5b6110ad86828701610ef0565b90945092506110c0905060208501610f3c565b90509250925092565b6000602082840312156110db57600080fd5b610d6482610f3c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611125576111256110e4565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000821982111561116c5761116c6110e4565b500190565b6000806040838503121561118457600080fd5b505080516020909101519092909150565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156111c7576111c76110e4565b5060010190565b6000602082840312156111e057600080fd5b81518015158114610d6457600080fd5b60005b8381101561120b5781810151838201526020016111f3565b838111156108485750506000910152565b6000825161122e8184602087016111f0565b9190910192915050565b60208152600082518060208401526112578160408501602087016111f0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220bfecba0ee295546124e4edb2a37b43846cdb6e3206200dcf4cc59f346f79313664736f6c63430008090033

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.