ETH Price: $3,375.02 (-2.40%)

Contract

0x8Bc3F1e82Ca3d63987dc12F90538c6bF818FcD0f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve214552952024-12-22 3:16:594 days ago1734837419IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000264945.42380007
Approve207712772024-09-17 15:38:35100 days ago1726587515IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0009329719.09912611
Approve206551562024-09-01 10:34:35116 days ago1725186875IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000039610.8108848
Approve205487882024-08-17 13:57:23131 days ago1723903043IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000051661.94467387
Approve205487872024-08-17 13:57:11131 days ago1723903031IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000037191.4
Approve205486412024-08-17 13:27:59131 days ago1723901279IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000039841.5
Approve205486402024-08-17 13:27:47131 days ago1723901267IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.00004251.6
Approve203005382024-07-13 22:22:35166 days ago1720909355IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000097952.00518467
Approve197827012024-05-02 13:21:11238 days ago1714656071IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0004893110.01682709
Approve197411112024-04-26 17:48:11244 days ago1714153691IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000175076.59046324
Approve197411082024-04-26 17:47:35244 days ago1714153655IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000160436.03919868
Approve195749762024-04-03 11:34:35267 days ago1712144075IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0010698821.90186583
Approve195117132024-03-25 13:12:35276 days ago1711372355IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0009795520.05263088
Approve195099392024-03-25 7:12:11276 days ago1711350731IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0008764917.94292806
Approve190984062024-01-27 14:07:11334 days ago1706364431IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0004408916.59666139
Approve190078632024-01-14 21:39:23347 days ago1705268363IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0006432124.21302462
Approve190078422024-01-14 21:35:11347 days ago1705268111IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0006664625.08806496
Approve189145442024-01-01 19:04:47360 days ago1704135887IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0003806813.32708594
Approve188640682023-12-25 16:56:59367 days ago1703523419IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0007717627.01786343
Approve186547522023-11-26 8:47:23396 days ago1700988443IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.0009734120.04514287
Approve184905702023-11-03 9:14:11419 days ago1699002851IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.001192124.53643897
Approve183985042023-10-21 11:51:47432 days ago1697889107IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000300256.18299064
Approve182407962023-09-29 10:32:35454 days ago1695983555IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000181956.84934591
Approve182407852023-09-29 10:30:23454 days ago1695983423IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000207247.80157314
Approve182338492023-09-28 11:11:11455 days ago1695899471IN
0x8Bc3F1e8...F818FcD0f
0 ETH0.000377377.76928808
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214655542024-12-23 13:42:593 days ago1734961379
0x8Bc3F1e8...F818FcD0f
0 ETH
214567112024-12-22 8:01:354 days ago1734854495
0x8Bc3F1e8...F818FcD0f
0 ETH
214567112024-12-22 8:01:354 days ago1734854495
0x8Bc3F1e8...F818FcD0f
0 ETH
214567112024-12-22 8:01:354 days ago1734854495
0x8Bc3F1e8...F818FcD0f
0 ETH
214567112024-12-22 8:01:354 days ago1734854495
0x8Bc3F1e8...F818FcD0f
0 ETH
214567112024-12-22 8:01:354 days ago1734854495
0x8Bc3F1e8...F818FcD0f
0 ETH
214567112024-12-22 8:01:354 days ago1734854495
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
214553282024-12-22 3:23:354 days ago1734837815
0x8Bc3F1e8...F818FcD0f
0 ETH
View All Internal Transactions
Loading...
Loading

Minimal Proxy Contract for 0xc08550a4cc5333f40e593ecc4c4724808085d304

Contract Name:
Vyper_contract

Compiler Version
vyper:0.3.1

Optimization Enabled:
N/A

Other Settings:
default evmVersion, None license

Contract Source Code (Vyper language format)

# @version 0.3.1
"""
@title Curve LP Token V5
@author Curve.Fi
@notice Base implementation for an LP token provided for supplying liquidity
@dev Follows the ERC-20 token standard as defined at https://eips.ethereum.org/EIPS/eip-20
"""
from vyper.interfaces import ERC20

implements: ERC20


interface ERC1271:
    def isValidSignature(_hash: bytes32, _signature: Bytes[65]) -> bytes32: view


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

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


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

# keccak256("isValidSignature(bytes32,bytes)")[:4] << 224
ERC1271_MAGIC_VAL: constant(bytes32) = 0x1626ba7e00000000000000000000000000000000000000000000000000000000
VERSION: constant(String[8]) = "v5.0.0"


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

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

minter: public(address)
nonces: public(HashMap[address, uint256])


@external
def __init__():
    self.minter = 0x0000000000000000000000000000000000000001


@external
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.
    """
    # NOTE: vyper does not allow underflows
    #       so the following subtraction would revert on insufficient balance
    self.balanceOf[msg.sender] -= _value
    self.balanceOf[_to] += _value

    log Transfer(msg.sender, _to, _value)
    return True


@external
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
    """
    self.balanceOf[_from] -= _value
    self.balanceOf[_to] += _value

    _allowance: uint256 = self.allowance[_from][msg.sender]
    if _allowance != MAX_UINT256:
        self.allowance[_from][msg.sender] = _allowance - _value

    log 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
         {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.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",
            self.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))
        # reentrancy not a concern since this is a staticcall
        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 mint(_to: address, _value: uint256) -> bool:
    """
    @dev Mint an amount of the token and assigns it to an account.
         This encapsulates the modification of balances such that the
         proper events are emitted.
    @param _to The account that will receive the created tokens.
    @param _value The amount that will be created.
    """
    assert msg.sender == self.minter

    self.totalSupply += _value
    self.balanceOf[_to] += _value

    log Transfer(ZERO_ADDRESS, _to, _value)
    return True


@external
def mint_relative(_to: address, frac: uint256) -> uint256:
    """
    @dev Increases supply by factor of (1 + frac/1e18) and mints it for _to
    """
    assert msg.sender == self.minter

    supply: uint256 = self.totalSupply
    d_supply: uint256 = supply * frac / 10**18
    if d_supply > 0:
        self.totalSupply = supply + d_supply
        self.balanceOf[_to] += d_supply
        log Transfer(ZERO_ADDRESS, _to, d_supply)

    return d_supply


@external
def burnFrom(_to: address, _value: uint256) -> bool:
    """
    @dev Burn an amount of the token from a given account.
    @param _to The account whose tokens will be burned.
    @param _value The amount that will be burned.
    """
    assert msg.sender == self.minter

    self.totalSupply -= _value
    self.balanceOf[_to] -= _value

    log Transfer(_to, ZERO_ADDRESS, _value)
    return True


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


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


@external
def initialize(_name: String[64], _symbol: String[32], _pool: address):
    assert self.minter == ZERO_ADDRESS  # dev: check that we call it from factory

    self.name = _name
    self.symbol = _symbol
    self.minter = _pool

    self.DOMAIN_SEPARATOR = keccak256(
        _abi_encode(EIP712_TYPEHASH, keccak256(_name), keccak256(VERSION), chain.id, self)
    )

    # fire a transfer event so block explorers identify the contract as an ERC20
    log Transfer(ZERO_ADDRESS, msg.sender, 0)

Contract ABI

[{"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"},{"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"},{"stateMutability":"nonpayable","type":"constructor","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":78632},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":116616},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":39151},{"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"}],"gas":102221},{"stateMutability":"nonpayable","type":"function","name":"increaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_added_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":41711},{"stateMutability":"nonpayable","type":"function","name":"decreaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_subtracted_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":41737},{"stateMutability":"nonpayable","type":"function","name":"mint","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":80902},{"stateMutability":"nonpayable","type":"function","name":"mint_relative","inputs":[{"name":"_to","type":"address"},{"name":"frac","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":81224},{"stateMutability":"nonpayable","type":"function","name":"burnFrom","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":80954},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint8"}],"gas":630},{"stateMutability":"view","type":"function","name":"version","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":6287},{"stateMutability":"nonpayable","type":"function","name":"initialize","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_pool","type":"address"}],"outputs":[],"gas":259459},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13109},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":10868},{"stateMutability":"view","type":"function","name":"DOMAIN_SEPARATOR","inputs":[],"outputs":[{"name":"","type":"bytes32"}],"gas":2880},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3176},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3472},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2970},{"stateMutability":"view","type":"function","name":"minter","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3000},{"stateMutability":"view","type":"function","name":"nonces","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3296}]

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.