ETH Price: $2,944.77 (+1.85%)
Gas: 7 Gwei

Token

YFI Product token (YFIP)
 

Overview

Max Total Supply

100,000 YFIP

Holders

93

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
Ygov.finance: YFI Token
Balance
20 YFIP

Value
$0.00
0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e
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:
YFIProductToken

Compiler Version
v0.4.11+commit.68ef5810

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-09-06
*/

pragma solidity ^0.4.11;
contract YFIProductToken { // set contract name to token name
   
string public name; 
string public symbol; 
uint8 public decimals;
uint256 public totalSupply;
 
// Balances for each account
mapping(address => uint256) balances;
address devAddress;
// Events
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
event Transfer(address indexed from, address indexed to, uint256 value);
 
// Owner of account approves the transfer of an amount to another account
mapping(address => mapping (address => uint256)) allowed;
// This is the constructor and automatically runs when the smart contract is uploaded
function YFIProductToken() { // Set the constructor to the same name as the contract name
    name = "YFI Product token"; // set the token name here
    symbol = "YFIP"; // set the Symbol here
    decimals = 18; // set the number of decimals
    devAddress=0xCcceEe536f050f821a52a8bb3A00d19118C7387D; // Add the address that you will distribute tokens from here
    uint initialBalance=1000000000000000000*100000; // 1M tokens
    balances[devAddress]=initialBalance;
    totalSupply+=initialBalance; // Set the total suppy
}
function balanceOf(address _owner) constant returns (uint256 balance) {
    return balances[_owner];
}
// Transfer the balance from owner's account to another account
function transfer(address _to, uint256 _amount) returns (bool success) {
    if (balances[msg.sender] >= _amount 
        && _amount > 0
        && balances[_to] + _amount > balances[_to]) {
        balances[msg.sender] -= _amount;
        balances[_to] += _amount;
        Transfer(msg.sender, _to, _amount); 
        return true;
    } else {
        return false;
    }
}
function transferFrom(
    address _from,
    address _to,
    uint256 _amount
) returns (bool success) {
    if (balances[_from] >= _amount
        && allowed[_from][msg.sender] >= _amount
        && _amount > 0
        && balances[_to] + _amount > balances[_to]) {
        balances[_from] -= _amount;
        allowed[_from][msg.sender] -= _amount;
        balances[_to] += _amount;
        return true;
    } else {
        return false;
    }
}
// Allow _spender to withdraw from your account, multiple times, up to the _value amount.
// If this function is called again it overwrites the current allowance with _value.
function approve(address _spender, uint256 _amount) returns (bool success) {
    allowed[msg.sender][_spender] = _amount;
    Approval(msg.sender, _spender, _amount);
    return true;
}
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]

6060604052341561000c57fe5b5b6040805180820190915260118082527f5946492050726f6475637420746f6b656e000000000000000000000000000000602090920191825260009161005491839190610105565b506040805180820190915260048082527f5946495000000000000000000000000000000000000000000000000000000000602090920191825261009991600191610105565b50506002805460ff1916601217905560058054600160a060020a03191673ccceee536f050f821a52a8bb3a00d19118c7387d1790819055600160a060020a0316600090815260046020526040902069152d02c7e14af68000009081905560038054820190555b506101a5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014657805160ff1916838001178555610173565b82800160010185558215610173579182015b82811115610173578251825591602001919060010190610158565b5b50610180929150610184565b5090565b6101a291905b80821115610180576000815560010161018a565b5090565b90565b610655806101b46000396000f3006060604052361561008b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461008d578063095ea7b31461011d57806318160ddd1461015057806323b872dd14610172578063313ce567146101ab57806370a08231146101d157806395d89b41146101ff578063a9059cbb1461028f575bfe5b341561009557fe5b61009d6102c2565b6040805160208082528351818301528351919283929083019185019080838382156100e3575b8051825260208311156100e357601f1990920191602091820191016100c3565b505050905090810190601f16801561010f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561012557fe5b61013c600160a060020a0360043516602435610350565b604080519115158252519081900360200190f35b341561015857fe5b6101606103bb565b60408051918252519081900360200190f35b341561017a57fe5b61013c600160a060020a03600435811690602435166044356103c1565b604080519115158252519081900360200190f35b34156101b357fe5b6101bb6104a3565b6040805160ff9092168252519081900360200190f35b34156101d957fe5b610160600160a060020a03600435166104ac565b60408051918252519081900360200190f35b341561020757fe5b61009d6104cb565b6040805160208082528351818301528351919283929083019185019080838382156100e3575b8051825260208311156100e357601f1990920191602091820191016100c3565b505050905090810190601f16801561010f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561029757fe5b61013c600160a060020a0360043516602435610558565b604080519115158252519081900360200190f35b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103485780601f1061031d57610100808354040283529160200191610348565b820191906000526020600020905b81548152906001019060200180831161032b57829003601f168201915b505050505081565b600160a060020a03338116600081815260066020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60035481565b600160a060020a0383166000908152600460205260408120548290108015906104115750600160a060020a0380851660009081526006602090815260408083203390941683529290522054829010155b801561041d5750600082115b80156104425750600160a060020a038316600090815260046020526040902054828101115b156104975750600160a060020a0380841660009081526004602081815260408084208054879003905560068252808420338616855282528084208054879003905593861683525220805482019055600161049b565b5060005b5b9392505050565b60025460ff1681565b600160a060020a0381166000908152600460205260409020545b919050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103485780601f1061031d57610100808354040283529160200191610348565b820191906000526020600020905b81548152906001019060200180831161032b57829003601f168201915b505050505081565b600160a060020a0333166000908152600460205260408120548290108015906105815750600082115b80156105a65750600160a060020a038316600090815260046020526040902054828101115b1561061a57600160a060020a03338116600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060016103b5565b5060006103b5565b5b929150505600a165627a7a72305820e2dba7a7ef67c2e082b00f603a097762f7a50c31b739f0b738fbe150b022f5690029

Deployed Bytecode

0x6060604052361561008b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461008d578063095ea7b31461011d57806318160ddd1461015057806323b872dd14610172578063313ce567146101ab57806370a08231146101d157806395d89b41146101ff578063a9059cbb1461028f575bfe5b341561009557fe5b61009d6102c2565b6040805160208082528351818301528351919283929083019185019080838382156100e3575b8051825260208311156100e357601f1990920191602091820191016100c3565b505050905090810190601f16801561010f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561012557fe5b61013c600160a060020a0360043516602435610350565b604080519115158252519081900360200190f35b341561015857fe5b6101606103bb565b60408051918252519081900360200190f35b341561017a57fe5b61013c600160a060020a03600435811690602435166044356103c1565b604080519115158252519081900360200190f35b34156101b357fe5b6101bb6104a3565b6040805160ff9092168252519081900360200190f35b34156101d957fe5b610160600160a060020a03600435166104ac565b60408051918252519081900360200190f35b341561020757fe5b61009d6104cb565b6040805160208082528351818301528351919283929083019185019080838382156100e3575b8051825260208311156100e357601f1990920191602091820191016100c3565b505050905090810190601f16801561010f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561029757fe5b61013c600160a060020a0360043516602435610558565b604080519115158252519081900360200190f35b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103485780601f1061031d57610100808354040283529160200191610348565b820191906000526020600020905b81548152906001019060200180831161032b57829003601f168201915b505050505081565b600160a060020a03338116600081815260066020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60035481565b600160a060020a0383166000908152600460205260408120548290108015906104115750600160a060020a0380851660009081526006602090815260408083203390941683529290522054829010155b801561041d5750600082115b80156104425750600160a060020a038316600090815260046020526040902054828101115b156104975750600160a060020a0380841660009081526004602081815260408084208054879003905560068252808420338616855282528084208054879003905593861683525220805482019055600161049b565b5060005b5b9392505050565b60025460ff1681565b600160a060020a0381166000908152600460205260409020545b919050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103485780601f1061031d57610100808354040283529160200191610348565b820191906000526020600020905b81548152906001019060200180831161032b57829003601f168201915b505050505081565b600160a060020a0333166000908152600460205260408120548290108015906105815750600082115b80156105a65750600160a060020a038316600090815260046020526040902054828101115b1561061a57600160a060020a03338116600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060016103b5565b5060006103b5565b5b929150505600a165627a7a72305820e2dba7a7ef67c2e082b00f603a097762f7a50c31b739f0b738fbe150b022f5690029

Deployed Bytecode Sourcemap

26:2579:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18:2:-1;;13:3;7:5;32;59:3;53:5;48:3;41:6;93:2;88:3;85:2;78:6;73:3;67:5;-1:-1;;152:3;;;;117:2;108:3;;;;130;172:5;167:4;181:3;3:186;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2413:189:0;;;;;;;;-1:-1:-1;;;;;2413:189:0;;;;;;;;;;;;;;;;;;;;;;;;;164:26;;;;;;;;;;;;;;;;;;;;;;;;;;1771:463;;;;;;;;-1:-1:-1;;;;;1771:463:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1213:104;;;;;;;;-1:-1:-1;;;;;1213:104:0;;;;;;;;;;;;;;;;;;;;;116:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18:2:-1;;13:3;7:5;32;59:3;53:5;48:3;41:6;93:2;88:3;85:2;78:6;73:3;67:5;-1:-1;;152:3;;;;117:2;108:3;;;;130;172:5;167:4;181:3;3:186;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1384:385:0;;;;;;;;-1:-1:-1;;;;;1384:385:0;;;;;;;;;;;;;;;;;;;;;;;;;94:18;;;;;;;;;;;;;;;-1:-1:-1;;94:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2413:189::-;-1:-1:-1;;;;;2503:10:0;2495:19;;2474:12;2495:19;;;:7;:19;;;;;;;;:29;;;;;;;;;;;;:39;;;2541;;;;;;;2474:12;;2495:29;:19;2541:39;;;;;;;;;;;-1:-1:-1;2594:4:0;2413:189;;;;;:::o;164:26::-;;;;:::o;1771:463::-;-1:-1:-1;;;;;1890:15:0;;1865:12;1890:15;;;:8;:15;;;;;;:26;;;;;;:76;;-1:-1:-1;;;;;;1929:14:0;;;;;;;:7;:14;;;;;;;;1944:10;1929:26;;;;;;;;;;:37;;;;1890:76;:100;;;;;1989:1;1979:7;:11;1890:100;:152;;;;-1:-1:-1;;;;;;2029:13:0;;;;;;:8;:13;;;;;;2003:23;;;:39;1890:152;1886:345;;;-1:-1:-1;;;;;;2055:15:0;;;;;;;:8;:15;;;;;;;;:26;;;;;;;2092:7;:14;;;;;2107:10;2092:26;;;;;;;;;:37;;;;;;;2140:13;;;;;;;:24;;;;;;-1:-1:-1;2175:11:0;;1886:345;-1:-1:-1;2218:5:0;1886:345;1771:463;;;;;;:::o;140:21::-;;;;;;:::o;1213:104::-;-1:-1:-1;;;;;1297:16:0;;1266:15;1297:16;;;:8;:16;;;;;;1213:104;;;;:::o;116:20::-;;;;;;;;;;;;;;;-1:-1:-1;;116:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1384:385::-;-1:-1:-1;;;;;1475:10:0;1466:20;1441:12;1466:20;;;:8;:20;;;;;;:31;;;;;;:56;;;1521:1;1511:7;:11;1466:56;:108;;;;-1:-1:-1;;;;;;1561:13:0;;;;;;:8;:13;;;;;;1535:23;;;:39;1466:108;1462:304;;;-1:-1:-1;;;;;1596:10:0;1587:20;;;;;;:8;:20;;;;;;;;:31;;;;;;;1629:13;;;;;;;;;;:24;;;;;;1664:34;;;;;;;1629:13;;1664:34;;;;;;;;;;;-1:-1:-1;1717:4:0;1710:11;;1462:304;-1:-1:-1;1753:5:0;1746:12;;1462:304;1384:385;;;;;:::o

Swarm Source

bzzr://e2dba7a7ef67c2e082b00f603a097762f7a50c31b739f0b738fbe150b022f569
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.