Blockwell

Yearn Finance Protocol

ERC20

This contract is an ERC20 token.

Name Yearn Finance Protocol
Symbol YFP
Decimals 18
Total Supply 390,924 YFP

About link

Yearn Finance Protocol (YFP) is a cryptocurrency token and operates on the Ethereum platform. Yearn Finance Protocol has a current supply of 440,748 with ? in circulation. The last known price of Yearn Finance Protocol is $2.16 USD and is down -5.88% over the last 24 hours. It is currently trading on 1 active market(s) with $80,825.22 traded over the last 24 hours. More information can be found at https://www.yfprotocol.finance/.

Stats

Public Functions 10
Event Types 2
Code Size 3,721 bytes

Approval Event

Parameters help
tokenOwner
address help
spender
address help
tokens
uint help

Transfer Event

Parameters help
from
address help
to
address help
tokens
uint help

Functions Expand All Collapse All

safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure

Requirements help

Source Code
    function safeAdd(uint a, uint b) public pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }

safeSub keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure

Requirements help

Source Code
    function safeSub(uint a, uint b) public pure returns (uint c) {
        require(b <= a); c = a - b; }

safeMul keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure
Source Code
 function safeMul(uint a, uint b) public pure returns (uint c) { c = a * b; require(a == 0 || c / a == b); }

safeDiv keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure

Requirements help

Source Code
 function safeDiv(uint a, uint b) public pure returns (uint c) { require(b > 0);
        c = a / b;
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function totalSupply() public view returns (uint) {
        return _totalSupply  - balances[address(0)];
    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
tokenOwner
address help

Properties

Visibility help public
Mutability help view
Source Code
    function balanceOf(address tokenOwner) public view returns (uint balance) {
        return balances[tokenOwner];
    }

allowance keyboard_arrow_up

Parameters help

Name Type
tokenOwner
address help
spender
address help

Properties

Visibility help public
Mutability help view
Source Code
    function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }

transfer keyboard_arrow_up

Parameters help

Name Type
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address to, uint tokens) public returns (bool success) {
        balances[msg.sender] = safeSub(balances[msg.sender], tokens);
        balances[to] = safeAdd(balances[to], tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }

approve keyboard_arrow_up

Parameters help

Name Type
spender
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function approve(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
from
address help
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        balances[from] = safeSub(balances[from], tokens);
        allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
        balances[to] = safeAdd(balances[to], tokens);
        emit Transfer(from, to, tokens);
        return true;
    }