frxETH Price: $3,997.20 (+0.04%)

Contract

0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F

Overview

frxETH Balance | FXTL Balance

0 frxETH | 5,789 FXTL

frxETH Value

$0.00

Token Holdings

Transaction Hash
Method
Block
From
To
Deploy_pool46977862024-05-20 11:58:03201 days ago1716206283IN
0xc9Fe0C63...0322b665F
0 frxETH0.000000490.00010025
Deploy_pool29148762024-04-09 5:27:43242 days ago1712640463IN
0xc9Fe0C63...0322b665F
0 frxETH0.00000490.00100025
Deploy_pool22753432024-03-25 10:09:57257 days ago1711361397IN
0xc9Fe0C63...0322b665F
0 frxETH0.000000490.00010025
Deploy_pool19808752024-03-18 14:34:21264 days ago1710772461IN
0xc9Fe0C63...0322b665F
0 frxETH0.000004930.00100025
Set_math_impleme...5143762024-02-13 15:51:03298 days ago1707839463IN
0xc9Fe0C63...0322b665F
0 frxETH0.000000040.00100025
Set_views_implem...5143732024-02-13 15:50:57298 days ago1707839457IN
0xc9Fe0C63...0322b665F
0 frxETH0.000000040.00100025
Set_pool_impleme...5143712024-02-13 15:50:53298 days ago1707839453IN
0xc9Fe0C63...0322b665F
0 frxETH0.000000040.00100025
Set_pool_impleme...5143692024-02-13 15:50:49298 days ago1707839449IN
0xc9Fe0C63...0322b665F
0 frxETH0.000000040.00100025

Latest 4 internal transactions

Parent Transaction Hash Block From To
46977862024-05-20 11:58:03201 days ago1716206283
0xc9Fe0C63...0322b665F
 Contract Creation0 frxETH
29148762024-04-09 5:27:43242 days ago1712640463
0xc9Fe0C63...0322b665F
 Contract Creation0 frxETH
22753432024-03-25 10:09:57257 days ago1711361397
0xc9Fe0C63...0322b665F
 Contract Creation0 frxETH
19808752024-03-18 14:34:21264 days ago1710772461
0xc9Fe0C63...0322b665F
 Contract Creation0 frxETH

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CurveL2TricryptoFactory

Compiler Version
vyper:0.3.10

Optimization Enabled:
N/A

Other Settings:
None license

Contract Source Code (Vyper language format)

# pragma version 0.3.10
# pragma optimize gas
# pragma evm-version paris
"""
@title CurveL2TricryptoFactory
@author Curve.Fi
@license Copyright (c) Curve.Fi, 2020-2023 - all rights reserved
@notice Permissionless 3-coin cryptoswap pool deployer and registry
"""

interface TricryptoPool:
    def balances(i: uint256) -> uint256: view

interface ERC20:
    def decimals() -> uint256: view


event TricryptoPoolDeployed:
    pool: address
    name: String[64]
    symbol: String[32]
    weth: address
    coins: address[N_COINS]
    math: address
    salt: bytes32
    packed_precisions: uint256
    packed_A_gamma: uint256
    packed_fee_params: uint256
    packed_rebalancing_params: uint256
    packed_prices: uint256
    deployer: address

event UpdateFeeReceiver:
    _old_fee_receiver: address
    _new_fee_receiver: address

event UpdatePoolImplementation:
    _implemention_id: uint256
    _old_pool_implementation: address
    _new_pool_implementation: address

event UpdateMathImplementation:
    _old_math_implementation: address
    _new_math_implementation: address

event UpdateViewsImplementation:
    _old_views_implementation: address
    _new_views_implementation: address

event TransferOwnership:
    _old_owner: address
    _new_owner: address


struct PoolArray:
    coins: address[N_COINS]
    decimals: uint256[N_COINS]
    implementation: address


N_COINS: constant(uint256) = 3
A_MULTIPLIER: constant(uint256) = 10000

# Limits
MAX_FEE: constant(uint256) = 10 * 10 ** 9

MIN_GAMMA: constant(uint256) = 10 ** 10
MAX_GAMMA: constant(uint256) = 5 * 10**16

MIN_A: constant(uint256) = N_COINS ** N_COINS * A_MULTIPLIER / 100
MAX_A: constant(uint256) = 1000 * A_MULTIPLIER * N_COINS**N_COINS

PRICE_SIZE: constant(uint128) = 256 / (N_COINS - 1)
PRICE_MASK: constant(uint256) = 2**PRICE_SIZE - 1

admin: public(address)
future_admin: public(address)

# fee receiver for all pools:
fee_receiver: public(address)

pool_implementations: public(HashMap[uint256, address])
views_implementation: public(address)
math_implementation: public(address)

# mapping of coins -> pools for trading
# a mapping key is generated for each pair of addresses via
# `bitwise_xor(convert(a, uint256), convert(b, uint256))`
markets: HashMap[uint256, address[4294967296]]
market_counts: HashMap[uint256, uint256]

pool_count: public(uint256)              # actual length of pool_list
pool_data: HashMap[address, PoolArray]
pool_list: public(address[4294967296])   # master list of pools


@external
def __init__(_fee_receiver: address, _admin: address):

    self.fee_receiver = _fee_receiver
    self.admin = _admin

    log UpdateFeeReceiver(empty(address), _fee_receiver)
    log TransferOwnership(empty(address), _admin)


@internal
@view
def _pack(x: uint256[3]) -> uint256:
    """
    @notice Packs 3 integers with values <= 10**18 into a uint256
    @param x The uint256[3] to pack
    @return The packed uint256
    """
    return (x[0] << 128) | (x[1] << 64) | x[2]



# <--- Pool Deployers --->

@external
def deploy_pool(
    _name: String[64],
    _symbol: String[32],
    _coins: address[N_COINS],
    _weth: address,
    implementation_id: uint256,
    A: uint256,
    gamma: uint256,
    mid_fee: uint256,
    out_fee: uint256,
    fee_gamma: uint256,
    allowed_extra_profit: uint256,
    adjustment_step: uint256,
    ma_exp_time: uint256,
    initial_prices: uint256[N_COINS-1],
) -> address:
    """
    @notice Deploy a new pool
    @param _name Name of the new plain pool
    @param _symbol Symbol for the new plain pool - will be concatenated with factory symbol

    @return Address of the deployed pool
    """
    pool_implementation: address = self.pool_implementations[implementation_id]
    assert pool_implementation != empty(address), "Pool implementation not set"

    # Validate parameters
    assert A > MIN_A-1
    assert A < MAX_A+1

    assert gamma > MIN_GAMMA-1
    assert gamma < MAX_GAMMA+1

    assert mid_fee < MAX_FEE-1  # mid_fee can be zero
    assert out_fee >= mid_fee
    assert out_fee < MAX_FEE-1
    assert fee_gamma < 10**18+1
    assert fee_gamma > 0

    assert allowed_extra_profit < 10**18+1

    assert adjustment_step < 10**18+1
    assert adjustment_step > 0

    assert ma_exp_time < 872542  # 7 * 24 * 60 * 60 / ln(2)
    assert ma_exp_time > 86  # 60 / ln(2)

    assert min(initial_prices[0], initial_prices[1]) > 10**6
    assert max(initial_prices[0], initial_prices[1]) < 10**30

    assert _coins[0] != _coins[1] and _coins[1] != _coins[2] and _coins[0] != _coins[2], "Duplicate coins"

    decimals: uint256[N_COINS] = empty(uint256[N_COINS])
    precisions: uint256[N_COINS] = empty(uint256[N_COINS])
    for i in range(N_COINS):
        d: uint256 = ERC20(_coins[i]).decimals()
        assert d < 19, "Max 18 decimals for coins"
        decimals[i] = d
        precisions[i] = 10** (18 - d)

    # pack precisions
    packed_precisions: uint256 = self._pack(precisions)

    # pack fees
    packed_fee_params: uint256 = self._pack(
        [mid_fee, out_fee, fee_gamma]
    )

    # pack liquidity rebalancing params
    packed_rebalancing_params: uint256 = self._pack(
        [allowed_extra_profit, adjustment_step, ma_exp_time]
    )

    # pack A_gamma
    packed_A_gamma: uint256 = A << 128
    packed_A_gamma = packed_A_gamma | gamma

    # pack initial prices
    packed_prices: uint256 = 0
    for k in range(N_COINS - 1):
        packed_prices = packed_prices << PRICE_SIZE
        p: uint256 = initial_prices[N_COINS - 2 - k]
        assert p < PRICE_MASK
        packed_prices = p | packed_prices

    # pool is an ERC20 implementation
    _salt: bytes32 = block.prevhash
    _math_implementation: address = self.math_implementation
    pool: address = create_from_blueprint(
        pool_implementation,
        _name,
        _symbol,
        _coins,
        _math_implementation,
        _weth,
        _salt,
        packed_precisions,
        packed_A_gamma,
        packed_fee_params,
        packed_rebalancing_params,
        packed_prices,
        code_offset=3
    )

    # populate pool data
    length: uint256 = self.pool_count
    self.pool_list[length] = pool
    self.pool_count = length + 1
    self.pool_data[pool].decimals = decimals
    self.pool_data[pool].coins = _coins
    self.pool_data[pool].implementation = pool_implementation

    # add coins to market:
    self._add_coins_to_market(_coins[0], _coins[1], pool)
    self._add_coins_to_market(_coins[0], _coins[2], pool)
    self._add_coins_to_market(_coins[1], _coins[2], pool)

    log TricryptoPoolDeployed(
        pool,
        _name,
        _symbol,
        _weth,
        _coins,
        _math_implementation,
        _salt,
        packed_precisions,
        packed_A_gamma,
        packed_fee_params,
        packed_rebalancing_params,
        packed_prices,
        msg.sender,
    )

    return pool


@internal
def _add_coins_to_market(coin_a: address, coin_b: address, pool: address):

    key: uint256 = (
        convert(coin_a, uint256) ^ convert(coin_b, uint256)
    )

    length: uint256 = self.market_counts[key]
    self.markets[key][length] = pool
    self.market_counts[key] = length + 1


# <--- Admin / Guarded Functionality --->


@external
def set_fee_receiver(_fee_receiver: address):
    """
    @notice Set fee receiver
    @param _fee_receiver Address that fees are sent to
    """
    assert msg.sender == self.admin, "dev: admin only"

    log UpdateFeeReceiver(self.fee_receiver, _fee_receiver)
    self.fee_receiver = _fee_receiver


@external
def set_pool_implementation(
    _pool_implementation: address, _implementation_index: uint256
):
    """
    @notice Set pool implementation
    @dev Set to empty(address) to prevent deployment of new pools
    @param _pool_implementation Address of the new pool implementation
    @param _implementation_index Index of the pool implementation
    """
    assert msg.sender == self.admin, "dev: admin only"

    log UpdatePoolImplementation(
        _implementation_index,
        self.pool_implementations[_implementation_index],
        _pool_implementation
    )

    self.pool_implementations[_implementation_index] = _pool_implementation


@external
def set_views_implementation(_views_implementation: address):
    """
    @notice Set views contract implementation
    @param _views_implementation Address of the new views contract
    """
    assert msg.sender == self.admin,  "dev: admin only"

    log UpdateViewsImplementation(self.views_implementation, _views_implementation)
    self.views_implementation = _views_implementation


@external
def set_math_implementation(_math_implementation: address):
    """
    @notice Set math implementation
    @param _math_implementation Address of the new math contract
    """
    assert msg.sender == self.admin, "dev: admin only"

    log UpdateMathImplementation(self.math_implementation, _math_implementation)
    self.math_implementation = _math_implementation


@external
def commit_transfer_ownership(_addr: address):
    """
    @notice Transfer ownership of this contract to `addr`
    @param _addr Address of the new owner
    """
    assert msg.sender == self.admin, "dev: admin only"

    self.future_admin = _addr


@external
def accept_transfer_ownership():
    """
    @notice Accept a pending ownership transfer
    @dev Only callable by the new owner
    """
    assert msg.sender == self.future_admin, "dev: future admin only"

    log TransferOwnership(self.admin, msg.sender)
    self.admin = msg.sender


# <--- Factory Getters --->


@view
@external
def get_implementation_address(_pool: address) -> address:
    """
    @notice Get the address of the implementation contract used for a factory pool
    @param _pool Pool address
    @return Implementation contract address
    """
    return self.pool_data[_pool].implementation


@view
@external
def find_pool_for_coins(_from: address, _to: address, i: uint256 = 0) -> address:
    """
    @notice Find an available pool for exchanging two coins
    @param _from Address of coin to be sent
    @param _to Address of coin to be received
    @param i Index value. When multiple pools are available
            this value is used to return the n'th address.
    @return Pool address
    """
    key: uint256 = convert(_from, uint256) ^ convert(_to, uint256)
    return self.markets[key][i]


# <--- Pool Getters --->


@view
@external
def get_coins(_pool: address) -> address[N_COINS]:
    """
    @notice Get the coins within a pool
    @param _pool Pool address
    @return List of coin addresses
    """
    return self.pool_data[_pool].coins


@view
@external
def get_decimals(_pool: address) -> uint256[N_COINS]:
    """
    @notice Get decimal places for each coin within a pool
    @param _pool Pool address
    @return uint256 list of decimals
    """
    return self.pool_data[_pool].decimals


@view
@external
def get_balances(_pool: address) -> uint256[N_COINS]:
    """
    @notice Get balances for each coin within a pool
    @dev For pools using lending, these are the wrapped coin balances
    @param _pool Pool address
    @return uint256 list of balances
    """
    return [
        TricryptoPool(_pool).balances(0),
        TricryptoPool(_pool).balances(1),
        TricryptoPool(_pool).balances(2),
    ]


@view
@external
def get_coin_indices(
    _pool: address,
    _from: address,
    _to: address
) -> (uint256, uint256):
    """
    @notice Convert coin addresses to indices for use with pool methods
    @param _pool Pool address
    @param _from Coin address to be used as `i` within a pool
    @param _to Coin address to be used as `j` within a pool
    @return uint256 `i`, uint256 `j`
    """
    coins: address[N_COINS] = self.pool_data[_pool].coins

    for i in range(N_COINS):
        for j in range(N_COINS):
            if i == j:
                continue

            if coins[i] == _from and coins[j] == _to:
                return i, j

    raise "Coins not found"


@view
@external
def get_market_counts(coin_a: address, coin_b: address) -> uint256:
    """
    @notice Gets the number of markets with the specified coins.
    @return Number of pools with the input coins
    """

    key: uint256 = (
        convert(coin_a, uint256) ^ convert(coin_b, uint256)
    )

    return self.market_counts[key]

Contract Security Audit

Contract ABI

[{"name":"TricryptoPoolDeployed","inputs":[{"name":"pool","type":"address","indexed":false},{"name":"name","type":"string","indexed":false},{"name":"symbol","type":"string","indexed":false},{"name":"weth","type":"address","indexed":false},{"name":"coins","type":"address[3]","indexed":false},{"name":"math","type":"address","indexed":false},{"name":"salt","type":"bytes32","indexed":false},{"name":"packed_precisions","type":"uint256","indexed":false},{"name":"packed_A_gamma","type":"uint256","indexed":false},{"name":"packed_fee_params","type":"uint256","indexed":false},{"name":"packed_rebalancing_params","type":"uint256","indexed":false},{"name":"packed_prices","type":"uint256","indexed":false},{"name":"deployer","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateFeeReceiver","inputs":[{"name":"_old_fee_receiver","type":"address","indexed":false},{"name":"_new_fee_receiver","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdatePoolImplementation","inputs":[{"name":"_implemention_id","type":"uint256","indexed":false},{"name":"_old_pool_implementation","type":"address","indexed":false},{"name":"_new_pool_implementation","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateMathImplementation","inputs":[{"name":"_old_math_implementation","type":"address","indexed":false},{"name":"_new_math_implementation","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateViewsImplementation","inputs":[{"name":"_old_views_implementation","type":"address","indexed":false},{"name":"_new_views_implementation","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"TransferOwnership","inputs":[{"name":"_old_owner","type":"address","indexed":false},{"name":"_new_owner","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_fee_receiver","type":"address"},{"name":"_admin","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"deploy_pool","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_coins","type":"address[3]"},{"name":"_weth","type":"address"},{"name":"implementation_id","type":"uint256"},{"name":"A","type":"uint256"},{"name":"gamma","type":"uint256"},{"name":"mid_fee","type":"uint256"},{"name":"out_fee","type":"uint256"},{"name":"fee_gamma","type":"uint256"},{"name":"allowed_extra_profit","type":"uint256"},{"name":"adjustment_step","type":"uint256"},{"name":"ma_exp_time","type":"uint256"},{"name":"initial_prices","type":"uint256[2]"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"nonpayable","type":"function","name":"set_fee_receiver","inputs":[{"name":"_fee_receiver","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_pool_implementation","inputs":[{"name":"_pool_implementation","type":"address"},{"name":"_implementation_index","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_views_implementation","inputs":[{"name":"_views_implementation","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_math_implementation","inputs":[{"name":"_math_implementation","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"commit_transfer_ownership","inputs":[{"name":"_addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"accept_transfer_ownership","inputs":[],"outputs":[]},{"stateMutability":"view","type":"function","name":"get_implementation_address","inputs":[{"name":"_pool","type":"address"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"find_pool_for_coins","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"find_pool_for_coins","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"i","type":"uint256"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"get_coins","inputs":[{"name":"_pool","type":"address"}],"outputs":[{"name":"","type":"address[3]"}]},{"stateMutability":"view","type":"function","name":"get_decimals","inputs":[{"name":"_pool","type":"address"}],"outputs":[{"name":"","type":"uint256[3]"}]},{"stateMutability":"view","type":"function","name":"get_balances","inputs":[{"name":"_pool","type":"address"}],"outputs":[{"name":"","type":"uint256[3]"}]},{"stateMutability":"view","type":"function","name":"get_coin_indices","inputs":[{"name":"_pool","type":"address"},{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"get_market_counts","inputs":[{"name":"coin_a","type":"address"},{"name":"coin_b","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"admin","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"future_admin","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"fee_receiver","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"pool_implementations","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"views_implementation","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"math_implementation","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"pool_count","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"pool_list","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}]}]

346100b057602061139a6000396000518060a01c6100b05760405260206113ba6000396000518060a01c6100b0576060526040516002556060516000557f2861448678f0be67f11bfb5481b3e3b4cfeb3acc6126ad60a05f95bfc6530666600060805260405160a05260406080a17f5c486528ec3e3f0ea91181cff8116f02bfa350e03b8b6f12e00765adbb5af85c600060805260605160a05260406080a16112d06100b5610000396112d0610000f35b600080fd60003560e01c60026014820660011b6112a801601e39600051565b63f851a440811861122057346112a35760005460405260206040f3611220565b6317f7182a811861122057346112a35760015460405260206040f3611220565b63cab4d3db811861122057346112a35760025460405260206040f3611220565b633273ff4781186100a9576024361034176112a357600360043560205260005260406000205460405260206040f35b636982eb0b8118611220576064361034176112a3576044356080525b6004358060a01c6112a3576040526024358060a01c6112a3576060526060516040511860a052600660a051602052600052604060002060805163ffffffff81116112a357810190505460c052602060c0f3611220565b63e31593d8811861013757346112a35760045460405260206040f35b63a87df06c8118611220576044361034176112a35760006080526100c556611220565b63a13c8f81811861017657346112a35760055460405260206040f35b63aa38b385811861122057610264361034176112a35760043560040160408135116112a3576020813501808260e037505060243560040160208135116112a357602081350180826101403750506044358060a01c6112a357610180526064358060a01c6112a3576101a0526084358060a01c6112a3576101c05260a4358060a01c6112a3576101e052600360c435602052600052604060002054610200526102005161028257601b610220527f506f6f6c20696d706c656d656e746174696f6e206e6f742073657400000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b610a8c60e435106112a357631017df8060e435116112a3576402540be40061010435106112a35766b1a2bc2ec5000061010435116112a3576402540be3fe61012435116112a3576101243561014435106112a3576402540be3fe61014435116112a357670de0b6b3a764000061016435116112a35761016435156112a357670de0b6b3a764000061018435116112a357670de0b6b3a76400006101a435116112a3576101a435156112a357620d505d6101c435116112a35760576101c435106112a357620f42416101e4356102043580828118828410021890509050106112a3576c0c9f2c9cd04674edea3fffffff6101e4356102043580828118828411021890509050116112a3576101a05161018051146103bb576101c0516101a051146103b4576101c0516101805114156103be565b60006103be565b60005b61042857600f610220527f4475706c696361746520636f696e7300000000000000000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b60c0366102203760006003905b806102e0526102e051600281116112a35760051b610180015163313ce567610320526020610320600461033c845afa610473573d600060003e3d6000fd5b60203d106112a3576103209050516103005260126103005111156104f7576019610320527f4d617820313820646563696d616c7320666f7220636f696e73000000000000006103405261032050610320518061034001601f826000031636823750506308c379a06102e052602061030052601f19601f6103205101166044016102fcfd5b610300516102e051600281116112a35760051b61022001526103005180601203601281116112a3579050604d81116112a35780600a0a90506102e051600281116112a35760051b6102800152600101818118610435575050610280516040526102a0516060526102c05160805261056f610300611226565b610300516102e052606061012460403761058a610320611226565b610320516103005260606101846040376105a5610340611226565b610340516103205260e43560801b610340526101043561034051176103405260006103605260006002905b80610380526103605160801b610360526103805180600103600181116112a3579050600181116112a35760051b6101e401356103a0526ffffffffffffffffffffffffffffffffe6103a051116112a357610360516103a05117610360526001018181186105d05750506001430340610380526005546103a052610200516101a0806104e052806104e001602060e0510180828260e060045afa50508051806020830101601f82600003163682375050601f19601f825160200101169050810190508061050052806104e0016101405181526101605160208201528051806020830101601f82600003163682375050601f19601f8251602001011690508101905061018051610520526101a051610540526101c051610560526103a0516103e0526103e051610580526101e05161040052610400516105a0526103805161042052610420516105c0526102e05161044052610440516105e0526103405161046052610460516106005261030051610480526104805161062052610320516104a0526104a05161064052610360516104c0526104c051610660526003823b0359600182126112a35781600382863c8181018381856104e060045afa5050828201816000f080156112a35790509050905090506103c0526008546103e0526103c0516103e05163ffffffff81116112a357600a01556103e051600181018181106112a357905060085560096103c05160205260005260406000206003810190506102205181556102405160018201556102605160028201555060096103c05160205260005260406000206101805181556101a05160018201556101c0516002820155506102005160096103c051602052600052604060002060068101905055610180516040526101a0516060526103c05160805261086961123c565b610180516040526101c0516060526103c05160805261088661123c565b6101a0516040526101c0516060526103c0516080526108a361123c565b7fa307f5d0802489baddec443058a63ce115756de9020e2b07d3e2cd2f21269e2a6101e06103c0516104005280610420528061040001602060e0510180828260e060045afa50508051806020830101601f82600003163682375050601f19601f82516020010116905081019050806104405280610400016101405181526101605160208201528051806020830101601f82600003163682375050601f19601f825160200101169050810190506101e0516104605261018051610480526101a0516104a0526101c0516104c0526103a0516104e05261038051610500526102e05161052052610340516105405261030051610560526103205161058052610360516105a052336105c052610400a160206103c0f3611220565b63956aae3a81186109d757346112a35760085460405260206040f35b633a1d5d8e8118611220576024361034176112a35760043563ffffffff81116112a357600a015460405260206040f3611220565b63e41ab7718118611220576024361034176112a3576004358060a01c6112a357604052600054331815610a9557600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7f2861448678f0be67f11bfb5481b3e3b4cfeb3acc6126ad60a05f95bfc653066660025460605260405160805260406060a160405160025500611220565b636f385ff68118611220576044361034176112a3576004358060a01c6112a357604052600054331815610b5d57600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7f6a42ef9605e135afaf6ae4f3683b161a3b7369d07c9d52c701ab69553e04c3b6602435606052600360243560205260005260406000205460805260405160a05260606060a1604051600360243560205260005260406000205500611220565b63f6fa937f8118611220576024361034176112a3576004358060a01c6112a357604052600054331815610c4757600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7fd84eb1ea70cda40a6bfaa11f4f69efa10cbc5eb82760b3058f440512ec1d6d1f60045460605260405160805260406060a160405160045500611220565b63b07426f48118611220576024361034176112a3576004358060a01c6112a357604052600054331815610d0f57600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7f68fe8fc3ac76ec17e21117df5e854c8c25b7b5f776aad2adc927fdd156bcd6de60055460605260405160805260406060a160405160055500611220565b636b441a408118610ddf576024361034176112a3576004358060a01c6112a357604052600054331815610dd757600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b604051600155005b63510d98a48118611220576024361034176112a3576004358060a01c6112a357604052600960405160205260005260406000206006810190505460605260206060f3611220565b63e5ea47b8811861122057346112a357600154331815610e9d5760166040527f6465763a206675747572652061646d696e206f6e6c790000000000000000000060605260405060405180606001601f826000031636823750506308c379a06000526020602052601f19601f6040510116604401601cfd5b7f5c486528ec3e3f0ea91181cff8116f02bfa350e03b8b6f12e00765adbb5af85c6000546040523360605260406040a13360005500611220565b639ac90d3d8118610f26576024361034176112a3576004358060a01c6112a3576040526009604051602052600052604060002080546060526001810154608052600281015460a0525060606060f35b6352b515558118611220576024361034176112a3576004358060a01c6112a3576040526009604051602052600052604060002060038101905080546060526001810154608052600281015460a0525060606060f3611220565b6392e3cc2d8118611220576024361034176112a3576004358060a01c6112a357604052604051634903b0d16060526000608052602060606024607c845afa610fcc573d600060003e3d6000fd5b60203d106112a357606090505161012052604051634903b0d160a052600160c052602060a0602460bc845afa611007573d600060003e3d6000fd5b60203d106112a35760a090505161014052604051634903b0d160e052600261010052602060e0602460fc845afa611043573d600060003e3d6000fd5b60203d106112a35760e0905051610160526060610120f3611220565b63eb85226d8118611220576064361034176112a3576004358060a01c6112a3576040526024358060a01c6112a3576060526044358060a01c6112a35760805260096040516020526000526040600020805460a052600181015460c052600281015460e0525060006003905b806101005260006003905b80610120526101205161010051186110ec5761114a565b60605161010051600281116112a35760051b60a00151186111245760805161012051600281116112a35760051b60a001511815611127565b60005b1561114a57505050506101005161014052610120516101605260406101406111c5565b6001018181186110d55750506001018181186110ca575050600f610100527f436f696e73206e6f7420666f756e6400000000000000000000000000000000006101205261010050610100518061012001601f826000031636823750506308c379a060c052602060e052601f19601f61010051011660440160dcfd5bf3611220565b63c1856b528118611220576044361034176112a3576004358060a01c6112a3576040526024358060a01c6112a35760605260605160405118608052600760805160205260005260406000205460a052602060a0f35b60006000fd5b60805160605160401b60405160801b1717815250565b6060516040511860a052600760a05160205260005260406000205460c052608051600660a051602052600052604060002060c05163ffffffff81116112a357810190505560c051600181018181106112a3579050600760a051602052600052604060002055565b600080fd0d4d105f09bb12200c850a0b003a005a0e260ed711cb007a001a015a12200bbd011b0f7f0ad31220841912d081182800a16576797065728300030a00150000000000000000000000008b3efbefa6ed222077455d6f0dcda3bf4f3f57a60000000000000000000000002d12d0907a388811e3aa855a550f959501d303ee

Deployed Bytecode

0x60003560e01c60026014820660011b6112a801601e39600051565b63f851a440811861122057346112a35760005460405260206040f3611220565b6317f7182a811861122057346112a35760015460405260206040f3611220565b63cab4d3db811861122057346112a35760025460405260206040f3611220565b633273ff4781186100a9576024361034176112a357600360043560205260005260406000205460405260206040f35b636982eb0b8118611220576064361034176112a3576044356080525b6004358060a01c6112a3576040526024358060a01c6112a3576060526060516040511860a052600660a051602052600052604060002060805163ffffffff81116112a357810190505460c052602060c0f3611220565b63e31593d8811861013757346112a35760045460405260206040f35b63a87df06c8118611220576044361034176112a35760006080526100c556611220565b63a13c8f81811861017657346112a35760055460405260206040f35b63aa38b385811861122057610264361034176112a35760043560040160408135116112a3576020813501808260e037505060243560040160208135116112a357602081350180826101403750506044358060a01c6112a357610180526064358060a01c6112a3576101a0526084358060a01c6112a3576101c05260a4358060a01c6112a3576101e052600360c435602052600052604060002054610200526102005161028257601b610220527f506f6f6c20696d706c656d656e746174696f6e206e6f742073657400000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b610a8c60e435106112a357631017df8060e435116112a3576402540be40061010435106112a35766b1a2bc2ec5000061010435116112a3576402540be3fe61012435116112a3576101243561014435106112a3576402540be3fe61014435116112a357670de0b6b3a764000061016435116112a35761016435156112a357670de0b6b3a764000061018435116112a357670de0b6b3a76400006101a435116112a3576101a435156112a357620d505d6101c435116112a35760576101c435106112a357620f42416101e4356102043580828118828410021890509050106112a3576c0c9f2c9cd04674edea3fffffff6101e4356102043580828118828411021890509050116112a3576101a05161018051146103bb576101c0516101a051146103b4576101c0516101805114156103be565b60006103be565b60005b61042857600f610220527f4475706c696361746520636f696e7300000000000000000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b60c0366102203760006003905b806102e0526102e051600281116112a35760051b610180015163313ce567610320526020610320600461033c845afa610473573d600060003e3d6000fd5b60203d106112a3576103209050516103005260126103005111156104f7576019610320527f4d617820313820646563696d616c7320666f7220636f696e73000000000000006103405261032050610320518061034001601f826000031636823750506308c379a06102e052602061030052601f19601f6103205101166044016102fcfd5b610300516102e051600281116112a35760051b61022001526103005180601203601281116112a3579050604d81116112a35780600a0a90506102e051600281116112a35760051b6102800152600101818118610435575050610280516040526102a0516060526102c05160805261056f610300611226565b610300516102e052606061012460403761058a610320611226565b610320516103005260606101846040376105a5610340611226565b610340516103205260e43560801b610340526101043561034051176103405260006103605260006002905b80610380526103605160801b610360526103805180600103600181116112a3579050600181116112a35760051b6101e401356103a0526ffffffffffffffffffffffffffffffffe6103a051116112a357610360516103a05117610360526001018181186105d05750506001430340610380526005546103a052610200516101a0806104e052806104e001602060e0510180828260e060045afa50508051806020830101601f82600003163682375050601f19601f825160200101169050810190508061050052806104e0016101405181526101605160208201528051806020830101601f82600003163682375050601f19601f8251602001011690508101905061018051610520526101a051610540526101c051610560526103a0516103e0526103e051610580526101e05161040052610400516105a0526103805161042052610420516105c0526102e05161044052610440516105e0526103405161046052610460516106005261030051610480526104805161062052610320516104a0526104a05161064052610360516104c0526104c051610660526003823b0359600182126112a35781600382863c8181018381856104e060045afa5050828201816000f080156112a35790509050905090506103c0526008546103e0526103c0516103e05163ffffffff81116112a357600a01556103e051600181018181106112a357905060085560096103c05160205260005260406000206003810190506102205181556102405160018201556102605160028201555060096103c05160205260005260406000206101805181556101a05160018201556101c0516002820155506102005160096103c051602052600052604060002060068101905055610180516040526101a0516060526103c05160805261086961123c565b610180516040526101c0516060526103c05160805261088661123c565b6101a0516040526101c0516060526103c0516080526108a361123c565b7fa307f5d0802489baddec443058a63ce115756de9020e2b07d3e2cd2f21269e2a6101e06103c0516104005280610420528061040001602060e0510180828260e060045afa50508051806020830101601f82600003163682375050601f19601f82516020010116905081019050806104405280610400016101405181526101605160208201528051806020830101601f82600003163682375050601f19601f825160200101169050810190506101e0516104605261018051610480526101a0516104a0526101c0516104c0526103a0516104e05261038051610500526102e05161052052610340516105405261030051610560526103205161058052610360516105a052336105c052610400a160206103c0f3611220565b63956aae3a81186109d757346112a35760085460405260206040f35b633a1d5d8e8118611220576024361034176112a35760043563ffffffff81116112a357600a015460405260206040f3611220565b63e41ab7718118611220576024361034176112a3576004358060a01c6112a357604052600054331815610a9557600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7f2861448678f0be67f11bfb5481b3e3b4cfeb3acc6126ad60a05f95bfc653066660025460605260405160805260406060a160405160025500611220565b636f385ff68118611220576044361034176112a3576004358060a01c6112a357604052600054331815610b5d57600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7f6a42ef9605e135afaf6ae4f3683b161a3b7369d07c9d52c701ab69553e04c3b6602435606052600360243560205260005260406000205460805260405160a05260606060a1604051600360243560205260005260406000205500611220565b63f6fa937f8118611220576024361034176112a3576004358060a01c6112a357604052600054331815610c4757600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7fd84eb1ea70cda40a6bfaa11f4f69efa10cbc5eb82760b3058f440512ec1d6d1f60045460605260405160805260406060a160405160045500611220565b63b07426f48118611220576024361034176112a3576004358060a01c6112a357604052600054331815610d0f57600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b7f68fe8fc3ac76ec17e21117df5e854c8c25b7b5f776aad2adc927fdd156bcd6de60055460605260405160805260406060a160405160055500611220565b636b441a408118610ddf576024361034176112a3576004358060a01c6112a357604052600054331815610dd757600f6060527f6465763a2061646d696e206f6e6c79000000000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b604051600155005b63510d98a48118611220576024361034176112a3576004358060a01c6112a357604052600960405160205260005260406000206006810190505460605260206060f3611220565b63e5ea47b8811861122057346112a357600154331815610e9d5760166040527f6465763a206675747572652061646d696e206f6e6c790000000000000000000060605260405060405180606001601f826000031636823750506308c379a06000526020602052601f19601f6040510116604401601cfd5b7f5c486528ec3e3f0ea91181cff8116f02bfa350e03b8b6f12e00765adbb5af85c6000546040523360605260406040a13360005500611220565b639ac90d3d8118610f26576024361034176112a3576004358060a01c6112a3576040526009604051602052600052604060002080546060526001810154608052600281015460a0525060606060f35b6352b515558118611220576024361034176112a3576004358060a01c6112a3576040526009604051602052600052604060002060038101905080546060526001810154608052600281015460a0525060606060f3611220565b6392e3cc2d8118611220576024361034176112a3576004358060a01c6112a357604052604051634903b0d16060526000608052602060606024607c845afa610fcc573d600060003e3d6000fd5b60203d106112a357606090505161012052604051634903b0d160a052600160c052602060a0602460bc845afa611007573d600060003e3d6000fd5b60203d106112a35760a090505161014052604051634903b0d160e052600261010052602060e0602460fc845afa611043573d600060003e3d6000fd5b60203d106112a35760e0905051610160526060610120f3611220565b63eb85226d8118611220576064361034176112a3576004358060a01c6112a3576040526024358060a01c6112a3576060526044358060a01c6112a35760805260096040516020526000526040600020805460a052600181015460c052600281015460e0525060006003905b806101005260006003905b80610120526101205161010051186110ec5761114a565b60605161010051600281116112a35760051b60a00151186111245760805161012051600281116112a35760051b60a001511815611127565b60005b1561114a57505050506101005161014052610120516101605260406101406111c5565b6001018181186110d55750506001018181186110ca575050600f610100527f436f696e73206e6f7420666f756e6400000000000000000000000000000000006101205261010050610100518061012001601f826000031636823750506308c379a060c052602060e052601f19601f61010051011660440160dcfd5bf3611220565b63c1856b528118611220576044361034176112a3576004358060a01c6112a3576040526024358060a01c6112a35760605260605160405118608052600760805160205260005260406000205460a052602060a0f35b60006000fd5b60805160605160401b60405160801b1717815250565b6060516040511860a052600760a05160205260005260406000205460c052608051600660a051602052600052604060002060c05163ffffffff81116112a357810190505560c051600181018181106112a3579050600760a051602052600052604060002055565b600080fd0d4d105f09bb12200c850a0b003a005a0e260ed711cb007a001a015a12200bbd011b0f7f0ad31220

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

0000000000000000000000008b3efbefa6ed222077455d6f0dcda3bf4f3f57a60000000000000000000000002d12d0907a388811e3aa855a550f959501d303ee

-----Decoded View---------------
Arg [0] : _fee_receiver (address): 0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6
Arg [1] : _admin (address): 0x2d12D0907A388811e3AA855A550F959501d303EE

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008b3efbefa6ed222077455d6f0dcda3bf4f3f57a6
Arg [1] : 0000000000000000000000002d12d0907a388811e3aa855a550f959501d303ee


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
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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