ETH Price: $3,403.93 (+1.75%)

Contract

0xd8b712d29381748dB89c36BCa0138d7c75866ddF
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw214524142024-12-21 17:35:356 days ago1734802535IN
0xd8b712d2...c75866ddF
0 ETH0.002959697.1340547
Deposit214524052024-12-21 17:33:476 days ago1734802427IN
0xd8b712d2...c75866ddF
0 ETH0.003226536.81115702
Withdraw214177572024-12-16 21:25:2311 days ago1734384323IN
0xd8b712d2...c75866ddF
0 ETH0.0071631516.69012707
Withdraw214113662024-12-16 0:01:5912 days ago1734307319IN
0xd8b712d2...c75866ddF
0 ETH0.0047979312.34650159
Withdraw213336372024-12-05 3:33:4723 days ago1733369627IN
0xd8b712d2...c75866ddF
0 ETH0.0140425932.03445274
Withdraw212588042024-11-24 16:29:1134 days ago1732465751IN
0xd8b712d2...c75866ddF
0 ETH0.003715889.15931468
Claim_rewards212588002024-11-24 16:28:2334 days ago1732465703IN
0xd8b712d2...c75866ddF
0 ETH0.000989969.61709003
Deposit212086462024-11-17 16:33:2341 days ago1731861203IN
0xd8b712d2...c75866ddF
0 ETH0.0058090812.50472796
Withdraw211926112024-11-15 10:50:2343 days ago1731667823IN
0xd8b712d2...c75866ddF
0 ETH0.0041532912.17343045
Withdraw211926102024-11-15 10:50:1143 days ago1731667811IN
0xd8b712d2...c75866ddF
0 ETH0.0048255611.89456897
Deposit211925802024-11-15 10:44:1143 days ago1731667451IN
0xd8b712d2...c75866ddF
0 ETH0.0055254611.89452031
Claim_rewards211780442024-11-13 10:02:1145 days ago1731492131IN
0xd8b712d2...c75866ddF
0 ETH0.0020640524.04598195
Withdraw210846562024-10-31 9:15:4758 days ago1730366147IN
0xd8b712d2...c75866ddF
0 ETH0.003057667.53685531
Deposit210846492024-10-31 9:14:2358 days ago1730366063IN
0xd8b712d2...c75866ddF
0 ETH0.003386017.31593068
Claim_rewards209824622024-10-17 3:01:1172 days ago1729134071IN
0xd8b712d2...c75866ddF
0 ETH0.000573478.08731424
Withdraw205955432024-08-24 2:41:11126 days ago1724467271IN
0xd8b712d2...c75866ddF
0 ETH0.000403450.97249232
Deposit205899822024-08-23 8:02:47127 days ago1724400167IN
0xd8b712d2...c75866ddF
0 ETH0.000442360.93381791
Claim_rewards205763002024-08-21 10:08:23129 days ago1724234903IN
0xd8b712d2...c75866ddF
0 ETH0.000082820.99713377
Withdraw204649002024-08-05 20:58:23144 days ago1722891503IN
0xd8b712d2...c75866ddF
0 ETH0.001605624.03645577
Withdraw203675462024-07-23 6:50:11158 days ago1721717411IN
0xd8b712d2...c75866ddF
0 ETH0.001169732.88336399
Withdraw202162592024-07-02 3:50:35179 days ago1719892235IN
0xd8b712d2...c75866ddF
0 ETH0.00168684.15768449
Deposit202103972024-07-01 8:12:47180 days ago1719821567IN
0xd8b712d2...c75866ddF
0 ETH0.002059954.43428833
Withdraw200805502024-06-13 4:34:11198 days ago1718253251IN
0xd8b712d2...c75866ddF
0 ETH0.0052839812.19092969
Deposit199735182024-05-29 5:45:47213 days ago1716961547IN
0xd8b712d2...c75866ddF
0 ETH0.003852378.29310622
Claim_rewards199209962024-05-21 21:34:11220 days ago1716327251IN
0xd8b712d2...c75866ddF
0 ETH0.000746038.69117956
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.15

Optimization Enabled:
N/A

Other Settings:
default evmVersion, MIT license
# @version 0.2.15
"""
@title Liquidity Gauge
@author Curve Finance
@license MIT
@notice Implementation contract for use with Curve Factory
"""

from vyper.interfaces import ERC20

implements: ERC20


interface CRV20:
    def future_epoch_time_write() -> uint256: nonpayable
    def rate() -> uint256: view

interface Controller:
    def period() -> int128: view
    def period_write() -> int128: nonpayable
    def period_timestamp(p: int128) -> uint256: view
    def gauge_relative_weight(addr: address, time: uint256) -> uint256: view
    def voting_escrow() -> address: view
    def checkpoint(): nonpayable
    def checkpoint_gauge(addr: address): nonpayable

interface Minter:
    def token() -> address: view
    def controller() -> address: view
    def minted(user: address, gauge: address) -> uint256: view

interface VotingEscrow:
    def user_point_epoch(addr: address) -> uint256: view
    def user_point_history__ts(addr: address, epoch: uint256) -> uint256: view

interface ERC20Extended:
    def symbol() -> String[26]: view

interface Factory:
    def admin() -> address: view


event Deposit:
    provider: indexed(address)
    value: uint256

event Withdraw:
    provider: indexed(address)
    value: uint256

event UpdateLiquidityLimit:
    user: address
    original_balance: uint256
    original_supply: uint256
    working_balance: uint256
    working_supply: uint256

event CommitOwnership:
    admin: address

event ApplyOwnership:
    admin: address

event Transfer:
    _from: indexed(address)
    _to: indexed(address)
    _value: uint256

event Approval:
    _owner: indexed(address)
    _spender: indexed(address)
    _value: uint256


struct Reward:
    token: address
    distributor: address
    period_finish: uint256
    rate: uint256
    last_update: uint256
    integral: uint256


MAX_REWARDS: constant(uint256) = 8
TOKENLESS_PRODUCTION: constant(uint256) = 40
WEEK: constant(uint256) = 604800

MINTER: constant(address) = 0xd061D61a4d941c39E5453435B6345Dc261C2fcE0
CRV: constant(address) = 0xD533a949740bb3306d119CC777fa900bA034cd52
VOTING_ESCROW: constant(address) = 0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2
GAUGE_CONTROLLER: constant(address) = 0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB


lp_token: public(address)
future_epoch_time: public(uint256)

balanceOf: public(HashMap[address, uint256])
totalSupply: public(uint256)
allowance: public(HashMap[address, HashMap[address, uint256]])

name: public(String[64])
symbol: public(String[32])

working_balances: public(HashMap[address, uint256])
working_supply: public(uint256)

# The goal is to be able to calculate ∫(rate * balance / totalSupply dt) from 0 till checkpoint
# All values are kept in units of being multiplied by 1e18
period: public(int128)
period_timestamp: public(uint256[100000000000000000000000000000])

# 1e18 * ∫(rate(t) / totalSupply(t) dt) from 0 till checkpoint
integrate_inv_supply: public(uint256[100000000000000000000000000000])  # bump epoch when rate() changes

# 1e18 * ∫(rate(t) / totalSupply(t) dt) from (last_action) till checkpoint
integrate_inv_supply_of: public(HashMap[address, uint256])
integrate_checkpoint_of: public(HashMap[address, uint256])

# ∫(balance * rate(t) / totalSupply(t) dt) from 0 till checkpoint
# Units: rate * t = already number of coins per address to issue
integrate_fraction: public(HashMap[address, uint256])

inflation_rate: public(uint256)

# For tracking external rewards
reward_count: public(uint256)
reward_tokens: public(address[MAX_REWARDS])

reward_data: public(HashMap[address, Reward])

# claimant -> default reward receiver
rewards_receiver: public(HashMap[address, address])

# reward token -> claiming address -> integral
reward_integral_for: public(HashMap[address, HashMap[address, uint256]])

# user -> [uint128 claimable amount][uint128 claimed amount]
claim_data: HashMap[address, HashMap[address, uint256]]

is_killed: public(bool)
factory: public(address)


@external
def __init__(_lp_token: address, _factory: address):
    """
    @notice Contract constructor
    @param _lp_token Liquidity Pool contract address
    """

    assert self.lp_token == ZERO_ADDRESS
    self.lp_token = _lp_token
    self.factory = _factory

    symbol: String[26] = ERC20Extended(_lp_token).symbol()
    self.name = concat("Curve.fi ", symbol, " Gauge Deposit")
    self.symbol = concat(symbol, "-gauge")

    self.period_timestamp[0] = block.timestamp
    self.inflation_rate = CRV20(CRV).rate()
    self.future_epoch_time = CRV20(CRV).future_epoch_time_write()


@view
@external
def decimals() -> uint256:
    """
    @notice Get the number of decimals for this token
    @dev Implemented as a view method to reduce gas costs
    @return uint256 decimal places
    """
    return 18


@view
@external
def integrate_checkpoint() -> uint256:
    return self.period_timestamp[self.period]


@internal
def _update_liquidity_limit(addr: address, l: uint256, L: uint256):
    """
    @notice Calculate limits which depend on the amount of CRV token per-user.
            Effectively it calculates working balances to apply amplification
            of CRV production by CRV
    @param addr User address
    @param l User's amount of liquidity (LP tokens)
    @param L Total amount of liquidity (LP tokens)
    """
    # To be called after totalSupply is updated
    voting_balance: uint256 = ERC20(VOTING_ESCROW).balanceOf(addr)
    voting_total: uint256 = ERC20(VOTING_ESCROW).totalSupply()

    lim: uint256 = l * TOKENLESS_PRODUCTION / 100
    if voting_total > 0:
        lim += L * voting_balance / voting_total * (100 - TOKENLESS_PRODUCTION) / 100

    lim = min(l, lim)
    old_bal: uint256 = self.working_balances[addr]
    self.working_balances[addr] = lim
    _working_supply: uint256 = self.working_supply + lim - old_bal
    self.working_supply = _working_supply

    log UpdateLiquidityLimit(addr, l, L, lim, _working_supply)


@internal
def _checkpoint_rewards(_user: address, _total_supply: uint256, _claim: bool, _receiver: address):
    """
    @notice Claim pending rewards and checkpoint rewards for a user
    """

    user_balance: uint256 = 0
    receiver: address = _receiver
    if _user != ZERO_ADDRESS:
        user_balance = self.balanceOf[_user]
        if _claim and _receiver == ZERO_ADDRESS:
            # if receiver is not explicitly declared, check if a default receiver is set
            receiver = self.rewards_receiver[_user]
            if receiver == ZERO_ADDRESS:
                # if no default receiver is set, direct claims to the user
                receiver = _user

    reward_count: uint256 = self.reward_count
    for i in range(MAX_REWARDS):
        if i == reward_count:
            break
        token: address = self.reward_tokens[i]

        integral: uint256 = self.reward_data[token].integral
        last_update: uint256 = min(block.timestamp, self.reward_data[token].period_finish)
        duration: uint256 = last_update - self.reward_data[token].last_update
        if duration != 0:
            self.reward_data[token].last_update = last_update
            if _total_supply != 0:
                integral += duration * self.reward_data[token].rate * 10**18 / _total_supply
                self.reward_data[token].integral = integral

        if _user != ZERO_ADDRESS:
            integral_for: uint256 = self.reward_integral_for[token][_user]
            new_claimable: uint256 = 0

            if integral_for < integral:
                self.reward_integral_for[token][_user] = integral
                new_claimable = user_balance * (integral - integral_for) / 10**18

            claim_data: uint256 = self.claim_data[_user][token]
            total_claimable: uint256 = shift(claim_data, -128) + new_claimable
            if total_claimable > 0:
                total_claimed: uint256 = claim_data % 2**128
                if _claim:
                    response: Bytes[32] = raw_call(
                        token,
                        concat(
                            method_id("transfer(address,uint256)"),
                            convert(receiver, bytes32),
                            convert(total_claimable, bytes32),
                        ),
                        max_outsize=32,
                    )
                    if len(response) != 0:
                        assert convert(response, bool)
                    self.claim_data[_user][token] = total_claimed + total_claimable
                elif new_claimable > 0:
                    self.claim_data[_user][token] = total_claimed + shift(total_claimable, 128)


@internal
def _checkpoint(addr: address):
    """
    @notice Checkpoint for a user
    @param addr User address
    """
    _period: int128 = self.period
    _period_time: uint256 = self.period_timestamp[_period]
    _integrate_inv_supply: uint256 = self.integrate_inv_supply[_period]
    rate: uint256 = self.inflation_rate
    new_rate: uint256 = rate
    prev_future_epoch: uint256 = self.future_epoch_time
    if prev_future_epoch >= _period_time:
        self.future_epoch_time = CRV20(CRV).future_epoch_time_write()
        new_rate = CRV20(CRV).rate()
        self.inflation_rate = new_rate

    if self.is_killed:
        # Stop distributing inflation as soon as killed
        rate = 0

    # Update integral of 1/supply
    if block.timestamp > _period_time:
        _working_supply: uint256 = self.working_supply
        Controller(GAUGE_CONTROLLER).checkpoint_gauge(self)
        prev_week_time: uint256 = _period_time
        week_time: uint256 = min((_period_time + WEEK) / WEEK * WEEK, block.timestamp)

        for i in range(500):
            dt: uint256 = week_time - prev_week_time
            w: uint256 = Controller(GAUGE_CONTROLLER).gauge_relative_weight(self, prev_week_time / WEEK * WEEK)

            if _working_supply > 0:
                if prev_future_epoch >= prev_week_time and prev_future_epoch < week_time:
                    # If we went across one or multiple epochs, apply the rate
                    # of the first epoch until it ends, and then the rate of
                    # the last epoch.
                    # If more than one epoch is crossed - the gauge gets less,
                    # but that'd meen it wasn't called for more than 1 year
                    _integrate_inv_supply += rate * w * (prev_future_epoch - prev_week_time) / _working_supply
                    rate = new_rate
                    _integrate_inv_supply += rate * w * (week_time - prev_future_epoch) / _working_supply
                else:
                    _integrate_inv_supply += rate * w * dt / _working_supply
                # On precisions of the calculation
                # rate ~= 10e18
                # last_weight > 0.01 * 1e18 = 1e16 (if pool weight is 1%)
                # _working_supply ~= TVL * 1e18 ~= 1e26 ($100M for example)
                # The largest loss is at dt = 1
                # Loss is 1e-9 - acceptable

            if week_time == block.timestamp:
                break
            prev_week_time = week_time
            week_time = min(week_time + WEEK, block.timestamp)

    _period += 1
    self.period = _period
    self.period_timestamp[_period] = block.timestamp
    self.integrate_inv_supply[_period] = _integrate_inv_supply

    # Update user-specific integrals
    _working_balance: uint256 = self.working_balances[addr]
    self.integrate_fraction[addr] += _working_balance * (_integrate_inv_supply - self.integrate_inv_supply_of[addr]) / 10 ** 18
    self.integrate_inv_supply_of[addr] = _integrate_inv_supply
    self.integrate_checkpoint_of[addr] = block.timestamp


@external
def user_checkpoint(addr: address) -> bool:
    """
    @notice Record a checkpoint for `addr`
    @param addr User address
    @return bool success
    """
    assert msg.sender in [addr, MINTER]  # dev: unauthorized
    self._checkpoint(addr)
    self._update_liquidity_limit(addr, self.balanceOf[addr], self.totalSupply)
    return True


@external
def claimable_tokens(addr: address) -> uint256:
    """
    @notice Get the number of claimable tokens per user
    @dev This function should be manually changed to "view" in the ABI
    @return uint256 number of claimable tokens per user
    """
    self._checkpoint(addr)
    return self.integrate_fraction[addr] - Minter(MINTER).minted(addr, self)


@view
@external
def claimed_reward(_addr: address, _token: address) -> uint256:
    """
    @notice Get the number of already-claimed reward tokens for a user
    @param _addr Account to get reward amount for
    @param _token Token to get reward amount for
    @return uint256 Total amount of `_token` already claimed by `_addr`
    """
    return self.claim_data[_addr][_token] % 2**128


@view
@external
def claimable_reward(_user: address, _reward_token: address) -> uint256:
    """
    @notice Get the number of claimable reward tokens for a user
    @param _user Account to get reward amount for
    @param _reward_token Token to get reward amount for
    @return uint256 Claimable reward token amount
    """
    integral: uint256 = self.reward_data[_reward_token].integral
    total_supply: uint256 = self.totalSupply
    if total_supply != 0:
        last_update: uint256 = min(block.timestamp, self.reward_data[_reward_token].period_finish)
        duration: uint256 = last_update - self.reward_data[_reward_token].last_update
        integral += (duration * self.reward_data[_reward_token].rate * 10**18 / total_supply)

    integral_for: uint256 = self.reward_integral_for[_reward_token][_user]
    new_claimable: uint256 = self.balanceOf[_user] * (integral - integral_for) / 10**18

    return shift(self.claim_data[_user][_reward_token], -128) + new_claimable


@external
def set_rewards_receiver(_receiver: address):
    """
    @notice Set the default reward receiver for the caller.
    @dev When set to ZERO_ADDRESS, rewards are sent to the caller
    @param _receiver Receiver address for any rewards claimed via `claim_rewards`
    """
    self.rewards_receiver[msg.sender] = _receiver


@external
@nonreentrant('lock')
def claim_rewards(_addr: address = msg.sender, _receiver: address = ZERO_ADDRESS):
    """
    @notice Claim available reward tokens for `_addr`
    @param _addr Address to claim for
    @param _receiver Address to transfer rewards to - if set to
                     ZERO_ADDRESS, uses the default reward receiver
                     for the caller
    """
    if _receiver != ZERO_ADDRESS:
        assert _addr == msg.sender  # dev: cannot redirect when claiming for another user
    self._checkpoint_rewards(_addr, self.totalSupply, True, _receiver)


@external
def kick(addr: address):
    """
    @notice Kick `addr` for abusing their boost
    @dev Only if either they had another voting event, or their voting escrow lock expired
    @param addr Address to kick
    """
    t_last: uint256 = self.integrate_checkpoint_of[addr]
    t_ve: uint256 = VotingEscrow(VOTING_ESCROW).user_point_history__ts(
        addr, VotingEscrow(VOTING_ESCROW).user_point_epoch(addr)
    )
    _balance: uint256 = self.balanceOf[addr]

    assert ERC20(VOTING_ESCROW).balanceOf(addr) == 0 or t_ve > t_last # dev: kick not allowed
    assert self.working_balances[addr] > _balance * TOKENLESS_PRODUCTION / 100  # dev: kick not needed

    self._checkpoint(addr)
    self._update_liquidity_limit(addr, self.balanceOf[addr], self.totalSupply)


@external
@nonreentrant('lock')
def deposit(_value: uint256, _addr: address = msg.sender, _claim_rewards: bool = False):
    """
    @notice Deposit `_value` LP tokens
    @dev Depositting also claims pending reward tokens
    @param _value Number of tokens to deposit
    @param _addr Address to deposit for
    """

    self._checkpoint(_addr)

    if _value != 0:
        is_rewards: bool = self.reward_count != 0
        total_supply: uint256 = self.totalSupply
        if is_rewards:
            self._checkpoint_rewards(_addr, total_supply, _claim_rewards, ZERO_ADDRESS)

        total_supply += _value
        new_balance: uint256 = self.balanceOf[_addr] + _value
        self.balanceOf[_addr] = new_balance
        self.totalSupply = total_supply

        self._update_liquidity_limit(_addr, new_balance, total_supply)

        ERC20(self.lp_token).transferFrom(msg.sender, self, _value)

    log Deposit(_addr, _value)
    log Transfer(ZERO_ADDRESS, _addr, _value)


@external
@nonreentrant('lock')
def withdraw(_value: uint256, _claim_rewards: bool = False):
    """
    @notice Withdraw `_value` LP tokens
    @dev Withdrawing also claims pending reward tokens
    @param _value Number of tokens to withdraw
    """
    self._checkpoint(msg.sender)

    if _value != 0:
        is_rewards: bool = self.reward_count != 0
        total_supply: uint256 = self.totalSupply
        if is_rewards:
            self._checkpoint_rewards(msg.sender, total_supply, _claim_rewards, ZERO_ADDRESS)

        total_supply -= _value
        new_balance: uint256 = self.balanceOf[msg.sender] - _value
        self.balanceOf[msg.sender] = new_balance
        self.totalSupply = total_supply

        self._update_liquidity_limit(msg.sender, new_balance, total_supply)

        ERC20(self.lp_token).transfer(msg.sender, _value)

    log Withdraw(msg.sender, _value)
    log Transfer(msg.sender, ZERO_ADDRESS, _value)


@internal
def _transfer(_from: address, _to: address, _value: uint256):
    self._checkpoint(_from)
    self._checkpoint(_to)

    if _value != 0:
        total_supply: uint256 = self.totalSupply
        is_rewards: bool = self.reward_count != 0
        if is_rewards:
            self._checkpoint_rewards(_from, total_supply, False, ZERO_ADDRESS)
        new_balance: uint256 = self.balanceOf[_from] - _value
        self.balanceOf[_from] = new_balance
        self._update_liquidity_limit(_from, new_balance, total_supply)

        if is_rewards:
            self._checkpoint_rewards(_to, total_supply, False, ZERO_ADDRESS)
        new_balance = self.balanceOf[_to] + _value
        self.balanceOf[_to] = new_balance
        self._update_liquidity_limit(_to, new_balance, total_supply)

    log Transfer(_from, _to, _value)


@external
@nonreentrant('lock')
def transfer(_to : address, _value : uint256) -> bool:
    """
    @notice Transfer token for a specified address
    @dev Transferring claims pending reward tokens for the sender and receiver
    @param _to The address to transfer to.
    @param _value The amount to be transferred.
    """
    self._transfer(msg.sender, _to, _value)

    return True


@external
@nonreentrant('lock')
def transferFrom(_from : address, _to : address, _value : uint256) -> bool:
    """
     @notice Transfer tokens from one address to another.
     @dev Transferring claims pending reward tokens for the sender and receiver
     @param _from address The address which you want to send tokens from
     @param _to address The address which you want to transfer to
     @param _value uint256 the amount of tokens to be transferred
    """
    _allowance: uint256 = self.allowance[_from][msg.sender]
    if _allowance != MAX_UINT256:
        self.allowance[_from][msg.sender] = _allowance - _value

    self._transfer(_from, _to, _value)

    return True


@external
def approve(_spender : address, _value : uint256) -> bool:
    """
    @notice Approve the passed address to transfer the specified amount of
            tokens on behalf of msg.sender
    @dev Beware that changing an allowance via this method brings the risk
         that someone may use both the old and new allowance by unfortunate
         transaction ordering. This may be mitigated with the use of
         {incraseAllowance} and {decreaseAllowance}.
         https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    @param _spender The address which will transfer the funds
    @param _value The amount of tokens that may be transferred
    @return bool success
    """
    self.allowance[msg.sender][_spender] = _value
    log Approval(msg.sender, _spender, _value)

    return True


@external
def increaseAllowance(_spender: address, _added_value: uint256) -> bool:
    """
    @notice Increase the allowance granted to `_spender` by the caller
    @dev This is alternative to {approve} that can be used as a mitigation for
         the potential race condition
    @param _spender The address which will transfer the funds
    @param _added_value The amount of to increase the allowance
    @return bool success
    """
    allowance: uint256 = self.allowance[msg.sender][_spender] + _added_value
    self.allowance[msg.sender][_spender] = allowance

    log Approval(msg.sender, _spender, allowance)

    return True


@external
def decreaseAllowance(_spender: address, _subtracted_value: uint256) -> bool:
    """
    @notice Decrease the allowance granted to `_spender` by the caller
    @dev This is alternative to {approve} that can be used as a mitigation for
         the potential race condition
    @param _spender The address which will transfer the funds
    @param _subtracted_value The amount of to decrease the allowance
    @return bool success
    """
    allowance: uint256 = self.allowance[msg.sender][_spender] - _subtracted_value
    self.allowance[msg.sender][_spender] = allowance

    log Approval(msg.sender, _spender, allowance)

    return True


@external
def add_reward(_reward_token: address, _distributor: address):
    """
    @notice Set the active reward contract
    """
    assert msg.sender == Factory(self.factory).admin()  # dev: only owner

    reward_count: uint256 = self.reward_count
    assert reward_count < MAX_REWARDS
    assert self.reward_data[_reward_token].distributor == ZERO_ADDRESS

    self.reward_data[_reward_token].distributor = _distributor
    self.reward_tokens[reward_count] = _reward_token
    self.reward_count = reward_count + 1


@external
def set_reward_distributor(_reward_token: address, _distributor: address):
    current_distributor: address = self.reward_data[_reward_token].distributor

    assert msg.sender == current_distributor or msg.sender == Factory(self.factory).admin()
    assert current_distributor != ZERO_ADDRESS
    assert _distributor != ZERO_ADDRESS

    self.reward_data[_reward_token].distributor = _distributor


@external
@nonreentrant("lock")
def deposit_reward_token(_reward_token: address, _amount: uint256):
    assert msg.sender == self.reward_data[_reward_token].distributor

    self._checkpoint_rewards(ZERO_ADDRESS, self.totalSupply, False, ZERO_ADDRESS)

    response: Bytes[32] = raw_call(
        _reward_token,
        concat(
            method_id("transferFrom(address,address,uint256)"),
            convert(msg.sender, bytes32),
            convert(self, bytes32),
            convert(_amount, bytes32),
        ),
        max_outsize=32,
    )
    if len(response) != 0:
        assert convert(response, bool)

    period_finish: uint256 = self.reward_data[_reward_token].period_finish
    if block.timestamp >= period_finish:
        self.reward_data[_reward_token].rate = _amount / WEEK
    else:
        remaining: uint256 = period_finish - block.timestamp
        leftover: uint256 = remaining * self.reward_data[_reward_token].rate
        self.reward_data[_reward_token].rate = (_amount + leftover) / WEEK

    self.reward_data[_reward_token].last_update = block.timestamp
    self.reward_data[_reward_token].period_finish = block.timestamp + WEEK


@external
def set_killed(_is_killed: bool):
    """
    @notice Set the killed status for this contract
    @dev When killed, the gauge always yields a rate of 0 and so cannot mint CRV
    @param _is_killed Killed status to set
    """
    assert msg.sender == Factory(self.factory).admin()  # dev: only owner

    self.is_killed = _is_killed

Contract Security Audit

Contract ABI

[{"name":"Deposit","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Withdraw","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateLiquidityLimit","inputs":[{"name":"user","type":"address","indexed":false},{"name":"original_balance","type":"uint256","indexed":false},{"name":"original_supply","type":"uint256","indexed":false},{"name":"working_balance","type":"uint256","indexed":false},{"name":"working_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"CommitOwnership","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"ApplyOwnership","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"Transfer","inputs":[{"name":"_from","type":"address","indexed":true},{"name":"_to","type":"address","indexed":true},{"name":"_value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"name":"_owner","type":"address","indexed":true},{"name":"_spender","type":"address","indexed":true},{"name":"_value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_lp_token","type":"address"},{"name":"_factory","type":"address"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":288},{"stateMutability":"view","type":"function","name":"integrate_checkpoint","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":4560},{"stateMutability":"nonpayable","type":"function","name":"user_checkpoint","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":3123796},{"stateMutability":"nonpayable","type":"function","name":"claimable_tokens","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3038616},{"stateMutability":"view","type":"function","name":"claimed_reward","inputs":[{"name":"_addr","type":"address"},{"name":"_token","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3006},{"stateMutability":"view","type":"function","name":"claimable_reward","inputs":[{"name":"_user","type":"address"},{"name":"_reward_token","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":20225},{"stateMutability":"nonpayable","type":"function","name":"set_rewards_receiver","inputs":[{"name":"_receiver","type":"address"}],"outputs":[],"gas":35643},{"stateMutability":"nonpayable","type":"function","name":"claim_rewards","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"claim_rewards","inputs":[{"name":"_addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"claim_rewards","inputs":[{"name":"_addr","type":"address"},{"name":"_receiver","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"kick","inputs":[{"name":"addr","type":"address"}],"outputs":[],"gas":3137887},{"stateMutability":"nonpayable","type":"function","name":"deposit","inputs":[{"name":"_value","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"deposit","inputs":[{"name":"_value","type":"uint256"},{"name":"_addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"deposit","inputs":[{"name":"_value","type":"uint256"},{"name":"_addr","type":"address"},{"name":"_claim_rewards","type":"bool"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"withdraw","inputs":[{"name":"_value","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"withdraw","inputs":[{"name":"_value","type":"uint256"},{"name":"_claim_rewards","type":"bool"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":18062406},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":18100356},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":38121},{"stateMutability":"nonpayable","type":"function","name":"increaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_added_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":40665},{"stateMutability":"nonpayable","type":"function","name":"decreaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_subtracted_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":40689},{"stateMutability":"nonpayable","type":"function","name":"add_reward","inputs":[{"name":"_reward_token","type":"address"},{"name":"_distributor","type":"address"}],"outputs":[],"gas":115384},{"stateMutability":"nonpayable","type":"function","name":"set_reward_distributor","inputs":[{"name":"_reward_token","type":"address"},{"name":"_distributor","type":"address"}],"outputs":[],"gas":43149},{"stateMutability":"nonpayable","type":"function","name":"deposit_reward_token","inputs":[{"name":"_reward_token","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[],"gas":1540007},{"stateMutability":"nonpayable","type":"function","name":"set_killed","inputs":[{"name":"_is_killed","type":"bool"}],"outputs":[],"gas":40499},{"stateMutability":"view","type":"function","name":"lp_token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2988},{"stateMutability":"view","type":"function","name":"future_epoch_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3018},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3263},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3078},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3538},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13368},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":11121},{"stateMutability":"view","type":"function","name":"working_balances","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3413},{"stateMutability":"view","type":"function","name":"working_supply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3228},{"stateMutability":"view","type":"function","name":"period","inputs":[],"outputs":[{"name":"","type":"int128"}],"gas":3258},{"stateMutability":"view","type":"function","name":"period_timestamp","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3333},{"stateMutability":"view","type":"function","name":"integrate_inv_supply","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3363},{"stateMutability":"view","type":"function","name":"integrate_inv_supply_of","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3563},{"stateMutability":"view","type":"function","name":"integrate_checkpoint_of","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3593},{"stateMutability":"view","type":"function","name":"integrate_fraction","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3623},{"stateMutability":"view","type":"function","name":"inflation_rate","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3438},{"stateMutability":"view","type":"function","name":"reward_count","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3468},{"stateMutability":"view","type":"function","name":"reward_tokens","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":3543},{"stateMutability":"view","type":"function","name":"reward_data","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"token","type":"address"},{"name":"distributor","type":"address"},{"name":"period_finish","type":"uint256"},{"name":"rate","type":"uint256"},{"name":"last_update","type":"uint256"},{"name":"integral","type":"uint256"}],"gas":14973},{"stateMutability":"view","type":"function","name":"rewards_receiver","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"address"}],"gas":3773},{"stateMutability":"view","type":"function","name":"reward_integral_for","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":4018},{"stateMutability":"view","type":"function","name":"is_killed","inputs":[],"outputs":[{"name":"","type":"bool"}],"gas":3618},{"stateMutability":"view","type":"function","name":"factory","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3648}]

6040612e76610140396020612e7660c03960c05160a01c612e715760206020612e760160c03960c05160a01c612e7157600654612e715761014051600655610160516c02863c1f5cdae420000000002755606061024060046395d89b416101e0526101fc610140515afa15612e7157603f3d1115612e7157601b6102406102405101511015612e71576000506102608051602001806101808284600060045af115612e71575050600060096101e0527f43757276652e6669200000000000000000000000000000000000000000000000610200526101e06009806020846102a001018260208501600060045af1505080518201915050610180601a806020846102a001018260208501600060045af1505080518201915050600e610240527f204761756765204465706f73697400000000000000000000000000000000000061026052610240600e806020846102a001018260208501600060045af1505080518201915050806102a0526102a0905080600b602082510161012060006003818352015b82610120516020021115610195576101b7565b61012051602002850151610120518501555b8151600101808352811415610182575b5050505050506000610180601a8060208461024001018260208501600060045af150508051820191505060066101e0527f2d67617567650000000000000000000000000000000000000000000000000000610200526101e060068060208461024001018260208501600060045af15050805182019150508061024052610240905080600f602082510161012060006002818352015b8261012051602002111561025f57610281565b61012051602002850151610120518501555b815160010180835281141561024c575b5050505050504260155560206102406004632c4e722e6101e0526101fc73d533a949740bb3306d119cc777fa900ba034cd525afa15612e7157601f3d1115612e7157600050610240516c02863c1f5cdae4200000000018556020610240600463b26b238e6101e0526101fc600073d533a949740bb3306d119cc777fa900ba034cd525af115612e7157601f3d1115612e715760005061024051600755612e5956600436101561000d57611a68565b600035601c5260005134612b325763313ce56781141561003257601260005260206000f35b63d31f3f6d8114156100665760016014546c01431e0fae6d7217caa0000000811015612b3257026015015460005260206000f35b634b8200938114156101475760043560a01c612b32576004356101605273d061d61a4d941c39e5453435b6345dc261c2fce06101805260006101405261014061012060006002818352015b6101205160200261016001513314156100cd57600183526100de565b5b81516001018083528114156100b1575b5050506101405115612b3257600435610140526101405160065801612219565b60005060043561014052600860043560e05260c052604060c02054610160526009546101805261018051610160516101405160065801611a6e565b600050600160005260206000f35b63331345838114156101f35760043560a01c612b3257600435610140526101405160065801612219565b6000506c02863c1f5cdae420000000001760043560e05260c052604060c0205460206101e06044638b752bb06101405260043561016052306101805261015c73d061d61a4d941c39e5453435b6345dc261c2fce05afa15612b3257601f3d1115612b32576000506101e051808210612b32578082039050905060005260206000f35b63e77e74378114156102605760043560a01c612b325760243560a01c612b32576c02863c1f5cdae420000000002560043560e05260c052604060c02060243560e05260c052604060c020547001000000000000000000000000000000008082069050905060005260206000f35b6333fd6f748114156104775760043560a01c612b325760243560a01c612b325760056c02863c1f5cdae420000000002260243560e05260c052604060c0200154610140526009546101605260006101605118156103ab574260026c02863c1f5cdae420000000002260243560e05260c052604060c0200154808211156102e657806102e8565b815b90509050610180526101805160046c02863c1f5cdae420000000002260243560e05260c052604060c0200154808210612b3257808203905090506101a05261014080516101a05160036c02863c1f5cdae420000000002260243560e05260c052604060c0200154808202821582848304141715612b325780905090509050670de0b6b3a7640000808202821582848304141715612b32578090509050905061016051808015612b32578204905090508181830110612b3257808201905090508152505b6c02863c1f5cdae420000000002460243560e05260c052604060c02060043560e05260c052604060c0205461018052600860043560e05260c052604060c020546101405161018051808210612b325780820390509050808202821582848304141715612b325780905090509050670de0b6b3a7640000808204905090506101a0526c02863c1f5cdae420000000002560043560e05260c052604060c02060243560e05260c052604060c0205460801c6101a0518181830110612b32578082019050905060005260206000f35b63bdf981168114156104ad5760043560a01c612b32576004356c02863c1f5cdae42000000000233360e05260c052604060c02055005b63e6f1daf28114156104c9573361014052600061016052610532565b6384e9bd7e8114156104f55760006101605260043560a01c612b32576020600461014037600050610532565b639faceb1b81141561052d5760043560a01c612b3257602060046101403760243560a01c612b32576020602461016037600050610532565b6105a6565b600054612b3257600160005560006101605118156105565733610140511415612b32575b610140516101605161014051610180526009546101a05260016101c052610160516101e0526101e0516101c0516101a0516101805160065801611c82565b61016052610140526000506000600055005b6396c551758114156107a85760043560a01c612b32576c02863c1f5cdae420000000001660043560e05260c052604060c020546101405260206102c0604463da020a1861022052600435610240526020610200602463010ae757610180526004356101a05261019c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b3257600050610200516102605261023c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b32576000506102c05161016052600860043560e05260c052604060c020546101805260206102c060246370a08231610240526004356102605261025c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b32576000506102c0516106d75760016106e1565b6101405161016051115b5b15612b3257610180516028808202821582848304141715612b325780905090509050606480820490509050601260043560e05260c052604060c020541115612b32576101405161016051610180516004356101a0526101a05160065801612219565b6101805261016052610140526000506101405161016051610180516004356101a052600860043560e05260c052604060c020546101c0526009546101e0526101e0516101c0516101a05160065801611a6e565b610180526101605261014052600050005b63b6b55f258114156107c457336101405260006101605261082d565b636e553f658114156107f05760006101605260243560a01c612b3257602060246101403760005061082d565b6383df67478114156108285760243560a01c612b3257602060246101403760443560011c612b3257602060446101603760005061082d565b610a55565b600154612b32576001600155610140516101605161014051610180526101805160065801612219565b6101605261014052600050600060043518156109e85760006c02863c1f5cdae4200000000019541415610180526009546101a05261018051156108ee576101405161016051610180516101a051610140516101c0526101a0516101e052610160516102005260006102205261022051610200516101e0516101c05160065801611c82565b6101a0526101805261016052610140526000505b6101a080516004358181830110612b32578082019050905081525060086101405160e05260c052604060c020546004358181830110612b3257808201905090506101c0526101c05160086101405160e05260c052604060c020556101a0516009556101405161016051610180516101a0516101c051610140516101e0526101c051610200526101a0516102205261022051610200516101e05160065801611a6e565b6101c0526101a05261018052610160526101405260005060206102a060646323b872dd6101e05233610200523061022052600435610240526101fc60006006545af115612b3257601f3d1115612b32576000506102a0505b60043561018052610140517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c6020610180a2600435610180526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610180a36000600155005b632e1a7d4d811415610a6c57600061014052610a97565b6338d07436811415610a925760243560011c612b32576020602461014037600050610a97565b610c89565b600254612b325760016002556101405133610160526101605160065801612219565b6101405260005060006004351815610c225760006c02863c1f5cdae420000000001954141561016052600954610180526101605115610b4257610140516101605161018051336101a052610180516101c052610140516101e052600061020052610200516101e0516101c0516101a05160065801611c82565b6101805261016052610140526000505b6101808051600435808210612b32578082039050905081525060083360e05260c052604060c02054600435808210612b3257808203905090506101a0526101a05160083360e05260c052604060c02055610180516009556101405161016051610180516101a051336101c0526101a0516101e0526101805161020052610200516101e0516101c05160065801611a6e565b6101a0526101805261016052610140526000506020610260604463a9059cbb6101c052336101e052600435610200526101dc60006006545af115612b3257601f3d1115612b3257600050610260505b60043561016052337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243646020610160a2600435610160526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610160a36000600255005b63a9059cbb811415610ce657600354612b3257600160035560043560a01c612b32573361014052600435610160526024356101805261018051610160516101405160065801612810565b6000506001600052600060035560206000f35b6323b872dd811415610dd657600454612b3257600160045560043560a01c612b325760243560a01c612b3257600a60043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610140511815610d915761014051604435808210612b325780820390509050600a60043560e05260c052604060c0203360e05260c052604060c020555b6101405160043561016052602435610180526044356101a0526101a051610180516101605160065801612810565b610140526000506001600052600060045560206000f35b63095ea7b3811415610e495760043560a01c612b3257602435600a3360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b6339509351811415610ef25760043560a01c612b3257600a3360e05260c052604060c02060043560e05260c052604060c020546024358181830110612b3257808201905090506101405261014051600a3360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b63a457c2d7811415610f995760043560a01c612b3257600a3360e05260c052604060c02060043560e05260c052604060c02054602435808210612b3257808203905090506101405261014051600a3360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b63e8de0d4d8114156110a95760043560a01c612b325760243560a01c612b325760206101a0600463f851a4406101405261015c6c02863c1f5cdae4200000000027545afa15612b3257601f3d1115612b32576000506101a051331415612b32576c02863c1f5cdae420000000001954610140526008610140511015612b325760016c02863c1f5cdae420000000002260043560e05260c052604060c0200154612b325760243560016c02863c1f5cdae420000000002260043560e05260c052604060c02001556004356001610140516008811015612b3257026c02863c1f5cdae420000000001a01556101405160018181830110612b3257808201905090506c02863c1f5cdae420000000001955005b63058a3a2481141561117d5760043560a01c612b325760243560a01c612b325760016c02863c1f5cdae420000000002260043560e05260c052604060c020015461014052610140513314156110ff57600161113b565b6020610240600463f851a4406101e0526101fc6c02863c1f5cdae4200000000027545afa15612b3257601f3d1115612b32576000506102405133145b5b15612b32576000610140511815612b325760006024351815612b325760243560016c02863c1f5cdae420000000002260043560e05260c052604060c0200155005b6393f7aa6781141561148257600554612b3257600160055560043560a01c612b325760016c02863c1f5cdae420000000002260043560e05260c052604060c0200154331415612b32576000610140526009546101605260006101805260006101a0526101a05161018051610160516101405160065801611c82565b600050600060046101a0527f23b872dd000000000000000000000000000000000000000000000000000000006101c0526101a060048060208461020001018260208501600060045af15050805182019150503360208261020001015260208101905030602082610200010152602081019050602435602082610200010152602081019050806102005261020090508051602001806102c08284600060045af115612b3257505060206103a06102c0516102e060006004355af115612b325760203d808211156112c757806112c9565b815b90509050610380526103808051602001806101408284600060045af115612b32575050600061014051181561132b576101408060200151600082518060209013612b325780919012612b3257806020036101000a820490509050905015612b32575b60026c02863c1f5cdae420000000002260043560e05260c052604060c02001546101a0526101a051421061138c5760243562093a808082049050905060036c02863c1f5cdae420000000002260043560e05260c052604060c0200155611425565b6101a05142808210612b3257808203905090506101c0526101c05160036c02863c1f5cdae420000000002260043560e05260c052604060c0200154808202821582848304141715612b3257809050905090506101e0526024356101e0518181830110612b32578082019050905062093a808082049050905060036c02863c1f5cdae420000000002260043560e05260c052604060c02001555b4260046c02863c1f5cdae420000000002260043560e05260c052604060c02001554262093a808181830110612b32578082019050905060026c02863c1f5cdae420000000002260043560e05260c052604060c02001556000600555005b6390b229978114156114ec5760043560011c612b325760206101a0600463f851a4406101405261015c6c02863c1f5cdae4200000000027545afa15612b3257601f3d1115612b32576000506101a051331415612b32576004356c02863c1f5cdae420000000002655005b6382c630668114156115045760065460005260206000f35b63be5d1be981141561151c5760075460005260206000f35b6370a0823181141561154c5760043560a01c612b3257600860043560e05260c052604060c0205460005260206000f35b6318160ddd8114156115645760095460005260206000f35b63dd62ed3e8114156115ac5760043560a01c612b325760243560a01c612b3257600a60043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6306fdde0381141561164957600b80610180602082540161012060006003818352015b826101205160200211156115e257611604565b61012051850154610120516020028501525b81516001018083528114156115cf575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b418114156116e657600f80610180602082540161012060006002818352015b8261012051602002111561167f576116a1565b61012051850154610120516020028501525b815160010180835281141561166c575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6313ecb1ca8114156117165760043560a01c612b3257601260043560e05260c052604060c0205460005260206000f35b6317e2808981141561172e5760135460005260206000f35b63ef78d4fd8114156117465760145460005260206000f35b637598108c81141561177a5760016004356c01431e0fae6d7217caa0000000811015612b3257026015015460005260206000f35b63fec8ee0c8114156117ba5760016004356c01431e0fae6d7217caa0000000811015612b3257026c01431e0fae6d72100000000015015460005260206000f35b63de263bfa8114156117f65760043560a01c612b32576c02863c1f5cdae420000000001560043560e05260c052604060c0205460005260206000f35b639bd324f28114156118325760043560a01c612b32576c02863c1f5cdae420000000001660043560e05260c052604060c0205460005260206000f35b630940070781141561186e5760043560a01c612b32576c02863c1f5cdae420000000001760043560e05260c052604060c0205460005260206000f35b63180692d0811415611892576c02863c1f5cdae42000000000185460005260206000f35b63963c94b98114156118b6576c02863c1f5cdae42000000000195460005260206000f35b6354c49fe98114156118ea5760016004356008811015612b3257026c02863c1f5cdae420000000001a015460005260206000f35b6348e9c65e81141561198e5760043560a01c612b32576c02863c1f5cdae420000000002260043560e05260c052604060c0206101408080808454815250506020810190508080600185015481525050602081019050808060028501548152505060208101905080806003850154815250506020810190508080600485015481525050602081019050808060058501548152505060c09050905060c05260c051610140f35b6301ddabf18114156119ca5760043560a01c612b32576c02863c1f5cdae420000000002360043560e05260c052604060c0205460005260206000f35b63f05cc058811415611a1e5760043560a01c612b325760243560a01c612b32576c02863c1f5cdae420000000002460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b639c868ac0811415611a42576c02863c1f5cdae42000000000265460005260206000f35b63c45a0155811415611a66576c02863c1f5cdae42000000000275460005260206000f35b505b60006000fd5b6101a052610140526101605261018052602061026060246370a082316101e05261014051610200526101fc735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b3257600050610260516101c052602061026060046318160ddd6102005261021c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b3257600050610260516101e052610160516028808202821582848304141715612b3257809050905090506064808204905090506102005260006101e0511115611bad576102008051610180516101c051808202821582848304141715612b3257809050905090506101e051808015612b3257820490509050603c808202821582848304141715612b3257809050905090506064808204905090508181830110612b3257808201905090508152505b610160516102005180821115611bc35780611bc5565b815b905090506102005260126101405160e05260c052604060c02054610220526102005160126101405160e05260c052604060c02055601354610200518181830110612b32578082019050905061022051808210612b325780820390509050610240526102405160135561014051610260526101605161028052610180516102a052610200516102c052610240516102e0527f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a360a0610260a16101a051565b6101c0526101405261016052610180526101a05260006101e0526101a051610200526000610140511815611d165760086101405160e05260c052604060c020546101e0526101805115611cd9576101a05115611cdc565b60005b15611d15576c02863c1f5cdae42000000000236101405160e05260c052604060c020546102005261020051611d145761014051610200525b5b5b6c02863c1f5cdae4200000000019546102205261024060006008818352015b61022051610240511415611d4857612211565b6001610240516008811015612b3257026c02863c1f5cdae420000000001a01546102605260056c02863c1f5cdae42000000000226102605160e05260c052604060c0200154610280524260026c02863c1f5cdae42000000000226102605160e05260c052604060c020015480821115611dc15780611dc3565b815b905090506102a0526102a05160046c02863c1f5cdae42000000000226102605160e05260c052604060c0200154808210612b3257808203905090506102c05260006102c0511815611eeb576102a05160046c02863c1f5cdae42000000000226102605160e05260c052604060c02001556000610160511815611eea5761028080516102c05160036c02863c1f5cdae42000000000226102605160e05260c052604060c0200154808202821582848304141715612b325780905090509050670de0b6b3a7640000808202821582848304141715612b32578090509050905061016051808015612b32578204905090508181830110612b3257808201905090508152506102805160056c02863c1f5cdae42000000000226102605160e05260c052604060c02001555b5b6000610140511815612200576c02863c1f5cdae42000000000246102605160e05260c052604060c0206101405160e05260c052604060c020546102e052600061030052610280516102e0511015611fb357610280516c02863c1f5cdae42000000000246102605160e05260c052604060c0206101405160e05260c052604060c020556101e051610280516102e051808210612b325780820390509050808202821582848304141715612b325780905090509050670de0b6b3a764000080820490509050610300525b6c02863c1f5cdae42000000000256101405160e05260c052604060c0206102605160e05260c052604060c02054610320526103205160801c610300518181830110612b3257808201905090506103405260006103405111156121ff5761032051700100000000000000000000000000000000808206905090506103605261018051156121a857600060046103e0527fa9059cbb00000000000000000000000000000000000000000000000000000000610400526103e060048060208461044001018260208501600060045af15050805182019150506102005160208261044001015260208101905061034051602082610440010152602081019050806104405261044090508051602001806104e08284600060045af115612b3257505060206105a06104e0516105006000610260515af115612b325760203d808211156120fa57806120fc565b815b90509050610580526105808051602001806103808284600060045af115612b32575050600061038051181561215e576103808060200151600082518060209013612b325780919012612b3257806020036101000a820490509050905015612b32575b61036051610340518181830110612b3257808201905090506c02863c1f5cdae42000000000256101405160e05260c052604060c0206102605160e05260c052604060c020556121fe565b60006103005111156121fd57610360516103405160801b8181830110612b3257808201905090506c02863c1f5cdae42000000000256101405160e05260c052604060c0206102605160e05260c052604060c020555b5b5b5b5b8151600101808352811415611d35575b50506101c051565b6101605261014052601454610180526001610180516c01431e0fae6d7217caa0000000811015612b325702601501546101a0526001610180516c01431e0fae6d7217caa0000000811015612b3257026c01431e0fae6d7210000000001501546101c0526c02863c1f5cdae4200000000018546101e0526101e05161020052600754610220526101a05161022051106123465760206102a0600463b26b238e6102405261025c600073d533a949740bb3306d119cc777fa900ba034cd525af115612b3257601f3d1115612b32576000506102a05160075560206102a06004632c4e722e6102405261025c73d533a949740bb3306d119cc777fa900ba034cd525afa15612b3257601f3d1115612b32576000506102a05161020052610200516c02863c1f5cdae4200000000018555b6c02863c1f5cdae420000000002654156123615760006101e0525b6101a0514211156126a75760135461024052732f50d538606fa9edd2b11e2446beb18c9d5846bb3b15612b325760006000602463615e523761026052306102805261027c6000732f50d538606fa9edd2b11e2446beb18c9d5846bb5af115612b32576101a051610260526101a05162093a808181830110612b32578082019050905062093a808082049050905062093a80808202821582848304141715612b3257809050905090504280821115612418578061241a565b815b90509050610280526102a060006101f4818352015b6102805161026051808210612b3257808203905090506102c05260206103a0604463d3078c946103005230610320526102605162093a808082049050905062093a80808202821582848304141715612b3257809050905090506103405261031c732f50d538606fa9edd2b11e2446beb18c9d5846bb5afa15612b3257601f3d1115612b32576000506103a0516102e052600061024051111561264a576102605161022051106124e6576102805161022051106124e9565b60005b156125e5576101c080516101e0516102e051808202821582848304141715612b3257809050905090506102205161026051808210612b325780820390509050808202821582848304141715612b32578090509050905061024051808015612b32578204905090508181830110612b325780820190509050815250610200516101e0526101c080516101e0516102e051808202821582848304141715612b3257809050905090506102805161022051808210612b325780820390509050808202821582848304141715612b32578090509050905061024051808015612b32578204905090508181830110612b325780820190509050815250612649565b6101c080516101e0516102e051808202821582848304141715612b3257809050905090506102c051808202821582848304141715612b32578090509050905061024051808015612b32578204905090508181830110612b3257808201905090508152505b5b4261028051141561265a576126a4565b61028051610260526102805162093a808181830110612b3257808201905090504280821115612689578061268b565b815b90509050610280525b815160010180835281141561242f575b50505b61018080516001808201808060008112156126be57195b607f1c612b325790509050905081525061018051601455426001610180516c01431e0fae6d7217caa0000000811015612b325702601501556101c0516001610180516c01431e0fae6d7217caa0000000811015612b3257026c01431e0fae6d72100000000015015560126101405160e05260c052604060c02054610240526c02863c1f5cdae42000000000176101405160e05260c052604060c0208054610240516101c0516c02863c1f5cdae42000000000156101405160e05260c052604060c02054808210612b325780820390509050808202821582848304141715612b325780905090509050670de0b6b3a7640000808204905090508181830110612b3257808201905090508155506101c0516c02863c1f5cdae42000000000156101405160e05260c052604060c02055426c02863c1f5cdae42000000000166101405160e05260c052604060c0205561016051565b6101a0526101405261016052610180526101405161016051610180516101a051610140516101c0526101c05160065801612219565b6101a0526101805261016052610140526000506101405161016051610180516101a051610160516101c0526101c05160065801612219565b6101a0526101805261016052610140526000506000610180511815612af5576009546101c05260006c02863c1f5cdae42000000000195414156101e0526101e0511561292c576101405161016051610180516101a0516101c0516101e05161014051610200526101c051610220526000610240526000610260526102605161024051610220516102005160065801611c82565b6101e0526101c0526101a0526101805261016052610140526000505b60086101405160e05260c052604060c0205461018051808210612b325780820390509050610200526102005160086101405160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610140516102205261020051610240526101c0516102605261026051610240516102205160065801611a6e565b610200526101e0526101c0526101a0526101805261016052610140526000506101e05115612a4c576101405161016051610180516101a0516101c0516101e0516102005161016051610220526101c051610240526000610260526000610280526102805161026051610240516102205160065801611c82565b610200526101e0526101c0526101a0526101805261016052610140526000505b60086101605160e05260c052604060c02054610180518181830110612b325780820190509050610200526102005160086101605160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610160516102205261020051610240526101c0516102605261026051610240516102205160065801611a6e565b610200526101e0526101c0526101a0526101805261016052610140526000505b610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a051565b600080fd5b610322612e5903610322600039610322612e59036000f35b600080fd0000000000000000000000005a6a4d54456819380173272a5e8e9b9904bdf41b000000000000000000000000b9fc157394af804a3578134a6585c0dc9cc990d4

Deployed Bytecode

0x600436101561000d57611a68565b600035601c5260005134612b325763313ce56781141561003257601260005260206000f35b63d31f3f6d8114156100665760016014546c01431e0fae6d7217caa0000000811015612b3257026015015460005260206000f35b634b8200938114156101475760043560a01c612b32576004356101605273d061d61a4d941c39e5453435b6345dc261c2fce06101805260006101405261014061012060006002818352015b6101205160200261016001513314156100cd57600183526100de565b5b81516001018083528114156100b1575b5050506101405115612b3257600435610140526101405160065801612219565b60005060043561014052600860043560e05260c052604060c02054610160526009546101805261018051610160516101405160065801611a6e565b600050600160005260206000f35b63331345838114156101f35760043560a01c612b3257600435610140526101405160065801612219565b6000506c02863c1f5cdae420000000001760043560e05260c052604060c0205460206101e06044638b752bb06101405260043561016052306101805261015c73d061d61a4d941c39e5453435b6345dc261c2fce05afa15612b3257601f3d1115612b32576000506101e051808210612b32578082039050905060005260206000f35b63e77e74378114156102605760043560a01c612b325760243560a01c612b32576c02863c1f5cdae420000000002560043560e05260c052604060c02060243560e05260c052604060c020547001000000000000000000000000000000008082069050905060005260206000f35b6333fd6f748114156104775760043560a01c612b325760243560a01c612b325760056c02863c1f5cdae420000000002260243560e05260c052604060c0200154610140526009546101605260006101605118156103ab574260026c02863c1f5cdae420000000002260243560e05260c052604060c0200154808211156102e657806102e8565b815b90509050610180526101805160046c02863c1f5cdae420000000002260243560e05260c052604060c0200154808210612b3257808203905090506101a05261014080516101a05160036c02863c1f5cdae420000000002260243560e05260c052604060c0200154808202821582848304141715612b325780905090509050670de0b6b3a7640000808202821582848304141715612b32578090509050905061016051808015612b32578204905090508181830110612b3257808201905090508152505b6c02863c1f5cdae420000000002460243560e05260c052604060c02060043560e05260c052604060c0205461018052600860043560e05260c052604060c020546101405161018051808210612b325780820390509050808202821582848304141715612b325780905090509050670de0b6b3a7640000808204905090506101a0526c02863c1f5cdae420000000002560043560e05260c052604060c02060243560e05260c052604060c0205460801c6101a0518181830110612b32578082019050905060005260206000f35b63bdf981168114156104ad5760043560a01c612b32576004356c02863c1f5cdae42000000000233360e05260c052604060c02055005b63e6f1daf28114156104c9573361014052600061016052610532565b6384e9bd7e8114156104f55760006101605260043560a01c612b32576020600461014037600050610532565b639faceb1b81141561052d5760043560a01c612b3257602060046101403760243560a01c612b32576020602461016037600050610532565b6105a6565b600054612b3257600160005560006101605118156105565733610140511415612b32575b610140516101605161014051610180526009546101a05260016101c052610160516101e0526101e0516101c0516101a0516101805160065801611c82565b61016052610140526000506000600055005b6396c551758114156107a85760043560a01c612b32576c02863c1f5cdae420000000001660043560e05260c052604060c020546101405260206102c0604463da020a1861022052600435610240526020610200602463010ae757610180526004356101a05261019c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b3257600050610200516102605261023c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b32576000506102c05161016052600860043560e05260c052604060c020546101805260206102c060246370a08231610240526004356102605261025c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b32576000506102c0516106d75760016106e1565b6101405161016051115b5b15612b3257610180516028808202821582848304141715612b325780905090509050606480820490509050601260043560e05260c052604060c020541115612b32576101405161016051610180516004356101a0526101a05160065801612219565b6101805261016052610140526000506101405161016051610180516004356101a052600860043560e05260c052604060c020546101c0526009546101e0526101e0516101c0516101a05160065801611a6e565b610180526101605261014052600050005b63b6b55f258114156107c457336101405260006101605261082d565b636e553f658114156107f05760006101605260243560a01c612b3257602060246101403760005061082d565b6383df67478114156108285760243560a01c612b3257602060246101403760443560011c612b3257602060446101603760005061082d565b610a55565b600154612b32576001600155610140516101605161014051610180526101805160065801612219565b6101605261014052600050600060043518156109e85760006c02863c1f5cdae4200000000019541415610180526009546101a05261018051156108ee576101405161016051610180516101a051610140516101c0526101a0516101e052610160516102005260006102205261022051610200516101e0516101c05160065801611c82565b6101a0526101805261016052610140526000505b6101a080516004358181830110612b32578082019050905081525060086101405160e05260c052604060c020546004358181830110612b3257808201905090506101c0526101c05160086101405160e05260c052604060c020556101a0516009556101405161016051610180516101a0516101c051610140516101e0526101c051610200526101a0516102205261022051610200516101e05160065801611a6e565b6101c0526101a05261018052610160526101405260005060206102a060646323b872dd6101e05233610200523061022052600435610240526101fc60006006545af115612b3257601f3d1115612b32576000506102a0505b60043561018052610140517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c6020610180a2600435610180526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610180a36000600155005b632e1a7d4d811415610a6c57600061014052610a97565b6338d07436811415610a925760243560011c612b32576020602461014037600050610a97565b610c89565b600254612b325760016002556101405133610160526101605160065801612219565b6101405260005060006004351815610c225760006c02863c1f5cdae420000000001954141561016052600954610180526101605115610b4257610140516101605161018051336101a052610180516101c052610140516101e052600061020052610200516101e0516101c0516101a05160065801611c82565b6101805261016052610140526000505b6101808051600435808210612b32578082039050905081525060083360e05260c052604060c02054600435808210612b3257808203905090506101a0526101a05160083360e05260c052604060c02055610180516009556101405161016051610180516101a051336101c0526101a0516101e0526101805161020052610200516101e0516101c05160065801611a6e565b6101a0526101805261016052610140526000506020610260604463a9059cbb6101c052336101e052600435610200526101dc60006006545af115612b3257601f3d1115612b3257600050610260505b60043561016052337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243646020610160a2600435610160526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610160a36000600255005b63a9059cbb811415610ce657600354612b3257600160035560043560a01c612b32573361014052600435610160526024356101805261018051610160516101405160065801612810565b6000506001600052600060035560206000f35b6323b872dd811415610dd657600454612b3257600160045560043560a01c612b325760243560a01c612b3257600a60043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610140511815610d915761014051604435808210612b325780820390509050600a60043560e05260c052604060c0203360e05260c052604060c020555b6101405160043561016052602435610180526044356101a0526101a051610180516101605160065801612810565b610140526000506001600052600060045560206000f35b63095ea7b3811415610e495760043560a01c612b3257602435600a3360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b6339509351811415610ef25760043560a01c612b3257600a3360e05260c052604060c02060043560e05260c052604060c020546024358181830110612b3257808201905090506101405261014051600a3360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b63a457c2d7811415610f995760043560a01c612b3257600a3360e05260c052604060c02060043560e05260c052604060c02054602435808210612b3257808203905090506101405261014051600a3360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b63e8de0d4d8114156110a95760043560a01c612b325760243560a01c612b325760206101a0600463f851a4406101405261015c6c02863c1f5cdae4200000000027545afa15612b3257601f3d1115612b32576000506101a051331415612b32576c02863c1f5cdae420000000001954610140526008610140511015612b325760016c02863c1f5cdae420000000002260043560e05260c052604060c0200154612b325760243560016c02863c1f5cdae420000000002260043560e05260c052604060c02001556004356001610140516008811015612b3257026c02863c1f5cdae420000000001a01556101405160018181830110612b3257808201905090506c02863c1f5cdae420000000001955005b63058a3a2481141561117d5760043560a01c612b325760243560a01c612b325760016c02863c1f5cdae420000000002260043560e05260c052604060c020015461014052610140513314156110ff57600161113b565b6020610240600463f851a4406101e0526101fc6c02863c1f5cdae4200000000027545afa15612b3257601f3d1115612b32576000506102405133145b5b15612b32576000610140511815612b325760006024351815612b325760243560016c02863c1f5cdae420000000002260043560e05260c052604060c0200155005b6393f7aa6781141561148257600554612b3257600160055560043560a01c612b325760016c02863c1f5cdae420000000002260043560e05260c052604060c0200154331415612b32576000610140526009546101605260006101805260006101a0526101a05161018051610160516101405160065801611c82565b600050600060046101a0527f23b872dd000000000000000000000000000000000000000000000000000000006101c0526101a060048060208461020001018260208501600060045af15050805182019150503360208261020001015260208101905030602082610200010152602081019050602435602082610200010152602081019050806102005261020090508051602001806102c08284600060045af115612b3257505060206103a06102c0516102e060006004355af115612b325760203d808211156112c757806112c9565b815b90509050610380526103808051602001806101408284600060045af115612b32575050600061014051181561132b576101408060200151600082518060209013612b325780919012612b3257806020036101000a820490509050905015612b32575b60026c02863c1f5cdae420000000002260043560e05260c052604060c02001546101a0526101a051421061138c5760243562093a808082049050905060036c02863c1f5cdae420000000002260043560e05260c052604060c0200155611425565b6101a05142808210612b3257808203905090506101c0526101c05160036c02863c1f5cdae420000000002260043560e05260c052604060c0200154808202821582848304141715612b3257809050905090506101e0526024356101e0518181830110612b32578082019050905062093a808082049050905060036c02863c1f5cdae420000000002260043560e05260c052604060c02001555b4260046c02863c1f5cdae420000000002260043560e05260c052604060c02001554262093a808181830110612b32578082019050905060026c02863c1f5cdae420000000002260043560e05260c052604060c02001556000600555005b6390b229978114156114ec5760043560011c612b325760206101a0600463f851a4406101405261015c6c02863c1f5cdae4200000000027545afa15612b3257601f3d1115612b32576000506101a051331415612b32576004356c02863c1f5cdae420000000002655005b6382c630668114156115045760065460005260206000f35b63be5d1be981141561151c5760075460005260206000f35b6370a0823181141561154c5760043560a01c612b3257600860043560e05260c052604060c0205460005260206000f35b6318160ddd8114156115645760095460005260206000f35b63dd62ed3e8114156115ac5760043560a01c612b325760243560a01c612b3257600a60043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6306fdde0381141561164957600b80610180602082540161012060006003818352015b826101205160200211156115e257611604565b61012051850154610120516020028501525b81516001018083528114156115cf575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b418114156116e657600f80610180602082540161012060006002818352015b8261012051602002111561167f576116a1565b61012051850154610120516020028501525b815160010180835281141561166c575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6313ecb1ca8114156117165760043560a01c612b3257601260043560e05260c052604060c0205460005260206000f35b6317e2808981141561172e5760135460005260206000f35b63ef78d4fd8114156117465760145460005260206000f35b637598108c81141561177a5760016004356c01431e0fae6d7217caa0000000811015612b3257026015015460005260206000f35b63fec8ee0c8114156117ba5760016004356c01431e0fae6d7217caa0000000811015612b3257026c01431e0fae6d72100000000015015460005260206000f35b63de263bfa8114156117f65760043560a01c612b32576c02863c1f5cdae420000000001560043560e05260c052604060c0205460005260206000f35b639bd324f28114156118325760043560a01c612b32576c02863c1f5cdae420000000001660043560e05260c052604060c0205460005260206000f35b630940070781141561186e5760043560a01c612b32576c02863c1f5cdae420000000001760043560e05260c052604060c0205460005260206000f35b63180692d0811415611892576c02863c1f5cdae42000000000185460005260206000f35b63963c94b98114156118b6576c02863c1f5cdae42000000000195460005260206000f35b6354c49fe98114156118ea5760016004356008811015612b3257026c02863c1f5cdae420000000001a015460005260206000f35b6348e9c65e81141561198e5760043560a01c612b32576c02863c1f5cdae420000000002260043560e05260c052604060c0206101408080808454815250506020810190508080600185015481525050602081019050808060028501548152505060208101905080806003850154815250506020810190508080600485015481525050602081019050808060058501548152505060c09050905060c05260c051610140f35b6301ddabf18114156119ca5760043560a01c612b32576c02863c1f5cdae420000000002360043560e05260c052604060c0205460005260206000f35b63f05cc058811415611a1e5760043560a01c612b325760243560a01c612b32576c02863c1f5cdae420000000002460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b639c868ac0811415611a42576c02863c1f5cdae42000000000265460005260206000f35b63c45a0155811415611a66576c02863c1f5cdae42000000000275460005260206000f35b505b60006000fd5b6101a052610140526101605261018052602061026060246370a082316101e05261014051610200526101fc735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b3257600050610260516101c052602061026060046318160ddd6102005261021c735f3b5dfeb7b28cdbd7faba78963ee202a494e2a25afa15612b3257601f3d1115612b3257600050610260516101e052610160516028808202821582848304141715612b3257809050905090506064808204905090506102005260006101e0511115611bad576102008051610180516101c051808202821582848304141715612b3257809050905090506101e051808015612b3257820490509050603c808202821582848304141715612b3257809050905090506064808204905090508181830110612b3257808201905090508152505b610160516102005180821115611bc35780611bc5565b815b905090506102005260126101405160e05260c052604060c02054610220526102005160126101405160e05260c052604060c02055601354610200518181830110612b32578082019050905061022051808210612b325780820390509050610240526102405160135561014051610260526101605161028052610180516102a052610200516102c052610240516102e0527f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a360a0610260a16101a051565b6101c0526101405261016052610180526101a05260006101e0526101a051610200526000610140511815611d165760086101405160e05260c052604060c020546101e0526101805115611cd9576101a05115611cdc565b60005b15611d15576c02863c1f5cdae42000000000236101405160e05260c052604060c020546102005261020051611d145761014051610200525b5b5b6c02863c1f5cdae4200000000019546102205261024060006008818352015b61022051610240511415611d4857612211565b6001610240516008811015612b3257026c02863c1f5cdae420000000001a01546102605260056c02863c1f5cdae42000000000226102605160e05260c052604060c0200154610280524260026c02863c1f5cdae42000000000226102605160e05260c052604060c020015480821115611dc15780611dc3565b815b905090506102a0526102a05160046c02863c1f5cdae42000000000226102605160e05260c052604060c0200154808210612b3257808203905090506102c05260006102c0511815611eeb576102a05160046c02863c1f5cdae42000000000226102605160e05260c052604060c02001556000610160511815611eea5761028080516102c05160036c02863c1f5cdae42000000000226102605160e05260c052604060c0200154808202821582848304141715612b325780905090509050670de0b6b3a7640000808202821582848304141715612b32578090509050905061016051808015612b32578204905090508181830110612b3257808201905090508152506102805160056c02863c1f5cdae42000000000226102605160e05260c052604060c02001555b5b6000610140511815612200576c02863c1f5cdae42000000000246102605160e05260c052604060c0206101405160e05260c052604060c020546102e052600061030052610280516102e0511015611fb357610280516c02863c1f5cdae42000000000246102605160e05260c052604060c0206101405160e05260c052604060c020556101e051610280516102e051808210612b325780820390509050808202821582848304141715612b325780905090509050670de0b6b3a764000080820490509050610300525b6c02863c1f5cdae42000000000256101405160e05260c052604060c0206102605160e05260c052604060c02054610320526103205160801c610300518181830110612b3257808201905090506103405260006103405111156121ff5761032051700100000000000000000000000000000000808206905090506103605261018051156121a857600060046103e0527fa9059cbb00000000000000000000000000000000000000000000000000000000610400526103e060048060208461044001018260208501600060045af15050805182019150506102005160208261044001015260208101905061034051602082610440010152602081019050806104405261044090508051602001806104e08284600060045af115612b3257505060206105a06104e0516105006000610260515af115612b325760203d808211156120fa57806120fc565b815b90509050610580526105808051602001806103808284600060045af115612b32575050600061038051181561215e576103808060200151600082518060209013612b325780919012612b3257806020036101000a820490509050905015612b32575b61036051610340518181830110612b3257808201905090506c02863c1f5cdae42000000000256101405160e05260c052604060c0206102605160e05260c052604060c020556121fe565b60006103005111156121fd57610360516103405160801b8181830110612b3257808201905090506c02863c1f5cdae42000000000256101405160e05260c052604060c0206102605160e05260c052604060c020555b5b5b5b5b8151600101808352811415611d35575b50506101c051565b6101605261014052601454610180526001610180516c01431e0fae6d7217caa0000000811015612b325702601501546101a0526001610180516c01431e0fae6d7217caa0000000811015612b3257026c01431e0fae6d7210000000001501546101c0526c02863c1f5cdae4200000000018546101e0526101e05161020052600754610220526101a05161022051106123465760206102a0600463b26b238e6102405261025c600073d533a949740bb3306d119cc777fa900ba034cd525af115612b3257601f3d1115612b32576000506102a05160075560206102a06004632c4e722e6102405261025c73d533a949740bb3306d119cc777fa900ba034cd525afa15612b3257601f3d1115612b32576000506102a05161020052610200516c02863c1f5cdae4200000000018555b6c02863c1f5cdae420000000002654156123615760006101e0525b6101a0514211156126a75760135461024052732f50d538606fa9edd2b11e2446beb18c9d5846bb3b15612b325760006000602463615e523761026052306102805261027c6000732f50d538606fa9edd2b11e2446beb18c9d5846bb5af115612b32576101a051610260526101a05162093a808181830110612b32578082019050905062093a808082049050905062093a80808202821582848304141715612b3257809050905090504280821115612418578061241a565b815b90509050610280526102a060006101f4818352015b6102805161026051808210612b3257808203905090506102c05260206103a0604463d3078c946103005230610320526102605162093a808082049050905062093a80808202821582848304141715612b3257809050905090506103405261031c732f50d538606fa9edd2b11e2446beb18c9d5846bb5afa15612b3257601f3d1115612b32576000506103a0516102e052600061024051111561264a576102605161022051106124e6576102805161022051106124e9565b60005b156125e5576101c080516101e0516102e051808202821582848304141715612b3257809050905090506102205161026051808210612b325780820390509050808202821582848304141715612b32578090509050905061024051808015612b32578204905090508181830110612b325780820190509050815250610200516101e0526101c080516101e0516102e051808202821582848304141715612b3257809050905090506102805161022051808210612b325780820390509050808202821582848304141715612b32578090509050905061024051808015612b32578204905090508181830110612b325780820190509050815250612649565b6101c080516101e0516102e051808202821582848304141715612b3257809050905090506102c051808202821582848304141715612b32578090509050905061024051808015612b32578204905090508181830110612b3257808201905090508152505b5b4261028051141561265a576126a4565b61028051610260526102805162093a808181830110612b3257808201905090504280821115612689578061268b565b815b90509050610280525b815160010180835281141561242f575b50505b61018080516001808201808060008112156126be57195b607f1c612b325790509050905081525061018051601455426001610180516c01431e0fae6d7217caa0000000811015612b325702601501556101c0516001610180516c01431e0fae6d7217caa0000000811015612b3257026c01431e0fae6d72100000000015015560126101405160e05260c052604060c02054610240526c02863c1f5cdae42000000000176101405160e05260c052604060c0208054610240516101c0516c02863c1f5cdae42000000000156101405160e05260c052604060c02054808210612b325780820390509050808202821582848304141715612b325780905090509050670de0b6b3a7640000808204905090508181830110612b3257808201905090508155506101c0516c02863c1f5cdae42000000000156101405160e05260c052604060c02055426c02863c1f5cdae42000000000166101405160e05260c052604060c0205561016051565b6101a0526101405261016052610180526101405161016051610180516101a051610140516101c0526101c05160065801612219565b6101a0526101805261016052610140526000506101405161016051610180516101a051610160516101c0526101c05160065801612219565b6101a0526101805261016052610140526000506000610180511815612af5576009546101c05260006c02863c1f5cdae42000000000195414156101e0526101e0511561292c576101405161016051610180516101a0516101c0516101e05161014051610200526101c051610220526000610240526000610260526102605161024051610220516102005160065801611c82565b6101e0526101c0526101a0526101805261016052610140526000505b60086101405160e05260c052604060c0205461018051808210612b325780820390509050610200526102005160086101405160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610140516102205261020051610240526101c0516102605261026051610240516102205160065801611a6e565b610200526101e0526101c0526101a0526101805261016052610140526000506101e05115612a4c576101405161016051610180516101a0516101c0516101e0516102005161016051610220526101c051610240526000610260526000610280526102805161026051610240516102205160065801611c82565b610200526101e0526101c0526101a0526101805261016052610140526000505b60086101605160e05260c052604060c02054610180518181830110612b325780820190509050610200526102005160086101605160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610160516102205261020051610240526101c0516102605261026051610240516102205160065801611a6e565b610200526101e0526101c0526101a0526101805261016052610140526000505b610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a051565b600080fd

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

0000000000000000000000005a6a4d54456819380173272a5e8e9b9904bdf41b000000000000000000000000b9fc157394af804a3578134a6585c0dc9cc990d4

-----Decoded View---------------
Arg [0] : _lp_token (address): 0x5a6A4D54456819380173272A5E8E9B9904BdF41B
Arg [1] : _factory (address): 0xB9fC157394Af804a3578134A6585C0dc9cc990d4

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005a6a4d54456819380173272a5e8e9b9904bdf41b
Arg [1] : 000000000000000000000000b9fc157394af804a3578134a6585c0dc9cc990d4


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.