ETH Price: $3,485.32 (-0.16%)

Contract

0xc64F8A9fe7BabecA66D3997C9d15558BF4817bE3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw181294272023-09-13 19:21:23469 days ago1694632883IN
0xc64F8A9f...BF4817bE3
0 ETH0.0040996415.7016914
Withdraw181040022023-09-10 5:51:11472 days ago1694325071IN
0xc64F8A9f...BF4817bE3
0 ETH0.002691229.40957724
Withdraw180708832023-09-05 14:29:59477 days ago1693924199IN
0xc64F8A9f...BF4817bE3
0 ETH0.0076462718.63708027
Withdraw178977082023-08-12 8:51:11501 days ago1691830271IN
0xc64F8A9f...BF4817bE3
0 ETH0.0029904712.39893257
Withdraw178808812023-08-10 0:20:59503 days ago1691626859IN
0xc64F8A9f...BF4817bE3
0 ETH0.0062158821.27350902
Withdraw178754052023-08-09 5:57:23504 days ago1691560643IN
0xc64F8A9f...BF4817bE3
0 ETH0.0028855213.37043686
Withdraw178753912023-08-09 5:54:35504 days ago1691560475IN
0xc64F8A9f...BF4817bE3
0 ETH0.0027339612.6674702
Withdraw178749502023-08-09 4:25:47504 days ago1691555147IN
0xc64F8A9f...BF4817bE3
0 ETH0.003726115.99696801
Withdraw178735942023-08-08 23:52:47504 days ago1691538767IN
0xc64F8A9f...BF4817bE3
0 ETH0.0041107518.34439916
Withdraw178716192023-08-08 17:13:47505 days ago1691514827IN
0xc64F8A9f...BF4817bE3
0 ETH0.0070603531.50705747
Withdraw178715572023-08-08 17:01:11505 days ago1691514071IN
0xc64F8A9f...BF4817bE3
0 ETH0.0075553934.58100539
Withdraw178711522023-08-08 15:39:23505 days ago1691509163IN
0xc64F8A9f...BF4817bE3
0 ETH0.0102544833.85916948
Withdraw176929562023-07-14 16:42:59530 days ago1689352979IN
0xc64F8A9f...BF4817bE3
0 ETH0.0165981140.14530998
Withdraw174731682023-06-13 19:32:35561 days ago1686684755IN
0xc64F8A9f...BF4817bE3
0 ETH0.0032121213.7910372
Withdraw174608072023-06-12 1:46:11562 days ago1686534371IN
0xc64F8A9f...BF4817bE3
0 ETH0.0045973315.30404392
Deposit172714732023-05-16 9:46:47589 days ago1684230407IN
0xc64F8A9f...BF4817bE3
0 ETH0.0228148344.26927465
Withdraw170583622023-04-16 8:44:47619 days ago1681634687IN
0xc64F8A9f...BF4817bE3
0 ETH0.005039121.63617631
Deposit170575662023-04-16 6:02:35619 days ago1681624955IN
0xc64F8A9f...BF4817bE3
0 ETH0.0071645923.83321521
Deposit170283062023-04-12 0:13:23623 days ago1681258403IN
0xc64F8A9f...BF4817bE3
0 ETH0.0066114919.1242821
Deposit169579852023-04-02 0:54:23633 days ago1680396863IN
0xc64F8A9f...BF4817bE3
0 ETH0.004818716.78855237
Withdraw169462982023-03-31 9:28:47635 days ago1680254927IN
0xc64F8A9f...BF4817bE3
0 ETH0.0063651322.46687384
Deposit169157262023-03-27 2:22:23639 days ago1679883743IN
0xc64F8A9f...BF4817bE3
0 ETH0.0037251716.82381683
Deposit168951272023-03-24 4:56:47642 days ago1679633807IN
0xc64F8A9f...BF4817bE3
0 ETH0.0040584413.11594481
Withdraw168885172023-03-23 6:38:35643 days ago1679553515IN
0xc64F8A9f...BF4817bE3
0 ETH0.002779529.88
Withdraw168766222023-03-21 14:31:47645 days ago1679409107IN
0xc64F8A9f...BF4817bE3
0 ETH0.0085243638.04025837
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.3.1

Optimization Enabled:
N/A

Other Settings:
default evmVersion, MIT license
# @version 0.3.1
"""
@title Liquidity Gauge v5
@author Curve Finance
@license MIT
"""

from vyper.interfaces import ERC20

implements: ERC20

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 veboost_proxy() -> 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
    def future_epoch_time_write() -> uint256: nonpayable
    def rate() -> uint256: view

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

interface VotingEscrowBoost:
    def adjusted_balance_of(_account: address) -> uint256: view

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

interface ERC1271:
  def isValidSignature(_hash: bytes32, _signature: Bytes[65]) -> bytes32: 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

  # keccak256("isValidSignature(bytes32,bytes)")[:4] << 224
ERC1271_MAGIC_VAL: constant(bytes32) = 0x1626ba7e00000000000000000000000000000000000000000000000000000000
EIP712_TYPEHASH: constant(bytes32) = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")
PERMIT_TYPEHASH: constant(bytes32) = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")
VERSION: constant(String[8]) = "v5.0.0"

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

MINTER: immutable(address)
SDL_TOKEN: immutable(address)
CONTROLLER: immutable(address)
VOTING_ESCROW: immutable(address)
VEBOOST_PROXY: immutable(address)

NAME: immutable(String[64])
SYMBOL: immutable(String[32])
DOMAIN_SEPARATOR: immutable(bytes32)
LP_TOKEN: immutable(address)
nonces: public(HashMap[address, uint256])

future_epoch_time: public(uint256)

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

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]]

admin: public(address)
future_admin: public(address)
is_killed: public(bool)


@external
def __init__(_lp_token: address, _minter: address, _admin: address):
    """
    @notice Contract constructor
    @param _lp_token Liquidity Pool contract address
    @param _minter Minter contract address
    @param _admin Admin who can kill the gauge
    """

    sdl_token: address = Minter(_minter).token()
    controller: address = Minter(_minter).controller()

    MINTER = _minter
    SDL_TOKEN = sdl_token
    CONTROLLER = controller
    VOTING_ESCROW = Controller(controller).voting_escrow()
    VEBOOST_PROXY = Controller(controller).veboost_proxy()

    lp_symbol: String[26] = ERC20Extended(_lp_token).symbol()
    name: String[64] = concat("Saddle ", lp_symbol, " Gauge Deposit")
    NAME = name
    SYMBOL = concat(lp_symbol, "-gauge")
    DOMAIN_SEPARATOR = keccak256(
        _abi_encode(EIP712_TYPEHASH, keccak256(name), keccak256(VERSION), chain.id, self)
    )
    LP_TOKEN = _lp_token

    self.admin = _admin
    self.period_timestamp[0] = block.timestamp
    self.inflation_rate = Minter(_minter).rate()
    self.future_epoch_time = Minter(_minter).future_epoch_time_write()

@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 = VotingEscrowBoost(VEBOOST_PROXY).adjusted_balance_of(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 block.timestamp >= prev_future_epoch:
      self.future_epoch_time = Minter(MINTER).future_epoch_time_write()
      new_rate = Minter(MINTER).rate()
      self.inflation_rate = new_rate

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

    # Update integral of 1/supply
    if block.timestamp > _period_time:
        _working_supply: uint256 = self.working_supply
        Controller(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(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 and rate != new_rate:
                    # 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 += new_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(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(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 permit(
  _owner: address,
  _spender: address,
  _value: uint256,
  _deadline: uint256,
  _v: uint8,
  _r: bytes32,
  _s: bytes32
) -> bool:
  """
  @notice Approves spender by owner's signature to expend owner's tokens.
      See https://eips.ethereum.org/EIPS/eip-2612.
  @dev Inspired by https://github.com/yearn/yearn-vaults/blob/main/contracts/Vault.vy#L753-L793
  @dev Supports smart contract wallets which implement ERC1271
      https://eips.ethereum.org/EIPS/eip-1271
  @param _owner The address which is a source of funds and has signed the Permit.
  @param _spender The address which is allowed to spend the funds.
  @param _value The amount of tokens to be spent.
  @param _deadline The timestamp after which the Permit is no longer valid.
  @param _v The bytes[64] of the valid secp256k1 signature of permit by owner
  @param _r The bytes[0:32] of the valid secp256k1 signature of permit by owner
  @param _s The bytes[32:64] of the valid secp256k1 signature of permit by owner
  @return True, if transaction completes successfully
  """
  assert _owner != ZERO_ADDRESS
  assert block.timestamp <= _deadline
  nonce: uint256 = self.nonces[_owner]
  digest: bytes32 = keccak256(
      concat(
          b"\x19\x01",
          DOMAIN_SEPARATOR,
          keccak256(_abi_encode(PERMIT_TYPEHASH, _owner, _spender, _value, nonce, _deadline))
      )
  )
  if _owner.is_contract:
      sig: Bytes[65] = concat(_abi_encode(_r, _s), slice(convert(_v, bytes32), 31, 1))
      assert ERC1271(_owner).isValidSignature(digest, sig) == ERC1271_MAGIC_VAL
  else:
      assert ecrecover(digest, convert(_v, uint256), convert(_r, uint256), convert(_s, uint256)) == _owner
  self.allowance[_owner][_spender] = _value
  self.nonces[_owner] = nonce + 1
  log Approval(_owner, _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 == self.admin  # dev: only owner

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

    self.reward_data[_reward_token].distributor = _distributor
    self.reward_tokens[reward_count] = _reward_token
    self.reward_data[_reward_token].token = _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 == self.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 == self.admin

    self.is_killed = _is_killed


@external
def commit_transfer_ownership(addr: address):
    """
    @notice Transfer ownership of GaugeController to `addr`
    @param addr Address to have ownership transferred to
    """
    assert msg.sender == self.admin  # dev: admin only

    self.future_admin = addr
    log CommitOwnership(addr)


@external
def accept_transfer_ownership():
    """
    @notice Accept a pending ownership transfer
    """
    _admin: address = self.future_admin
    assert msg.sender == _admin  # dev: future admin only

    self.admin = _admin
    log ApplyOwnership(_admin)

@view
@external
def name() -> String[64]:
  """
  @notice Get the name for this gauge token
  """
  return NAME

@view
@external
def symbol() -> String[32]:
  """
  @notice Get the symbol for this gauge token
  """
  return SYMBOL

@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 minter() -> address:
  """
  @notice Query the minter
  """
  return MINTER

@view
@external
def sdl_token() -> address:
  """
  @notice Query the crv token
  """
  return SDL_TOKEN

@view
@external
def controller() -> address:
  """
  @notice Query the controller
  """
  return CONTROLLER

@view
@external
def voting_escrow() -> address:
  """
  @notice Query the voting escrow
  """
  return VOTING_ESCROW

@view
@external
def veboost_proxy() -> address:
  """
  @notice Query the veboost proxy
  """
  return VEBOOST_PROXY

@view
@external
def lp_token() -> address:
  """
  @notice Query the lp token used for this gauge
  """
  return LP_TOKEN

@view
@external
def version() -> String[8]:
  """
  @notice Get the version of this gauge
  """
  return VERSION

@view
@external
def DOMAIN_SEPARATOR() -> bytes32:
  """
  @notice Domain separator for this contract
  """
  return DOMAIN_SEPARATOR

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":"_minter","type":"address"},{"name":"_admin","type":"address"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"integrate_checkpoint","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"user_checkpoint","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"claimable_tokens","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"claimed_reward","inputs":[{"name":"_addr","type":"address"},{"name":"_token","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"claimable_reward","inputs":[{"name":"_user","type":"address"},{"name":"_reward_token","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"set_rewards_receiver","inputs":[{"name":"_receiver","type":"address"}],"outputs":[]},{"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":[]},{"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"}]},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"permit","inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_deadline","type":"uint256"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"increaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_added_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"decreaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_subtracted_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"add_reward","inputs":[{"name":"_reward_token","type":"address"},{"name":"_distributor","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_reward_distributor","inputs":[{"name":"_reward_token","type":"address"},{"name":"_distributor","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"deposit_reward_token","inputs":[{"name":"_reward_token","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_killed","inputs":[{"name":"_is_killed","type":"bool"}],"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":"name","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"minter","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"sdl_token","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"controller","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"voting_escrow","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"veboost_proxy","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"lp_token","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"version","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"DOMAIN_SEPARATOR","inputs":[],"outputs":[{"name":"","type":"bytes32"}]},{"stateMutability":"view","type":"function","name":"nonces","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"future_epoch_time","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"working_balances","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"working_supply","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"period","inputs":[],"outputs":[{"name":"","type":"int128"}]},{"stateMutability":"view","type":"function","name":"period_timestamp","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"integrate_inv_supply","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"integrate_inv_supply_of","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"integrate_checkpoint_of","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"integrate_fraction","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"inflation_rate","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"reward_count","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"reward_tokens","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"reward_data","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"tuple","components":[{"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"}]}]},{"stateMutability":"view","type":"function","name":"rewards_receiver","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"reward_integral_for","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","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":"is_killed","inputs":[],"outputs":[{"name":"","type":"bool"}]}]

60206131646080396080518060a01c61315f5760e05260206020613164016080396080518060a01c61315f576101005260206040613164016080396080518060a01c61315f576101205263fc0c546a610160526020610160600461017c610100515afa610071573d600060003e3d6000fd5b601f3d111561315f57610160518060a01c61315f576101405263f77c4791610180526020610180600461019c610100515afa6100b2573d600060003e3d6000fd5b601f3d111561315f57610180518060a01c61315f57610160526101005161018052610140516101a052610160516101c05263dfe050316101e05260206101e060046101fc610160515afa61010b573d600060003e3d6000fd5b601f3d111561315f576101e0518060a01c61315f57610220526349ec3b3f610240526020610240600461025c610160515afa61014c573d600060003e3d6000fd5b601f3d111561315f57610240518060a01c61315f576101e0526395d89b41610280526060610280600461029c60e0515afa61018c573d600060003e3d6000fd5b603f3d111561315f576102805161028001601a81511161315f5780805160200180610240828460045afa905090505050600060076102e0527f536164646c652000000000000000000000000000000000000000000000000000610300526102e06007806020846103600101826020850160045afa505080518201915050610240601a806020846103600101826020850160045afa505080518201915050600e610320527f204761756765204465706f73697400000000000000000000000000000000000061034052610320600e806020846103600101826020850160045afa50508051820191505080610360526103609050805160200180610280828460045afa905050506102808051602001806102e0828460045afa905050506000610240601a806020846103800101826020850160045afa5050805182019150506006610340527f2d67617567650000000000000000000000000000000000000000000000000000610360526103406006806020846103800101826020850160045afa505080518201915050806103805261038090508051602001806103c0828460045afa905050507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6104e052610280805160208201209050610500527f572f01d824885a118d5d21c74542f263b131d2897955c62a721594f1d7c3b2e2610520524661054052306105605260a06104c0526104c08051602082012090506102005260e05161034052610120516c02863c1f5cdae420000000001a5542600955632c4e722e610400526020610400600461041c610100515afa6103f1573d600060003e3d6000fd5b601f3d111561315f57610400516c02863c1f5cdae420000000000c5563b26b238e610400526020610400600461041c6000610100515af1610437573d600060003e3d6000fd5b601f3d111561315f57610400516002556130ca56600436101561000d57611df7565b60046000601c3760005134612c795763d31f3f6d811861004f5760016008546c01431e0fae6d7217caa0000000811015612c7957026009015460e052602060e0f35b634b8200938118610114576004358060a01c612c79576102e0526102e05161032052602061018038036080396080516103405260006103005261030060c060006002818352015b60c051602002610320015133186100b057600183526100c0565b8151600101808352811415610096575b5050506103005115612c79576102e05160e0526100db612519565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610107611dfd565b6001610300526020610300f35b633313458381186101bf576004358060a01c612c79576102e0526102e05160e05261013d612519565b6c02863c1f5cdae420000000000b6102e05160a052608052604060802054638b752bb0610300526102e0516103205230610340526020610300604461031c602061018038036080396080515afa610199573d600060003e3d6000fd5b601f3d1115612c795761030051808210612c795780820390509050610360526020610360f35b63e77e74378118610237576004358060a01c612c795760e0526024358060a01c612c7957610100526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205470010000000000000000000000000000000080820690509050610120526020610120f35b6333fd6f748118610453576004358060a01c612c795760e0526024358060a01c612c79576101005260056c02863c1f5cdae42000000000166101005160a05260805260406080200154610120526004546101405260006101405114610386574260026c02863c1f5cdae42000000000166101005160a052608052604060802001548082116102c557816102c7565b805b90509050610160526101605160046c02863c1f5cdae42000000000166101005160a05260805260406080200154808210612c7957808203905090506101805261012080516101805160036c02863c1f5cdae42000000000166101005160a05260805260406080200154808202821582848304141715612c795790509050670de0b6b3a7640000808202821582848304141715612c79579050905061014051808015612c79578204905090508181830110612c7957808201905090508152505b6c02863c1f5cdae42000000000186101005160a052608052604060802060e05160a05260805260406080205461016052600360e05160a0526080526040608020546101205161016051808210612c795780820390509050808202821582848304141715612c795790509050670de0b6b3a764000080820490509050610180526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205460801c610180518181830110612c7957808201905090506101a05260206101a0f35b63bdf98116811861048c576004358060a01c612c795760e05260e0516c02863c1f5cdae42000000000173360a052608052604060802055005b63e6f1daf281186104a75733610440526000610460526104f6565b6384e9bd7e81186104cc576004358060a01c612c7957610440526000610460526104f6565b639faceb1b8118610543576004358060a01c612c7957610440526024358060a01c612c7957610460525b600054612c795760016000556000610460511461051857336104405118612c79575b6104405160e05260045461010052600161012052610460516101405261053c611fed565b6000600055005b6396c551758118610702576004358060a01c612c79576102e0526c02863c1f5cdae420000000000a6102e05160a0526080526040608020546103005263da020a18610380526102e0516103a05263010ae757610340526102e051610360526020610340602461035c602061012038036080396080515afa6105c9573d600060003e3d6000fd5b601f3d1115612c7957610340516103c0526020610380604461039c602061012038036080396080515afa610602573d600060003e3d6000fd5b601f3d1115612c7957610380516103205260036102e05160a052608052604060802054610340526370a082316103a0526102e0516103c05260206103a060246103bc602061012038036080396080515afa610662573d600060003e3d6000fd5b601f3d1115612c79576103a0511561068257610300516103205111610685565b60015b15612c7957610340516028808202821582848304141715612c79579050905060648082049050905060066102e05160a0526080526040608020541115612c79576102e05160e0526106d4612519565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610700611dfd565b005b63b6b55f25811861071d57336104405260006104605261076c565b636e553f658118610742576024358060a01c612c79576104405260006104605261076c565b6383df6747811861091b576024358060a01c612c7957610440526044358060011c612c7957610460525b600054612c795760016000556104405160e052610787612519565b6000600435146108ae5760006c02863c1f5cdae420000000000d541415610480526004546104a05261048051156107dd576104405160e0526104a0516101005261046051610120526000610140526107dd611fed565b6104a080516004358181830110612c79578082019050905081525060036104405160a0526080526040608020546004358181830110612c7957808201905090506104c0526104c05160036104405160a0526080526040608020556104a0516004556104405160e0526104c051610100526104a0516101205261085d611dfd565b6323b872dd6104e052336105005230610520526004356105405260206104e060646104fc60006020602038036080396080515af16108a0573d600060003e3d6000fd5b601f3d1115612c79576104e0505b610440517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c600435610480526020610480a26104405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610480526020610480a36000600055005b632e1a7d4d81186109315760006104405261094c565b6338d074368118610add576024358060011c612c7957610440525b600054612c795760016000553360e052610964612519565b600060043514610a765760006c02863c1f5cdae420000000000d541415610460526004546104805261046051156109b7573360e052610480516101005261044051610120526000610140526109b7611fed565b6104808051600435808210612c79578082039050905081525060033360a052608052604060802054600435808210612c7957808203905090506104a0526104a05160033360a052608052604060802055610480516004553360e0526104a051610100526104805161012052610a2a611dfd565b63a9059cbb6104c052336104e0526004356105005260206104c060446104dc60006020602038036080396080515af1610a68573d600060003e3d6000fd5b601f3d1115612c79576104c0505b337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364600435610460526020610460a26000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610460526020610460a36000600055005b63a9059cbb8118610b31576004358060a01c612c795761050052600054612c795760016000553361044052610500516104605260243561048052610b1f612ae5565b60016105205260206105206000600055f35b6323b872dd8118610c17576004358060a01c612c7957610500526024358060a01c612c795761052052600054612c7957600160005560056105005160a05260805260406080203360a052608052604060802054610540527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6105405114610be65761054051604435808210612c79578082039050905060056105005160a05260805260406080203360a0526080526040608020555b6105005161044052610520516104605260443561048052610c05612ae5565b60016105605260206105606000600055f35b63095ea7b38118610c8f576004358060a01c612c795760e05260243560053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602435610100526020610100a36001610100526020610100f35b63d505accf8118611005576004358060a01c612c795760e0526024358060a01c612c7957610100526084358060081c612c795761012052600060e05114612c79576064354211612c7957600160e05160a0526080526040608020546101405260006002610400527f1901000000000000000000000000000000000000000000000000000000000000610420526104006002806020846106000101826020850160045afa5050805182019150506020604038036080396080516020826106000101526020810190507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96105405260e0516105605261010051610580526044356105a052610140516105c0526064356105e05260c0610520526105208051602082012090506020826106000101526020810190508061060052610600905080516020820120905061016052600060e0513b11610e195760e0516101605161018052610120516101a052604060a46101c03760206080608061018060015afa5060805118612c7957610f79565b600060a4356102205260c435610240526040610200526102006040806020846102c00101826020850160045afa505080518201915050601f60016020820661026001602082840111612c79576020806102808261012060045afa5050818152905090506001806020846102c00101826020850160045afa505080518201915050806102c0526102c09050805160200180610180828460045afa905050507f1626ba7e00000000000000000000000000000000000000000000000000000000631626ba7e610200526102208060406101605182526020820191508082528083018061018080516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810150505050602061020060c461021c60e0515afa610f66573d600060003e3d6000fd5b601f3d1115612c79576102005118612c79575b604435600560e05160a05260805260406080206101005160a0526080526040608020556101405160018181830110612c795780820190509050600160e05160a0526080526040608020556101005160e0517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925604435610180526020610180a36001610180526020610180f35b633950935181186110b3576004358060a01c612c795760e05260053360a052608052604060802060e05160a0526080526040608020546024358181830110612c795780820190509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63a457c2d7811861115f576004358060a01c612c795760e05260053360a052608052604060802060e05160a052608052604060802054602435808210612c795780820390509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63e8de0d4d8118611277576004358060a01c612c795760e0526024358060a01c612c7957610100526c02863c1f5cdae420000000001a543318612c79576c02863c1f5cdae420000000000d54610120526008610120511015612c795760016c02863c1f5cdae420000000001660e05160a05260805260406080200154612c7957600060e05114612c79576101005160016c02863c1f5cdae420000000001660e05160a0526080526040608020015560e0516001610120516008811015612c7957026c02863c1f5cdae420000000000e015560e0516c02863c1f5cdae420000000001660e05160a0526080526040608020556101205160018181830110612c7957808201905090506c02863c1f5cdae420000000000d55005b63058a3a248118611327576004358060a01c612c795760e0526024358060a01c612c79576101005260016c02863c1f5cdae420000000001660e05160a05260805260406080200154610120526101205133186112d45760016112e6565b6c02863c1f5cdae420000000001a5433145b15612c795760006101205114612c795760006101005114612c79576101005160016c02863c1f5cdae420000000001660e05160a05260805260406080200155005b6393f7aa6781186115ef576004358060a01c612c795761044052600054612c7957600160005560016c02863c1f5cdae42000000000166104405160a052608052604060802001543318612c7957600060e05260045461010052600061012052600061014052611394611fed565b600060046104a0527f23b872dd000000000000000000000000000000000000000000000000000000006104c0526104a06004806020846104e00101826020850160045afa505080518201915050336020826104e0010152602081019050306020826104e00101526020810190506024356020826104e0010152602081019050806104e0526104e0505060206105a06104e0516105006000610440515af1611440573d600060003e3d6000fd5b61058060203d8082116114535781611455565b805b905090508152805160200180610460828460045afa905050506000610460511461149457610480516104605181816020036008021c9050905015612c79575b60026c02863c1f5cdae42000000000166104405160a052608052604060802001546104a0526104a051421015611560576104a05142808210612c7957808203905090506104c0526104c05160036c02863c1f5cdae42000000000166104405160a05260805260406080200154808202821582848304141715612c7957905090506104e0526024356104e0518181830110612c79578082019050905062093a808082049050905060036c02863c1f5cdae42000000000166104405160a05260805260406080200155611590565b60243562093a808082049050905060036c02863c1f5cdae42000000000166104405160a052608052604060802001555b4260046c02863c1f5cdae42000000000166104405160a052608052604060802001554262093a808181830110612c79578082019050905060026c02863c1f5cdae42000000000166104405160a052608052604060802001556000600055005b6390b229978118611631576004358060011c612c795760e0526c02863c1f5cdae420000000001a543318612c795760e0516c02863c1f5cdae420000000001c55005b636b441a4081186116a1576004358060a01c612c795760e0526c02863c1f5cdae420000000001a543318612c795760e0516c02863c1f5cdae420000000001b557f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e960e051610100526020610100a1005b63e5ea47b88118611709576c02863c1f5cdae420000000001b5460e05260e0513318612c795760e0516c02863c1f5cdae420000000001a557febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a118910560e051610100526020610100a1005b6306fdde03811861177a5760e080602080825260e0380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b6395d89b4181186117eb5760e08060208082526080380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b63313ce567811861180157601260e052602060e0f35b63075461728118611822576020610180380360803960805160e052602060e0f35b63d09f22a68118611843576020610160380360803960805160e052602060e0f35b63f77c47918118611864576020610140380360803960805160e052602060e0f35b63dfe050318118611885576020610120380360803960805160e052602060e0f35b6349ec3b3f81186118a6576020610100380360803960805160e052602060e0f35b6382c6306681186118c65760206020380360803960805160e052602060e0f35b6354fd4d50811861196057610120806020808252600660e0527f76352e302e3000000000000000000000000000000000000000000000000000006101005260e0818401808280516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905090508101905090509050610120f35b633644e51581186119805760206040380360803960805160e052602060e0f35b637ecebe0081186119b5576004358060a01c612c795760e052600160e05160a052608052604060802054610100526020610100f35b63be5d1be981186119cc5760025460e052602060e0f35b6370a082318118611a01576004358060a01c612c795760e052600360e05160a052608052604060802054610100526020610100f35b6318160ddd8118611a185760045460e052602060e0f35b63dd62ed3e8118611a6b576004358060a01c612c795760e0526024358060a01c612c795761010052600560e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b6313ecb1ca8118611aa0576004358060a01c612c795760e052600660e05160a052608052604060802054610100526020610100f35b6317e280898118611ab75760075460e052602060e0f35b63ef78d4fd8118611ace5760085460e052602060e0f35b637598108c8118611b015760016004356c01431e0fae6d7217caa0000000811015612c7957026009015460e052602060e0f35b63fec8ee0c8118611b405760016004356c01431e0fae6d7217caa0000000811015612c7957026c01431e0fae6d72100000000009015460e052602060e0f35b63de263bfa8118611b81576004358060a01c612c795760e0526c02863c1f5cdae420000000000960e05160a052608052604060802054610100526020610100f35b639bd324f28118611bc2576004358060a01c612c795760e0526c02863c1f5cdae420000000000a60e05160a052608052604060802054610100526020610100f35b63094007078118611c03576004358060a01c612c795760e0526c02863c1f5cdae420000000000b60e05160a052608052604060802054610100526020610100f35b63180692d08118611c26576c02863c1f5cdae420000000000c5460e052602060e0f35b63963c94b98118611c49576c02863c1f5cdae420000000000d5460e052602060e0f35b6354c49fe98118611c7c5760016004356008811015612c7957026c02863c1f5cdae420000000000e015460e052602060e0f35b6348e9c65e8118611cec576004358060a01c612c795760e0526c02863c1f5cdae420000000001660e05160a052608052604060802080546101005260018101546101205260028101546101405260038101546101605260048101546101805260058101546101a0525060c0610100f35b6301ddabf18118611d2d576004358060a01c612c795760e0526c02863c1f5cdae420000000001760e05160a052608052604060802054610100526020610100f35b63f05cc0588118611d8c576004358060a01c612c795760e0526024358060a01c612c7957610100526c02863c1f5cdae420000000001860e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b63f851a4408118611daf576c02863c1f5cdae420000000001a5460e052602060e0f35b6317f7182a8118611dd2576c02863c1f5cdae420000000001b5460e052602060e0f35b639c868ac08118611df5576c02863c1f5cdae420000000001c5460e052602060e0f35b505b60006000fd5b63bbf7408a6101605260e051610180526020610160602461017c602061010038036080396080515afa611e35573d600060003e3d6000fd5b601f3d1115612c795761016051610140526318160ddd610180526020610180600461019c602061012038036080396080515afa611e77573d600060003e3d6000fd5b601f3d1115612c79576101805161016052610100516028808202821582848304141715612c795790509050606480820490509050610180526000610160511115611f205761018080516101205161014051808202821582848304141715612c79579050905061016051808015612c7957820490509050603c808202821582848304141715612c7957905090506064808204905090508181830110612c7957808201905090508152505b6101005161018051808211611f355781611f37565b805b9050905061018052600660e05160a0526080526040608020546101a05261018051600660e05160a052608052604060802055600754610180518181830110612c7957808201905090506101a051808210612c7957808203905090506101c0526101c0516007557f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a360e0516101e0526101005161020052610120516102205261018051610240526101c0516102605260a06101e0a1565b6000610160526101405161018052600060e0511461206557600360e05160a052608052604060802054610160526101205161202957600061202f565b61014051155b15612065576c02863c1f5cdae420000000001760e05160a05260805260406080205461018052610180516120655760e051610180525b6c02863c1f5cdae420000000000d546101a0526101c060006008818352015b6101a0516101c0511861209657612515565b60016101c0516008811015612c7957026c02863c1f5cdae420000000000e01546101e05260056c02863c1f5cdae42000000000166101e05160a05260805260406080200154610200524260026c02863c1f5cdae42000000000166101e05160a0526080526040608020015480821161210e5781612110565b805b90509050610220526102205160046c02863c1f5cdae42000000000166101e05160a05260805260406080200154808210612c795780820390509050610240526000610240511461222f576102205160046c02863c1f5cdae42000000000166101e05160a052608052604060802001556000610100511461222f5761020080516102405160036c02863c1f5cdae42000000000166101e05160a05260805260406080200154808202821582848304141715612c795790509050670de0b6b3a7640000808202821582848304141715612c79579050905061010051808015612c79578204905090508181830110612c7957808201905090508152506102005160056c02863c1f5cdae42000000000166101e05160a052608052604060802001555b600060e05114612505576c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a05260805260406080205461026052600061028052610200516102605110156122f057610200516c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a052608052604060802055610160516102005161026051808210612c795780820390509050808202821582848304141715612c795790509050670de0b6b3a764000080820490509050610280525b6c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020546102a0526102a05160801c610280518181830110612c7957808201905090506102c05260006102c0511115612505576102a051700100000000000000000000000000000000808206905090506102e052610120516123cc576000610280511115612505576102e0516102c05160801b8181830110612c7957808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a052608052604060802055612505565b60006004610340527fa9059cbb00000000000000000000000000000000000000000000000000000000610360526103406004806020846103800101826020850160045afa505080518201915050610180516020826103800101526020810190506102c051602082610380010152602081019050806103805261038050506020610420610380516103a060006101e0515af161246c573d600060003e3d6000fd5b61040060203d80821161247f5781612481565b805b905090508152805160200180610300828460045afa90505050600061030051146124c057610320516103005181816020036008021c9050905015612c79575b6102e0516102c0518181830110612c7957808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020555b8151600101808352811415612084575b5050565b600854610100526001610100516c01431e0fae6d7217caa0000000811015612c79570260090154610120526001610100516c01431e0fae6d7217caa0000000811015612c7957026c01431e0fae6d721000000000090154610140526c02863c1f5cdae420000000000c546101605261016051610180526002546101a0526101a05142106126395763b26b238e6101c05260206101c060046101dc6000602061018038036080396080515af16125d3573d600060003e3d6000fd5b601f3d1115612c79576101c051600255632c4e722e6101c05260206101c060046101dc602061018038036080396080515afa612614573d600060003e3d6000fd5b601f3d1115612c79576101c05161018052610180516c02863c1f5cdae420000000000c555b6c02863c1f5cdae420000000001c541561265a576000610160526000610180525b61012051421115612991576007546101c05263615e52376101e0523061020052602061014038036080396080513b15612c79576000600060246101fc6000602061014038036080396080515af16126b6573d600060003e3d6000fd5b610120516101e0526101205162093a808181830110612c79578082019050905062093a808082049050905062093a80808202821582848304141715612c795790509050428082116127075781612709565b805b905090506102005261022060006101f4818352015b610200516101e051808210612c7957808203905090506102405263d3078c9461028052306102a0526101e05162093a808082049050905062093a80808202821582848304141715612c7957905090506102c0526020610280604461029c602061014038036080396080515afa612799573d600060003e3d6000fd5b601f3d1115612c7957610280516102605260006101c0511115612937576101e0516101a05110156127cb5760006127ea565b610200516101a051106127df5760006127ea565b610180516101605114155b6128505761014080516101805161026051808202821582848304141715612c79579050905061024051808202821582848304141715612c7957905090506101c051808015612c79578204905090508181830110612c795780820190509050815250612937565b61014080516101605161026051808202821582848304141715612c7957905090506101a0516101e051808210612c795780820390509050808202821582848304141715612c7957905090506101c051808015612c79578204905090508181830110612c795780820190509050815250610180516101605261014080516101605161026051808202821582848304141715612c795790509050610200516101a051808210612c795780820390509050808202821582848304141715612c7957905090506101c051808015612c79578204905090508181830110612c7957808201905090508152505b4261020051186129465761298e565b610200516101e0526102005162093a808181830110612c795780820190509050428082116129745781612976565b805b9050905061020052815160010180835281141561271e575b50505b610100805160018082018060801d81607f1d18612c79579050905081525061010051600855426001610100516c01431e0fae6d7217caa0000000811015612c79570260090155610140516001610100516c01431e0fae6d7217caa0000000811015612c7957026c01431e0fae6d721000000000090155600660e05160a0526080526040608020546101c0526c02863c1f5cdae420000000000b60e05160a052608052604060802080546101c051610140516c02863c1f5cdae420000000000960e05160a052608052604060802054808210612c795780820390509050808202821582848304141715612c795790509050670de0b6b3a7640000808204905090508181830110612c795780820190509050815550610140516c02863c1f5cdae420000000000960e05160a052608052604060802055426c02863c1f5cdae420000000000a60e05160a052608052604060802055565b6104405160e052612af4612519565b6104605160e052612b03612519565b60006104805114612c40576004546104a05260006c02863c1f5cdae420000000000d5414156104c0526104c05115612b58576104405160e0526104a05161010052600061012052600061014052612b58611fed565b60036104405160a05260805260406080205461048051808210612c7957808203905090506104e0526104e05160036104405160a0526080526040608020556104405160e0526104e051610100526104a05161012052612bb5611dfd565b6104c05115612be1576104605160e0526104a05161010052600061012052600061014052612be1611fed565b60036104605160a052608052604060802054610480518181830110612c7957808201905090506104e0526104e05160036104605160a0526080526040608020556104605160e0526104e051610100526104a05161012052612c40611dfd565b61046051610440517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610480516104a05260206104a0a3565b600080fd5b61044c6130ca0361044c6104003961044c6130ca03610180518161040001526101a0518161042001526101c0518161044001526101e05181610480015261020051816105400152610220518161046001526102e0805160200180836104a001828460045afa90505050610340518161056001526103c08051602001808361050001828460045afa905050508061018001610400f35b600080fd0000000000000000000000000c6f06b32e6ae0c110861b8607e67da594781961000000000000000000000000358fe82370a1b9adae2e3ad69d6cf9e503c960180000000000000000000000003f8e527af4e0c6e763e8f368ac679c44c45626ae

Deployed Bytecode

0x600436101561000d57611df7565b60046000601c3760005134612c795763d31f3f6d811861004f5760016008546c01431e0fae6d7217caa0000000811015612c7957026009015460e052602060e0f35b634b8200938118610114576004358060a01c612c79576102e0526102e05161032052602061018038036080396080516103405260006103005261030060c060006002818352015b60c051602002610320015133186100b057600183526100c0565b8151600101808352811415610096575b5050506103005115612c79576102e05160e0526100db612519565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610107611dfd565b6001610300526020610300f35b633313458381186101bf576004358060a01c612c79576102e0526102e05160e05261013d612519565b6c02863c1f5cdae420000000000b6102e05160a052608052604060802054638b752bb0610300526102e0516103205230610340526020610300604461031c602061018038036080396080515afa610199573d600060003e3d6000fd5b601f3d1115612c795761030051808210612c795780820390509050610360526020610360f35b63e77e74378118610237576004358060a01c612c795760e0526024358060a01c612c7957610100526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205470010000000000000000000000000000000080820690509050610120526020610120f35b6333fd6f748118610453576004358060a01c612c795760e0526024358060a01c612c79576101005260056c02863c1f5cdae42000000000166101005160a05260805260406080200154610120526004546101405260006101405114610386574260026c02863c1f5cdae42000000000166101005160a052608052604060802001548082116102c557816102c7565b805b90509050610160526101605160046c02863c1f5cdae42000000000166101005160a05260805260406080200154808210612c7957808203905090506101805261012080516101805160036c02863c1f5cdae42000000000166101005160a05260805260406080200154808202821582848304141715612c795790509050670de0b6b3a7640000808202821582848304141715612c79579050905061014051808015612c79578204905090508181830110612c7957808201905090508152505b6c02863c1f5cdae42000000000186101005160a052608052604060802060e05160a05260805260406080205461016052600360e05160a0526080526040608020546101205161016051808210612c795780820390509050808202821582848304141715612c795790509050670de0b6b3a764000080820490509050610180526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205460801c610180518181830110612c7957808201905090506101a05260206101a0f35b63bdf98116811861048c576004358060a01c612c795760e05260e0516c02863c1f5cdae42000000000173360a052608052604060802055005b63e6f1daf281186104a75733610440526000610460526104f6565b6384e9bd7e81186104cc576004358060a01c612c7957610440526000610460526104f6565b639faceb1b8118610543576004358060a01c612c7957610440526024358060a01c612c7957610460525b600054612c795760016000556000610460511461051857336104405118612c79575b6104405160e05260045461010052600161012052610460516101405261053c611fed565b6000600055005b6396c551758118610702576004358060a01c612c79576102e0526c02863c1f5cdae420000000000a6102e05160a0526080526040608020546103005263da020a18610380526102e0516103a05263010ae757610340526102e051610360526020610340602461035c602061012038036080396080515afa6105c9573d600060003e3d6000fd5b601f3d1115612c7957610340516103c0526020610380604461039c602061012038036080396080515afa610602573d600060003e3d6000fd5b601f3d1115612c7957610380516103205260036102e05160a052608052604060802054610340526370a082316103a0526102e0516103c05260206103a060246103bc602061012038036080396080515afa610662573d600060003e3d6000fd5b601f3d1115612c79576103a0511561068257610300516103205111610685565b60015b15612c7957610340516028808202821582848304141715612c79579050905060648082049050905060066102e05160a0526080526040608020541115612c79576102e05160e0526106d4612519565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610700611dfd565b005b63b6b55f25811861071d57336104405260006104605261076c565b636e553f658118610742576024358060a01c612c79576104405260006104605261076c565b6383df6747811861091b576024358060a01c612c7957610440526044358060011c612c7957610460525b600054612c795760016000556104405160e052610787612519565b6000600435146108ae5760006c02863c1f5cdae420000000000d541415610480526004546104a05261048051156107dd576104405160e0526104a0516101005261046051610120526000610140526107dd611fed565b6104a080516004358181830110612c79578082019050905081525060036104405160a0526080526040608020546004358181830110612c7957808201905090506104c0526104c05160036104405160a0526080526040608020556104a0516004556104405160e0526104c051610100526104a0516101205261085d611dfd565b6323b872dd6104e052336105005230610520526004356105405260206104e060646104fc60006020602038036080396080515af16108a0573d600060003e3d6000fd5b601f3d1115612c79576104e0505b610440517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c600435610480526020610480a26104405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610480526020610480a36000600055005b632e1a7d4d81186109315760006104405261094c565b6338d074368118610add576024358060011c612c7957610440525b600054612c795760016000553360e052610964612519565b600060043514610a765760006c02863c1f5cdae420000000000d541415610460526004546104805261046051156109b7573360e052610480516101005261044051610120526000610140526109b7611fed565b6104808051600435808210612c79578082039050905081525060033360a052608052604060802054600435808210612c7957808203905090506104a0526104a05160033360a052608052604060802055610480516004553360e0526104a051610100526104805161012052610a2a611dfd565b63a9059cbb6104c052336104e0526004356105005260206104c060446104dc60006020602038036080396080515af1610a68573d600060003e3d6000fd5b601f3d1115612c79576104c0505b337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364600435610460526020610460a26000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610460526020610460a36000600055005b63a9059cbb8118610b31576004358060a01c612c795761050052600054612c795760016000553361044052610500516104605260243561048052610b1f612ae5565b60016105205260206105206000600055f35b6323b872dd8118610c17576004358060a01c612c7957610500526024358060a01c612c795761052052600054612c7957600160005560056105005160a05260805260406080203360a052608052604060802054610540527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6105405114610be65761054051604435808210612c79578082039050905060056105005160a05260805260406080203360a0526080526040608020555b6105005161044052610520516104605260443561048052610c05612ae5565b60016105605260206105606000600055f35b63095ea7b38118610c8f576004358060a01c612c795760e05260243560053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602435610100526020610100a36001610100526020610100f35b63d505accf8118611005576004358060a01c612c795760e0526024358060a01c612c7957610100526084358060081c612c795761012052600060e05114612c79576064354211612c7957600160e05160a0526080526040608020546101405260006002610400527f1901000000000000000000000000000000000000000000000000000000000000610420526104006002806020846106000101826020850160045afa5050805182019150506020604038036080396080516020826106000101526020810190507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96105405260e0516105605261010051610580526044356105a052610140516105c0526064356105e05260c0610520526105208051602082012090506020826106000101526020810190508061060052610600905080516020820120905061016052600060e0513b11610e195760e0516101605161018052610120516101a052604060a46101c03760206080608061018060015afa5060805118612c7957610f79565b600060a4356102205260c435610240526040610200526102006040806020846102c00101826020850160045afa505080518201915050601f60016020820661026001602082840111612c79576020806102808261012060045afa5050818152905090506001806020846102c00101826020850160045afa505080518201915050806102c0526102c09050805160200180610180828460045afa905050507f1626ba7e00000000000000000000000000000000000000000000000000000000631626ba7e610200526102208060406101605182526020820191508082528083018061018080516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810150505050602061020060c461021c60e0515afa610f66573d600060003e3d6000fd5b601f3d1115612c79576102005118612c79575b604435600560e05160a05260805260406080206101005160a0526080526040608020556101405160018181830110612c795780820190509050600160e05160a0526080526040608020556101005160e0517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925604435610180526020610180a36001610180526020610180f35b633950935181186110b3576004358060a01c612c795760e05260053360a052608052604060802060e05160a0526080526040608020546024358181830110612c795780820190509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63a457c2d7811861115f576004358060a01c612c795760e05260053360a052608052604060802060e05160a052608052604060802054602435808210612c795780820390509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63e8de0d4d8118611277576004358060a01c612c795760e0526024358060a01c612c7957610100526c02863c1f5cdae420000000001a543318612c79576c02863c1f5cdae420000000000d54610120526008610120511015612c795760016c02863c1f5cdae420000000001660e05160a05260805260406080200154612c7957600060e05114612c79576101005160016c02863c1f5cdae420000000001660e05160a0526080526040608020015560e0516001610120516008811015612c7957026c02863c1f5cdae420000000000e015560e0516c02863c1f5cdae420000000001660e05160a0526080526040608020556101205160018181830110612c7957808201905090506c02863c1f5cdae420000000000d55005b63058a3a248118611327576004358060a01c612c795760e0526024358060a01c612c79576101005260016c02863c1f5cdae420000000001660e05160a05260805260406080200154610120526101205133186112d45760016112e6565b6c02863c1f5cdae420000000001a5433145b15612c795760006101205114612c795760006101005114612c79576101005160016c02863c1f5cdae420000000001660e05160a05260805260406080200155005b6393f7aa6781186115ef576004358060a01c612c795761044052600054612c7957600160005560016c02863c1f5cdae42000000000166104405160a052608052604060802001543318612c7957600060e05260045461010052600061012052600061014052611394611fed565b600060046104a0527f23b872dd000000000000000000000000000000000000000000000000000000006104c0526104a06004806020846104e00101826020850160045afa505080518201915050336020826104e0010152602081019050306020826104e00101526020810190506024356020826104e0010152602081019050806104e0526104e0505060206105a06104e0516105006000610440515af1611440573d600060003e3d6000fd5b61058060203d8082116114535781611455565b805b905090508152805160200180610460828460045afa905050506000610460511461149457610480516104605181816020036008021c9050905015612c79575b60026c02863c1f5cdae42000000000166104405160a052608052604060802001546104a0526104a051421015611560576104a05142808210612c7957808203905090506104c0526104c05160036c02863c1f5cdae42000000000166104405160a05260805260406080200154808202821582848304141715612c7957905090506104e0526024356104e0518181830110612c79578082019050905062093a808082049050905060036c02863c1f5cdae42000000000166104405160a05260805260406080200155611590565b60243562093a808082049050905060036c02863c1f5cdae42000000000166104405160a052608052604060802001555b4260046c02863c1f5cdae42000000000166104405160a052608052604060802001554262093a808181830110612c79578082019050905060026c02863c1f5cdae42000000000166104405160a052608052604060802001556000600055005b6390b229978118611631576004358060011c612c795760e0526c02863c1f5cdae420000000001a543318612c795760e0516c02863c1f5cdae420000000001c55005b636b441a4081186116a1576004358060a01c612c795760e0526c02863c1f5cdae420000000001a543318612c795760e0516c02863c1f5cdae420000000001b557f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e960e051610100526020610100a1005b63e5ea47b88118611709576c02863c1f5cdae420000000001b5460e05260e0513318612c795760e0516c02863c1f5cdae420000000001a557febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a118910560e051610100526020610100a1005b6306fdde03811861177a5760e080602080825260e0380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b6395d89b4181186117eb5760e08060208082526080380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b63313ce567811861180157601260e052602060e0f35b63075461728118611822576020610180380360803960805160e052602060e0f35b63d09f22a68118611843576020610160380360803960805160e052602060e0f35b63f77c47918118611864576020610140380360803960805160e052602060e0f35b63dfe050318118611885576020610120380360803960805160e052602060e0f35b6349ec3b3f81186118a6576020610100380360803960805160e052602060e0f35b6382c6306681186118c65760206020380360803960805160e052602060e0f35b6354fd4d50811861196057610120806020808252600660e0527f76352e302e3000000000000000000000000000000000000000000000000000006101005260e0818401808280516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905090508101905090509050610120f35b633644e51581186119805760206040380360803960805160e052602060e0f35b637ecebe0081186119b5576004358060a01c612c795760e052600160e05160a052608052604060802054610100526020610100f35b63be5d1be981186119cc5760025460e052602060e0f35b6370a082318118611a01576004358060a01c612c795760e052600360e05160a052608052604060802054610100526020610100f35b6318160ddd8118611a185760045460e052602060e0f35b63dd62ed3e8118611a6b576004358060a01c612c795760e0526024358060a01c612c795761010052600560e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b6313ecb1ca8118611aa0576004358060a01c612c795760e052600660e05160a052608052604060802054610100526020610100f35b6317e280898118611ab75760075460e052602060e0f35b63ef78d4fd8118611ace5760085460e052602060e0f35b637598108c8118611b015760016004356c01431e0fae6d7217caa0000000811015612c7957026009015460e052602060e0f35b63fec8ee0c8118611b405760016004356c01431e0fae6d7217caa0000000811015612c7957026c01431e0fae6d72100000000009015460e052602060e0f35b63de263bfa8118611b81576004358060a01c612c795760e0526c02863c1f5cdae420000000000960e05160a052608052604060802054610100526020610100f35b639bd324f28118611bc2576004358060a01c612c795760e0526c02863c1f5cdae420000000000a60e05160a052608052604060802054610100526020610100f35b63094007078118611c03576004358060a01c612c795760e0526c02863c1f5cdae420000000000b60e05160a052608052604060802054610100526020610100f35b63180692d08118611c26576c02863c1f5cdae420000000000c5460e052602060e0f35b63963c94b98118611c49576c02863c1f5cdae420000000000d5460e052602060e0f35b6354c49fe98118611c7c5760016004356008811015612c7957026c02863c1f5cdae420000000000e015460e052602060e0f35b6348e9c65e8118611cec576004358060a01c612c795760e0526c02863c1f5cdae420000000001660e05160a052608052604060802080546101005260018101546101205260028101546101405260038101546101605260048101546101805260058101546101a0525060c0610100f35b6301ddabf18118611d2d576004358060a01c612c795760e0526c02863c1f5cdae420000000001760e05160a052608052604060802054610100526020610100f35b63f05cc0588118611d8c576004358060a01c612c795760e0526024358060a01c612c7957610100526c02863c1f5cdae420000000001860e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b63f851a4408118611daf576c02863c1f5cdae420000000001a5460e052602060e0f35b6317f7182a8118611dd2576c02863c1f5cdae420000000001b5460e052602060e0f35b639c868ac08118611df5576c02863c1f5cdae420000000001c5460e052602060e0f35b505b60006000fd5b63bbf7408a6101605260e051610180526020610160602461017c602061010038036080396080515afa611e35573d600060003e3d6000fd5b601f3d1115612c795761016051610140526318160ddd610180526020610180600461019c602061012038036080396080515afa611e77573d600060003e3d6000fd5b601f3d1115612c79576101805161016052610100516028808202821582848304141715612c795790509050606480820490509050610180526000610160511115611f205761018080516101205161014051808202821582848304141715612c79579050905061016051808015612c7957820490509050603c808202821582848304141715612c7957905090506064808204905090508181830110612c7957808201905090508152505b6101005161018051808211611f355781611f37565b805b9050905061018052600660e05160a0526080526040608020546101a05261018051600660e05160a052608052604060802055600754610180518181830110612c7957808201905090506101a051808210612c7957808203905090506101c0526101c0516007557f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a360e0516101e0526101005161020052610120516102205261018051610240526101c0516102605260a06101e0a1565b6000610160526101405161018052600060e0511461206557600360e05160a052608052604060802054610160526101205161202957600061202f565b61014051155b15612065576c02863c1f5cdae420000000001760e05160a05260805260406080205461018052610180516120655760e051610180525b6c02863c1f5cdae420000000000d546101a0526101c060006008818352015b6101a0516101c0511861209657612515565b60016101c0516008811015612c7957026c02863c1f5cdae420000000000e01546101e05260056c02863c1f5cdae42000000000166101e05160a05260805260406080200154610200524260026c02863c1f5cdae42000000000166101e05160a0526080526040608020015480821161210e5781612110565b805b90509050610220526102205160046c02863c1f5cdae42000000000166101e05160a05260805260406080200154808210612c795780820390509050610240526000610240511461222f576102205160046c02863c1f5cdae42000000000166101e05160a052608052604060802001556000610100511461222f5761020080516102405160036c02863c1f5cdae42000000000166101e05160a05260805260406080200154808202821582848304141715612c795790509050670de0b6b3a7640000808202821582848304141715612c79579050905061010051808015612c79578204905090508181830110612c7957808201905090508152506102005160056c02863c1f5cdae42000000000166101e05160a052608052604060802001555b600060e05114612505576c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a05260805260406080205461026052600061028052610200516102605110156122f057610200516c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a052608052604060802055610160516102005161026051808210612c795780820390509050808202821582848304141715612c795790509050670de0b6b3a764000080820490509050610280525b6c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020546102a0526102a05160801c610280518181830110612c7957808201905090506102c05260006102c0511115612505576102a051700100000000000000000000000000000000808206905090506102e052610120516123cc576000610280511115612505576102e0516102c05160801b8181830110612c7957808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a052608052604060802055612505565b60006004610340527fa9059cbb00000000000000000000000000000000000000000000000000000000610360526103406004806020846103800101826020850160045afa505080518201915050610180516020826103800101526020810190506102c051602082610380010152602081019050806103805261038050506020610420610380516103a060006101e0515af161246c573d600060003e3d6000fd5b61040060203d80821161247f5781612481565b805b905090508152805160200180610300828460045afa90505050600061030051146124c057610320516103005181816020036008021c9050905015612c79575b6102e0516102c0518181830110612c7957808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020555b8151600101808352811415612084575b5050565b600854610100526001610100516c01431e0fae6d7217caa0000000811015612c79570260090154610120526001610100516c01431e0fae6d7217caa0000000811015612c7957026c01431e0fae6d721000000000090154610140526c02863c1f5cdae420000000000c546101605261016051610180526002546101a0526101a05142106126395763b26b238e6101c05260206101c060046101dc6000602061018038036080396080515af16125d3573d600060003e3d6000fd5b601f3d1115612c79576101c051600255632c4e722e6101c05260206101c060046101dc602061018038036080396080515afa612614573d600060003e3d6000fd5b601f3d1115612c79576101c05161018052610180516c02863c1f5cdae420000000000c555b6c02863c1f5cdae420000000001c541561265a576000610160526000610180525b61012051421115612991576007546101c05263615e52376101e0523061020052602061014038036080396080513b15612c79576000600060246101fc6000602061014038036080396080515af16126b6573d600060003e3d6000fd5b610120516101e0526101205162093a808181830110612c79578082019050905062093a808082049050905062093a80808202821582848304141715612c795790509050428082116127075781612709565b805b905090506102005261022060006101f4818352015b610200516101e051808210612c7957808203905090506102405263d3078c9461028052306102a0526101e05162093a808082049050905062093a80808202821582848304141715612c7957905090506102c0526020610280604461029c602061014038036080396080515afa612799573d600060003e3d6000fd5b601f3d1115612c7957610280516102605260006101c0511115612937576101e0516101a05110156127cb5760006127ea565b610200516101a051106127df5760006127ea565b610180516101605114155b6128505761014080516101805161026051808202821582848304141715612c79579050905061024051808202821582848304141715612c7957905090506101c051808015612c79578204905090508181830110612c795780820190509050815250612937565b61014080516101605161026051808202821582848304141715612c7957905090506101a0516101e051808210612c795780820390509050808202821582848304141715612c7957905090506101c051808015612c79578204905090508181830110612c795780820190509050815250610180516101605261014080516101605161026051808202821582848304141715612c795790509050610200516101a051808210612c795780820390509050808202821582848304141715612c7957905090506101c051808015612c79578204905090508181830110612c7957808201905090508152505b4261020051186129465761298e565b610200516101e0526102005162093a808181830110612c795780820190509050428082116129745781612976565b805b9050905061020052815160010180835281141561271e575b50505b610100805160018082018060801d81607f1d18612c79579050905081525061010051600855426001610100516c01431e0fae6d7217caa0000000811015612c79570260090155610140516001610100516c01431e0fae6d7217caa0000000811015612c7957026c01431e0fae6d721000000000090155600660e05160a0526080526040608020546101c0526c02863c1f5cdae420000000000b60e05160a052608052604060802080546101c051610140516c02863c1f5cdae420000000000960e05160a052608052604060802054808210612c795780820390509050808202821582848304141715612c795790509050670de0b6b3a7640000808204905090508181830110612c795780820190509050815550610140516c02863c1f5cdae420000000000960e05160a052608052604060802055426c02863c1f5cdae420000000000a60e05160a052608052604060802055565b6104405160e052612af4612519565b6104605160e052612b03612519565b60006104805114612c40576004546104a05260006c02863c1f5cdae420000000000d5414156104c0526104c05115612b58576104405160e0526104a05161010052600061012052600061014052612b58611fed565b60036104405160a05260805260406080205461048051808210612c7957808203905090506104e0526104e05160036104405160a0526080526040608020556104405160e0526104e051610100526104a05161012052612bb5611dfd565b6104c05115612be1576104605160e0526104a05161010052600061012052600061014052612be1611fed565b60036104605160a052608052604060802054610480518181830110612c7957808201905090506104e0526104e05160036104605160a0526080526040608020556104605160e0526104e051610100526104a05161012052612c40611dfd565b61046051610440517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610480516104a05260206104a0a3565b600080fd000000000000000000000000358fe82370a1b9adae2e3ad69d6cf9e503c96018000000000000000000000000f1dc500fde233a4055e25e5bbf516372bc4f687100000000000000000000000099cb6c36816de2131ef2626bb5def7e5cc8b9b14000000000000000000000000d2751cdbed54b87777e805be36670d7aeae73bb200000000000000000000000099d99a4aaa2f012d61369242ec581a1682d615de0000000000000000000000000000000000000000000000000000000000000018536164646c6520534c50204761756765204465706f736974000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009534c502d676175676500000000000000000000000000000000000000000000007e208aa1f942463a3c49efb2b536d4e04b4a9a73af3abe1777d9a96eeae9b2970000000000000000000000000c6f06b32e6ae0c110861b8607e67da594781961

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

0000000000000000000000000c6f06b32e6ae0c110861b8607e67da594781961000000000000000000000000358fe82370a1b9adae2e3ad69d6cf9e503c960180000000000000000000000003f8e527af4e0c6e763e8f368ac679c44c45626ae

-----Decoded View---------------
Arg [0] : _lp_token (address): 0x0C6F06b32E6Ae0C110861b8607e67dA594781961
Arg [1] : _minter (address): 0x358fE82370a1B9aDaE2E3ad69D6cF9e503c96018
Arg [2] : _admin (address): 0x3F8E527aF4e0c6e763e8f368AC679c44C45626aE

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000c6f06b32e6ae0c110861b8607e67da594781961
Arg [1] : 000000000000000000000000358fe82370a1b9adae2e3ad69d6cf9e503c96018
Arg [2] : 0000000000000000000000003f8e527af4e0c6e763e8f368ac679c44c45626ae


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.