ETH Price: $2,931.86 (-2.69%)
Gas: 2 Gwei

Contract

0x8846b7E24274BE2CC7dCC668CF8b116395C2495A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve202307242024-07-04 4:20:474 days ago1720066847IN
0x8846b7E2...395C2495A
0 ETH0.00035957.78779979
Approve202307022024-07-04 4:16:234 days ago1720066583IN
0x8846b7E2...395C2495A
0 ETH0.000354597.6814635
Approve202299342024-07-04 1:41:474 days ago1720057307IN
0x8846b7E2...395C2495A
0 ETH0.0005093411.03375107
Approve202299232024-07-04 1:39:354 days ago1720057175IN
0x8846b7E2...395C2495A
0 ETH0.000352337.67651533
0x3461012a202298752024-07-04 1:29:594 days ago1720056599IN
 Create: Vyper_contract
0 ETH0.002197774.86029449

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.4.0

Optimization Enabled:
N/A

Other Settings:
MIT license

Contract Source Code (Vyper language format)

#pragma version >0.3.10


from ethereum.ercs import IERC20
from ethereum.ercs import IERC20Detailed


implements: IERC20
implements: IERC20Detailed


name: public(String[32])
symbol: public(String[32])
decimals: public(uint8)


# NOTE: By declaring `balanceOf` as public, vyper automatically generates a 'balanceOf()' getter
#       method to allow access to account balances.
balanceOf: public(HashMap[address, uint256])
# By declaring `allowance` as public, vyper automatically generates the `allowance()` getter
allowance: public(HashMap[address, HashMap[address, uint256]])
# By declaring `totalSupply` as public, we automatically create the `totalSupply()` getter
totalSupply: public(uint256)


@deploy
def __init__(_name: String[32], _symbol: String[32], _decimals: uint8, _supply: uint256):
    init_supply: uint256 = _supply * 10 ** convert(_decimals, uint256)
    self.name = _name
    self.symbol = _symbol
    self.decimals = _decimals
    self.balanceOf[msg.sender] = init_supply
    self.totalSupply = init_supply
    log IERC20.Transfer(empty(address), msg.sender, init_supply)


@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 IERC20.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
    """
    # NOTE: vyper does not allow underflows
    #       so the following subtraction would revert on insufficient balance
    self.balanceOf[_from] -= _value
    self.balanceOf[_to] += _value
    # NOTE: vyper does not allow underflows
    #      so the following subtraction would revert on insufficient allowance
    self.allowance[_from][msg.sender] -= _value
    log IERC20.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.
    @param _spender The address which will spend the funds.
    @param _value The amount of tokens to be spent.
    """
    self.allowance[msg.sender][_spender] = _value
    log IERC20.Approval(msg.sender, _spender, _value)
    return True


@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 != empty(address)
    self.totalSupply -= _value
    self.balanceOf[_to] -= _value
    log IERC20.Transfer(_to, empty(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.
    """
    self._burn(msg.sender, _value)

Contract Security Audit

Contract ABI

[{"name":"Transfer","inputs":[{"name":"sender","type":"address","indexed":true},{"name":"receiver","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":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"nonpayable","type":"function","name":"burn","inputs":[{"name":"_value","type":"uint256"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}]},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint8"}]},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_decimals","type":"uint8"},{"name":"_supply","type":"uint256"}],"outputs":[]}]

3461012a5760206105845f395f51602081610584015f395f516020811161012a57506020602082610584015f395f5101808261058401604039505060206105a45f395f51602081610584015f395f516020811161012a57506020602082610584015f395f5101808261058401608039505060206105c45f395f518060081c61012a5760c05260206105e45f395f5160c051604d811161012a5780600a0a905080820281158383830414171561012a579050905060e0526040515f5560605160015560805160025560a05160035560c05160045560e0516005336020525f5260405f205560e051600755335f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60e051610100526020610100a361044261012e61000039610442610000f35b5f80fd5f3560e01c60026009820660011b61043001601e395f51565b63a9059cbb81186103b35760443610341761042c576004358060a01c61042c576040526005336020525f5260405f20805460243580820382811161042c579050905081555060056040516020525f5260405f20805460243580820182811061042c5790509050815550604051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60243560605260206060a3600160605260206060f35b6323b872dd81186101a35760643610341761042c576004358060a01c61042c576040526024358060a01c61042c5760605260056040516020525f5260405f20805460443580820382811161042c579050905081555060056060516020525f5260405f20805460443580820182811061042c579050905081555060066040516020525f5260405f2080336020525f5260405f209050805460443580820382811161042c57905090508155506060516040517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60443560805260206080a3600160805260206080f35b63095ea7b381186103b35760443610341761042c576004358060a01c61042c576040526024356006336020525f5260405f20806040516020525f5260405f20905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b6342966c6881186103b35760243610341761042c57336040526004356060526102476103b7565b005b6306fdde0381186103b3573461042c57602080604052806040015f54815260015460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b6395d89b4181186103b3573461042c5760208060405280604001600254815260035460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63313ce56781186103b3573461042c5760045460405260206040f35b6370a08231811861033f5760243610341761042c576004358060a01c61042c5760405260056040516020525f5260405f205460605260206060f35b6318160ddd81186103b3573461042c5760075460405260206040f35b63dd62ed3e81186103b35760443610341761042c576004358060a01c61042c576040526024358060a01c61042c5760605260066040516020525f5260405f20806060516020525f5260405f2090505460805260206080f35b5f5ffd5b6040511561042c5760075460605180820382811161042c579050905060075560056040516020525f5260405f20805460605180820382811161042c57905090508155505f6040517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60605160805260206080a3565b5f80fd035b030400bc02e8024902200298001803b384190442811200a1657679706572830004000014000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000000000000000a426c7565205768616c65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004424c554500000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x5f3560e01c60026009820660011b61043001601e395f51565b63a9059cbb81186103b35760443610341761042c576004358060a01c61042c576040526005336020525f5260405f20805460243580820382811161042c579050905081555060056040516020525f5260405f20805460243580820182811061042c5790509050815550604051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60243560605260206060a3600160605260206060f35b6323b872dd81186101a35760643610341761042c576004358060a01c61042c576040526024358060a01c61042c5760605260056040516020525f5260405f20805460443580820382811161042c579050905081555060056060516020525f5260405f20805460443580820182811061042c579050905081555060066040516020525f5260405f2080336020525f5260405f209050805460443580820382811161042c57905090508155506060516040517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60443560805260206080a3600160805260206080f35b63095ea7b381186103b35760443610341761042c576004358060a01c61042c576040526024356006336020525f5260405f20806040516020525f5260405f20905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b6342966c6881186103b35760243610341761042c57336040526004356060526102476103b7565b005b6306fdde0381186103b3573461042c57602080604052806040015f54815260015460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b6395d89b4181186103b3573461042c5760208060405280604001600254815260035460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63313ce56781186103b3573461042c5760045460405260206040f35b6370a08231811861033f5760243610341761042c576004358060a01c61042c5760405260056040516020525f5260405f205460605260206060f35b6318160ddd81186103b3573461042c5760075460405260206040f35b63dd62ed3e81186103b35760443610341761042c576004358060a01c61042c576040526024358060a01c61042c5760605260066040516020525f5260405f20806060516020525f5260405f2090505460805260206080f35b5f5ffd5b6040511561042c5760075460605180820382811161042c579050905060075560056040516020525f5260405f20805460605180820382811161042c57905090508155505f6040517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60605160805260206080a3565b5f80fd035b030400bc02e8024902200298001803b3

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000000000000000a426c7565205768616c65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004424c554500000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Blue Whale
Arg [1] : _symbol (string): BLUE
Arg [2] : _decimals (uint8): 18
Arg [3] : _supply (uint256): 10000000000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 000000000000000000000000000000000000000000000000000009184e72a000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 426c7565205768616c6500000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 424c554500000000000000000000000000000000000000000000000000000000


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.