Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
425,124.058865593127164649 crvCRVETH
Holders
944
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
44.197468364463373999 crvCRVETHValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x3b6831c0...C11bCE833 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.3.0
Contract Source Code (Vyper language format)
# @version 0.3.0 """ @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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":426},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":78832},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":116861},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":39253},{"stateMutability":"nonpayable","type":"function","name":"increaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_added_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":41827},{"stateMutability":"nonpayable","type":"function","name":"decreaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_subtracted_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":41851},{"stateMutability":"nonpayable","type":"function","name":"mint","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":81071},{"stateMutability":"nonpayable","type":"function","name":"mint_relative","inputs":[{"name":"_to","type":"address"},{"name":"frac","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":81475},{"stateMutability":"nonpayable","type":"function","name":"burnFrom","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":81119},{"stateMutability":"nonpayable","type":"function","name":"set_minter","inputs":[{"name":"_minter","type":"address"}],"outputs":[],"gas":37912},{"stateMutability":"nonpayable","type":"function","name":"set_name","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"}],"outputs":[],"gas":232545},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13223},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":10976},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3188},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3490},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2976},{"stateMutability":"view","type":"function","name":"minter","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3006}]
Contract Creation Code
6020610d9860c03960c051610d9801604060208260c03960c05111610d93578060208160c03960c05160200180826101403950505060206020610d980160c03960c051610d9801602060208260c03960c05111610d93578060208160c03960c05160200180826101a039505050610140806000602082510161012060006003818352015b82610120516020021115610096576100b7565b61012051602002850151610120518501558151600101808352811415610083575b5050505050506101a0806003602082510161012060006002818352015b826101205160200211156100e757610108565b610120516020028501516101205185015581516001018083528114156100d4575b505050505050336008553360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60006101e05260206101e0a3610d7b56600436101561000d57610c29565b60046000601c3760005134610c2f5763313ce567811415610035576012610140526020610140f35b63a9059cbb8114156100e0576004358060a01c610c2f578090506101405260053360e05260c052604060c0208054602435808210610c2f578082039050905081555060056101405160e05260c052604060c02080546024358181830110610c2f578082019050905081555061014051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610160526020610160a36001610160526020610160f35b6323b872dd811415610224576004358060a01c610c2f57809050610140526024358060a01c610c2f578090506101605260056101405160e05260c052604060c0208054604435808210610c2f578082039050905081555060056101605160e05260c052604060c02080546044358181830110610c2f578082019050905081555060066101405160e05260c052604060c0203360e05260c052604060c02054610180527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101805118156101e15761018051604435808210610c2f578082039050905060066101405160e05260c052604060c0203360e05260c052604060c020555b61016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6044356101a05260206101a0a360016101a05260206101a0f35b63095ea7b38114156102a3576004358060a01c610c2f578090506101405260243560063360e05260c052604060c0206101405160e05260c052604060c0205561014051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602435610160526020610160a36001610160526020610160f35b6339509351811415610359576004358060a01c610c2f578090506101405260063360e05260c052604060c0206101405160e05260c052604060c020546024358181830110610c2f5780820190509050610160526101605160063360e05260c052604060c0206101405160e05260c052604060c0205561014051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561016051610180526020610180a36001610180526020610180f35b63a457c2d781141561040d576004358060a01c610c2f578090506101405260063360e05260c052604060c0206101405160e05260c052604060c02054602435808210610c2f5780820390509050610160526101605160063360e05260c052604060c0206101405160e05260c052604060c0205561014051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561016051610180526020610180a36001610180526020610180f35b6340c10f198114156104b9576004358060a01c610c2f5780905061014052600854331415610c2f57600780546024358181830110610c2f578082019050905081555060056101405160e05260c052604060c02080546024358181830110610c2f57808201905090508155506101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610160526020610160a36001610160526020610160f35b636962f8458114156105b0576004358060a01c610c2f5780905061014052600854331415610c2f576007546101605261016051602435808202821582848304141715610c2f5780905090509050670de0b6b3a7640000808204905090506101805260006101805111156105a15761016051610180518181830110610c2f578082019050905060075560056101405160e05260c052604060c0208054610180518181830110610c2f57808201905090508155506101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610180516101a05260206101a0a35b610180516101a05260206101a0f35b6379cc6790811415610658576004358060a01c610c2f5780905061014052600854331415610c2f5760078054602435808210610c2f578082039050905081555060056101405160e05260c052604060c0208054602435808210610c2f57808203905090508155506000610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610160526020610160a36001610160526020610160f35b631652e9fc811415610689576004358060a01c610c2f5780905061014052600854331415610c2f5761014051600855005b63e1430e06811415610a02576004356004016040813511610c2f578080356020018082610140375050506024356004016020813511610c2f5780803560200180826101a03750505033638da5cb5b6101e05260206101e060046101fc6008545afa15610c2f57601f3d1115610c2f576101e0511415610c2f576000806101e0602082540161012060006003818352015b8261012051602002111561072c5761074d565b61012051850154610120516020028501528151600101808352811415610719575b505050505050600380610240602082540161012060006002818352015b8261012051602002111561077d5761079e565b6101205185015461012051602002850152815160010180835281141561076a575b505050505050610140806000602082510161012060006003818352015b826101205160200211156107ce576107ef565b610120516020028501516101205185015581516001018083528114156107bb575b5050505050506101a0806003602082510161012060006002818352015b8261012051602002111561081f57610840565b6101205160200285015161012051850155815160010180835281141561080c575b5050505050507f68ed9e6681c98d0e2744ce6c08d46c045e098a479b120b5b7253fa95e4c489546102808060c0808252808301806101e0805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905060208201915080825280830180610240805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905060208201915080825280830180610140805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905081019050602082019150808252808301806101a0805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905060208201915033825260208201915042825280905090509050610280a1005b6306fdde03811415610aaf576101408060208082528083018060008082602082540161012060006003818352015b82610120516020021115610a4357610a64565b61012051850154610120516020028501528151600101808352811415610a30575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905080905090509050610140f35b6395d89b41811415610b5c576101408060208082528083018060038082602082540161012060006002818352015b82610120516020021115610af057610b11565b61012051850154610120516020028501528151600101808352811415610add575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905080905090509050610140f35b6370a08231811415610b97576004358060a01c610c2f578090506101405260056101405160e05260c052604060c02054610160526020610160f35b63dd62ed3e811415610bf3576004358060a01c610c2f57809050610140526024358060a01c610c2f578090506101605260066101405160e05260c052604060c0206101605160e05260c052604060c02054610180526020610180f35b6318160ddd811415610c0d57600754610140526020610140f35b6307546172811415610c2757600854610140526020610140f35b505b60006000fd5b600080fd5b610147610d7b03610147600039610147610d7b036000f35b600080fd00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f437572766520455552542d334372760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a6372764555525455534400000000000000000000000000000000000000000000
Deployed Bytecode
0x600436101561000d57610c29565b60046000601c3760005134610c2f5763313ce567811415610035576012610140526020610140f35b63a9059cbb8114156100e0576004358060a01c610c2f578090506101405260053360e05260c052604060c0208054602435808210610c2f578082039050905081555060056101405160e05260c052604060c02080546024358181830110610c2f578082019050905081555061014051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610160526020610160a36001610160526020610160f35b6323b872dd811415610224576004358060a01c610c2f57809050610140526024358060a01c610c2f578090506101605260056101405160e05260c052604060c0208054604435808210610c2f578082039050905081555060056101605160e05260c052604060c02080546044358181830110610c2f578082019050905081555060066101405160e05260c052604060c0203360e05260c052604060c02054610180527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101805118156101e15761018051604435808210610c2f578082039050905060066101405160e05260c052604060c0203360e05260c052604060c020555b61016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6044356101a05260206101a0a360016101a05260206101a0f35b63095ea7b38114156102a3576004358060a01c610c2f578090506101405260243560063360e05260c052604060c0206101405160e05260c052604060c0205561014051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602435610160526020610160a36001610160526020610160f35b6339509351811415610359576004358060a01c610c2f578090506101405260063360e05260c052604060c0206101405160e05260c052604060c020546024358181830110610c2f5780820190509050610160526101605160063360e05260c052604060c0206101405160e05260c052604060c0205561014051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561016051610180526020610180a36001610180526020610180f35b63a457c2d781141561040d576004358060a01c610c2f578090506101405260063360e05260c052604060c0206101405160e05260c052604060c02054602435808210610c2f5780820390509050610160526101605160063360e05260c052604060c0206101405160e05260c052604060c0205561014051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561016051610180526020610180a36001610180526020610180f35b6340c10f198114156104b9576004358060a01c610c2f5780905061014052600854331415610c2f57600780546024358181830110610c2f578082019050905081555060056101405160e05260c052604060c02080546024358181830110610c2f57808201905090508155506101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610160526020610160a36001610160526020610160f35b636962f8458114156105b0576004358060a01c610c2f5780905061014052600854331415610c2f576007546101605261016051602435808202821582848304141715610c2f5780905090509050670de0b6b3a7640000808204905090506101805260006101805111156105a15761016051610180518181830110610c2f578082019050905060075560056101405160e05260c052604060c0208054610180518181830110610c2f57808201905090508155506101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610180516101a05260206101a0a35b610180516101a05260206101a0f35b6379cc6790811415610658576004358060a01c610c2f5780905061014052600854331415610c2f5760078054602435808210610c2f578082039050905081555060056101405160e05260c052604060c0208054602435808210610c2f57808203905090508155506000610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610160526020610160a36001610160526020610160f35b631652e9fc811415610689576004358060a01c610c2f5780905061014052600854331415610c2f5761014051600855005b63e1430e06811415610a02576004356004016040813511610c2f578080356020018082610140375050506024356004016020813511610c2f5780803560200180826101a03750505033638da5cb5b6101e05260206101e060046101fc6008545afa15610c2f57601f3d1115610c2f576101e0511415610c2f576000806101e0602082540161012060006003818352015b8261012051602002111561072c5761074d565b61012051850154610120516020028501528151600101808352811415610719575b505050505050600380610240602082540161012060006002818352015b8261012051602002111561077d5761079e565b6101205185015461012051602002850152815160010180835281141561076a575b505050505050610140806000602082510161012060006003818352015b826101205160200211156107ce576107ef565b610120516020028501516101205185015581516001018083528114156107bb575b5050505050506101a0806003602082510161012060006002818352015b8261012051602002111561081f57610840565b6101205160200285015161012051850155815160010180835281141561080c575b5050505050507f68ed9e6681c98d0e2744ce6c08d46c045e098a479b120b5b7253fa95e4c489546102808060c0808252808301806101e0805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905060208201915080825280830180610240805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905060208201915080825280830180610140805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905081019050602082019150808252808301806101a0805160200180838284600060045af115610c2f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905060208201915033825260208201915042825280905090509050610280a1005b6306fdde03811415610aaf576101408060208082528083018060008082602082540161012060006003818352015b82610120516020021115610a4357610a64565b61012051850154610120516020028501528151600101808352811415610a30575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905080905090509050610140f35b6395d89b41811415610b5c576101408060208082528083018060038082602082540161012060006002818352015b82610120516020021115610af057610b11565b61012051850154610120516020028501528151600101808352811415610add575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905080905090509050610140f35b6370a08231811415610b97576004358060a01c610c2f578090506101405260056101405160e05260c052604060c02054610160526020610160f35b63dd62ed3e811415610bf3576004358060a01c610c2f57809050610140526024358060a01c610c2f578090506101605260066101405160e05260c052604060c0206101605160e05260c052604060c02054610180526020610180f35b6318160ddd811415610c0d57600754610140526020610140f35b6307546172811415610c2757600854610140526020610140f35b505b60006000fd5b600080fd
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.