POL Price: $0.397228 (+5.09%)
Gas: 61.3 GWei
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve641283312024-11-10 20:54:0230 mins ago1731272042IN
0xdAD97F77...e5FbB23d3
0 POL0.0020500844.374116
Approve641276972024-11-10 20:30:5253 mins ago1731270652IN
0xdAD97F77...e5FbB23d3
0 POL0.0013156855.01291966
Transfer641275562024-11-10 20:25:2058 mins ago1731270320IN
0xdAD97F77...e5FbB23d3
0 POL0.01228404472.28172915
Transfer641275542024-11-10 20:25:1658 mins ago1731270316IN
0xdAD97F77...e5FbB23d3
0 POL0.0012212646.9535793
Approve641271782024-11-10 20:11:541 hr ago1731269514IN
0xdAD97F77...e5FbB23d3
0 POL0.0033105272.10597187
Approve641271542024-11-10 20:11:041 hr ago1731269464IN
0xdAD97F77...e5FbB23d3
0 POL0.0031697868.61005791
Approve641254382024-11-10 19:08:282 hrs ago1731265708IN
0xdAD97F77...e5FbB23d3
0 POL0.0016106635.09070209
Approve641239782024-11-10 18:15:473 hrs ago1731262547IN
0xdAD97F77...e5FbB23d3
0 POL0.0010715344.80402532
Approve641224282024-11-10 17:19:414 hrs ago1731259181IN
0xdAD97F77...e5FbB23d3
0 POL0.0011428944.1
Approve641223782024-11-10 17:17:554 hrs ago1731259075IN
0xdAD97F77...e5FbB23d3
0 POL0.0024263252.51785967
Approve641177702024-11-10 14:32:596 hrs ago1731249179IN
0xdAD97F77...e5FbB23d3
0 POL0.01288009280.61212004
Approve641163152024-11-10 13:40:597 hrs ago1731246059IN
0xdAD97F77...e5FbB23d3
0 POL0.01430845309.70683075
Approve641151292024-11-10 12:58:188 hrs ago1731243498IN
0xdAD97F77...e5FbB23d3
0 POL0.00484349186.89190736
Approve641084922024-11-10 9:00:3612 hrs ago1731229236IN
0xdAD97F77...e5FbB23d3
0 POL0.00325821136.23598246
Approve641046862024-11-10 6:45:2914 hrs ago1731221129IN
0xdAD97F77...e5FbB23d3
0 POL0.00894541193.67395775
Approve641042842024-11-10 6:31:1514 hrs ago1731220275IN
0xdAD97F77...e5FbB23d3
0 POL0.00880001190.47657675
Approve641040302024-11-10 6:22:1515 hrs ago1731219735IN
0xdAD97F77...e5FbB23d3
0 POL0.01102915240.28665517
Approve640986072024-11-10 3:07:2718 hrs ago1731208047IN
0xdAD97F77...e5FbB23d3
0 POL0.0074382161
Approve640966132024-11-10 1:55:1419 hrs ago1731203714IN
0xdAD97F77...e5FbB23d3
0 POL0.0012895653.92040131
Approve640939792024-11-10 0:21:5121 hrs ago1731198111IN
0xdAD97F77...e5FbB23d3
0 POL0.0021040545.8520192
Approve640914472024-11-09 22:48:3722 hrs ago1731192517IN
0xdAD97F77...e5FbB23d3
0 POL0.001432231
Approve640902682024-11-09 22:06:3923 hrs ago1731189999IN
0xdAD97F77...e5FbB23d3
0 POL0.0007892233.00000005
Approve640902622024-11-09 22:06:2723 hrs ago1731189987IN
0xdAD97F77...e5FbB23d3
0 POL0.0007892233.00000005
Approve640902452024-11-09 22:05:5123 hrs ago1731189951IN
0xdAD97F77...e5FbB23d3
0 POL0.0013766430.00000006
Approve640823852024-11-09 17:24:4327 hrs ago1731173083IN
0xdAD97F77...e5FbB23d3
0 POL0.00479762104.52335192
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xbece5d20...3F00ffC71
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.15

Optimization Enabled:
N/A

Other Settings:
None license

Contract Source Code (Vyper language format)

# @version 0.2.15
"""
@title Curve LP Token
@author Curve.Fi
@notice Base implementation for an LP token provided for
        supplying liquidity to `StableSwap`
@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 Curve:
    def owner() -> address: view


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

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

event SetName:
    old_name: String[64]
    old_symbol: String[32]
    name: String[64]
    symbol: String[32]
    owner: address
    time: uint256


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

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

minter: public(address)


@external
def __init__(_name: String[64], _symbol: String[32]):
    self.name = _name
    self.symbol = _symbol
    self.minter = msg.sender
    log Transfer(ZERO_ADDRESS, msg.sender, 0)


@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


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


@external
def set_minter(_minter: address):
    assert msg.sender == self.minter
    self.minter = _minter


@external
def set_name(_name: String[64], _symbol: String[32]):
    assert Curve(self.minter).owner() == msg.sender
    old_name: String[64] = self.name
    old_symbol: String[32] = self.symbol
    self.name = _name
    self.symbol = _symbol

    log SetName(old_name, old_symbol, _name, _symbol, msg.sender, block.timestamp)

Contract Security Audit

Contract ABI

[{"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"},{"name":"SetName","inputs":[{"name":"old_name","type":"string","indexed":false},{"name":"old_symbol","type":"string","indexed":false},{"name":"name","type":"string","indexed":false},{"name":"symbol","type":"string","indexed":false},{"name":"owner","type":"address","indexed":false},{"name":"time","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":288},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":77340},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":115282},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":37821},{"stateMutability":"nonpayable","type":"function","name":"increaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_added_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":40365},{"stateMutability":"nonpayable","type":"function","name":"decreaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_subtracted_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":40389},{"stateMutability":"nonpayable","type":"function","name":"mint","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":79579},{"stateMutability":"nonpayable","type":"function","name":"mint_relative","inputs":[{"name":"_to","type":"address"},{"name":"frac","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":79983},{"stateMutability":"nonpayable","type":"function","name":"burnFrom","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":79627},{"stateMutability":"nonpayable","type":"function","name":"set_minter","inputs":[{"name":"_minter","type":"address"}],"outputs":[],"gas":37815},{"stateMutability":"nonpayable","type":"function","name":"set_name","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"}],"outputs":[],"gas":226994},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":12948},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":10701},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":2993},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3238},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2838},{"stateMutability":"view","type":"function","name":"minter","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2868}]

Deployed Bytecode

0x600436101561000d57610bc6565b600035601c5260005134610bcc5763313ce56781141561003257601260005260206000f35b63a9059cbb8114156100d15760043560a01c610bcc5760073360e05260c052604060c0208054602435808210610bcc5780820390509050815550600760043560e05260c052604060c02080546024358181830110610bcc578082019050905081555060243561014052600435337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f35b6323b872dd8114156101fd5760043560a01c610bcc5760243560a01c610bcc57600760043560e05260c052604060c0208054604435808210610bcc5780820390509050815550600760243560e05260c052604060c02080546044358181830110610bcc5780820190509050815550600860043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101405118156101be5761014051604435808210610bcc5780820390509050600860043560e05260c052604060c0203360e05260c052604060c020555b604435610160526024356004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610160a3600160005260206000f35b63095ea7b38114156102705760043560a01c610bcc5760243560083360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f35b63395093518114156103195760043560a01c610bcc5760083360e05260c052604060c02060043560e05260c052604060c020546024358181830110610bcc5780820190509050610140526101405160083360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b63a457c2d78114156103c05760043560a01c610bcc5760083360e05260c052604060c02060043560e05260c052604060c02054602435808210610bcc5780820390509050610140526101405160083360e05260c052604060c02060043560e05260c052604060c020556101405161016052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a3600160005260206000f35b6340c10f198114156104605760043560a01c610bcc57600a54331415610bcc57600980546024358181830110610bcc5780820190509050815550600760043560e05260c052604060c02080546024358181830110610bcc57808201905090508155506024356101405260043560007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f35b636962f84581141561054b5760043560a01c610bcc57600a54331415610bcc576009546101405261014051602435808202821582848304141715610bcc5780905090509050670de0b6b3a76400008082049050905061016052600061016051111561053e5761014051610160518181830110610bcc5780820190509050600955600760043560e05260c052604060c0208054610160518181830110610bcc5780820190509050815550610160516101805260043560007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610180a35b6101605160005260206000f35b6379cc67908114156105e75760043560a01c610bcc57600a54331415610bcc5760098054602435808210610bcc5780820390509050815550600760043560e05260c052604060c0208054602435808210610bcc57808203905090508155506024356101405260006004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f35b631652e9fc81141561060f5760043560a01c610bcc57600a54331415610bcc57600435600a55005b63e1430e068114156109e25760606004356004016101403760406004356004013511610bcc5760406024356004016101c03760206024356004013511610bcc573360206102806004638da5cb5b6102205261023c600a545afa15610bcc57601f3d1115610bcc57600050610280511415610bcc57600080610220602082540161012060006003818352015b826101205160200211156106ad576106cf565b61012051850154610120516020028501525b815160010180835281141561069a575b5050505050506004806102a0602082540161012060006002818352015b826101205160200211156106ff57610721565b61012051850154610120516020028501525b81516001018083528114156106ec575b505050505050610140806000602082510161012060006003818352015b8261012051602002111561075157610773565b61012051602002850151610120518501555b815160010180835281141561073e575b5050505050506101c0806004602082510161012060006002818352015b826101205160200211156107a3576107c5565b61012051602002850151610120518501555b8151600101808352811415610790575b505050505050336103c052426103e05260c061030052610300516103405261022080516020018061030051610340018284600060045af115610bcc57505061030051610340015180602061030051610340010101818260206001820306601f8201039050033682375050602061030051610340015160206001820306601f82010390506103005101016103005261030051610360526102a080516020018061030051610340018284600060045af115610bcc57505061030051610340015180602061030051610340010101818260206001820306601f8201039050033682375050602061030051610340015160206001820306601f820103905061030051010161030052610300516103805261014080516020018061030051610340018284600060045af115610bcc57505061030051610340015180602061030051610340010101818260206001820306601f8201039050033682375050602061030051610340015160206001820306601f820103905061030051010161030052610300516103a0526101c080516020018061030051610340018284600060045af115610bcc57505061030051610340015180602061030051610340010101818260206001820306601f8201039050033682375050602061030051610340015160206001820306601f8201039050610300510101610300527f68ed9e6681c98d0e2744ce6c08d46c045e098a479b120b5b7253fa95e4c4895461030051610340a1005b6306fdde03811415610a7f57600080610180602082540161012060006003818352015b82610120516020021115610a1857610a3a565b61012051850154610120516020028501525b8151600101808352811415610a05575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b41811415610b1c57600480610180602082540161012060006002818352015b82610120516020021115610ab557610ad7565b61012051850154610120516020028501525b8151600101808352811415610aa2575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6370a08231811415610b4c5760043560a01c610bcc57600760043560e05260c052604060c0205460005260206000f35b63dd62ed3e811415610b945760043560a01c610bcc5760243560a01c610bcc57600860043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6318160ddd811415610bac5760095460005260206000f35b6307546172811415610bc457600a5460005260206000f35b505b60006000fd5b600080fd

Block Transaction 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
[ 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.