ETH Price: $3,477.87 (+2.55%)

Contract

0xAe525CE04abe27c4D759C8E0E8b3b8AE36aa5d7e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions and > 10 Token Transfers found.

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
190168622024-01-16 3:48:35340 days ago1705376915
0xAe525CE0...E36aa5d7e
0.01625719 ETH
190168622024-01-16 3:48:35340 days ago1705376915
0xAe525CE0...E36aa5d7e
0.01625719 ETH
190168622024-01-16 3:48:35340 days ago1705376915
0xAe525CE0...E36aa5d7e
0.42919112 ETH
190168622024-01-16 3:48:35340 days ago1705376915
0xAe525CE0...E36aa5d7e
0.42919112 ETH
178794812023-08-09 19:39:11499 days ago1691609951
0xAe525CE0...E36aa5d7e
0.00213415 ETH
178794812023-08-09 19:39:11499 days ago1691609951
0xAe525CE0...E36aa5d7e
0.00213415 ETH
178794812023-08-09 19:39:11499 days ago1691609951
0xAe525CE0...E36aa5d7e
0.0308939 ETH
178794812023-08-09 19:39:11499 days ago1691609951
0xAe525CE0...E36aa5d7e
0.0308939 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00062747 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00062747 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00943435 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00943435 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00000689 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00000689 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00022636 ETH
178473542023-08-05 7:43:23503 days ago1691221403
0xAe525CE0...E36aa5d7e
0.00022636 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00062717 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00062717 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00939782 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00939782 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00000685 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00000685 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00022555 ETH
178473422023-08-05 7:40:47503 days ago1691221247
0xAe525CE0...E36aa5d7e
0.00022555 ETH
178206692023-08-01 14:11:59507 days ago1690899119
0xAe525CE0...E36aa5d7e
6.99429124 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FraxEthNativeConverter

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : FraxEthNativeConverter.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';

import '../../../utils/Constants.sol';
import '../../../strategies/interfaces/ICurvePool2Native.sol';
import "../../../interfaces/INativeConverter.sol";

contract FraxEthNativeConverter is INativeConverter {
    using SafeERC20 for IERC20Metadata;

    uint256 public constant SLIPPAGE_DENOMINATOR = 10_000;
    IERC20Metadata public constant frxETH = IERC20Metadata(Constants.FRX_ETH_ADDRESS);

    int128 public constant ETH_frxETH_POOL_ETH_ID = 0;
    int128 public constant ETH_frxETH_POOL_frxETH_ID = 1;

    ICurvePool2Native public immutable fraxEthPool;

    uint256 public constant defaultSlippage = 30; // 0.3%

    constructor() {
        fraxEthPool = ICurvePool2Native(Constants.ETH_frxETH_ADDRESS);
    }

    receive() external payable {
        // receive ETH on conversion
    }

    function handle(
        bool buyToken,
        uint256 amount,
        uint256 slippage
    ) public payable returns(uint256 tokenAmount){
        if (amount == 0) return 0;

        if(buyToken) {
            tokenAmount = fraxEthPool.exchange{value: amount}(
                ETH_frxETH_POOL_ETH_ID,
                ETH_frxETH_POOL_frxETH_ID,
                amount,
                applySlippage(
                    amount,
                    slippage
                )
            );

            frxETH.safeTransfer(address(msg.sender), tokenAmount);
        } else {
            frxETH.safeIncreaseAllowance(address(fraxEthPool), amount);

            tokenAmount = fraxEthPool.exchange(
                ETH_frxETH_POOL_frxETH_ID,
                ETH_frxETH_POOL_ETH_ID,
                amount,
                applySlippage(
                    amount,
                    slippage
                )
            );

            (bool sent, ) = address(msg.sender).call{ value: tokenAmount }('');
            require(sent, 'Failed to send Ether');
        }
    }

    function valuate(
        bool buyToken,
        uint256 amount
    ) public view returns (uint256) {
        if (amount == 0) return 0;
        int128 i = buyToken ? ETH_frxETH_POOL_ETH_ID : ETH_frxETH_POOL_frxETH_ID;
        int128 j = buyToken ? ETH_frxETH_POOL_frxETH_ID : ETH_frxETH_POOL_ETH_ID;
        return
            fraxEthPool.get_dy(i, j, amount);
    }

    function applySlippage(
        uint256 amount,
        uint256 slippage
    ) internal pure returns (uint256) {
        require(slippage <= SLIPPAGE_DENOMINATOR, 'Wrong slippage');
        if (slippage == 0) slippage = defaultSlippage;
        uint256 value = (amount * (SLIPPAGE_DENOMINATOR - slippage)) / SLIPPAGE_DENOMINATOR;
        return value;
    }
}

File 2 of 9 : INativeConverter.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface INativeConverter {
    function handle(
        bool buyToken,
        uint256 amount,
        uint256 slippage
    ) external payable returns (uint256);

    function valuate(
        bool buyToken,
        uint256 amount
    ) external view returns (uint256);
}

File 3 of 9 : Constants.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library Constants {
    bytes32 internal constant USDC_TICKER = 'usdc';
    bytes32 internal constant USDT_TICKER = 'usdt';
    bytes32 internal constant DAI_TICKER = 'dai';
    bytes32 internal constant CRV_TICKER = 'a3CRV';

    uint256 internal constant CVX_BUSD_PID = 3;
    uint256 internal constant CVX_SUSD_PID = 4;
    uint256 internal constant CVX_USDK_PID = 12;
    uint256 internal constant CVX_USDN_PID = 13;
    uint256 internal constant CVX_MUSD_PID = 14;
    uint256 internal constant CVX_RSV_PID = 15;
    uint256 internal constant CVX_DUSD_PID = 17;
    uint256 internal constant CVX_FRAX_alUSD_PID = 19;
    uint256 internal constant CVX_AAVE_PID = 24;
    uint256 internal constant CVX_USDP_PID = 28;
    uint256 internal constant CVX_IRONBANK_PID = 29;
    uint256 internal constant CVX_TUSD_PID = 31;
    uint256 internal constant CVX_FRAX_PID = 32;
    uint256 internal constant CVX_LUSD_PID = 33;
    uint256 internal constant CVX_BUSDV2_PID = 34;
    uint256 internal constant CVX_FRAX_XAI_PID = 38;
    uint256 internal constant CVX_MIM_PID = 40;
    uint256 internal constant CVX_OUSD_PID = 56;
    uint256 internal constant CVX_UST_PID = 59;
    uint256 internal constant CVX_D3_PID = 58;
    uint256 internal constant CVX_PUSD_PID = 91;
    uint256 internal constant CVX_USDD_PID = 96;
    uint256 internal constant CVX_DOLA_PID = 62;
    uint256 internal constant CVX_FRAX_LUSD_PID = 102;
    uint256 internal constant CVX_FRAX_ALUSD_PID = 106;

    uint256 internal constant CVX_ETH_frxETH_PID = 36;

    uint256 internal constant TRADE_DEADLINE = 2000;

    address internal constant CVX_ADDRESS = 0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B;
    address internal constant CRV_ADDRESS = 0xD533a949740bb3306d119CC777fa900bA034cd52;
    address internal constant FXS_ADDRESS = 0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0;
    address internal constant USDC_ADDRESS = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
    address internal constant USDT_ADDRESS = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
    address internal constant DAI_ADDRESS = 0x6B175474E89094C44Da98b954EedeAC495271d0F;
    address internal constant TUSD_ADDRESS = 0x0000000000085d4780B73119b644AE5ecd22b376;
    address internal constant SUSD_ADDRESS = 0x57Ab1ec28D129707052df4dF418D58a2D46d5f51;
    address internal constant BUSD_ADDRESS = 0x4Fabb145d64652a948d72533023f6E7A623C7C53;
    address internal constant OUSD_ADDRESS = 0x2A8e1E676Ec238d8A992307B495b45B3fEAa5e86;
    address internal constant MUSD_ADDRESS = 0xe2f2a5C287993345a840Db3B0845fbC70f5935a5;
    address internal constant MIM_ADDRESS = 0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3;
    address internal constant SPELL_ADDRESS = 0x090185f2135308BaD17527004364eBcC2D37e5F6;
    address internal constant DUSD_ADDRESS = 0x5BC25f649fc4e26069dDF4cF4010F9f706c23831;
    address internal constant ALUSD_ADDRESS = 0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9;
    address internal constant LUSD_ADDRESS = 0x5f98805A4E8be255a32880FDeC7F6728C6568bA0;
    address internal constant USDP_ADDRESS = 0x1456688345527bE1f37E9e627DA0837D6f08C925;
    address internal constant USDN_ADDRESS = 0x674C6Ad92Fd080e4004b2312b45f796a192D27a0;
    address internal constant USDK_ADDRESS = 0x1c48f86ae57291F7686349F12601910BD8D470bb;
    address internal constant FRAX_ADDRESS = 0x853d955aCEf822Db058eb8505911ED77F175b99e;
    address internal constant FRX_ETH_ADDRESS = 0x5E8422345238F34275888049021821E8E08CAa1f;
    address internal constant RSV_ADDRESS = 0x196f4727526eA7FB1e17b2071B3d8eAA38486988;
    address internal constant UST_ADDRESS = 0xa47c8bf37f92aBed4A126BDA807A7b7498661acD;
    address internal constant PUSD_ADDRESS = 0x466a756E9A7401B5e2444a3fCB3c2C12FBEa0a54;
    address internal constant USDD_ADDRESS = 0x0C10bF8FcB7Bf5412187A595ab97a3609160b5c6;
    address internal constant DOLA_ADDRESS = 0x865377367054516e17014CcdED1e7d814EDC9ce4;
    address internal constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address internal constant SUSHI_ROUTER_ADDRESS = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F;
    address internal constant SUSHI_CRV_WETH_ADDRESS = 0x58Dc5a51fE44589BEb22E8CE67720B5BC5378009;
    address internal constant SUSHI_WETH_CVX_ADDRESS = 0x05767d9EF41dC40689678fFca0608878fb3dE906;
    address internal constant SUSHI_WETH_USDT_ADDRESS = 0x06da0fd433C1A5d7a4faa01111c044910A184553;
    address internal constant CVX_BOOSTER_ADDRESS = 0xF403C135812408BFbE8713b5A23a04b3D48AAE31;
    address internal constant CRV_3POOL_ADDRESS = 0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7;
    address internal constant CRV_3POOL_LP_ADDRESS = 0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490;
    address internal constant CRV_AAVE_ADDRESS = 0xDeBF20617708857ebe4F679508E7b7863a8A8EeE;
    address internal constant CRV_AAVE_LP_ADDRESS = 0xFd2a8fA60Abd58Efe3EeE34dd494cD491dC14900;
    address internal constant CVX_AAVE_REWARDS_ADDRESS = 0xE82c1eB4BC6F92f85BF7EB6421ab3b882C3F5a7B;
    address internal constant CRV_IRONBANK_ADDRESS = 0x2dded6Da1BF5DBdF597C45fcFaa3194e53EcfeAF;
    address internal constant CRV_IRONBANK_LP_ADDRESS = 0x5282a4eF67D9C33135340fB3289cc1711c13638C;
    address internal constant CVX_IRONBANK_REWARDS_ADDRESS =
        0x3E03fFF82F77073cc590b656D42FceB12E4910A8;
    address internal constant CRV_TUSD_ADDRESS = 0xEcd5e75AFb02eFa118AF914515D6521aaBd189F1;
    address internal constant CRV_TUSD_LP_ADDRESS = 0xEcd5e75AFb02eFa118AF914515D6521aaBd189F1;
    address internal constant CVX_TUSD_REWARDS_ADDRESS = 0x308b48F037AAa75406426dACFACA864ebd88eDbA;
    address internal constant CRV_SUSD_ADDRESS = 0xA5407eAE9Ba41422680e2e00537571bcC53efBfD;
    address internal constant CRV_SUSD_LP_ADDRESS = 0xC25a3A3b969415c80451098fa907EC722572917F;
    address internal constant CVX_SUSD_REWARDS_ADDRESS = 0x22eE18aca7F3Ee920D01F25dA85840D12d98E8Ca;
    address internal constant CVX_SUSD_EXTRA_ADDRESS = 0x81fCe3E10D12Da6c7266a1A169c4C96813435263;
    address internal constant SUSD_EXTRA_ADDRESS = 0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F;
    address internal constant SUSD_EXTRA_PAIR_ADDRESS = 0xA1d7b2d891e3A1f9ef4bBC5be20630C2FEB1c470;
    address internal constant CRV_USDK_ADDRESS = 0x3E01dD8a5E1fb3481F0F589056b428Fc308AF0Fb;
    address internal constant CRV_USDK_LP_ADDRESS = 0x97E2768e8E73511cA874545DC5Ff8067eB19B787;
    address internal constant CVX_USDK_REWARDS_ADDRESS = 0xa50e9071aCaD20b31cd2bbe4dAa816882De82BBe;
    address internal constant CRV_USDP_ADDRESS = 0x42d7025938bEc20B69cBae5A77421082407f053A;
    address internal constant CRV_USDP_LP_ADDRESS = 0x7Eb40E450b9655f4B3cC4259BCC731c63ff55ae6;
    address internal constant CVX_USDP_REWARDS_ADDRESS = 0x24DfFd1949F888F91A0c8341Fc98a3F280a782a8;
    address internal constant CVX_USDP_EXTRA_ADDRESS = 0x5F91615268bE6b4aDD646b2560785B8F17dccBb4;
    address internal constant USDP_EXTRA_ADDRESS = 0x92E187a03B6CD19CB6AF293ba17F2745Fd2357D5;
    address internal constant USDP_EXTRA_PAIR_ADDRESS = 0x69aa90C6cD099BF383Bd9A0ac29E61BbCbF3b8D9;
    address internal constant CRV_BUSD_ADDRESS = 0x79a8C46DeA5aDa233ABaFFD40F3A0A2B1e5A4F27;
    address internal constant CRV_BUSD_LP_ADDRESS = 0x3B3Ac5386837Dc563660FB6a0937DFAa5924333B;
    address internal constant CVX_BUSD_REWARDS_ADDRESS = 0x602c4cD53a715D8a7cf648540FAb0d3a2d546560;
    address internal constant CRV_BUSDV2_ADDRESS = 0x4807862AA8b2bF68830e4C8dc86D0e9A998e085a;
    address internal constant CRV_BUSDV2_LP_ADDRESS = 0x4807862AA8b2bF68830e4C8dc86D0e9A998e085a;
    address internal constant CVX_BUSDV2_REWARDS_ADDRESS =
        0xbD223812d360C9587921292D0644D18aDb6a2ad0;
    address internal constant CRV_OUSD_ADDRESS = 0x87650D7bbfC3A9F10587d7778206671719d9910D;
    address internal constant CRV_OUSD_LP_ADDRESS = 0x87650D7bbfC3A9F10587d7778206671719d9910D;
    address internal constant CRV_OUSD_EXTRA_ADDRESS = 0x8A05801c1512F6018e450b0F69e9Ca7b985fCea3;
    address internal constant OUSD_EXTRA_ADDRESS = 0x8207c1FfC5B6804F6024322CcF34F29c3541Ae26;
    address internal constant OUSD_EXTRA_PAIR_ADDRESS = 0x72ea6Ca0D47b337f1EA44314d9d90E2A897eDaF5;
    address internal constant CVX_OUSD_REWARDS_ADDRESS = 0x7D536a737C13561e0D2Decf1152a653B4e615158;
    address internal constant CRV_USDN_ADDRESS = 0x0f9cb53Ebe405d49A0bbdBD291A65Ff571bC83e1;
    address internal constant CRV_USDN_LP_ADDRESS = 0x4f3E8F405CF5aFC05D68142F3783bDfE13811522;
    address internal constant CVX_USDN_REWARDS_ADDRESS = 0x4a2631d090e8b40bBDe245e687BF09e5e534A239;
    address internal constant CRV_LUSD_ADDRESS = 0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA;
    address internal constant CRV_LUSD_LP_ADDRESS = 0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA;
    address internal constant CVX_LUSD_REWARDS_ADDRESS = 0x2ad92A7aE036a038ff02B96c88de868ddf3f8190;
    address internal constant CRV_MUSD_ADDRESS = 0x8474DdbE98F5aA3179B3B3F5942D724aFcdec9f6;
    address internal constant CRV_MUSD_LP_ADDRESS = 0x1AEf73d49Dedc4b1778d0706583995958Dc862e6;
    address internal constant CVX_MUSD_REWARDS_ADDRESS = 0xDBFa6187C79f4fE4Cda20609E75760C5AaE88e52;
    address internal constant CVX_MUSD_EXTRA_ADDRESS = 0x93A5C724c4992FCBDA6b96F06fa15EB8B5c485b7;
    address internal constant MUSD_EXTRA_ADDRESS = 0xa3BeD4E1c75D00fa6f4E5E6922DB7261B5E9AcD2;
    address internal constant MUSD_EXTRA_PAIR_ADDRESS = 0x663242D053057f317A773D7c262B700616d0b9A0;
    address internal constant CRV_DUSD_ADDRESS = 0x8038C01A0390a8c547446a0b2c18fc9aEFEcc10c;
    address internal constant CRV_DUSD_LP_ADDRESS = 0x3a664Ab939FD8482048609f652f9a0B0677337B9;
    address internal constant CVX_DUSD_REWARDS_ADDRESS = 0x1992b82A8cCFC8f89785129D6403b13925d6226E;
    address internal constant CVX_DUSD_EXTRA_ADDRESS = 0x666F8eEE6FD6839853993977CC86a7A51425673C;
    address internal constant DUSD_EXTRA_ADDRESS = 0x20c36f062a31865bED8a5B1e512D9a1A20AA333A;
    address internal constant DUSD_EXTRA_PAIR_ADDRESS = 0x663242D053057f317A773D7c262B700616d0b9A0;
    address internal constant CRV_RSV_ADDRESS = 0xC18cC39da8b11dA8c3541C598eE022258F9744da;
    address internal constant CRV_RSV_LP_ADDRESS = 0xC2Ee6b0334C261ED60C72f6054450b61B8f18E35;
    address internal constant CVX_RSV_REWARDS_ADDRESS = 0xedfCCF611D7c40F43e77a1340cE2C29EEEC27205;
    address internal constant CRV_FRAX_ADDRESS = 0xd632f22692FaC7611d2AA1C0D552930D43CAEd3B;
    address internal constant CRV_FRAX_LP_ADDRESS = 0xd632f22692FaC7611d2AA1C0D552930D43CAEd3B;
    address internal constant CVX_FRAX_REWARDS_ADDRESS = 0xB900EF131301B307dB5eFcbed9DBb50A3e209B2e;
    address internal constant CRV_MIM_ADDRESS = 0x5a6A4D54456819380173272A5E8E9B9904BdF41B;
    address internal constant CRV_MIM_LP_ADDRESS = 0x5a6A4D54456819380173272A5E8E9B9904BdF41B;
    address internal constant CVX_MIM_REWARDS_ADDRESS = 0xFd5AbF66b003881b88567EB9Ed9c651F14Dc4771;
    address internal constant CVX_MIM_EXTRA_ADDRESS = 0x69a92f1656cd2e193797546cFe2EaF32EACcf6f7;
    address internal constant MIM_EXTRA_ADDRESS = 0x090185f2135308BaD17527004364eBcC2D37e5F6;
    address internal constant MIM_EXTRA_PAIR_ADDRESS = 0xb5De0C3753b6E1B4dBA616Db82767F17513E6d4E;
    address internal constant CRV_UST_WORMHOLE_ADDRESS = 0xCEAF7747579696A2F0bb206a14210e3c9e6fB269;
    address internal constant CRV_UST_WORMHOLE_LP_ADDRESS =
        0xCEAF7747579696A2F0bb206a14210e3c9e6fB269;
    address internal constant CVX_UST_WORMHOLE_REWARDS_ADDRESS =
        0x7e2b9B5244bcFa5108A76D5E7b507CFD5581AD4A;
    address internal constant CRV_D3_ADDRESS = 0xBaaa1F5DbA42C3389bDbc2c9D2dE134F5cD0Dc89;
    address internal constant CRV_D3_LP_ADDRESS = 0xBaaa1F5DbA42C3389bDbc2c9D2dE134F5cD0Dc89;
    address internal constant CVX_D3_REWARDS_ADDRESS = 0x329cb014b562d5d42927cfF0dEdF4c13ab0442EF;
    address internal constant CRV_PUSD_ADDRESS = 0x8EE017541375F6Bcd802ba119bdDC94dad6911A1;
    address internal constant CRV_PUSD_LP_ADDRESS = 0x8EE017541375F6Bcd802ba119bdDC94dad6911A1;
    address internal constant CVX_PUSD_REWARDS_ADDRESS = 0x83a3CE160915675F5bC7cC3CfDA5f4CeBC7B7a5a;
    address internal constant CRV_USDD_ADDRESS = 0xe6b5CC1B4b47305c58392CE3D359B10282FC36Ea;
    address internal constant CRV_USDD_LP_ADDRESS = 0xe6b5CC1B4b47305c58392CE3D359B10282FC36Ea;
    address internal constant CVX_USDD_REWARDS_ADDRESS = 0x7D475cc8A5E0416f0e63042547aDB94ca7045A5b;
    address internal constant CRV_DOLA_ADDRESS = 0xAA5A67c256e27A5d80712c51971408db3370927D;
    address internal constant CRV_DOLA_LP_ADDRESS = 0xAA5A67c256e27A5d80712c51971408db3370927D;
    address internal constant CRV_DOLA_REWARDS_ADDRESS = 0x835f69e58087E5B6bffEf182fe2bf959Fe253c3c;
    address internal constant CRV_FRAX_LUSD_ADDRESS = 0x497CE58F34605B9944E6b15EcafE6b001206fd25;
    address internal constant CRV_FRAX_LUSD_LP_ADDRESS = 0x497CE58F34605B9944E6b15EcafE6b001206fd25;
    address internal constant CVX_FRAX_LUSD_REWARDS_ADDRESS =
        0x053e1dad223A206e6BCa24C77786bb69a10e427d;
    address internal constant CRV_FRAX_ALUSD_ADDRESS = 0xB30dA2376F63De30b42dC055C93fa474F31330A5;
    address internal constant CRV_FRAX_ALUSD_LP_ADDRESS =
        0xB30dA2376F63De30b42dC055C93fa474F31330A5;
    address internal constant CVX_FRAX_ALUSD_REWARDS_ADDRESS =
        0x26598e3E511ADFadefD70ab2C3475Ff741741104;
    address internal constant FRAX_USDC_ADDRESS = 0xDcEF968d416a41Cdac0ED8702fAC8128A64241A2;
    address internal constant FRAX_USDC_LP_ADDRESS = 0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC;
    address internal constant SDT_MIM_VAULT_ADDRESS = 0x98dd95D0ac5b70B0F4ae5080a1C2EeA8c5c48387;
    address internal constant SDT_MIM_SPELL_ADDRESS = 0x090185f2135308BaD17527004364eBcC2D37e5F6;

    address internal constant CRV_FRAX_XAI_ADDRESS = 0x326290A1B0004eeE78fa6ED4F1d8f4b2523ab669;
    address internal constant CRV_FRAX_XAI_LP_ADDRESS = 0x326290A1B0004eeE78fa6ED4F1d8f4b2523ab669;
    address internal constant CRV_TRICRYPTO2_ADDRESS = 0xD51a44d3FaE010294C616388b506AcdA1bfAAE46;

    address internal constant CRV_FRAX_alUSD_ADDRESS = 0xB30dA2376F63De30b42dC055C93fa474F31330A5;
    address internal constant CRV_FRAX_alUSD_LP_ADDRESS =
        0xB30dA2376F63De30b42dC055C93fa474F31330A5;

    address internal constant ETH_frxETH_ADDRESS = 0xa1F8A6807c402E4A15ef4EBa36528A3FED24E577;
    address internal constant ETH_frxETH_LP_ADDRESS = 0xf43211935C781D5ca1a41d2041F397B8A7366C7A;

    address internal constant CRV_FRAX_stETH_ADDRESS = 0x4d9f9D15101EEC665F77210cB999639f760F831E;
    address internal constant CRV_FRAX_stETH_LP_ADDRESS = 0x4d9f9D15101EEC665F77210cB999639f760F831E;
    address internal constant CVX_FRAX_stETH_REWARDS_ADDRESS = 0xC3D0B8170E105d6476fE407934492930CAc3BDAC;
    uint256 internal constant CVX_FRAX_stETH_PID = 161;

    address internal constant CRV_FRAX_sETH_ADDRESS = 0x663aC72a1c3E1C4186CD3dCb184f216291F4878C;
    address internal constant CRV_FRAX_sETH_LP_ADDRESS = 0x663aC72a1c3E1C4186CD3dCb184f216291F4878C;
    address internal constant CVX_FRAX_sETH_REWARDS_ADDRESS = 0x55cdF6c7E6d04b83835E4702ed395D0263237DA2;
    uint256 internal constant CVX_FRAX_sETH_PID = 167;

    address internal constant CRV_FRAX_alETH_ADDRESS = 0xB657B895B265C38c53FFF00166cF7F6A3C70587d;
    address internal constant CRV_FRAX_alETH_LP_ADDRESS = 0xB657B895B265C38c53FFF00166cF7F6A3C70587d;
    address internal constant CVX_FRAX_alETH_REWARDS_ADDRESS = 0xe0DbbCF08A5465db7c7401C86cce89030e11aB67;
    uint256 internal constant CVX_FRAX_alETH_PID = 166;
}

File 4 of 9 : ICurvePool2Native.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '../../interfaces/ICurvePoolPricable.sol';

interface ICurvePool2Native is ICurvePoolPricable {
    function coins(uint256 i) external view returns (address);

    function add_liquidity(uint256[2] memory amounts, uint256 min_mint_amount)
        external
        payable
        returns (uint256);

    function remove_liquidity(uint256 burn_amount, uint256[2] memory min_amounts)
        external
        returns (uint256[2] memory);

    function remove_liquidity_imbalance(uint256[2] memory amounts, uint256 max_burn_amount)
        external
        returns (uint256);

    function remove_liquidity_one_coin(
        uint256 burn_amount,
        int128 i,
        uint256 min_received
    ) external returns (uint256);

    function exchange(
        int128 i,
        int128 j,
        uint256 input,
        uint256 min_output
    ) external payable returns (uint256);

    function calc_token_amount(uint256[2] memory amounts, bool is_deposit)
        external
        view
        returns (uint256);

    function calc_token_amount(
        uint256[2] memory amounts,
        bool is_deposit,
        bool previous
    ) external view returns (uint256);

    function calc_withdraw_one_coin(uint256 burn_amount, int128 i) external view returns (uint256);

    function get_dy(
        int128 i,
        int128 j,
        uint256 dx
    ) external view returns (uint256);
}

File 5 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 6 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

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

interface ICurvePoolPricable {
    function get_virtual_price() external view returns (uint256);
}

File 8 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

    /**
     * @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 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ETH_frxETH_POOL_ETH_ID","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH_frxETH_POOL_frxETH_ID","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SLIPPAGE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultSlippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fraxEthPool","outputs":[{"internalType":"contract ICurvePool2Native","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"frxETH","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"buyToken","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"handle","outputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bool","name":"buyToken","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"valuate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405234801561001057600080fd5b5073a1f8a6807c402e4a15ef4eba36528a3fed24e577608052608051610a6b610060600039600081816101420152818161020e015281816102a60152818161039d01526103c40152610a6b6000f3fe60806040526004361061007f5760003560e01c80638859cb451161004e5780638859cb4514610130578063ac90511414610164578063bda72dbc1461017a578063cf228d531461019a57600080fd5b80631454729a1461008b5780631c297a3e146100b85780635487404a146100cd578063565d3e6e146100f057600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100a0600081565b604051600f9190910b81526020015b60405180910390f35b3480156100c457600080fd5b506100a0600181565b3480156100d957600080fd5b506100e2601e81565b6040519081526020016100af565b3480156100fc57600080fd5b50610118735e8422345238f34275888049021821e8e08caa1f81565b6040516001600160a01b0390911681526020016100af565b34801561013c57600080fd5b506101187f000000000000000000000000000000000000000000000000000000000000000081565b34801561017057600080fd5b506100e261271081565b34801561018657600080fd5b506100e26101953660046108ae565b6101ad565b6100e26101a83660046108da565b61028c565b6000816000036101bf57506000610286565b6000836101cd5760016101d0565b60005b90506000846101e05760006101e3565b60015b604051635e0d443f60e01b8152600f84810b600483015282900b6024820152604481018690529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635e0d443f90606401602060405180830381865afa15801561025d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610281919061090f565b925050505b92915050565b60008260000361029e57506000610513565b8315610383577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633df021248460006001876102e3898961051a565b6040516001600160e01b031960e088901b168152600f94850b60048201529290930b60248301526044820152606481019190915260840160206040518083038185885af1158015610338573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061035d919061090f565b905061037e735e8422345238f34275888049021821e8e08caa1f3383610597565b610513565b6103c2735e8422345238f34275888049021821e8e08caa1f7f0000000000000000000000000000000000000000000000000000000000000000856105ff565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633df021246001600086610400888861051a565b6040516001600160e01b031960e087901b168152600f94850b60048201529290930b6024830152604482015260648101919091526084016020604051808303816000875af1158015610456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047a919061090f565b604051909150600090339083908381818185875af1925050503d80600081146104bf576040519150601f19603f3d011682016040523d82523d6000602084013e6104c4565b606091505b50509050806105115760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b505b9392505050565b600061271082111561055f5760405162461bcd60e51b815260206004820152600e60248201526d57726f6e6720736c69707061676560901b6044820152606401610508565b8160000361056c57601e91505b600061271061057b848261093e565b6105859086610951565b61058f9190610970565b949350505050565b6040516001600160a01b0383166024820152604481018290526105fa90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526106b7565b505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610674919061090f565b61067e9190610992565b6040516001600160a01b0385166024820152604481018290529091506106b190859063095ea7b360e01b906064016105c3565b50505050565b600061070c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107899092919063ffffffff16565b8051909150156105fa578080602001905181019061072a91906109a5565b6105fa5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610508565b606061058f8484600085856001600160a01b0385163b6107eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610508565b600080866001600160a01b0316858760405161080791906109e6565b60006040518083038185875af1925050503d8060008114610844576040519150601f19603f3d011682016040523d82523d6000602084013e610849565b606091505b5091509150610859828286610864565b979650505050505050565b60608315610873575081610513565b8251156108835782518084602001fd5b8160405162461bcd60e51b81526004016105089190610a02565b80151581146108ab57600080fd5b50565b600080604083850312156108c157600080fd5b82356108cc8161089d565b946020939093013593505050565b6000806000606084860312156108ef57600080fd5b83356108fa8161089d565b95602085013595506040909401359392505050565b60006020828403121561092157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561028657610286610928565b600081600019048311821515161561096b5761096b610928565b500290565b60008261098d57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561028657610286610928565b6000602082840312156109b757600080fd5b81516105138161089d565b60005b838110156109dd5781810151838201526020016109c5565b50506000910152565b600082516109f88184602087016109c2565b9190910192915050565b6020815260008251806020840152610a218160408501602087016109c2565b601f01601f1916919091016040019291505056fea2646970667358221220eec8ada1b69162d06b19224284127b3b61c303f05d24ab9dc2efdc43ebd965ab64736f6c63430008100033

Deployed Bytecode

0x60806040526004361061007f5760003560e01c80638859cb451161004e5780638859cb4514610130578063ac90511414610164578063bda72dbc1461017a578063cf228d531461019a57600080fd5b80631454729a1461008b5780631c297a3e146100b85780635487404a146100cd578063565d3e6e146100f057600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100a0600081565b604051600f9190910b81526020015b60405180910390f35b3480156100c457600080fd5b506100a0600181565b3480156100d957600080fd5b506100e2601e81565b6040519081526020016100af565b3480156100fc57600080fd5b50610118735e8422345238f34275888049021821e8e08caa1f81565b6040516001600160a01b0390911681526020016100af565b34801561013c57600080fd5b506101187f000000000000000000000000a1f8a6807c402e4a15ef4eba36528a3fed24e57781565b34801561017057600080fd5b506100e261271081565b34801561018657600080fd5b506100e26101953660046108ae565b6101ad565b6100e26101a83660046108da565b61028c565b6000816000036101bf57506000610286565b6000836101cd5760016101d0565b60005b90506000846101e05760006101e3565b60015b604051635e0d443f60e01b8152600f84810b600483015282900b6024820152604481018690529091507f000000000000000000000000a1f8a6807c402e4a15ef4eba36528a3fed24e5776001600160a01b031690635e0d443f90606401602060405180830381865afa15801561025d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610281919061090f565b925050505b92915050565b60008260000361029e57506000610513565b8315610383577f000000000000000000000000a1f8a6807c402e4a15ef4eba36528a3fed24e5776001600160a01b0316633df021248460006001876102e3898961051a565b6040516001600160e01b031960e088901b168152600f94850b60048201529290930b60248301526044820152606481019190915260840160206040518083038185885af1158015610338573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061035d919061090f565b905061037e735e8422345238f34275888049021821e8e08caa1f3383610597565b610513565b6103c2735e8422345238f34275888049021821e8e08caa1f7f000000000000000000000000a1f8a6807c402e4a15ef4eba36528a3fed24e577856105ff565b7f000000000000000000000000a1f8a6807c402e4a15ef4eba36528a3fed24e5776001600160a01b0316633df021246001600086610400888861051a565b6040516001600160e01b031960e087901b168152600f94850b60048201529290930b6024830152604482015260648101919091526084016020604051808303816000875af1158015610456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047a919061090f565b604051909150600090339083908381818185875af1925050503d80600081146104bf576040519150601f19603f3d011682016040523d82523d6000602084013e6104c4565b606091505b50509050806105115760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b505b9392505050565b600061271082111561055f5760405162461bcd60e51b815260206004820152600e60248201526d57726f6e6720736c69707061676560901b6044820152606401610508565b8160000361056c57601e91505b600061271061057b848261093e565b6105859086610951565b61058f9190610970565b949350505050565b6040516001600160a01b0383166024820152604481018290526105fa90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526106b7565b505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610674919061090f565b61067e9190610992565b6040516001600160a01b0385166024820152604481018290529091506106b190859063095ea7b360e01b906064016105c3565b50505050565b600061070c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107899092919063ffffffff16565b8051909150156105fa578080602001905181019061072a91906109a5565b6105fa5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610508565b606061058f8484600085856001600160a01b0385163b6107eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610508565b600080866001600160a01b0316858760405161080791906109e6565b60006040518083038185875af1925050503d8060008114610844576040519150601f19603f3d011682016040523d82523d6000602084013e610849565b606091505b5091509150610859828286610864565b979650505050505050565b60608315610873575081610513565b8251156108835782518084602001fd5b8160405162461bcd60e51b81526004016105089190610a02565b80151581146108ab57600080fd5b50565b600080604083850312156108c157600080fd5b82356108cc8161089d565b946020939093013593505050565b6000806000606084860312156108ef57600080fd5b83356108fa8161089d565b95602085013595506040909401359392505050565b60006020828403121561092157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561028657610286610928565b600081600019048311821515161561096b5761096b610928565b500290565b60008261098d57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561028657610286610928565b6000602082840312156109b757600080fd5b81516105138161089d565b60005b838110156109dd5781810151838201526020016109c5565b50506000910152565b600082516109f88184602087016109c2565b9190910192915050565b6020815260008251806020840152610a218160408501602087016109c2565b601f01601f1916919091016040019291505056fea2646970667358221220eec8ada1b69162d06b19224284127b3b61c303f05d24ab9dc2efdc43ebd965ab64736f6c63430008100033

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  ]

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.