Skip to content
Verified contractPartial

Vyper_contract

Address0x5dbf0ef20a51861cc76efa5fa38d51cec7b5fc71
Balance

0 ETH

 

Transactions

19

 

Compiler

vyper 0.3.10

 

Same code

Only this contract

 

Details

Compiler
vyper 0.3.10+commit.91361694
Language
vyper
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
21,971,456
Creation transaction
0x27baed6642…8371820a33

Vyper_contract.vy

# @version 0.3.10
from vyper.interfaces import ERC20

ADMIN: public(constant(address)) = 0x40907540d8a6C65c637785e8f8B742ae6b0b9968
RECEIVER: public(constant(address)) = 0xE8555F05b3f5a1F4566CD7da98c4e5F195258B65
TOKEN: public(constant(address)) = 0xD533a949740bb3306d119CC777fa900bA034cd52

enabled: public(bool)


@external
def __init__():
    self.enabled = True


@external
def set_enabled(toggle: bool):
    assert msg.sender == ADMIN
    self.enabled = toggle


@external
def claim_all():
    quantity: uint256 = ERC20(TOKEN).balanceOf(self)
    recipient: address = ADMIN
    if self.enabled:
        recipient = RECEIVER
    ERC20(TOKEN).transfer(recipient, quantity)
Compiler settingsShow
{
  "search_paths": [
    "."
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.