ETH Price: $3,339.48 (-1.12%)

Token

YFX (YFX)
 

Overview

Max Total Supply

200,001,000 YFX

Holders

46

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
Uniswap V2: YFX 13
Balance
87,909,206.332157294908705224 YFX

Value
$0.00
0xf3ed2857ea3de27c12e357b4d4d5040055769409
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.4

Optimization Enabled:
N/A

Other Settings:
default evmVersion, MIT license

Contract Source Code (Vyper language format)

"""
                                   YFX
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    https://yfx.fund/
  
     YFXXT is an adverserial trading system for producing profits
       based on the actions of YFI, and other highly predictable
              smart contract auto-trading/staking systems.

    YYYYYYY       YYYYYYYFFFFFFFFFFFFFFFFFFFFFFXXXXXXX       XXXXXXX
    Y:::::Y       Y:::::YF::::::::::::::::::::FX:::::X       X:::::X
    Y:::::Y       Y:::::YF::::::::::::::::::::FX:::::X       X:::::X
    Y::::::Y     Y::::::YFF::::::FFFFFFFFF::::FX::::::X     X::::::X
    YYY:::::Y   Y:::::YYY  F:::::F       FFFFFFIXX:::::X   X:::::XXI
       Y:::::Y Y:::::Y     F:::::F                X:::::X X:::::X   
        Y:::::Y:::::Y      F::::::FFFFFFFFFF       X:::::X:::::X    
         Y:::::::::Y       F:::::::::::::::F        X:::::::::X     
          Y:::::::Y        F:::::::::::::::F        X:::::::::X     
           Y:::::Y         F::::::FFFFFFFFFF       X:::::X:::::X    
           Y:::::Y         F:::::F                X:::::X X:::::X   
           Y:::::Y         F:::::F             (XX:::::X   X:::::XX)
           Y:::::Y       FF:::::::FF           X::::::X     X::::::X
        YYYY:::::YYYY    F::::::::FF           X:::::X       X:::::X
        Y:::::::::::Y    F::::::::FF           X:::::X       X:::::X
        YYYYYYYYYYYYY    FFFFFFFFFFF           XXXXXXX       XXXXXXX


"""

from vyper.interfaces import ERC20

implements: ERC20

event Transfer:
    sender: indexed(address)
    receiver: indexed(address)
    value: uint256

event Approval:
    owner: indexed(address)
    spender: indexed(address)
    value: uint256

name: public(String[64])
symbol: public(String[32])
decimals: public(uint256)

# NOTE: By declaring `balanceOf` as public, vyper automatically generates a 'balanceOf()' getter
#       method to allow access to account balances.
#       The _KeyType will become a required parameter for the getter and it will return _ValueType.
#       See: https://vyper.readthedocs.io/en/v0.1.0-beta.8/types.html?highlight=getter#mappings
balanceOf: public(HashMap[address, uint256])
allowances: HashMap[address, HashMap[address, uint256]]
total_supply: uint256
minter: address


@external
def __init__():
    init_supply: uint256 = 1000 * 10 ** 18
    self.name = "YFX"
    self.symbol = "YFX"
    self.decimals = 18
    self.balanceOf[msg.sender] = init_supply
    self.total_supply = init_supply
    self.minter = msg.sender
    log Transfer(ZERO_ADDRESS, msg.sender, init_supply)


@view
@external
def totalSupply() -> uint256:
    """
    @dev Total number of tokens in existence.
    """
    return self.total_supply


@view
@external
def allowance(_owner : address, _spender : address) -> uint256:
    """
    @dev Function to check the amount of tokens that an owner allowed to a spender.
    @param _owner The address which owns the funds.
    @param _spender The address which will spend the funds.
    @return An uint256 specifying the amount of tokens still available for the spender.
    """
    return self.allowances[_owner][_spender]


@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 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.allowances[_from][msg.sender] -= _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.allowances[msg.sender][_spender] = _value
    log Approval(msg.sender, _spender, _value)
    return True

@external
def setMinter(_newMinter: address):
    """
    @dev Change the minter of tokens - useful for the farming contract.
    @param _newMinter The account of the new minter
    """
    assert msg.sender == self.minter
    self.minter = _newMinter

@external
def burnMintingKeys():
    """
    @dev Forever burn the keys to the minting capability, permanently locking the total supply
    """
    assert msg.sender == self.minter
    self.minter = ZERO_ADDRESS

@external
def mint(_to: address, _value: uint256):
    """
    @dev Mint an amount of the token and assigns it to an account.
         This encapsulates the modification of balances such that the
         proper events are emitted.
    @param _to The account that will receive the created tokens.
    @param _value The amount that will be created.
    """
    assert msg.sender == self.minter
    assert _to != ZERO_ADDRESS
    self.total_supply += _value
    self.balanceOf[_to] += _value
    log Transfer(ZERO_ADDRESS, _to, _value)


@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 != ZERO_ADDRESS
    self.total_supply -= _value
    self.balanceOf[_to] -= _value
    log Transfer(_to, ZERO_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)


@external
def burnFrom(_to: address, _value: uint256):
    """
    @dev Burn an amount of the token from a given account.
    @param _to The account whose tokens will be burned.
    @param _value The amount that will be burned.
    """
    self.allowances[_to][msg.sender] -= _value
    self._burn(_to, _value)

Contract Security Audit

Contract ABI

[{"name":"Transfer","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"address","name":"receiver","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false,"type":"event"},{"outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"name":"totalSupply","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":1151},{"name":"allowance","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"_owner"},{"type":"address","name":"_spender"}],"stateMutability":"view","type":"function","gas":1489},{"name":"transfer","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":74772},{"name":"transferFrom","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_from"},{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":111066},{"name":"approve","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"_spender"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":37853},{"name":"setMinter","outputs":[],"inputs":[{"type":"address","name":"_newMinter"}],"stateMutability":"nonpayable","type":"function","gas":36397},{"name":"burnMintingKeys","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":21385},{"name":"mint","outputs":[],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":75763},{"name":"burn","outputs":[],"inputs":[{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":75653},{"name":"burnFrom","outputs":[],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"stateMutability":"nonpayable","type":"function","gas":111943},{"name":"name","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":7883},{"name":"symbol","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":6936},{"name":"decimals","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":1541},{"name":"balanceOf","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"arg0"}],"stateMutability":"view","type":"function","gas":1725}]

740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a052341561009857600080fd5b683635c9adc5dea00000610140526003610160527f59465800000000000000000000000000000000000000000000000000000000006101805261016080600060c052602060c020602082510161012060006002818352015b8261012051602002111561010357610125565b61012051602002850151610120518501555b81516001018083528114156100f0575b50505050505060036101c0527f59465800000000000000000000000000000000000000000000000000000000006101e0526101c080600160c052602060c020602082510161012060006002818352015b82610120516020021115610188576101aa565b61012051602002850151610120518501555b8151600101808352811415610175575b50505050505060126002556101405160033360e05260c052604060c02055610140516005553360065561014051610220523360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610220a3610a1a56600436101561000d5761080a565b600035601c52740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a0526318160ddd60005114156100c85734156100ba57600080fd5b60055460005260206000f350005b63dd62ed3e600051141561012f5734156100e157600080fd5b60043560205181106100f257600080fd5b50602435602051811061010457600080fd5b50600460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f350005b63a9059cbb60005114156101f157341561014857600080fd5b600435602051811061015957600080fd5b5060033360e05260c052604060c02080546024358082101561017a57600080fd5b80820390509050815550600360043560e05260c052604060c02080546024358181830110156101a857600080fd5b8082019050905081555060243561014052600435337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b6323b872dd600051141561030157341561020a57600080fd5b600435602051811061021b57600080fd5b50602435602051811061022d57600080fd5b50600360043560e05260c052604060c02080546044358082101561025057600080fd5b80820390509050815550600360243560e05260c052604060c020805460443581818301101561027e57600080fd5b80820190509050815550600460043560e05260c052604060c0203360e05260c052604060c0208054604435808210156102b657600080fd5b80820390509050815550604435610140526024356004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b63095ea7b3600051141561038b57341561031a57600080fd5b600435602051811061032b57600080fd5b5060243560043360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b63fca3b5aa60005114156103cc5734156103a457600080fd5b60043560205181106103b557600080fd5b5060065433146103c457600080fd5b600435600655005b636c7c048660005114156103fa5734156103e557600080fd5b60065433146103f357600080fd5b6000600655005b6340c10f1960005114156104c557341561041357600080fd5b600435602051811061042457600080fd5b50600654331461043357600080fd5b60006004351861044257600080fd5b6005805460243581818301101561045857600080fd5b80820190509050815550600360043560e05260c052604060c020805460243581818301101561048657600080fd5b808201905090508155506024356101405260043560007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3005b600015610571575b610180526101405261016052600061014051186104e957600080fd5b6005805461016051808210156104fe57600080fd5b8082039050905081555060036101405160e05260c052604060c0208054610160518082101561052c57600080fd5b80820390509050815550610160516101a0526000610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101a0a361018051565b6342966c6860005114156105ac57341561058a57600080fd5b3361014052600435610160526101605161014051600658016104cd565b600050005b6379cc679060005114156106335734156105c557600080fd5b60043560205181106105d657600080fd5b50600460043560e05260c052604060c0203360e05260c052604060c02080546024358082101561060557600080fd5b8082039050905081555060043561014052602435610160526101605161014051600658016104cd565b600050005b6306fdde0360005114156106e757341561064c57600080fd5b60008060c052602060c020610180602082540161012060006003818352015b8261012051602002111561067e576106a0565b61012051850154610120516020028501525b815160010180835281141561066b575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6395d89b41600051141561079b57341561070057600080fd5b60018060c052602060c020610180602082540161012060006002818352015b8261012051602002111561073257610754565b61012051850154610120516020028501525b815160010180835281141561071f575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b63313ce56760005114156107c25734156107b457600080fd5b60025460005260206000f350005b6370a0823160005114156108095734156107db57600080fd5b60043560205181106107ec57600080fd5b50600360043560e05260c052604060c0205460005260206000f350005b5b60006000fd5b61020a610a1a0361020a60003961020a610a1a036000f3

Deployed Bytecode

0x600436101561000d5761080a565b600035601c52740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a0526318160ddd60005114156100c85734156100ba57600080fd5b60055460005260206000f350005b63dd62ed3e600051141561012f5734156100e157600080fd5b60043560205181106100f257600080fd5b50602435602051811061010457600080fd5b50600460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f350005b63a9059cbb60005114156101f157341561014857600080fd5b600435602051811061015957600080fd5b5060033360e05260c052604060c02080546024358082101561017a57600080fd5b80820390509050815550600360043560e05260c052604060c02080546024358181830110156101a857600080fd5b8082019050905081555060243561014052600435337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b6323b872dd600051141561030157341561020a57600080fd5b600435602051811061021b57600080fd5b50602435602051811061022d57600080fd5b50600360043560e05260c052604060c02080546044358082101561025057600080fd5b80820390509050815550600360243560e05260c052604060c020805460443581818301101561027e57600080fd5b80820190509050815550600460043560e05260c052604060c0203360e05260c052604060c0208054604435808210156102b657600080fd5b80820390509050815550604435610140526024356004357fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3600160005260206000f350005b63095ea7b3600051141561038b57341561031a57600080fd5b600435602051811061032b57600080fd5b5060243560043360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b63fca3b5aa60005114156103cc5734156103a457600080fd5b60043560205181106103b557600080fd5b5060065433146103c457600080fd5b600435600655005b636c7c048660005114156103fa5734156103e557600080fd5b60065433146103f357600080fd5b6000600655005b6340c10f1960005114156104c557341561041357600080fd5b600435602051811061042457600080fd5b50600654331461043357600080fd5b60006004351861044257600080fd5b6005805460243581818301101561045857600080fd5b80820190509050815550600360043560e05260c052604060c020805460243581818301101561048657600080fd5b808201905090508155506024356101405260043560007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610140a3005b600015610571575b610180526101405261016052600061014051186104e957600080fd5b6005805461016051808210156104fe57600080fd5b8082039050905081555060036101405160e05260c052604060c0208054610160518082101561052c57600080fd5b80820390509050815550610160516101a0526000610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101a0a361018051565b6342966c6860005114156105ac57341561058a57600080fd5b3361014052600435610160526101605161014051600658016104cd565b600050005b6379cc679060005114156106335734156105c557600080fd5b60043560205181106105d657600080fd5b50600460043560e05260c052604060c0203360e05260c052604060c02080546024358082101561060557600080fd5b8082039050905081555060043561014052602435610160526101605161014051600658016104cd565b600050005b6306fdde0360005114156106e757341561064c57600080fd5b60008060c052602060c020610180602082540161012060006003818352015b8261012051602002111561067e576106a0565b61012051850154610120516020028501525b815160010180835281141561066b575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6395d89b41600051141561079b57341561070057600080fd5b60018060c052602060c020610180602082540161012060006002818352015b8261012051602002111561073257610754565b61012051850154610120516020028501525b815160010180835281141561071f575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b63313ce56760005114156107c25734156107b457600080fd5b60025460005260206000f350005b6370a0823160005114156108095734156107db57600080fd5b60043560205181106107ec57600080fd5b50600360043560e05260c052604060c0205460005260206000f350005b5b60006000fd

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.