ETH Price: $2,627.83 (-3.19%)

Contract

0x4bfB2FA13097E5312B19585042FdbF3562dC8676
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw168063962023-03-11 17:43:47699 days ago1678556627IN
0x4bfB2FA1...562dC8676
0 ETH0.0217493742.77298699
Withdraw159402602022-11-10 14:37:47820 days ago1668091067IN
0x4bfB2FA1...562dC8676
0 ETH0.0286379254.48782216
Withdraw159272362022-11-08 18:54:11822 days ago1667933651IN
0x4bfB2FA1...562dC8676
0 ETH0.05410075106.39367634
Withdraw157798702022-10-19 4:49:11843 days ago1666154951IN
0x4bfB2FA1...562dC8676
0 ETH0.0078135915.36609808
Claim_tokens157798182022-10-19 4:38:47843 days ago1666154327IN
0x4bfB2FA1...562dC8676
0 ETH0.0052283915.14172863
Claim_tokens153119722022-08-10 3:22:33913 days ago1660101753IN
0x4bfB2FA1...562dC8676
0 ETH0.0065762218.68655876
Claim_tokens149664612022-06-15 8:04:39968 days ago1655280279IN
0x4bfB2FA1...562dC8676
0 ETH0.0235614970.79285827
Claim_tokens144404732022-03-23 4:38:291053 days ago1648010309IN
0x4bfB2FA1...562dC8676
0 ETH0.0143631642.56394963
Withdraw144404302022-03-23 4:29:391053 days ago1648009779IN
0x4bfB2FA1...562dC8676
0 ETH0.0199001643.1206201
Withdraw141948322022-02-13 1:36:171091 days ago1644716177IN
0x4bfB2FA1...562dC8676
0 ETH0.024782553.70128992
Withdraw141531172022-02-06 14:45:291097 days ago1644158729IN
0x4bfB2FA1...562dC8676
0 ETH0.0441946992.34391677
Claim_tokens139318032022-01-03 9:56:091131 days ago1641203769IN
0x4bfB2FA1...562dC8676
0 ETH0.05027431105.84735269
Claim_tokens137443982021-12-05 6:13:031160 days ago1638684783IN
0x4bfB2FA1...562dC8676
0 ETH0.0232643872.62198539
Withdraw137443962021-12-05 6:12:481160 days ago1638684768IN
0x4bfB2FA1...562dC8676
0 ETH0.0357582177.48259337
Deposit134591122021-10-21 5:16:541206 days ago1634793414IN
0x4bfB2FA1...562dC8676
0 ETH0.0294043257.640853
Claim_tokens134034602021-10-12 11:54:021214 days ago1634039642IN
0x4bfB2FA1...562dC8676
0 ETH0.020408865.30796633
Withdraw134034572021-10-12 11:53:321214 days ago1634039612IN
0x4bfB2FA1...562dC8676
0 ETH0.0282086860.55913694
Deposit133517852021-10-04 9:27:521222 days ago1633339672IN
0x4bfB2FA1...562dC8676
0 ETH0.0246894351.71146734
Withdraw133451772021-10-03 8:39:341223 days ago1633250374IN
0x4bfB2FA1...562dC8676
0 ETH0.0184771742.81047518
Approve132255102021-09-14 18:45:001242 days ago1631645100IN
0x4bfB2FA1...562dC8676
0 ETH0.0012332851
Claim_tokens131241942021-08-30 2:34:531258 days ago1630290893IN
0x4bfB2FA1...562dC8676
0 ETH0.0279922493.29907727
Deposit130726502021-08-22 3:20:591266 days ago1629602459IN
0x4bfB2FA1...562dC8676
0 ETH0.0174797239
Deposit130726092021-08-22 3:11:561266 days ago1629601916IN
0x4bfB2FA1...562dC8676
0 ETH0.0152387334
Deposit130398872021-08-17 1:51:111271 days ago1629165071IN
0x4bfB2FA1...562dC8676
0 ETH0.0233062952
Deposit130398572021-08-17 1:42:191271 days ago1629164539IN
0x4bfB2FA1...562dC8676
0 ETH0.0233062952
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.11

Optimization Enabled:
N/A

Other Settings:
default evmVersion, MIT license

Contract Source Code (Vyper language format)

# @version 0.2.11
"""
@title Tokenized Gauge Wrapper: Unit Protocol Edition
@author Curve Finance
@license MIT
@notice Tokenizes gauge deposits to allow claiming of CRV when
        deposited as a collateral within the unit.xyz Vault
"""

from vyper.interfaces import ERC20

implements: ERC20


interface LiquidityGauge:
    def lp_token() -> address: view
    def minter() -> address: view
    def crv_token() -> address: view
    def deposit(_value: uint256): nonpayable
    def withdraw(_value: uint256): nonpayable
    def claimable_tokens(addr: address) -> uint256: nonpayable

interface Minter:
    def mint(gauge_addr: address): nonpayable

interface UnitVault:
    def collaterals(asset: address, user: address) -> uint256: nonpayable


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

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

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

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


minter: public(address)
crv_token: public(address)
lp_token: public(address)
gauge: public(address)

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

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

# caller -> recipient -> can deposit?
approved_to_deposit: public(HashMap[address, HashMap[address, bool]])

crv_integral: uint256
crv_integral_for: HashMap[address, uint256]
claimable_crv: public(HashMap[address, uint256])

# [uint216 claimable balance][uint40 timestamp]
last_claim_data: uint256

# https://github.com/unitprotocol/core/blob/master/contracts/Vault.sol
UNIT_VAULT: constant(address) = 0xb1cFF81b9305166ff1EFc49A129ad2AfCd7BCf19


@external
def __init__(
    _name: String[64],
    _symbol: String[32],
    _gauge: address,
):
    """
    @notice Contract constructor
    @param _name Token full name
    @param _symbol Token symbol
    @param _gauge Liquidity gauge contract address
    """

    self.name = _name
    self.symbol = _symbol

    lp_token: address = LiquidityGauge(_gauge).lp_token()
    ERC20(lp_token).approve(_gauge, MAX_UINT256)

    self.minter = LiquidityGauge(_gauge).minter()
    self.crv_token = LiquidityGauge(_gauge).crv_token()
    self.lp_token = lp_token
    self.gauge = _gauge


@external
def decimals() -> uint256:
    return 18


@internal
def _checkpoint(_user_addresses: address[2]):
    claim_data: uint256 = self.last_claim_data
    I: uint256 = self.crv_integral

    if block.timestamp != claim_data % 2**40:
        last_claimable: uint256 = shift(claim_data, -40)
        claimable: uint256 = LiquidityGauge(self.gauge).claimable_tokens(self)
        d_reward: uint256 = claimable - last_claimable
        total_balance: uint256 = self.totalSupply
        if total_balance > 0:
            I += 10 ** 18 * d_reward / total_balance
            self.crv_integral = I
        self.last_claim_data = block.timestamp + shift(claimable, 40)

    for addr in _user_addresses:
        if addr in [ZERO_ADDRESS, UNIT_VAULT]:
            # do not calculate an integral for the vault to ensure it cannot ever claim
            continue
        user_integral: uint256 = self.crv_integral_for[addr]
        if user_integral < I:
            user_balance: uint256 = self.balanceOf[addr] + self.depositedBalanceOf[addr]
            self.claimable_crv[addr] += user_balance * (I - user_integral) / 10 ** 18
            self.crv_integral_for[addr] = I


@external
def user_checkpoint(addr: address) -> bool:
    """
    @notice Record a checkpoint for `addr`
    @param addr User address
    @return bool success
    """
    self._checkpoint([addr, ZERO_ADDRESS])
    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, ZERO_ADDRESS])

    return self.claimable_crv[addr]


@external
@nonreentrant('lock')
def claim_tokens(addr: address = msg.sender):
    """
    @notice Claim mintable CRV
    @param addr Address to claim for
    """
    self._checkpoint([addr, ZERO_ADDRESS])

    crv_token: address = self.crv_token
    claimable: uint256 = self.claimable_crv[addr]
    self.claimable_crv[addr] = 0

    if ERC20(crv_token).balanceOf(self) < claimable:
        Minter(self.minter).mint(self.gauge)
        self.last_claim_data = block.timestamp

    ERC20(crv_token).transfer(addr, claimable)


@external
def set_approve_deposit(addr: address, can_deposit: bool):
    """
    @notice Set whether `addr` can deposit tokens for `msg.sender`
    @param addr Address to set approval on
    @param can_deposit bool - can this account deposit for `msg.sender`?
    """
    self.approved_to_deposit[addr][msg.sender] = can_deposit


@external
@nonreentrant('lock')
def deposit(_value: uint256, addr: address = msg.sender):
    """
    @notice Deposit `_value` LP tokens
    @param _value Number of tokens to deposit
    @param addr Address to deposit for
    """
    if addr != msg.sender:
        assert self.approved_to_deposit[msg.sender][addr], "Not approved"

    self._checkpoint([addr, ZERO_ADDRESS])

    if _value != 0:
        self.balanceOf[addr] += _value
        self.totalSupply += _value

        ERC20(self.lp_token).transferFrom(msg.sender, self, _value)
        LiquidityGauge(self.gauge).deposit(_value)

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


@external
@nonreentrant('lock')
def withdraw(_value: uint256):
    """
    @notice Withdraw `_value` LP tokens
    @param _value Number of tokens to withdraw
    """
    self._checkpoint([msg.sender, ZERO_ADDRESS])

    if _value != 0:
        self.balanceOf[msg.sender] -= _value
        self.totalSupply -= _value

        LiquidityGauge(self.gauge).withdraw(_value)
        ERC20(self.lp_token).transfer(msg.sender, _value)

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


@view
@external
def allowance(_owner : address, _spender : address) -> uint256:
    """
    @dev Function to check the amount of tokens that an owner allowed to a spender.
    @param _owner The address which owns the funds.
    @param _spender The address which will spend the funds.
    @return An uint256 specifying the amount of tokens still available for the spender.
    """
    return self.allowances[_owner][_spender]


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

    if _value != 0:
        self.balanceOf[_from] -= _value
        self.balanceOf[_to] += _value

    log Transfer(_from, _to, _value)


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

    if msg.sender == UNIT_VAULT:
        # when the transfer originates from the vault, consider it a withdrawal
        # and adjust `depositedBalance` accordingly
        self.depositedBalanceOf[_to] = UnitVault(UNIT_VAULT).collaterals(self, _to)

    return True


@external
@nonreentrant('lock')
def transferFrom(_from : address, _to : address, _value : uint256) -> bool:
    """
     @dev Transfer tokens from one address to another.
     @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.allowances[_from][msg.sender]
    if _allowance != MAX_UINT256:
        self.allowances[_from][msg.sender] = _allowance - _value

    self._transfer(_from, _to, _value)

    if _to == UNIT_VAULT:
        # when a `transferFrom` directs into the vault, consider it a deposited
        # balance so that the recipient may still claim CRV from it
        self.depositedBalanceOf[_from] += _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
         {increaseAllowance} 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.allowances[msg.sender][_spender] = _value
    log Approval(msg.sender, _spender, _value)

    return True


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

    log Approval(msg.sender, _spender, allowance)

    return True

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":"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":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_gauge","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":288},{"stateMutability":"nonpayable","type":"function","name":"user_checkpoint","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":227223},{"stateMutability":"nonpayable","type":"function","name":"claimable_tokens","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":228168},{"stateMutability":"nonpayable","type":"function","name":"claim_tokens","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"claim_tokens","inputs":[{"name":"addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_approve_deposit","inputs":[{"name":"addr","type":"address"},{"name":"can_deposit","type":"bool"}],"outputs":[],"gas":35798},{"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":"withdraw","inputs":[{"name":"_value","type":"uint256"}],"outputs":[],"gas":364124},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":1728},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":641438},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":678085},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":38031},{"stateMutability":"nonpayable","type":"function","name":"increaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_added_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":39275},{"stateMutability":"nonpayable","type":"function","name":"decreaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_subtracted_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":39299},{"stateMutability":"view","type":"function","name":"minter","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1478},{"stateMutability":"view","type":"function","name":"crv_token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1508},{"stateMutability":"view","type":"function","name":"lp_token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1538},{"stateMutability":"view","type":"function","name":"gauge","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":1568},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":1813},{"stateMutability":"view","type":"function","name":"depositedBalanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":1843},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":1658},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":8090},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":7143},{"stateMutability":"view","type":"function","name":"approved_to_deposit","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":2178},{"stateMutability":"view","type":"function","name":"claimable_crv","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":1993}]

60606113d061014039606060206113d060c03960c0516113d0016101a039604060206113d060c03960c05160040135111561003957600080fd5b6040602060206113d00160c03960c0516113d001610220396020602060206113d00160c03960c05160040135111561007057600080fd5b602060406113d00160c03960c05160a01c1561008b57600080fd5b6101a080600860c052602060c020602082510161012060006003818352015b826101205160200211156100bd576100df565b61012051602002850151610120518501555b81516001018083528114156100aa575b50505050505061022080600960c052602060c020602082510161012060006002818352015b8261012051602002111561011757610139565b61012051602002850151610120518501555b8151600101808352811415610104575b505050505050602061030060046382c630666102a0526102bc610180515afa61016157600080fd5b601f3d1161016e57600080fd5b60005061030051610280526020610340604463095ea7b36102a052610180516102c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6102e0526102bc6000610280515af16101ca57600080fd5b601f3d116101d757600080fd5b600050610340506020610300600463075461726102a0526102bc610180515afa61020057600080fd5b601f3d1161020d57600080fd5b60005061030051600055602061030060046376d8b1176102a0526102bc610180515afa61023957600080fd5b601f3d1161024657600080fd5b6000506103005160015561028051600255610180516003556113b856600436101561000d57610d85565b600035601c52600051341561002157600080fd5b63313ce56781141561003857601260005260206000f35b634b8200938114156100805760043560a01c1561005457600080fd5b60043561014052600061016052610160516101405160065801610d8b565b600050600160005260206000f35b63331345838114156100d75760043560a01c1561009c57600080fd5b60043561014052600061016052610160516101405160065801610d8b565b600050600d60043560e05260c052604060c0205460005260206000f35b63bc25a5438114156100ed57336101405261011e565b63f8c4945d8114156101195760043560a01c1561010957600080fd5b602060046101403760005061011e565b61025a565b600f541561012b57600080fd5b6001600f55610140516101405161016052600061018052610180516101605160065801610d8b565b6101405260005060015461016052600d6101405160e05260c052604060c02054610180526000600d6101405160e05260c052604060c0205561018051602061022060246370a082316101a052306101c0526101bc610160515afa6101b657600080fd5b601f3d116101c357600080fd5b60005061022051101561020b576000543b6101dd57600080fd5b600060006024636a627842610240526003546102605261025c60006000545af161020657600080fd5b42600e555b6020610240604463a9059cbb6101a052610140516101c052610180516101e0526101bc6000610160515af161023f57600080fd5b601f3d1161024c57600080fd5b600050610240506000600f55005b631d2747d48114156102a85760043560a01c1561027657600080fd5b60243560011c1561028657600080fd5b602435600a60043560e05260c052604060c0203360e05260c052604060c02055005b63b6b55f258114156102be5733610140526102ef565b636e553f658114156102ea5760243560a01c156102da57600080fd5b60206024610140376000506102ef565b6104e4565b600f54156102fc57600080fd5b6001600f553361014051181561037557600a3360e05260c052604060c0206101405160e05260c052604060c020541515610375576308c379a061016052602061018052600c6101a0527f4e6f7420617070726f76656400000000000000000000000000000000000000006101c0526101a050606461017cfd5b610140516101405161016052600061018052610180516101605160065801610d8b565b61014052600050600060043518156104775760046101405160e05260c052604060c02080546004358181830110156103cf57600080fd5b80820190509050815550600680546004358181830110156103ef57600080fd5b80820190509050815550602061022060646323b872dd610160523361018052306101a0526004356101c05261017c60006002545af161042d57600080fd5b601f3d1161043a57600080fd5b600050610220506003543b61044e57600080fd5b60006000602463b6b55f25610160526004356101805261017c60006003545af161047757600080fd5b60043561016052610140517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c6020610160a2600435610160526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610160a36000600f55005b632e1a7d4d81141561065557600f54156104fd57600080fd5b6001600f553361014052600061016052610160516101405160065801610d8b565b600050600060043518156105ee5760043360e05260c052604060c02080546004358082101561054c57600080fd5b80820390509050815550600680546004358082101561056a57600080fd5b808203905090508155506003543b61058157600080fd5b600060006024632e1a7d4d610140526004356101605261015c60006003545af16105aa57600080fd5b60206101e0604463a9059cbb6101405233610160526004356101805261015c60006002545af16105d957600080fd5b601f3d116105e657600080fd5b6000506101e0505b60043561014052337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243646020610140a2600435610140526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a36000600f55005b63dd62ed3e8114156106a95760043560a01c1561067157600080fd5b60243560a01c1561068157600080fd5b600760043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b63a9059cbb81141561079557600f54156106c257600080fd5b6001600f5560043560a01c156106d757600080fd5b3361014052600435610160526024356101805261018051610160516101405160065801611059565b60005073b1cff81b9305166ff1efc49a129ad2afcd7bcf193314156107855760206101e0604463e51e119e6101405230610160526004356101805261015c600073b1cff81b9305166ff1efc49a129ad2afcd7bcf195af161075f57600080fd5b601f3d1161076c57600080fd5b6000506101e051600560043560e05260c052604060c020555b60016000526000600f5560206000f35b6323b872dd8114156108ea57600f54156107ae57600080fd5b6001600f5560043560a01c156107c357600080fd5b60243560a01c156107d357600080fd5b600760043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014051181561085857610140516044358082101561083357600080fd5b80820390509050600760043560e05260c052604060c0203360e05260c052604060c020555b6101405160043561016052602435610180526044356101a0526101a051610180516101605160065801611059565b6101405260005073b1cff81b9305166ff1efc49a129ad2afcd7bcf1960243514156108da57600560043560e05260c052604060c02080546044358181830110156108cf57600080fd5b808201905090508155505b60016000526000600f5560206000f35b63095ea7b38114156109635760043560a01c1561090657600080fd5b60243560073360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b6339509351811415610a185760043560a01c1561097f57600080fd5b60073360e05260c052604060c02060043560e05260c052604060c020546024358181830110156109ae57600080fd5b80820190509050610140526101405160073360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b63a457c2d7811415610acb5760043560a01c15610a3457600080fd5b60073360e05260c052604060c02060043560e05260c052604060c0205460243580821015610a6157600080fd5b80820390509050610140526101405160073360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b6307546172811415610ae35760005460005260206000f35b6376d8b117811415610afb5760015460005260206000f35b6382c63066811415610b135760025460005260206000f35b63a6f19c84811415610b2b5760035460005260206000f35b6370a08231811415610b615760043560a01c15610b4757600080fd5b600460043560e05260c052604060c0205460005260206000f35b6368b48254811415610b975760043560a01c15610b7d57600080fd5b600560043560e05260c052604060c0205460005260206000f35b6318160ddd811415610baf5760065460005260206000f35b6306fdde03811415610c545760088060c052602060c020610180602082540161012060006003818352015b82610120516020021115610bed57610c0f565b61012051850154610120516020028501525b8151600101808352811415610bda575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b41811415610cf95760098060c052602060c020610180602082540161012060006002818352015b82610120516020021115610c9257610cb4565b61012051850154610120516020028501525b8151600101808352811415610c7f575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b63e1522536811415610d4d5760043560a01c15610d1557600080fd5b60243560a01c15610d2557600080fd5b600a60043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6362718579811415610d835760043560a01c15610d6957600080fd5b600d60043560e05260c052604060c0205460005260206000f35b505b60006000fd5b610180526101405261016052600e546101a052600b546101c0526101a0516501000000000080820690509050421815610ec1576101a05160281c6101e05260206102a06024633313458361022052306102405261023c60006003545af1610df157600080fd5b601f3d11610dfe57600080fd5b6000506102a05161020052610200516101e05180821015610e1e57600080fd5b8082039050905061022052600654610240526000610240511115610e9f576101c08051670de0b6b3a7640000610220518082028215828483041417610e6257600080fd5b80905090509050610240518080610e7857600080fd5b820490509050818183011015610e8d57600080fd5b808201905090508152506101c051600b555b426102005160281b818183011015610eb657600080fd5b80820190509050600e555b61020060006002818352015b6020610200510261014001516101e05260006102405273b1cff81b9305166ff1efc49a129ad2afcd7bcf196102605260006102205261022061012060006002818352015b6101205160200261024001516101e0511415610f305760018352610f40565b8151600101808352811415610f11575b5050506102205115610f5157611041565b600c6101e05160e05260c052604060c02054610220526101c0516102205110156110415760046101e05160e05260c052604060c0205460056101e05160e05260c052604060c02054818183011015610fa857600080fd5b8082019050905061024052600d6101e05160e05260c052604060c0208054610240516101c0516102205180821015610fdf57600080fd5b808203905090508082028215828483041417610ffa57600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561102057600080fd5b808201905090508155506101c051600c6101e05160e05260c052604060c020555b8151600101808352811415610ecd575b505061018051565b6101a0526101405261016052610180526101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c05160065801610d8b565b6101a05261018052610160526101405260005060006101805118156111185760046101405160e05260c052604060c020805461018051808210156110dd57600080fd5b8082039050905081555060046101605160e05260c052604060c02080546101805181818301101561110d57600080fd5b808201905090508155505b610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a051565b6102636113b8036102636000396102636113b8036000f3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000bfcf63294ad7105dea65aa58f8ae5be2d9d0952a000000000000000000000000000000000000000000000000000000000000003043757276652e66692033435256204761756765204465706f7369743a20556e69742e78797a20436f6c6c61746572616c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f334352562d47617567652d556e69740000000000000000000000000000000000

Deployed Bytecode

0x600436101561000d57610d85565b600035601c52600051341561002157600080fd5b63313ce56781141561003857601260005260206000f35b634b8200938114156100805760043560a01c1561005457600080fd5b60043561014052600061016052610160516101405160065801610d8b565b600050600160005260206000f35b63331345838114156100d75760043560a01c1561009c57600080fd5b60043561014052600061016052610160516101405160065801610d8b565b600050600d60043560e05260c052604060c0205460005260206000f35b63bc25a5438114156100ed57336101405261011e565b63f8c4945d8114156101195760043560a01c1561010957600080fd5b602060046101403760005061011e565b61025a565b600f541561012b57600080fd5b6001600f55610140516101405161016052600061018052610180516101605160065801610d8b565b6101405260005060015461016052600d6101405160e05260c052604060c02054610180526000600d6101405160e05260c052604060c0205561018051602061022060246370a082316101a052306101c0526101bc610160515afa6101b657600080fd5b601f3d116101c357600080fd5b60005061022051101561020b576000543b6101dd57600080fd5b600060006024636a627842610240526003546102605261025c60006000545af161020657600080fd5b42600e555b6020610240604463a9059cbb6101a052610140516101c052610180516101e0526101bc6000610160515af161023f57600080fd5b601f3d1161024c57600080fd5b600050610240506000600f55005b631d2747d48114156102a85760043560a01c1561027657600080fd5b60243560011c1561028657600080fd5b602435600a60043560e05260c052604060c0203360e05260c052604060c02055005b63b6b55f258114156102be5733610140526102ef565b636e553f658114156102ea5760243560a01c156102da57600080fd5b60206024610140376000506102ef565b6104e4565b600f54156102fc57600080fd5b6001600f553361014051181561037557600a3360e05260c052604060c0206101405160e05260c052604060c020541515610375576308c379a061016052602061018052600c6101a0527f4e6f7420617070726f76656400000000000000000000000000000000000000006101c0526101a050606461017cfd5b610140516101405161016052600061018052610180516101605160065801610d8b565b61014052600050600060043518156104775760046101405160e05260c052604060c02080546004358181830110156103cf57600080fd5b80820190509050815550600680546004358181830110156103ef57600080fd5b80820190509050815550602061022060646323b872dd610160523361018052306101a0526004356101c05261017c60006002545af161042d57600080fd5b601f3d1161043a57600080fd5b600050610220506003543b61044e57600080fd5b60006000602463b6b55f25610160526004356101805261017c60006003545af161047757600080fd5b60043561016052610140517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c6020610160a2600435610160526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610160a36000600f55005b632e1a7d4d81141561065557600f54156104fd57600080fd5b6001600f553361014052600061016052610160516101405160065801610d8b565b600050600060043518156105ee5760043360e05260c052604060c02080546004358082101561054c57600080fd5b80820390509050815550600680546004358082101561056a57600080fd5b808203905090508155506003543b61058157600080fd5b600060006024632e1a7d4d610140526004356101605261015c60006003545af16105aa57600080fd5b60206101e0604463a9059cbb6101405233610160526004356101805261015c60006002545af16105d957600080fd5b601f3d116105e657600080fd5b6000506101e0505b60043561014052337f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243646020610140a2600435610140526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a36000600f55005b63dd62ed3e8114156106a95760043560a01c1561067157600080fd5b60243560a01c1561068157600080fd5b600760043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b63a9059cbb81141561079557600f54156106c257600080fd5b6001600f5560043560a01c156106d757600080fd5b3361014052600435610160526024356101805261018051610160516101405160065801611059565b60005073b1cff81b9305166ff1efc49a129ad2afcd7bcf193314156107855760206101e0604463e51e119e6101405230610160526004356101805261015c600073b1cff81b9305166ff1efc49a129ad2afcd7bcf195af161075f57600080fd5b601f3d1161076c57600080fd5b6000506101e051600560043560e05260c052604060c020555b60016000526000600f5560206000f35b6323b872dd8114156108ea57600f54156107ae57600080fd5b6001600f5560043560a01c156107c357600080fd5b60243560a01c156107d357600080fd5b600760043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014051181561085857610140516044358082101561083357600080fd5b80820390509050600760043560e05260c052604060c0203360e05260c052604060c020555b6101405160043561016052602435610180526044356101a0526101a051610180516101605160065801611059565b6101405260005073b1cff81b9305166ff1efc49a129ad2afcd7bcf1960243514156108da57600560043560e05260c052604060c02080546044358181830110156108cf57600080fd5b808201905090508155505b60016000526000600f5560206000f35b63095ea7b38114156109635760043560a01c1561090657600080fd5b60243560073360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b6339509351811415610a185760043560a01c1561097f57600080fd5b60073360e05260c052604060c02060043560e05260c052604060c020546024358181830110156109ae57600080fd5b80820190509050610140526101405160073360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b63a457c2d7811415610acb5760043560a01c15610a3457600080fd5b60073360e05260c052604060c02060043560e05260c052604060c0205460243580821015610a6157600080fd5b80820390509050610140526101405160073360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b6307546172811415610ae35760005460005260206000f35b6376d8b117811415610afb5760015460005260206000f35b6382c63066811415610b135760025460005260206000f35b63a6f19c84811415610b2b5760035460005260206000f35b6370a08231811415610b615760043560a01c15610b4757600080fd5b600460043560e05260c052604060c0205460005260206000f35b6368b48254811415610b975760043560a01c15610b7d57600080fd5b600560043560e05260c052604060c0205460005260206000f35b6318160ddd811415610baf5760065460005260206000f35b6306fdde03811415610c545760088060c052602060c020610180602082540161012060006003818352015b82610120516020021115610bed57610c0f565b61012051850154610120516020028501525b8151600101808352811415610bda575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b41811415610cf95760098060c052602060c020610180602082540161012060006002818352015b82610120516020021115610c9257610cb4565b61012051850154610120516020028501525b8151600101808352811415610c7f575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b63e1522536811415610d4d5760043560a01c15610d1557600080fd5b60243560a01c15610d2557600080fd5b600a60043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6362718579811415610d835760043560a01c15610d6957600080fd5b600d60043560e05260c052604060c0205460005260206000f35b505b60006000fd5b610180526101405261016052600e546101a052600b546101c0526101a0516501000000000080820690509050421815610ec1576101a05160281c6101e05260206102a06024633313458361022052306102405261023c60006003545af1610df157600080fd5b601f3d11610dfe57600080fd5b6000506102a05161020052610200516101e05180821015610e1e57600080fd5b8082039050905061022052600654610240526000610240511115610e9f576101c08051670de0b6b3a7640000610220518082028215828483041417610e6257600080fd5b80905090509050610240518080610e7857600080fd5b820490509050818183011015610e8d57600080fd5b808201905090508152506101c051600b555b426102005160281b818183011015610eb657600080fd5b80820190509050600e555b61020060006002818352015b6020610200510261014001516101e05260006102405273b1cff81b9305166ff1efc49a129ad2afcd7bcf196102605260006102205261022061012060006002818352015b6101205160200261024001516101e0511415610f305760018352610f40565b8151600101808352811415610f11575b5050506102205115610f5157611041565b600c6101e05160e05260c052604060c02054610220526101c0516102205110156110415760046101e05160e05260c052604060c0205460056101e05160e05260c052604060c02054818183011015610fa857600080fd5b8082019050905061024052600d6101e05160e05260c052604060c0208054610240516101c0516102205180821015610fdf57600080fd5b808203905090508082028215828483041417610ffa57600080fd5b80905090509050670de0b6b3a76400008082049050905081818301101561102057600080fd5b808201905090508155506101c051600c6101e05160e05260c052604060c020555b8151600101808352811415610ecd575b505061018051565b6101a0526101405261016052610180526101405161016051610180516101a051610140516101c052610160516101e0526101e0516101c05160065801610d8b565b6101a05261018052610160526101405260005060006101805118156111185760046101405160e05260c052604060c020805461018051808210156110dd57600080fd5b8082039050905081555060046101605160e05260c052604060c02080546101805181818301101561110d57600080fd5b808201905090508155505b610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a05156

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000bfcf63294ad7105dea65aa58f8ae5be2d9d0952a000000000000000000000000000000000000000000000000000000000000003043757276652e66692033435256204761756765204465706f7369743a20556e69742e78797a20436f6c6c61746572616c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f334352562d47617567652d556e69740000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Curve.fi 3CRV Gauge Deposit: Unit.xyz Collateral
Arg [1] : _symbol (string): 3CRV-Gauge-Unit
Arg [2] : _gauge (address): 0xbFcF63294aD7105dEa65aA58F8AE5BE2D9d0952A

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000bfcf63294ad7105dea65aa58f8ae5be2d9d0952a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [4] : 43757276652e66692033435256204761756765204465706f7369743a20556e69
Arg [5] : 742e78797a20436f6c6c61746572616c00000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [7] : 334352562d47617567652d556e69740000000000000000000000000000000000


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.