MNT Price: $0.90 (-0.42%)

Contract

0xe42C77bCe12AD2553d963aD180A294C195F3cF17
 

Overview

MNT Balance

Mantle Mainnet Network LogoMantle Mainnet Network LogoMantle Mainnet Network Logo0 MNT

MNT Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Amount:Between 1-1M
Reset Filter

Transaction Hash
Block
From
To

There are no matching entries

> 10 Token Transfers found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x9a4cC3B6...db7BAEA53
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
LendleStrategy

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;

import { ILendle } from "../../interfaces/strategies/ILendle.sol";
import { BaseStrategy, SafeERC20, IERC20 } from "../../BaseStrategy.sol";
import { ErrorsLib } from "../../libraries/ErrorsLib.sol";

contract LendleStrategy is BaseStrategy {
    using SafeERC20 for IERC20;

    constructor (address _brinkVault, address _asset, address _reserve) BaseStrategy(_brinkVault, _asset, _reserve) {
        address[] memory reserves_ = ILendle(_reserve).getReservesList();
        bool reserveExists = false;
        for (uint256 i = 0; i < reserves_.length; i++) {
            if (reserves_[i] == _asset) {
                reserveExists = true;
                break;
            }
        }
        if (!reserveExists) revert ErrorsLib.ASSET_MISMATCH();

        IERC20(_asset).safeIncreaseAllowance(_brinkVault, type(uint256).max);
    }

    function balance() external override view returns (uint256) {
        address sharesAddress = ILendle(reserve).getReserveAToken(asset);
        return IERC20(sharesAddress).balanceOf(address(this));
    }

    function supply(uint256 _assetAmount) external override onlyBV {
        IERC20(asset).safeTransferFrom(msg.sender, address(this), _assetAmount);
        IERC20(asset).safeIncreaseAllowance(reserve, _assetAmount);

        ILendle(reserve).supply(asset, _assetAmount, address(this), 0);
    }

    function withdraw(uint256 _assetAmount) external override onlyBV {
        address sharesAddress = ILendle(reserve).getReserveAToken(asset);
        IERC20(sharesAddress).safeIncreaseAllowance(reserve, _assetAmount);

        ILendle(reserve).withdraw(asset, _assetAmount, msg.sender);
    }

    function harvest() external override {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 3 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;

import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import { ErrorsLib } from "./libraries/ErrorsLib.sol";
import { IBaseStrategy } from "./interfaces/IBaseStrategy.sol";

abstract contract BaseStrategy is IBaseStrategy {
    using SafeERC20 for IERC20;

    error NOT_AUTHORIZED();

    address public brinkVault;
    address public asset;
    address public reserve;

    modifier onlyBV() {
        if (msg.sender != brinkVault) revert NOT_AUTHORIZED();
        _;
    }

    constructor(address _brinkVault, address _asset, address _reserve) {
        if (_brinkVault == address(0) || _asset == address(0) || _reserve == address(0)) revert ErrorsLib.ZERO_ADDRESS();

        brinkVault = _brinkVault;
        asset = _asset;
        reserve = _reserve;
    }

    function balance() external view virtual returns (uint256) {}

    function supply(uint256 _assetAmount) external virtual {}

    function withdraw(uint256 _assetAmount) external virtual {}

    function harvest() external virtual {}
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;

interface IBaseStrategy {
    function brinkVault() external view returns (address);
    function asset() external view returns (address);
    function reserve() external view returns (address);
    function balance() external view returns (uint256);
    function supply(uint256 assetAmount) external;
    function withdraw(uint256 assetAmount) external;
    function harvest() external;
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;

interface ILendle {
    function getReservesList() external view returns (address[] memory);
    function getReserveAToken(address underlyingAsset) external view returns (address aToken);
    function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;
    function withdraw(address asset, uint256 amount, address to) external returns (uint256 assets);
}

File 11 of 11 : ErrorsLib.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;

library ErrorsLib {
    /// @notice Error thrown when a zero address is provided
    error ZERO_ADDRESS();

    /// @notice Error thrown when a zero amount is provided
    error ZERO_AMOUNT();

    /// @notice Error thrown when a zero byte array is provided
    error ZERO_BYTES();

    /// @notice Error thrown when the number of strategies is zero
    error ZERO_STRATEGIES();

    /// @notice Error thrown when array lengths do not match
    error ARRAY_LENGTH_MISMATCH();

    /// @notice Error thrown when the asset address does not match
    error ASSET_MISMATCH();
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_brinkVault","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_reserve","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ASSET_MISMATCH","type":"error"},{"inputs":[],"name":"NOT_AUTHORIZED","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"ZERO_ADDRESS","type":"error"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brinkVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetAmount","type":"uint256"}],"name":"supply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405234801561001057600080fd5b50604051610c84380380610c8483398101604081905261002f916103e7565b8282826001600160a01b038316158061004f57506001600160a01b038216155b8061006157506001600160a01b038116155b1561007f5760405163538ba4f960e01b815260040160405180910390fd5b600080546001600160a01b03199081166001600160a01b03958616178255600180548216948616949094179093556002805490931691841691909117909155604080516334651b6f60e21b81529051919284169163d1946dbc9160048082019286929091908290030181865afa1580156100fd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101259190810190610440565b90506000805b825181101561017757846001600160a01b03168382815181106101505761015061050f565b60200260200101516001600160a01b03160361016f5760019150610177565b60010161012b565b50806101965760405163c46da32560e01b815260040160405180910390fd5b6101ac6001600160a01b038516866000196101b6565b505050505061055f565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022a9190610525565b9050610240848461023b858561053e565b610246565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b1790915261029e908590839061030516565b61024057604080516001600160a01b038516602482015260006044808301919091528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526102fb91869161035616565b6102408482610356565b6000806000806020600086516020880160008a5af192503d9150600051905082801561034a5750811561033b578060011461034a565b6000866001600160a01b03163b115b93505050505b92915050565b600080602060008451602086016000885af180610379576040513d6000823e3d81fd5b50506000513d9150811561039157806001141561039e565b6001600160a01b0384163b155b1561024057604051635274afe760e01b81526001600160a01b038516600482015260240160405180910390fd5b80516001600160a01b03811681146103e257600080fd5b919050565b6000806000606084860312156103fc57600080fd5b610405846103cb565b9250610413602085016103cb565b9150610421604085016103cb565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561045257600080fd5b81516001600160401b0381111561046857600080fd5b8201601f8101841361047957600080fd5b80516001600160401b038111156104925761049261042a565b604051600582901b90603f8201601f191681016001600160401b03811182821017156104c0576104c061042a565b6040529182526020818401810192908101878411156104de57600080fd5b6020850194505b83851015610504576104f6856103cb565b8152602094850194016104e5565b509695505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561053757600080fd5b5051919050565b8082018082111561035057634e487b7160e01b600052601160045260246000fd5b6107168061056e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80634641257d1161005b5780634641257d14610095578063b69ef8a8146100da578063cd3293de146100f0578063e9d3c1541461010357600080fd5b80632e1a7d4d14610082578063354030231461009757806338d52e0f146100aa575b600080fd5b61009561009036600461065d565b610116565b005b6100956100a536600461065d565b610257565b6001546100bd906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e261032f565b6040519081526020016100d1565b6002546100bd906001600160a01b031681565b6000546100bd906001600160a01b031681565b6000546001600160a01b0316331461014157604051633d83866f60e01b815260040160405180910390fd5b60025460015460405163cff027d960e01b81526001600160a01b039182166004820152600092919091169063cff027d990602401602060405180830381865afa158015610192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b69190610676565b6002549091506101d3906001600160a01b03808416911684610414565b600254600154604051631a4ca37b60e21b81526001600160a01b039182166004820152602481018590523360448201529116906369328dec906064016020604051808303816000875af115801561022e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025291906106a6565b505050565b6000546001600160a01b0316331461028257604051633d83866f60e01b815260040160405180910390fd5b60015461029a906001600160a01b03163330846104a4565b6002546001546102b7916001600160a01b03918216911683610414565b60025460015460405163617ba03760e01b81526001600160a01b039182166004820152602481018490523060448201526000606482015291169063617ba03790608401600060405180830381600087803b15801561031457600080fd5b505af1158015610328573d6000803e3d6000fd5b5050505050565b60025460015460405163cff027d960e01b81526001600160a01b0391821660048201526000928392169063cff027d990602401602060405180830381865afa15801561037f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a39190610676565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a0823190602401602060405180830381865afa1580156103ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040e91906106a6565b91505090565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610464573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048891906106a6565b905061049e848461049985856106bf565b61050b565b50505050565b6040516001600160a01b03848116602483015283811660448301526064820183905261049e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610597565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261055c848261060c565b61049e576040516001600160a01b0384811660248301526000604483015261059191869182169063095ea7b3906064016104d9565b61049e84825b600080602060008451602086016000885af1806105ba576040513d6000823e3d81fd5b50506000513d915081156105d25780600114156105df565b6001600160a01b0384163b155b1561049e57604051635274afe760e01b81526001600160a01b038516600482015260240160405180910390fd5b6000806000806020600086516020880160008a5af192503d91506000519050828015610651575081156106425780600114610651565b6000866001600160a01b03163b115b93505050505b92915050565b60006020828403121561066f57600080fd5b5035919050565b60006020828403121561068857600080fd5b81516001600160a01b038116811461069f57600080fd5b9392505050565b6000602082840312156106b857600080fd5b5051919050565b8082018082111561065757634e487b7160e01b600052601160045260246000fdfea2646970667358221220c615da77249e382b3e4d7ed2439742c5256ebb932071d091b5e9a846445d38f764736f6c634300081c0033000000000000000000000000f36a57369362eb1553f24c8ad50873723e6e117300000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb80000000000000000000000005cad26932a8d17ba0540eeecb3abadf7722da9a0

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80634641257d1161005b5780634641257d14610095578063b69ef8a8146100da578063cd3293de146100f0578063e9d3c1541461010357600080fd5b80632e1a7d4d14610082578063354030231461009757806338d52e0f146100aa575b600080fd5b61009561009036600461065d565b610116565b005b6100956100a536600461065d565b610257565b6001546100bd906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e261032f565b6040519081526020016100d1565b6002546100bd906001600160a01b031681565b6000546100bd906001600160a01b031681565b6000546001600160a01b0316331461014157604051633d83866f60e01b815260040160405180910390fd5b60025460015460405163cff027d960e01b81526001600160a01b039182166004820152600092919091169063cff027d990602401602060405180830381865afa158015610192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b69190610676565b6002549091506101d3906001600160a01b03808416911684610414565b600254600154604051631a4ca37b60e21b81526001600160a01b039182166004820152602481018590523360448201529116906369328dec906064016020604051808303816000875af115801561022e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025291906106a6565b505050565b6000546001600160a01b0316331461028257604051633d83866f60e01b815260040160405180910390fd5b60015461029a906001600160a01b03163330846104a4565b6002546001546102b7916001600160a01b03918216911683610414565b60025460015460405163617ba03760e01b81526001600160a01b039182166004820152602481018490523060448201526000606482015291169063617ba03790608401600060405180830381600087803b15801561031457600080fd5b505af1158015610328573d6000803e3d6000fd5b5050505050565b60025460015460405163cff027d960e01b81526001600160a01b0391821660048201526000928392169063cff027d990602401602060405180830381865afa15801561037f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a39190610676565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a0823190602401602060405180830381865afa1580156103ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040e91906106a6565b91505090565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610464573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048891906106a6565b905061049e848461049985856106bf565b61050b565b50505050565b6040516001600160a01b03848116602483015283811660448301526064820183905261049e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610597565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261055c848261060c565b61049e576040516001600160a01b0384811660248301526000604483015261059191869182169063095ea7b3906064016104d9565b61049e84825b600080602060008451602086016000885af1806105ba576040513d6000823e3d81fd5b50506000513d915081156105d25780600114156105df565b6001600160a01b0384163b155b1561049e57604051635274afe760e01b81526001600160a01b038516600482015260240160405180910390fd5b6000806000806020600086516020880160008a5af192503d91506000519050828015610651575081156106425780600114610651565b6000866001600160a01b03163b115b93505050505b92915050565b60006020828403121561066f57600080fd5b5035919050565b60006020828403121561068857600080fd5b81516001600160a01b038116811461069f57600080fd5b9392505050565b6000602082840312156106b857600080fd5b5051919050565b8082018082111561065757634e487b7160e01b600052601160045260246000fdfea2646970667358221220c615da77249e382b3e4d7ed2439742c5256ebb932071d091b5e9a846445d38f764736f6c634300081c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.