Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 13,969 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 24541668 | 17 days ago | IN | 0 ETH | 0.00000571 | ||||
| Approve | 24541663 | 17 days ago | IN | 0 ETH | 0.00000526 | ||||
| Approve | 24375063 | 40 days ago | IN | 0 ETH | 0.00000501 | ||||
| Approve | 24341195 | 45 days ago | IN | 0 ETH | 0.00001663 | ||||
| Approve | 24218482 | 62 days ago | IN | 0 ETH | 0.00000142 | ||||
| Approve | 24046681 | 86 days ago | IN | 0 ETH | 0.00002667 | ||||
| Approve | 23889741 | 108 days ago | IN | 0 ETH | 0.00001332 | ||||
| Approve | 23745035 | 128 days ago | IN | 0 ETH | 0.00004574 | ||||
| Approve | 23718727 | 132 days ago | IN | 0 ETH | 0.00005199 | ||||
| Approve | 23630459 | 144 days ago | IN | 0 ETH | 0.00000263 | ||||
| Approve | 23624424 | 145 days ago | IN | 0 ETH | 0.00003906 | ||||
| Transfer | 23590417 | 150 days ago | IN | 0 ETH | 0.00003156 | ||||
| Approve | 23559546 | 154 days ago | IN | 0 ETH | 0.00003865 | ||||
| Approve | 23411188 | 175 days ago | IN | 0 ETH | 0.00001576 | ||||
| Approve | 23387197 | 178 days ago | IN | 0 ETH | 0.00001824 | ||||
| Approve | 23278336 | 193 days ago | IN | 0 ETH | 0.00001158 | ||||
| Approve | 23215407 | 202 days ago | IN | 0 ETH | 0.00002827 | ||||
| Approve | 23127095 | 214 days ago | IN | 0 ETH | 0.00004474 | ||||
| Approve | 23070082 | 222 days ago | IN | 0 ETH | 0.00000909 | ||||
| Approve | 23065014 | 223 days ago | IN | 0 ETH | 0.00005406 | ||||
| Approve | 22987878 | 234 days ago | IN | 0 ETH | 0.00001242 | ||||
| Approve | 22959064 | 238 days ago | IN | 0 ETH | 0.00006863 | ||||
| Burn | 22917553 | 244 days ago | IN | 0 ETH | 0.00012672 | ||||
| Burn | 22917549 | 244 days ago | IN | 0 ETH | 0.00012701 | ||||
| Approve | 22633412 | 283 days ago | IN | 0 ETH | 0.0001638 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.2.4
Contract Source Code (Vyper language format)
# https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
from vyper.interfaces import ERC20
implements: ERC20
event Transfer:
_from: indexed(address)
_to: indexed(address)
_value: uint256
event Approval:
_owner: indexed(address)
_spender: indexed(address)
_value: uint256
name: public(String[64])
symbol: public(String[32])
decimals: public(uint256)
# NOTE: By declaring `balanceOf` as public, vyper automatically generates a 'balanceOf()' getter
# method to allow access to account balances.
# The _KeyType will become a required parameter for the getter and it will return _ValueType.
# See: https://vyper.readthedocs.io/en/v0.1.0-beta.8/types.html?highlight=getter#mappings
balanceOf: public(HashMap[address, uint256])
allowances: HashMap[address, HashMap[address, uint256]]
total_supply: uint256
minter: address
@external
def __init__(_name: String[64], _symbol: String[32], _decimals: uint256, _supply: uint256):
init_supply: uint256 = _supply * 10 ** _decimals
self.name = _name
self.symbol = _symbol
self.decimals = _decimals
self.balanceOf[msg.sender] = init_supply
self.total_supply = init_supply
self.minter = msg.sender
log Transfer(ZERO_ADDRESS, msg.sender, init_supply)
@external
def set_minter(_minter: address):
assert msg.sender == self.minter
self.minter = _minter
@external
@view
def totalSupply() -> uint256:
"""
@dev Total number of tokens in existence.
"""
return self.total_supply
@external
@view
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]
@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.
Note that while this function emits a Transfer event, this is not required as per the specification,
and other compliant implementations may not emit the event.
@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
"""
# NOTE: vyper does not allow underflows
# so the following subtraction would revert on insufficient balance
self.balanceOf[_from] -= _value
self.balanceOf[_to] += _value
if msg.sender != self.minter: # minter is allowed to transfer anything
# NOTE: vyper does not allow underflows
# so the following subtraction would revert on insufficient allowance
self.allowances[_from][msg.sender] -= _value
log Transfer(_from, _to, _value)
return True
@external
def approve(_spender : address, _value : uint256) -> bool:
"""
@dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
Beware that changing an allowance with this method brings the risk that someone may use both the old
and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
@param _spender The address which will spend the funds.
@param _value The amount of tokens to be spent.
"""
assert _value == 0 or self.allowances[msg.sender][_spender] == 0
self.allowances[msg.sender][_spender] = _value
log Approval(msg.sender, _spender, _value)
return True
@external
def mint(_to: address, _value: uint256):
"""
@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
assert _to != ZERO_ADDRESS
self.total_supply += _value
self.balanceOf[_to] += _value
log Transfer(ZERO_ADDRESS, _to, _value)
@internal
def _burn(_to: address, _value: uint256):
"""
@dev Internal function that burns an amount of the token of a given
account.
@param _to The account whose tokens will be burned.
@param _value The amount that will be burned.
"""
assert _to != ZERO_ADDRESS
self.total_supply -= _value
self.balanceOf[_to] -= _value
log Transfer(_to, ZERO_ADDRESS, _value)
@external
def burn(_value: uint256):
"""
@dev Burn an amount of the token of msg.sender.
@param _value The amount that will be burned.
"""
assert msg.sender == self.minter, "Only minter is allowed to burn"
self._burn(msg.sender, _value)
@external
def burnFrom(_to: address, _value: uint256):
"""
@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, "Only minter is allowed to burn"
self._burn(_to, _value)Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"name":"Transfer","inputs":[{"type":"address","name":"_from","indexed":true},{"type":"address","name":"_to","indexed":true},{"type":"uint256","name":"_value","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"type":"address","name":"_owner","indexed":true},{"type":"address","name":"_spender","indexed":true},{"type":"uint256","name":"_value","indexed":false}],"anonymous":false,"type":"event"},{"outputs":[],"inputs":[{"type":"string","name":"_name"},{"type":"string","name":"_symbol"},{"type":"uint256","name":"_decimals"},{"type":"uint256","name":"_supply"}],"stateMutability":"nonpayable","type":"constructor"},{"name":"set_minter","outputs":[],"inputs":[{"type":"address","name":"_minter"}],"stateMutability":"nonpayable","type":"function","gas":36247},{"name":"totalSupply","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":1181},{"name":"allowance","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"_owner"},{"type":"address","name":"_spender"}],"stateMutability":"view","type":"function","gas":1519},{"name":"transfer","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":74802},{"name":"transferFrom","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_from"},{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":111953},{"name":"approve","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_spender"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":39048},{"name":"mint","outputs":[],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":75733},{"name":"burn","outputs":[],"inputs":[{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":76611},{"name":"burnFrom","outputs":[],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":76684},{"name":"name","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":7853},{"name":"symbol","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":6906},{"name":"decimals","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":1511},{"name":"balanceOf","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"arg0"}],"stateMutability":"view","type":"function","gas":1695}]Contract Creation Code
740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a0526080610b456101403934156100a157600080fd5b60606020610b4560c03960c051610b45016101c03960406020610b4560c03960c0516004013511156100d257600080fd5b604060206020610b450160c03960c051610b450161024039602060206020610b450160c03960c05160040135111561010957600080fd5b6101a051604e610180511061011d57600080fd5b61018051600a0a808202821582848304141761013857600080fd5b809050905090506102a0526101c080600060c052602060c020602082510161012060006003818352015b8261012051602002111561017557610197565b61012051602002850151610120518501555b8151600101808352811415610162575b50505050505061024080600160c052602060c020602082510161012060006002818352015b826101205160200211156101cf576101f1565b61012051602002850151610120518501555b81516001018083528114156101bc575b505050505050610180516002556102a05160033360e05260c052604060c020556102a051600555336006556102a0516102c0523360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206102c0a3610b2d56600436101561000d576108d4565b600035601c52740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a052631652e9fc60005114156100e25734156100ba57600080fd5b60043560205181106100cb57600080fd5b5060065433146100da57600080fd5b600435600655005b6318160ddd60005114156101095734156100fb57600080fd5b60055460005260206000f350005b63dd62ed3e600051141561017057341561012257600080fd5b600435602051811061013357600080fd5b50602435602051811061014557600080fd5b50600460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f350005b63a9059cbb600051141561023257341561018957600080fd5b600435602051811061019a57600080fd5b5060033360e05260c052604060c0208054602435808210156101bb57600080fd5b80820390509050815550600360043560e05260c052604060c02080546024358181830110156101e957600080fd5b8082019050905081555060243561014052600435337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b6323b872dd600051141561034d57341561024b57600080fd5b600435602051811061025c57600080fd5b50602435602051811061026e57600080fd5b50600360043560e05260c052604060c02080546044358082101561029157600080fd5b80820390509050815550600360243560e05260c052604060c02080546044358181830110156102bf57600080fd5b8082019050905081555060065433181561030c57600460043560e05260c052604060c0203360e05260c052604060c02080546044358082101561030157600080fd5b808203905090508155505b604435610140526024356004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b63095ea7b3600051141561041057341561036657600080fd5b600435602051811061037757600080fd5b5060243515156103885760016103a7565b60043360e05260c052604060c02060043560e05260c052604060c02054155b5b6103b157600080fd5b60243560043360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b6340c10f1960005114156104db57341561042957600080fd5b600435602051811061043a57600080fd5b50600654331461044957600080fd5b60006004351861045857600080fd5b6005805460243581818301101561046e57600080fd5b80820190509050815550600360043560e05260c052604060c020805460243581818301101561049c57600080fd5b808201905090508155506024356101405260043560007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3005b600015610587575b610180526101405261016052600061014051186104ff57600080fd5b60058054610160518082101561051457600080fd5b8082039050905081555060036101405160e05260c052604060c0208054610160518082101561054257600080fd5b80820390509050815550610160516101a0526000610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101a0a361018051565b6342966c6860005114156106385734156105a057600080fd5b6308c379a061014052602061016052601e610180527f4f6e6c79206d696e74657220697320616c6c6f77656420746f206275726e00006101a0526101805060065433146105ee57606461015cfd5b6101405161016051610180516101a0516101c0513361020052600435610220526102205161020051600658016104e3565b6101c0526101a052610180526101605261014052600050005b6379cc679060005114156106fd57341561065157600080fd5b600435602051811061066257600080fd5b506308c379a061014052602061016052601e610180527f4f6e6c79206d696e74657220697320616c6c6f77656420746f206275726e00006101a0526101805060065433146106b157606461015cfd5b6101405161016051610180516101a0516101c05160043561020052602435610220526102205161020051600658016104e3565b6101c0526101a052610180526101605261014052600050005b6306fdde0360005114156107b157341561071657600080fd5b60008060c052602060c020610180602082540161012060006003818352015b826101205160200211156107485761076a565b61012051850154610120516020028501525b8151600101808352811415610735575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6395d89b4160005114156108655734156107ca57600080fd5b60018060c052602060c020610180602082540161012060006002818352015b826101205160200211156107fc5761081e565b61012051850154610120516020028501525b81516001018083528114156107e9575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b63313ce567600051141561088c57341561087e57600080fd5b60025460005260206000f350005b6370a0823160005114156108d35734156108a557600080fd5b60043560205181106108b657600080fd5b50600360043560e05260c052604060c0205460005260206000f350005b5b60006000fd5b610253610b2d03610253600039610253610b2d036000f3000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c5377657276652e6669204441492f555344432f555344542f545553440000000000000000000000000000000000000000000000000000000000000000000000057377555344000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x600436101561000d576108d4565b600035601c52740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a052631652e9fc60005114156100e25734156100ba57600080fd5b60043560205181106100cb57600080fd5b5060065433146100da57600080fd5b600435600655005b6318160ddd60005114156101095734156100fb57600080fd5b60055460005260206000f350005b63dd62ed3e600051141561017057341561012257600080fd5b600435602051811061013357600080fd5b50602435602051811061014557600080fd5b50600460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f350005b63a9059cbb600051141561023257341561018957600080fd5b600435602051811061019a57600080fd5b5060033360e05260c052604060c0208054602435808210156101bb57600080fd5b80820390509050815550600360043560e05260c052604060c02080546024358181830110156101e957600080fd5b8082019050905081555060243561014052600435337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b6323b872dd600051141561034d57341561024b57600080fd5b600435602051811061025c57600080fd5b50602435602051811061026e57600080fd5b50600360043560e05260c052604060c02080546044358082101561029157600080fd5b80820390509050815550600360243560e05260c052604060c02080546044358181830110156102bf57600080fd5b8082019050905081555060065433181561030c57600460043560e05260c052604060c0203360e05260c052604060c02080546044358082101561030157600080fd5b808203905090508155505b604435610140526024356004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b63095ea7b3600051141561041057341561036657600080fd5b600435602051811061037757600080fd5b5060243515156103885760016103a7565b60043360e05260c052604060c02060043560e05260c052604060c02054155b5b6103b157600080fd5b60243560043360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b6340c10f1960005114156104db57341561042957600080fd5b600435602051811061043a57600080fd5b50600654331461044957600080fd5b60006004351861045857600080fd5b6005805460243581818301101561046e57600080fd5b80820190509050815550600360043560e05260c052604060c020805460243581818301101561049c57600080fd5b808201905090508155506024356101405260043560007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3005b600015610587575b610180526101405261016052600061014051186104ff57600080fd5b60058054610160518082101561051457600080fd5b8082039050905081555060036101405160e05260c052604060c0208054610160518082101561054257600080fd5b80820390509050815550610160516101a0526000610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101a0a361018051565b6342966c6860005114156106385734156105a057600080fd5b6308c379a061014052602061016052601e610180527f4f6e6c79206d696e74657220697320616c6c6f77656420746f206275726e00006101a0526101805060065433146105ee57606461015cfd5b6101405161016051610180516101a0516101c0513361020052600435610220526102205161020051600658016104e3565b6101c0526101a052610180526101605261014052600050005b6379cc679060005114156106fd57341561065157600080fd5b600435602051811061066257600080fd5b506308c379a061014052602061016052601e610180527f4f6e6c79206d696e74657220697320616c6c6f77656420746f206275726e00006101a0526101805060065433146106b157606461015cfd5b6101405161016051610180516101a0516101c05160043561020052602435610220526102205161020051600658016104e3565b6101c0526101a052610180526101605261014052600050005b6306fdde0360005114156107b157341561071657600080fd5b60008060c052602060c020610180602082540161012060006003818352015b826101205160200211156107485761076a565b61012051850154610120516020028501525b8151600101808352811415610735575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6395d89b4160005114156108655734156107ca57600080fd5b60018060c052602060c020610180602082540161012060006002818352015b826101205160200211156107fc5761081e565b61012051850154610120516020028501525b81516001018083528114156107e9575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b63313ce567600051141561088c57341561087e57600080fd5b60025460005260206000f350005b6370a0823160005114156108d35734156108a557600080fd5b60043560205181106108b657600080fd5b50600360043560e05260c052604060c0205460005260206000f350005b5b60006000fd
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c5377657276652e6669204441492f555344432f555344542f545553440000000000000000000000000000000000000000000000000000000000000000000000057377555344000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Swerve.fi DAI/USDC/USDT/TUSD
Arg [1] : _symbol (string): swUSD
Arg [2] : _decimals (uint256): 18
Arg [3] : _supply (uint256): 0
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [5] : 5377657276652e6669204441492f555344432f555344542f5455534400000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 7377555344000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.