Contract 0x6A0E5dD021dB29B5869630c4cBCb5B6E7A7b3ed6 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x58f4e6a9b98ccc33fb56789807e8e10f5325979fa4225758e4c0112d1c2b95f80x6040610179594762022-03-15 22:04:17198 days 18 hrs ago0x8286dc6df929c4bfa4f6951cab4dae2ec02d4d72 IN  Create: Vyper_contract0 ETH0.00062939803 ETH
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x06620cac7ff1c74f3225152ba22a128f964a9cb8e914366bf02b1c3e5923a8fa79718492022-03-16 3:37:58198 days 12 hrs ago Hundred Finance: Governance Multisig 0x6a0e5dd021db29b5869630c4cbcb5b6e7a7b3ed60 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 Token Treasury
@author Hundred Finance
@license MIT
"""

from vyper.interfaces import ERC20


token: public(address)
minter: public(address)
admin: public(address)

@external
def __init__(_token: address, _admin: address):
    self.token = _token
    self.admin = _admin

@external
@nonpayable
def set_minter(_minter: address):
    assert msg.sender == self.admin # only admin can set minter
    self.minter = _minter

@external
@nonpayable
def set_admin(_admin: address):
    assert msg.sender == self.admin # only admin can set minter
    self.admin = _admin

@external
@nonpayable
def mint(_to: address, _amount: uint256) -> bool:
    assert msg.sender == self.minter or msg.sender == self.admin  # only minter or admin can distribute tokens
    return ERC20(self.token).transfer(_to, _amount)

Contract ABI

[{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_token","type":"address"},{"name":"_admin","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"set_minter","inputs":[{"name":"_minter","type":"address"}],"outputs":[],"gas":37545},{"stateMutability":"nonpayable","type":"function","name":"set_admin","inputs":[{"name":"_admin","type":"address"}],"outputs":[],"gas":37575},{"stateMutability":"nonpayable","type":"function","name":"mint","inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":9299},{"stateMutability":"view","type":"function","name":"token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2478},{"stateMutability":"view","type":"function","name":"minter","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2508},{"stateMutability":"view","type":"function","name":"admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2538}]

604061019261014039602061019260c03960c05160a01c61018d57602060206101920160c03960c05160a01c61018d57610140516000556101605160025561017556600436101561000d57610128565b600035601c526000513461012e57631652e9fc8114156100435760043560a01c61012e5760025433141561012e57600435600155005b63e9333fab81141561006b5760043560a01c61012e5760025433141561012e57600435600255005b6340c10f198114156100de5760043560a01c61012e57600154331415610092576001610098565b60025433145b5b1561012e5760206101e0604463a9059cbb61014052604060046101603761015c60006000545af11561012e57601f3d111561012e576000506101e05160005260206000f35b63fc0c546a8114156100f65760005460005260206000f35b630754617281141561010e5760015460005260206000f35b63f851a4408114156101265760025460005260206000f35b505b60006000fd5b600080fd5b61004261017503610042600039610042610175036000f35b600080fd00000000000000000000000010010078a54396f62c96df8532dc2b4847d47ed3000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9

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

00000000000000000000000010010078a54396f62c96df8532dc2b4847d47ed3000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9

-----Decoded View---------------
Arg [0] : _token (address): 0x10010078a54396f62c96df8532dc2b4847d47ed3
Arg [1] : _admin (address): 0xb982841d8caf7ccc1b5c8ec414347316f54a06c9

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000010010078a54396f62c96df8532dc2b4847d47ed3
Arg [1] : 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.