Contract 0x603c5919FCFB13423b963b04D55d1b393da88A7e 3

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9532ddf287d2eb8091cd0fc5b1fafafb3914c241d914cdd6c471d2280742c1440x6020610175768892022-03-08 16:10:28209 days 18 hrs ago0x8286dc6df929c4bfa4f6951cab4dae2ec02d4d72 IN  Create: Vyper_contract0 ETH0.000591016102 ETH
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xf6e78300cb367b800a7a3e2d5ca3c3e92255a8a796553ee80b9405f1985c6e7b75900052022-03-08 17:52:03209 days 16 hrs ago Hundred Finance: Governance Multisig 0x603c5919fcfb13423b963b04d55d1b393da88a7e0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.15

Optimization Enabled:
N/A

Other Settings:
, MIT license

Contract Source Code (Vyper language format)

# @version 0.2.15
"""
@title Smart Wallet Checker
@author Hundred Finance
@license MIT
@notice Holds a list of whitelisted smart contract addresses that can 
        interact with the VotingEscrow contract
"""

admin: public(address)
whitelisted: public(HashMap[address, bool])

@external
def __init__(admin: address):
    self.admin = admin


@external
@view
def check(addr: address) -> bool:
    return self.whitelisted[addr]


@external
def add_to_whitelist(addr: address):
    assert msg.sender == self.admin  # dev: admin only
    self.whitelisted[addr] = True


@external
def revoke_from_whitelist(addr: address):
    assert msg.sender == self.admin  # dev: admin only
    self.whitelisted[addr] = False


@external
def set_admin(new_admin: address):
    assert msg.sender == self.admin  # dev: admin only
    self.admin = new_admin

Contract ABI

[{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"admin","type":"address"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"check","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":2603},{"stateMutability":"nonpayable","type":"function","name":"add_to_whitelist","inputs":[{"name":"addr","type":"address"}],"outputs":[],"gas":37687},{"stateMutability":"nonpayable","type":"function","name":"revoke_from_whitelist","inputs":[{"name":"addr","type":"address"}],"outputs":[],"gas":22717},{"stateMutability":"nonpayable","type":"function","name":"set_admin","inputs":[{"name":"new_admin","type":"address"}],"outputs":[],"gas":37635},{"stateMutability":"view","type":"function","name":"admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2508},{"stateMutability":"view","type":"function","name":"whitelisted","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":2753}]

602061017561014039602061017560c03960c05160a01c610170576101405160005561015856600436101561000d57610127565b600035601c526000513461012d5763c23697a881141561004b5760043560a01c61012d57600160043560e05260c052604060c0205460005260206000f35b63ac25f2668114156100805760043560a01c61012d5760005433141561012d576001600160043560e05260c052604060c02055005b639bbfb8cf8114156100b55760043560a01c61012d5760005433141561012d576000600160043560e05260c052604060c02055005b63e9333fab8114156100dd5760043560a01c61012d5760005433141561012d57600435600055005b63f851a4408114156100f55760005460005260206000f35b63d936547e8114156101255760043560a01c61012d57600160043560e05260c052604060c0205460005260206000f35b505b60006000fd5b600080fd5b61002661015803610026600039610026610158036000f35b600080fd000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9

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

000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9

-----Decoded View---------------
Arg [0] : admin (address): 0xb982841d8caf7ccc1b5c8ec414347316f54a06c9

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.