ETH Price: $3,462.73 (-0.70%)

Token

Ribbon.fi rEARN-stETH Gauge Deposit (rEARN-stETH-gauge)
 

Overview

Max Total Supply

40.647544416873322295 rEARN-stETH-gauge

Holders

562

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
zetachainlabs.eth
Balance
0.0001 rEARN-stETH-gauge

Value
$0.00
0x34ecfca1dd05f10bdfb2a6ea4678388a00791aef
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

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)
RBN_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
    """

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

    MINTER = _minter
    RBN_TOKEN = rbn_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("Ribbon.fi ", 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

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


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

    assert msg.sender == current_distributor or msg.sender == 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 rbn_token() -> address:
  """
  @notice Query the crv token
  """
  return RBN_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":"rbn_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"}]}]

602061313a6080396080518060a01c6131355760e0526020602061313a016080396080518060a01c61313557610100526020604061313a016080396080518060a01c613135576101205263fc0c546a610160526020610160600461017c610100515afa610071573d600060003e3d6000fd5b601f3d111561313557610160518060a01c613135576101405263f77c4791610180526020610180600461019c610100515afa6100b2573d600060003e3d6000fd5b601f3d111561313557610180518060a01c61313557610160526101005161018052610140516101a052610160516101c05263dfe050316101e05260206101e060046101fc610160515afa61010b573d600060003e3d6000fd5b601f3d1115613135576101e0518060a01c61313557610220526349ec3b3f610240526020610240600461025c610160515afa61014c573d600060003e3d6000fd5b601f3d111561313557610240518060a01c613135576101e0526395d89b41610280526060610280600461029c60e0515afa61018c573d600060003e3d6000fd5b603f3d1115613135576102805161028001601a8151116131355780805160200180610240828460045afa9050905050506000600a6102e0527f526962626f6e2e66692000000000000000000000000000000000000000000000610300526102e0600a806020846103600101826020850160045afa505080518201915050610240601a806020846103600101826020850160045afa505080518201915050600e610320527f204761756765204465706f73697400000000000000000000000000000000000061034052610320600e806020846103600101826020850160045afa50508051820191505080610360526103609050805160200180610280828460045afa905050506102808051602001806102e0828460045afa905050506000610240601a806020846103800101826020850160045afa5050805182019150506006610340527f2d67617567650000000000000000000000000000000000000000000000000000610360526103406006806020846103800101826020850160045afa505080518201915050806103805261038090508051602001806103c0828460045afa905050507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6104e052610280805160208201209050610500527f572f01d824885a118d5d21c74542f263b131d2897955c62a721594f1d7c3b2e2610520524661054052306105605260a06104c0526104c08051602082012090506102005260e05161034052610120516c02863c1f5cdae420000000001a5542600955632c4e722e610400526020610400600461041c610100515afa6103f1573d600060003e3d6000fd5b601f3d111561313557610400516c02863c1f5cdae420000000000c5563b26b238e610400526020610400600461041c6000610100515af1610437573d600060003e3d6000fd5b601f3d111561313557610400516002556130a056600436101561000d57611dcd565b60046000601c3760005134612c4f5763d31f3f6d811861004f5760016008546c01431e0fae6d7217caa0000000811015612c4f57026009015460e052602060e0f35b634b8200938118610114576004358060a01c612c4f576102e0526102e05161032052602061018038036080396080516103405260006103005261030060c060006002818352015b60c051602002610320015133186100b057600183526100c0565b8151600101808352811415610096575b5050506103005115612c4f576102e05160e0526100db6124ef565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610107611dd3565b6001610300526020610300f35b633313458381186101bf576004358060a01c612c4f576102e0526102e05160e05261013d6124ef565b6c02863c1f5cdae420000000000b6102e05160a052608052604060802054638b752bb0610300526102e0516103205230610340526020610300604461031c602061018038036080396080515afa610199573d600060003e3d6000fd5b601f3d1115612c4f5761030051808210612c4f5780820390509050610360526020610360f35b63e77e74378118610237576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205470010000000000000000000000000000000080820690509050610120526020610120f35b6333fd6f748118610453576004358060a01c612c4f5760e0526024358060a01c612c4f576101005260056c02863c1f5cdae42000000000166101005160a05260805260406080200154610120526004546101405260006101405114610386574260026c02863c1f5cdae42000000000166101005160a052608052604060802001548082116102c557816102c7565b805b90509050610160526101605160046c02863c1f5cdae42000000000166101005160a05260805260406080200154808210612c4f57808203905090506101805261012080516101805160036c02863c1f5cdae42000000000166101005160a05260805260406080200154808202821582848304141715612c4f5790509050670de0b6b3a7640000808202821582848304141715612c4f579050905061014051808015612c4f578204905090508181830110612c4f57808201905090508152505b6c02863c1f5cdae42000000000186101005160a052608052604060802060e05160a05260805260406080205461016052600360e05160a0526080526040608020546101205161016051808210612c4f5780820390509050808202821582848304141715612c4f5790509050670de0b6b3a764000080820490509050610180526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205460801c610180518181830110612c4f57808201905090506101a05260206101a0f35b63bdf98116811861048c576004358060a01c612c4f5760e05260e0516c02863c1f5cdae42000000000173360a052608052604060802055005b63e6f1daf281186104a75733610440526000610460526104f6565b6384e9bd7e81186104cc576004358060a01c612c4f57610440526000610460526104f6565b639faceb1b8118610543576004358060a01c612c4f57610440526024358060a01c612c4f57610460525b600054612c4f5760016000556000610460511461051857336104405118612c4f575b6104405160e05260045461010052600161012052610460516101405261053c611fc3565b6000600055005b6396c551758118610702576004358060a01c612c4f576102e0526c02863c1f5cdae420000000000a6102e05160a0526080526040608020546103005263da020a18610380526102e0516103a05263010ae757610340526102e051610360526020610340602461035c602061012038036080396080515afa6105c9573d600060003e3d6000fd5b601f3d1115612c4f57610340516103c0526020610380604461039c602061012038036080396080515afa610602573d600060003e3d6000fd5b601f3d1115612c4f57610380516103205260036102e05160a052608052604060802054610340526370a082316103a0526102e0516103c05260206103a060246103bc602061012038036080396080515afa610662573d600060003e3d6000fd5b601f3d1115612c4f576103a0511561068257610300516103205111610685565b60015b15612c4f57610340516028808202821582848304141715612c4f579050905060648082049050905060066102e05160a0526080526040608020541115612c4f576102e05160e0526106d46124ef565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610700611dd3565b005b63b6b55f25811861071d57336104405260006104605261076c565b636e553f658118610742576024358060a01c612c4f576104405260006104605261076c565b6383df6747811861091b576024358060a01c612c4f57610440526044358060011c612c4f57610460525b600054612c4f5760016000556104405160e0526107876124ef565b6000600435146108ae5760006c02863c1f5cdae420000000000d541415610480526004546104a05261048051156107dd576104405160e0526104a0516101005261046051610120526000610140526107dd611fc3565b6104a080516004358181830110612c4f578082019050905081525060036104405160a0526080526040608020546004358181830110612c4f57808201905090506104c0526104c05160036104405160a0526080526040608020556104a0516004556104405160e0526104c051610100526104a0516101205261085d611dd3565b6323b872dd6104e052336105005230610520526004356105405260206104e060646104fc60006020602038036080396080515af16108a0573d600060003e3d6000fd5b601f3d1115612c4f576104e0505b610440517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c600435610480526020610480a26104405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610480526020610480a36000600055005b632e1a7d4d81186109315760006104405261094c565b6338d074368118610add576024358060011c612c4f57610440525b600054612c4f5760016000553360e0526109646124ef565b600060043514610a765760006c02863c1f5cdae420000000000d541415610460526004546104805261046051156109b7573360e052610480516101005261044051610120526000610140526109b7611fc3565b6104808051600435808210612c4f578082039050905081525060033360a052608052604060802054600435808210612c4f57808203905090506104a0526104a05160033360a052608052604060802055610480516004553360e0526104a051610100526104805161012052610a2a611dd3565b63a9059cbb6104c052336104e0526004356105005260206104c060446104dc60006020602038036080396080515af1610a68573d600060003e3d6000fd5b601f3d1115612c4f576104c0505b337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364600435610460526020610460a26000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610460526020610460a36000600055005b63a9059cbb8118610b31576004358060a01c612c4f5761050052600054612c4f5760016000553361044052610500516104605260243561048052610b1f612abb565b60016105205260206105206000600055f35b6323b872dd8118610c17576004358060a01c612c4f57610500526024358060a01c612c4f5761052052600054612c4f57600160005560056105005160a05260805260406080203360a052608052604060802054610540527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6105405114610be65761054051604435808210612c4f578082039050905060056105005160a05260805260406080203360a0526080526040608020555b6105005161044052610520516104605260443561048052610c05612abb565b60016105605260206105606000600055f35b63095ea7b38118610c8f576004358060a01c612c4f5760e05260243560053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602435610100526020610100a36001610100526020610100f35b63d505accf8118611005576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526084358060081c612c4f5761012052600060e05114612c4f576064354211612c4f57600160e05160a0526080526040608020546101405260006002610400527f1901000000000000000000000000000000000000000000000000000000000000610420526104006002806020846106000101826020850160045afa5050805182019150506020604038036080396080516020826106000101526020810190507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96105405260e0516105605261010051610580526044356105a052610140516105c0526064356105e05260c0610520526105208051602082012090506020826106000101526020810190508061060052610600905080516020820120905061016052600060e0513b11610e195760e0516101605161018052610120516101a052604060a46101c03760206080608061018060015afa5060805118612c4f57610f79565b600060a4356102205260c435610240526040610200526102006040806020846102c00101826020850160045afa505080518201915050601f60016020820661026001602082840111612c4f576020806102808261012060045afa5050818152905090506001806020846102c00101826020850160045afa505080518201915050806102c0526102c09050805160200180610180828460045afa905050507f1626ba7e00000000000000000000000000000000000000000000000000000000631626ba7e610200526102208060406101605182526020820191508082528083018061018080516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810150505050602061020060c461021c60e0515afa610f66573d600060003e3d6000fd5b601f3d1115612c4f576102005118612c4f575b604435600560e05160a05260805260406080206101005160a0526080526040608020556101405160018181830110612c4f5780820190509050600160e05160a0526080526040608020556101005160e0517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925604435610180526020610180a36001610180526020610180f35b633950935181186110b3576004358060a01c612c4f5760e05260053360a052608052604060802060e05160a0526080526040608020546024358181830110612c4f5780820190509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63a457c2d7811861115f576004358060a01c612c4f5760e05260053360a052608052604060802060e05160a052608052604060802054602435808210612c4f5780820390509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63e8de0d4d811861124d576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526c02863c1f5cdae420000000001a543318612c4f576c02863c1f5cdae420000000000d54610120526008610120511015612c4f5760016c02863c1f5cdae420000000001660e05160a05260805260406080200154612c4f576101005160016c02863c1f5cdae420000000001660e05160a0526080526040608020015560e0516001610120516008811015612c4f57026c02863c1f5cdae420000000000e01556101205160018181830110612c4f57808201905090506c02863c1f5cdae420000000000d55005b63058a3a2481186112fd576004358060a01c612c4f5760e0526024358060a01c612c4f576101005260016c02863c1f5cdae420000000001660e05160a05260805260406080200154610120526101205133186112aa5760016112bc565b6c02863c1f5cdae420000000001a5433145b15612c4f5760006101205114612c4f5760006101005114612c4f576101005160016c02863c1f5cdae420000000001660e05160a05260805260406080200155005b6393f7aa6781186115c5576004358060a01c612c4f5761044052600054612c4f57600160005560016c02863c1f5cdae42000000000166104405160a052608052604060802001543318612c4f57600060e0526004546101005260006101205260006101405261136a611fc3565b600060046104a0527f23b872dd000000000000000000000000000000000000000000000000000000006104c0526104a06004806020846104e00101826020850160045afa505080518201915050336020826104e0010152602081019050306020826104e00101526020810190506024356020826104e0010152602081019050806104e0526104e0505060206105a06104e0516105006000610440515af1611416573d600060003e3d6000fd5b61058060203d808211611429578161142b565b805b905090508152805160200180610460828460045afa905050506000610460511461146a57610480516104605181816020036008021c9050905015612c4f575b60026c02863c1f5cdae42000000000166104405160a052608052604060802001546104a0526104a051421015611536576104a05142808210612c4f57808203905090506104c0526104c05160036c02863c1f5cdae42000000000166104405160a05260805260406080200154808202821582848304141715612c4f57905090506104e0526024356104e0518181830110612c4f578082019050905062093a808082049050905060036c02863c1f5cdae42000000000166104405160a05260805260406080200155611566565b60243562093a808082049050905060036c02863c1f5cdae42000000000166104405160a052608052604060802001555b4260046c02863c1f5cdae42000000000166104405160a052608052604060802001554262093a808181830110612c4f578082019050905060026c02863c1f5cdae42000000000166104405160a052608052604060802001556000600055005b6390b229978118611607576004358060011c612c4f5760e0526c02863c1f5cdae420000000001a543318612c4f5760e0516c02863c1f5cdae420000000001c55005b636b441a408118611677576004358060a01c612c4f5760e0526c02863c1f5cdae420000000001a543318612c4f5760e0516c02863c1f5cdae420000000001b557f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e960e051610100526020610100a1005b63e5ea47b881186116df576c02863c1f5cdae420000000001b5460e05260e0513318612c4f5760e0516c02863c1f5cdae420000000001a557febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a118910560e051610100526020610100a1005b6306fdde0381186117505760e080602080825260e0380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b6395d89b4181186117c15760e08060208082526080380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b63313ce56781186117d757601260e052602060e0f35b630754617281186117f8576020610180380360803960805160e052602060e0f35b63ef93199a8118611819576020610160380360803960805160e052602060e0f35b63f77c4791811861183a576020610140380360803960805160e052602060e0f35b63dfe05031811861185b576020610120380360803960805160e052602060e0f35b6349ec3b3f811861187c576020610100380360803960805160e052602060e0f35b6382c63066811861189c5760206020380360803960805160e052602060e0f35b6354fd4d50811861193657610120806020808252600660e0527f76352e302e3000000000000000000000000000000000000000000000000000006101005260e0818401808280516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905090508101905090509050610120f35b633644e51581186119565760206040380360803960805160e052602060e0f35b637ecebe00811861198b576004358060a01c612c4f5760e052600160e05160a052608052604060802054610100526020610100f35b63be5d1be981186119a25760025460e052602060e0f35b6370a0823181186119d7576004358060a01c612c4f5760e052600360e05160a052608052604060802054610100526020610100f35b6318160ddd81186119ee5760045460e052602060e0f35b63dd62ed3e8118611a41576004358060a01c612c4f5760e0526024358060a01c612c4f5761010052600560e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b6313ecb1ca8118611a76576004358060a01c612c4f5760e052600660e05160a052608052604060802054610100526020610100f35b6317e280898118611a8d5760075460e052602060e0f35b63ef78d4fd8118611aa45760085460e052602060e0f35b637598108c8118611ad75760016004356c01431e0fae6d7217caa0000000811015612c4f57026009015460e052602060e0f35b63fec8ee0c8118611b165760016004356c01431e0fae6d7217caa0000000811015612c4f57026c01431e0fae6d72100000000009015460e052602060e0f35b63de263bfa8118611b57576004358060a01c612c4f5760e0526c02863c1f5cdae420000000000960e05160a052608052604060802054610100526020610100f35b639bd324f28118611b98576004358060a01c612c4f5760e0526c02863c1f5cdae420000000000a60e05160a052608052604060802054610100526020610100f35b63094007078118611bd9576004358060a01c612c4f5760e0526c02863c1f5cdae420000000000b60e05160a052608052604060802054610100526020610100f35b63180692d08118611bfc576c02863c1f5cdae420000000000c5460e052602060e0f35b63963c94b98118611c1f576c02863c1f5cdae420000000000d5460e052602060e0f35b6354c49fe98118611c525760016004356008811015612c4f57026c02863c1f5cdae420000000000e015460e052602060e0f35b6348e9c65e8118611cc2576004358060a01c612c4f5760e0526c02863c1f5cdae420000000001660e05160a052608052604060802080546101005260018101546101205260028101546101405260038101546101605260048101546101805260058101546101a0525060c0610100f35b6301ddabf18118611d03576004358060a01c612c4f5760e0526c02863c1f5cdae420000000001760e05160a052608052604060802054610100526020610100f35b63f05cc0588118611d62576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526c02863c1f5cdae420000000001860e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b63f851a4408118611d85576c02863c1f5cdae420000000001a5460e052602060e0f35b6317f7182a8118611da8576c02863c1f5cdae420000000001b5460e052602060e0f35b639c868ac08118611dcb576c02863c1f5cdae420000000001c5460e052602060e0f35b505b60006000fd5b63bbf7408a6101605260e051610180526020610160602461017c602061010038036080396080515afa611e0b573d600060003e3d6000fd5b601f3d1115612c4f5761016051610140526318160ddd610180526020610180600461019c602061012038036080396080515afa611e4d573d600060003e3d6000fd5b601f3d1115612c4f576101805161016052610100516028808202821582848304141715612c4f5790509050606480820490509050610180526000610160511115611ef65761018080516101205161014051808202821582848304141715612c4f579050905061016051808015612c4f57820490509050603c808202821582848304141715612c4f57905090506064808204905090508181830110612c4f57808201905090508152505b6101005161018051808211611f0b5781611f0d565b805b9050905061018052600660e05160a0526080526040608020546101a05261018051600660e05160a052608052604060802055600754610180518181830110612c4f57808201905090506101a051808210612c4f57808203905090506101c0526101c0516007557f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a360e0516101e0526101005161020052610120516102205261018051610240526101c0516102605260a06101e0a1565b6000610160526101405161018052600060e0511461203b57600360e05160a0526080526040608020546101605261012051611fff576000612005565b61014051155b1561203b576c02863c1f5cdae420000000001760e05160a052608052604060802054610180526101805161203b5760e051610180525b6c02863c1f5cdae420000000000d546101a0526101c060006008818352015b6101a0516101c0511861206c576124eb565b60016101c0516008811015612c4f57026c02863c1f5cdae420000000000e01546101e05260056c02863c1f5cdae42000000000166101e05160a05260805260406080200154610200524260026c02863c1f5cdae42000000000166101e05160a052608052604060802001548082116120e457816120e6565b805b90509050610220526102205160046c02863c1f5cdae42000000000166101e05160a05260805260406080200154808210612c4f57808203905090506102405260006102405114612205576102205160046c02863c1f5cdae42000000000166101e05160a05260805260406080200155600061010051146122055761020080516102405160036c02863c1f5cdae42000000000166101e05160a05260805260406080200154808202821582848304141715612c4f5790509050670de0b6b3a7640000808202821582848304141715612c4f579050905061010051808015612c4f578204905090508181830110612c4f57808201905090508152506102005160056c02863c1f5cdae42000000000166101e05160a052608052604060802001555b600060e051146124db576c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a05260805260406080205461026052600061028052610200516102605110156122c657610200516c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a052608052604060802055610160516102005161026051808210612c4f5780820390509050808202821582848304141715612c4f5790509050670de0b6b3a764000080820490509050610280525b6c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020546102a0526102a05160801c610280518181830110612c4f57808201905090506102c05260006102c05111156124db576102a051700100000000000000000000000000000000808206905090506102e052610120516123a25760006102805111156124db576102e0516102c05160801b8181830110612c4f57808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020556124db565b60006004610340527fa9059cbb00000000000000000000000000000000000000000000000000000000610360526103406004806020846103800101826020850160045afa505080518201915050610180516020826103800101526020810190506102c051602082610380010152602081019050806103805261038050506020610420610380516103a060006101e0515af1612442573d600060003e3d6000fd5b61040060203d8082116124555781612457565b805b905090508152805160200180610300828460045afa905050506000610300511461249657610320516103005181816020036008021c9050905015612c4f575b6102e0516102c0518181830110612c4f57808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020555b815160010180835281141561205a575b5050565b600854610100526001610100516c01431e0fae6d7217caa0000000811015612c4f570260090154610120526001610100516c01431e0fae6d7217caa0000000811015612c4f57026c01431e0fae6d721000000000090154610140526c02863c1f5cdae420000000000c546101605261016051610180526002546101a0526101a051421061260f5763b26b238e6101c05260206101c060046101dc6000602061018038036080396080515af16125a9573d600060003e3d6000fd5b601f3d1115612c4f576101c051600255632c4e722e6101c05260206101c060046101dc602061018038036080396080515afa6125ea573d600060003e3d6000fd5b601f3d1115612c4f576101c05161018052610180516c02863c1f5cdae420000000000c555b6c02863c1f5cdae420000000001c5415612630576000610160526000610180525b61012051421115612967576007546101c05263615e52376101e0523061020052602061014038036080396080513b15612c4f576000600060246101fc6000602061014038036080396080515af161268c573d600060003e3d6000fd5b610120516101e0526101205162093a808181830110612c4f578082019050905062093a808082049050905062093a80808202821582848304141715612c4f5790509050428082116126dd57816126df565b805b905090506102005261022060006101f4818352015b610200516101e051808210612c4f57808203905090506102405263d3078c9461028052306102a0526101e05162093a808082049050905062093a80808202821582848304141715612c4f57905090506102c0526020610280604461029c602061014038036080396080515afa61276f573d600060003e3d6000fd5b601f3d1115612c4f57610280516102605260006101c051111561290d576101e0516101a05110156127a15760006127c0565b610200516101a051106127b55760006127c0565b610180516101605114155b6128265761014080516101805161026051808202821582848304141715612c4f579050905061024051808202821582848304141715612c4f57905090506101c051808015612c4f578204905090508181830110612c4f578082019050905081525061290d565b61014080516101605161026051808202821582848304141715612c4f57905090506101a0516101e051808210612c4f5780820390509050808202821582848304141715612c4f57905090506101c051808015612c4f578204905090508181830110612c4f5780820190509050815250610180516101605261014080516101605161026051808202821582848304141715612c4f5790509050610200516101a051808210612c4f5780820390509050808202821582848304141715612c4f57905090506101c051808015612c4f578204905090508181830110612c4f57808201905090508152505b42610200511861291c57612964565b610200516101e0526102005162093a808181830110612c4f57808201905090504280821161294a578161294c565b805b905090506102005281516001018083528114156126f4575b50505b610100805160018082018060801d81607f1d18612c4f579050905081525061010051600855426001610100516c01431e0fae6d7217caa0000000811015612c4f570260090155610140516001610100516c01431e0fae6d7217caa0000000811015612c4f57026c01431e0fae6d721000000000090155600660e05160a0526080526040608020546101c0526c02863c1f5cdae420000000000b60e05160a052608052604060802080546101c051610140516c02863c1f5cdae420000000000960e05160a052608052604060802054808210612c4f5780820390509050808202821582848304141715612c4f5790509050670de0b6b3a7640000808204905090508181830110612c4f5780820190509050815550610140516c02863c1f5cdae420000000000960e05160a052608052604060802055426c02863c1f5cdae420000000000a60e05160a052608052604060802055565b6104405160e052612aca6124ef565b6104605160e052612ad96124ef565b60006104805114612c16576004546104a05260006c02863c1f5cdae420000000000d5414156104c0526104c05115612b2e576104405160e0526104a05161010052600061012052600061014052612b2e611fc3565b60036104405160a05260805260406080205461048051808210612c4f57808203905090506104e0526104e05160036104405160a0526080526040608020556104405160e0526104e051610100526104a05161012052612b8b611dd3565b6104c05115612bb7576104605160e0526104a05161010052600061012052600061014052612bb7611fc3565b60036104605160a052608052604060802054610480518181830110612c4f57808201905090506104e0526104e05160036104605160a0526080526040608020556104605160e0526104e051610100526104a05161012052612c16611dd3565b61046051610440517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610480516104a05260206104a0a3565b600080fd5b61044c6130a00361044c6104003961044c6130a003610180518161040001526101a0518161042001526101c0518161044001526101e05181610480015261020051816105400152610220518161046001526102e0805160200180836104a001828460045afa90505050610340518161056001526103c08051602001808361050001828460045afa905050508061018001610400f35b600080fd000000000000000000000000ce5513474e077f5336cf1b33c1347fdd8d48ae8c0000000000000000000000005b0655f938a72052c46d2e94d206ccb6ff625a3a00000000000000000000000043a43d3404eac5fa1ec4f4bb0879495d500e390b

Deployed Bytecode

0x600436101561000d57611dcd565b60046000601c3760005134612c4f5763d31f3f6d811861004f5760016008546c01431e0fae6d7217caa0000000811015612c4f57026009015460e052602060e0f35b634b8200938118610114576004358060a01c612c4f576102e0526102e05161032052602061018038036080396080516103405260006103005261030060c060006002818352015b60c051602002610320015133186100b057600183526100c0565b8151600101808352811415610096575b5050506103005115612c4f576102e05160e0526100db6124ef565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610107611dd3565b6001610300526020610300f35b633313458381186101bf576004358060a01c612c4f576102e0526102e05160e05261013d6124ef565b6c02863c1f5cdae420000000000b6102e05160a052608052604060802054638b752bb0610300526102e0516103205230610340526020610300604461031c602061018038036080396080515afa610199573d600060003e3d6000fd5b601f3d1115612c4f5761030051808210612c4f5780820390509050610360526020610360f35b63e77e74378118610237576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205470010000000000000000000000000000000080820690509050610120526020610120f35b6333fd6f748118610453576004358060a01c612c4f5760e0526024358060a01c612c4f576101005260056c02863c1f5cdae42000000000166101005160a05260805260406080200154610120526004546101405260006101405114610386574260026c02863c1f5cdae42000000000166101005160a052608052604060802001548082116102c557816102c7565b805b90509050610160526101605160046c02863c1f5cdae42000000000166101005160a05260805260406080200154808210612c4f57808203905090506101805261012080516101805160036c02863c1f5cdae42000000000166101005160a05260805260406080200154808202821582848304141715612c4f5790509050670de0b6b3a7640000808202821582848304141715612c4f579050905061014051808015612c4f578204905090508181830110612c4f57808201905090508152505b6c02863c1f5cdae42000000000186101005160a052608052604060802060e05160a05260805260406080205461016052600360e05160a0526080526040608020546101205161016051808210612c4f5780820390509050808202821582848304141715612c4f5790509050670de0b6b3a764000080820490509050610180526c02863c1f5cdae420000000001960e05160a05260805260406080206101005160a05260805260406080205460801c610180518181830110612c4f57808201905090506101a05260206101a0f35b63bdf98116811861048c576004358060a01c612c4f5760e05260e0516c02863c1f5cdae42000000000173360a052608052604060802055005b63e6f1daf281186104a75733610440526000610460526104f6565b6384e9bd7e81186104cc576004358060a01c612c4f57610440526000610460526104f6565b639faceb1b8118610543576004358060a01c612c4f57610440526024358060a01c612c4f57610460525b600054612c4f5760016000556000610460511461051857336104405118612c4f575b6104405160e05260045461010052600161012052610460516101405261053c611fc3565b6000600055005b6396c551758118610702576004358060a01c612c4f576102e0526c02863c1f5cdae420000000000a6102e05160a0526080526040608020546103005263da020a18610380526102e0516103a05263010ae757610340526102e051610360526020610340602461035c602061012038036080396080515afa6105c9573d600060003e3d6000fd5b601f3d1115612c4f57610340516103c0526020610380604461039c602061012038036080396080515afa610602573d600060003e3d6000fd5b601f3d1115612c4f57610380516103205260036102e05160a052608052604060802054610340526370a082316103a0526102e0516103c05260206103a060246103bc602061012038036080396080515afa610662573d600060003e3d6000fd5b601f3d1115612c4f576103a0511561068257610300516103205111610685565b60015b15612c4f57610340516028808202821582848304141715612c4f579050905060648082049050905060066102e05160a0526080526040608020541115612c4f576102e05160e0526106d46124ef565b6102e05160e05260036102e05160a0526080526040608020546101005260045461012052610700611dd3565b005b63b6b55f25811861071d57336104405260006104605261076c565b636e553f658118610742576024358060a01c612c4f576104405260006104605261076c565b6383df6747811861091b576024358060a01c612c4f57610440526044358060011c612c4f57610460525b600054612c4f5760016000556104405160e0526107876124ef565b6000600435146108ae5760006c02863c1f5cdae420000000000d541415610480526004546104a05261048051156107dd576104405160e0526104a0516101005261046051610120526000610140526107dd611fc3565b6104a080516004358181830110612c4f578082019050905081525060036104405160a0526080526040608020546004358181830110612c4f57808201905090506104c0526104c05160036104405160a0526080526040608020556104a0516004556104405160e0526104c051610100526104a0516101205261085d611dd3565b6323b872dd6104e052336105005230610520526004356105405260206104e060646104fc60006020602038036080396080515af16108a0573d600060003e3d6000fd5b601f3d1115612c4f576104e0505b610440517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c600435610480526020610480a26104405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610480526020610480a36000600055005b632e1a7d4d81186109315760006104405261094c565b6338d074368118610add576024358060011c612c4f57610440525b600054612c4f5760016000553360e0526109646124ef565b600060043514610a765760006c02863c1f5cdae420000000000d541415610460526004546104805261046051156109b7573360e052610480516101005261044051610120526000610140526109b7611fc3565b6104808051600435808210612c4f578082039050905081525060033360a052608052604060802054600435808210612c4f57808203905090506104a0526104a05160033360a052608052604060802055610480516004553360e0526104a051610100526104805161012052610a2a611dd3565b63a9059cbb6104c052336104e0526004356105005260206104c060446104dc60006020602038036080396080515af1610a68573d600060003e3d6000fd5b601f3d1115612c4f576104c0505b337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364600435610460526020610460a26000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600435610460526020610460a36000600055005b63a9059cbb8118610b31576004358060a01c612c4f5761050052600054612c4f5760016000553361044052610500516104605260243561048052610b1f612abb565b60016105205260206105206000600055f35b6323b872dd8118610c17576004358060a01c612c4f57610500526024358060a01c612c4f5761052052600054612c4f57600160005560056105005160a05260805260406080203360a052608052604060802054610540527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6105405114610be65761054051604435808210612c4f578082039050905060056105005160a05260805260406080203360a0526080526040608020555b6105005161044052610520516104605260443561048052610c05612abb565b60016105605260206105606000600055f35b63095ea7b38118610c8f576004358060a01c612c4f5760e05260243560053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602435610100526020610100a36001610100526020610100f35b63d505accf8118611005576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526084358060081c612c4f5761012052600060e05114612c4f576064354211612c4f57600160e05160a0526080526040608020546101405260006002610400527f1901000000000000000000000000000000000000000000000000000000000000610420526104006002806020846106000101826020850160045afa5050805182019150506020604038036080396080516020826106000101526020810190507f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96105405260e0516105605261010051610580526044356105a052610140516105c0526064356105e05260c0610520526105208051602082012090506020826106000101526020810190508061060052610600905080516020820120905061016052600060e0513b11610e195760e0516101605161018052610120516101a052604060a46101c03760206080608061018060015afa5060805118612c4f57610f79565b600060a4356102205260c435610240526040610200526102006040806020846102c00101826020850160045afa505080518201915050601f60016020820661026001602082840111612c4f576020806102808261012060045afa5050818152905090506001806020846102c00101826020850160045afa505080518201915050806102c0526102c09050805160200180610180828460045afa905050507f1626ba7e00000000000000000000000000000000000000000000000000000000631626ba7e610200526102208060406101605182526020820191508082528083018061018080516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810150505050602061020060c461021c60e0515afa610f66573d600060003e3d6000fd5b601f3d1115612c4f576102005118612c4f575b604435600560e05160a05260805260406080206101005160a0526080526040608020556101405160018181830110612c4f5780820190509050600160e05160a0526080526040608020556101005160e0517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925604435610180526020610180a36001610180526020610180f35b633950935181186110b3576004358060a01c612c4f5760e05260053360a052608052604060802060e05160a0526080526040608020546024358181830110612c4f5780820190509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63a457c2d7811861115f576004358060a01c612c4f5760e05260053360a052608052604060802060e05160a052608052604060802054602435808210612c4f5780820390509050610100526101005160053360a052608052604060802060e05160a05260805260406080205560e051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561010051610120526020610120a36001610120526020610120f35b63e8de0d4d811861124d576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526c02863c1f5cdae420000000001a543318612c4f576c02863c1f5cdae420000000000d54610120526008610120511015612c4f5760016c02863c1f5cdae420000000001660e05160a05260805260406080200154612c4f576101005160016c02863c1f5cdae420000000001660e05160a0526080526040608020015560e0516001610120516008811015612c4f57026c02863c1f5cdae420000000000e01556101205160018181830110612c4f57808201905090506c02863c1f5cdae420000000000d55005b63058a3a2481186112fd576004358060a01c612c4f5760e0526024358060a01c612c4f576101005260016c02863c1f5cdae420000000001660e05160a05260805260406080200154610120526101205133186112aa5760016112bc565b6c02863c1f5cdae420000000001a5433145b15612c4f5760006101205114612c4f5760006101005114612c4f576101005160016c02863c1f5cdae420000000001660e05160a05260805260406080200155005b6393f7aa6781186115c5576004358060a01c612c4f5761044052600054612c4f57600160005560016c02863c1f5cdae42000000000166104405160a052608052604060802001543318612c4f57600060e0526004546101005260006101205260006101405261136a611fc3565b600060046104a0527f23b872dd000000000000000000000000000000000000000000000000000000006104c0526104a06004806020846104e00101826020850160045afa505080518201915050336020826104e0010152602081019050306020826104e00101526020810190506024356020826104e0010152602081019050806104e0526104e0505060206105a06104e0516105006000610440515af1611416573d600060003e3d6000fd5b61058060203d808211611429578161142b565b805b905090508152805160200180610460828460045afa905050506000610460511461146a57610480516104605181816020036008021c9050905015612c4f575b60026c02863c1f5cdae42000000000166104405160a052608052604060802001546104a0526104a051421015611536576104a05142808210612c4f57808203905090506104c0526104c05160036c02863c1f5cdae42000000000166104405160a05260805260406080200154808202821582848304141715612c4f57905090506104e0526024356104e0518181830110612c4f578082019050905062093a808082049050905060036c02863c1f5cdae42000000000166104405160a05260805260406080200155611566565b60243562093a808082049050905060036c02863c1f5cdae42000000000166104405160a052608052604060802001555b4260046c02863c1f5cdae42000000000166104405160a052608052604060802001554262093a808181830110612c4f578082019050905060026c02863c1f5cdae42000000000166104405160a052608052604060802001556000600055005b6390b229978118611607576004358060011c612c4f5760e0526c02863c1f5cdae420000000001a543318612c4f5760e0516c02863c1f5cdae420000000001c55005b636b441a408118611677576004358060a01c612c4f5760e0526c02863c1f5cdae420000000001a543318612c4f5760e0516c02863c1f5cdae420000000001b557f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e960e051610100526020610100a1005b63e5ea47b881186116df576c02863c1f5cdae420000000001b5460e05260e0513318612c4f5760e0516c02863c1f5cdae420000000001a557febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a118910560e051610100526020610100a1005b6306fdde0381186117505760e080602080825260e0380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b6395d89b4181186117c15760e08060208082526080380381840180826020816080396080516020018082843950508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090509050810190509050905060e0f35b63313ce56781186117d757601260e052602060e0f35b630754617281186117f8576020610180380360803960805160e052602060e0f35b63ef93199a8118611819576020610160380360803960805160e052602060e0f35b63f77c4791811861183a576020610140380360803960805160e052602060e0f35b63dfe05031811861185b576020610120380360803960805160e052602060e0f35b6349ec3b3f811861187c576020610100380360803960805160e052602060e0f35b6382c63066811861189c5760206020380360803960805160e052602060e0f35b6354fd4d50811861193657610120806020808252600660e0527f76352e302e3000000000000000000000000000000000000000000000000000006101005260e0818401808280516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905090508101905090509050610120f35b633644e51581186119565760206040380360803960805160e052602060e0f35b637ecebe00811861198b576004358060a01c612c4f5760e052600160e05160a052608052604060802054610100526020610100f35b63be5d1be981186119a25760025460e052602060e0f35b6370a0823181186119d7576004358060a01c612c4f5760e052600360e05160a052608052604060802054610100526020610100f35b6318160ddd81186119ee5760045460e052602060e0f35b63dd62ed3e8118611a41576004358060a01c612c4f5760e0526024358060a01c612c4f5761010052600560e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b6313ecb1ca8118611a76576004358060a01c612c4f5760e052600660e05160a052608052604060802054610100526020610100f35b6317e280898118611a8d5760075460e052602060e0f35b63ef78d4fd8118611aa45760085460e052602060e0f35b637598108c8118611ad75760016004356c01431e0fae6d7217caa0000000811015612c4f57026009015460e052602060e0f35b63fec8ee0c8118611b165760016004356c01431e0fae6d7217caa0000000811015612c4f57026c01431e0fae6d72100000000009015460e052602060e0f35b63de263bfa8118611b57576004358060a01c612c4f5760e0526c02863c1f5cdae420000000000960e05160a052608052604060802054610100526020610100f35b639bd324f28118611b98576004358060a01c612c4f5760e0526c02863c1f5cdae420000000000a60e05160a052608052604060802054610100526020610100f35b63094007078118611bd9576004358060a01c612c4f5760e0526c02863c1f5cdae420000000000b60e05160a052608052604060802054610100526020610100f35b63180692d08118611bfc576c02863c1f5cdae420000000000c5460e052602060e0f35b63963c94b98118611c1f576c02863c1f5cdae420000000000d5460e052602060e0f35b6354c49fe98118611c525760016004356008811015612c4f57026c02863c1f5cdae420000000000e015460e052602060e0f35b6348e9c65e8118611cc2576004358060a01c612c4f5760e0526c02863c1f5cdae420000000001660e05160a052608052604060802080546101005260018101546101205260028101546101405260038101546101605260048101546101805260058101546101a0525060c0610100f35b6301ddabf18118611d03576004358060a01c612c4f5760e0526c02863c1f5cdae420000000001760e05160a052608052604060802054610100526020610100f35b63f05cc0588118611d62576004358060a01c612c4f5760e0526024358060a01c612c4f57610100526c02863c1f5cdae420000000001860e05160a05260805260406080206101005160a052608052604060802054610120526020610120f35b63f851a4408118611d85576c02863c1f5cdae420000000001a5460e052602060e0f35b6317f7182a8118611da8576c02863c1f5cdae420000000001b5460e052602060e0f35b639c868ac08118611dcb576c02863c1f5cdae420000000001c5460e052602060e0f35b505b60006000fd5b63bbf7408a6101605260e051610180526020610160602461017c602061010038036080396080515afa611e0b573d600060003e3d6000fd5b601f3d1115612c4f5761016051610140526318160ddd610180526020610180600461019c602061012038036080396080515afa611e4d573d600060003e3d6000fd5b601f3d1115612c4f576101805161016052610100516028808202821582848304141715612c4f5790509050606480820490509050610180526000610160511115611ef65761018080516101205161014051808202821582848304141715612c4f579050905061016051808015612c4f57820490509050603c808202821582848304141715612c4f57905090506064808204905090508181830110612c4f57808201905090508152505b6101005161018051808211611f0b5781611f0d565b805b9050905061018052600660e05160a0526080526040608020546101a05261018051600660e05160a052608052604060802055600754610180518181830110612c4f57808201905090506101a051808210612c4f57808203905090506101c0526101c0516007557f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a360e0516101e0526101005161020052610120516102205261018051610240526101c0516102605260a06101e0a1565b6000610160526101405161018052600060e0511461203b57600360e05160a0526080526040608020546101605261012051611fff576000612005565b61014051155b1561203b576c02863c1f5cdae420000000001760e05160a052608052604060802054610180526101805161203b5760e051610180525b6c02863c1f5cdae420000000000d546101a0526101c060006008818352015b6101a0516101c0511861206c576124eb565b60016101c0516008811015612c4f57026c02863c1f5cdae420000000000e01546101e05260056c02863c1f5cdae42000000000166101e05160a05260805260406080200154610200524260026c02863c1f5cdae42000000000166101e05160a052608052604060802001548082116120e457816120e6565b805b90509050610220526102205160046c02863c1f5cdae42000000000166101e05160a05260805260406080200154808210612c4f57808203905090506102405260006102405114612205576102205160046c02863c1f5cdae42000000000166101e05160a05260805260406080200155600061010051146122055761020080516102405160036c02863c1f5cdae42000000000166101e05160a05260805260406080200154808202821582848304141715612c4f5790509050670de0b6b3a7640000808202821582848304141715612c4f579050905061010051808015612c4f578204905090508181830110612c4f57808201905090508152506102005160056c02863c1f5cdae42000000000166101e05160a052608052604060802001555b600060e051146124db576c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a05260805260406080205461026052600061028052610200516102605110156122c657610200516c02863c1f5cdae42000000000186101e05160a052608052604060802060e05160a052608052604060802055610160516102005161026051808210612c4f5780820390509050808202821582848304141715612c4f5790509050670de0b6b3a764000080820490509050610280525b6c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020546102a0526102a05160801c610280518181830110612c4f57808201905090506102c05260006102c05111156124db576102a051700100000000000000000000000000000000808206905090506102e052610120516123a25760006102805111156124db576102e0516102c05160801b8181830110612c4f57808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020556124db565b60006004610340527fa9059cbb00000000000000000000000000000000000000000000000000000000610360526103406004806020846103800101826020850160045afa505080518201915050610180516020826103800101526020810190506102c051602082610380010152602081019050806103805261038050506020610420610380516103a060006101e0515af1612442573d600060003e3d6000fd5b61040060203d8082116124555781612457565b805b905090508152805160200180610300828460045afa905050506000610300511461249657610320516103005181816020036008021c9050905015612c4f575b6102e0516102c0518181830110612c4f57808201905090506c02863c1f5cdae420000000001960e05160a05260805260406080206101e05160a0526080526040608020555b815160010180835281141561205a575b5050565b600854610100526001610100516c01431e0fae6d7217caa0000000811015612c4f570260090154610120526001610100516c01431e0fae6d7217caa0000000811015612c4f57026c01431e0fae6d721000000000090154610140526c02863c1f5cdae420000000000c546101605261016051610180526002546101a0526101a051421061260f5763b26b238e6101c05260206101c060046101dc6000602061018038036080396080515af16125a9573d600060003e3d6000fd5b601f3d1115612c4f576101c051600255632c4e722e6101c05260206101c060046101dc602061018038036080396080515afa6125ea573d600060003e3d6000fd5b601f3d1115612c4f576101c05161018052610180516c02863c1f5cdae420000000000c555b6c02863c1f5cdae420000000001c5415612630576000610160526000610180525b61012051421115612967576007546101c05263615e52376101e0523061020052602061014038036080396080513b15612c4f576000600060246101fc6000602061014038036080396080515af161268c573d600060003e3d6000fd5b610120516101e0526101205162093a808181830110612c4f578082019050905062093a808082049050905062093a80808202821582848304141715612c4f5790509050428082116126dd57816126df565b805b905090506102005261022060006101f4818352015b610200516101e051808210612c4f57808203905090506102405263d3078c9461028052306102a0526101e05162093a808082049050905062093a80808202821582848304141715612c4f57905090506102c0526020610280604461029c602061014038036080396080515afa61276f573d600060003e3d6000fd5b601f3d1115612c4f57610280516102605260006101c051111561290d576101e0516101a05110156127a15760006127c0565b610200516101a051106127b55760006127c0565b610180516101605114155b6128265761014080516101805161026051808202821582848304141715612c4f579050905061024051808202821582848304141715612c4f57905090506101c051808015612c4f578204905090508181830110612c4f578082019050905081525061290d565b61014080516101605161026051808202821582848304141715612c4f57905090506101a0516101e051808210612c4f5780820390509050808202821582848304141715612c4f57905090506101c051808015612c4f578204905090508181830110612c4f5780820190509050815250610180516101605261014080516101605161026051808202821582848304141715612c4f5790509050610200516101a051808210612c4f5780820390509050808202821582848304141715612c4f57905090506101c051808015612c4f578204905090508181830110612c4f57808201905090508152505b42610200511861291c57612964565b610200516101e0526102005162093a808181830110612c4f57808201905090504280821161294a578161294c565b805b905090506102005281516001018083528114156126f4575b50505b610100805160018082018060801d81607f1d18612c4f579050905081525061010051600855426001610100516c01431e0fae6d7217caa0000000811015612c4f570260090155610140516001610100516c01431e0fae6d7217caa0000000811015612c4f57026c01431e0fae6d721000000000090155600660e05160a0526080526040608020546101c0526c02863c1f5cdae420000000000b60e05160a052608052604060802080546101c051610140516c02863c1f5cdae420000000000960e05160a052608052604060802054808210612c4f5780820390509050808202821582848304141715612c4f5790509050670de0b6b3a7640000808204905090508181830110612c4f5780820190509050815550610140516c02863c1f5cdae420000000000960e05160a052608052604060802055426c02863c1f5cdae420000000000a60e05160a052608052604060802055565b6104405160e052612aca6124ef565b6104605160e052612ad96124ef565b60006104805114612c16576004546104a05260006c02863c1f5cdae420000000000d5414156104c0526104c05115612b2e576104405160e0526104a05161010052600061012052600061014052612b2e611fc3565b60036104405160a05260805260406080205461048051808210612c4f57808203905090506104e0526104e05160036104405160a0526080526040608020556104405160e0526104e051610100526104a05161012052612b8b611dd3565b6104c05115612bb7576104605160e0526104a05161010052600061012052600061014052612bb7611fc3565b60036104605160a052608052604060802054610480518181830110612c4f57808201905090506104e0526104e05160036104605160a0526080526040608020556104605160e0526104e051610100526104a05161012052612c16611dd3565b61046051610440517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610480516104a05260206104a0a3565b600080fd0000000000000000000000005b0655f938a72052c46d2e94d206ccb6ff625a3a0000000000000000000000006123b0049f904d730db3c36a31167d9d4121fa6b0000000000000000000000000cb9cc35cefa5622e8d25af36dd56de142ef641500000000000000000000000019854c9a5ffa8116f48f984bdf946fb9cea9b5f70000000000000000000000001929605b714517b76bb733198e0f3c3d4ab086080000000000000000000000000000000000000000000000000000000000000023526962626f6e2e666920724541524e2d7374455448204761756765204465706f73697400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011724541524e2d73744554482d6761756765000000000000000000000000000000f1f629f6f0ba13871651f94a057a6bd5986e08c8f26c73c5c32d213e23def16c000000000000000000000000ce5513474e077f5336cf1b33c1347fdd8d48ae8c

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

000000000000000000000000ce5513474e077f5336cf1b33c1347fdd8d48ae8c0000000000000000000000005b0655f938a72052c46d2e94d206ccb6ff625a3a00000000000000000000000043a43d3404eac5fa1ec4f4bb0879495d500e390b

-----Decoded View---------------
Arg [0] : _lp_token (address): 0xCE5513474E077F5336cf1B33c1347FDD8D48aE8c
Arg [1] : _minter (address): 0x5B0655F938A72052c46d2e94D206ccB6FF625A3A
Arg [2] : _admin (address): 0x43a43D3404eaC5fA1ec4F4BB0879495D500e390b

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000ce5513474e077f5336cf1b33c1347fdd8d48ae8c
Arg [1] : 0000000000000000000000005b0655f938a72052c46d2e94d206ccb6ff625a3a
Arg [2] : 00000000000000000000000043a43d3404eac5fa1ec4f4bb0879495d500e390b


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.