ETH Price: $3,303.43 (-1.72%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve214940112024-12-27 13:11:4712 days ago1735305107IN
0xd87F3500...7611f0652
0 ETH0.000300776.47306705
Approve214939952024-12-27 13:08:3512 days ago1735304915IN
0xd87F3500...7611f0652
0 ETH0.000360497.80873439
Approve214939142024-12-27 12:52:2312 days ago1735303943IN
0xd87F3500...7611f0652
0 ETH0.000363627.87039638

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2024-12-27
*/

pragma solidity ^0.8.2;

contract Token {
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowance;
    uint public totalSupply = 1500000000000 * 10 ** 18;
    string public name = "BIO Protocol";
    string public symbol = "BIO";
    uint public decimals = 18;
    
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
    
    constructor() {
        balances[msg.sender] = totalSupply;
    }
    
    function balanceOf(address owner) public returns(uint) {
        return balances[owner];
    }
    
    function transfer(address to, uint value) public returns(bool) {
        require(balanceOf(msg.sender) >= value, 'balance too low');
        balances[to] += value;
        balances[msg.sender] -= value;
       emit Transfer(msg.sender, to, value);
        return true;
    }
    
    function transferFrom(address from, address to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] += value;
        balances[from] -= value;
        emit Transfer(from, to, value);
        return true;   
    }
    
    function approve(address spender, uint value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;   
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6c12eec2eb3869af64df6000000060025560c0604052600c60808190526b109253c8141c9bdd1bd8dbdb60a21b60a090815261003e9160039190610094565b506040805180820190915260038082526242494f60e81b602090920191825261006991600491610094565b50601260055534801561007b57600080fd5b5060025433600090815260208190526040902055610168565b8280546100a09061012d565b90600052602060002090601f0160209004810192826100c25760008555610108565b82601f106100db57805160ff1916838001178555610108565b82800160010185558215610108579182015b828111156101085782518255916020019190600101906100ed565b50610114929150610118565b5090565b5b808211156101145760008155600101610119565b60028104600182168061014157607f821691505b6020821081141561016257634e487b7160e01b600052602260045260246000fd5b50919050565b6106d2806101776000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b411461014a578063a9059cbb14610152578063dd62ed3e146101655761009e565b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab610190565b6040516100b891906105c9565b60405180910390f35b6100d46100cf3660046105a0565b61021e565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610565565b61028a565b6100ed61011c366004610512565b60006020819052908152604090205481565b6100ed60055481565b6100ed610145366004610512565b6103f5565b6100ab610414565b6100d46101603660046105a0565b610421565b6100ed610173366004610533565b600160209081526000928352604080842090915290825290205481565b6003805461019d9061064b565b80601f01602080910402602001604051908101604052809291908181526020018280546101c99061064b565b80156102165780601f106101eb57610100808354040283529160200191610216565b820191906000526020600020905b8154815290600101906020018083116101f957829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102799086815260200190565b60405180910390a350600192915050565b600081610296856103f5565b10156102db5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103425760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061036a90849061061c565b90915550506001600160a01b03841660009081526020819052604081208054849290610397908490610634565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103e391815260200190565b60405180910390a35060019392505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6004805461019d9061064b565b60008161042d336103f5565b101561046d5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061049590849061061c565b909155505033600090815260208190526040812080548492906104b9908490610634565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610279565b80356001600160a01b038116811461040f57600080fd5b600060208284031215610523578081fd5b61052c826104fb565b9392505050565b60008060408385031215610545578081fd5b61054e836104fb565b915061055c602084016104fb565b90509250929050565b600080600060608486031215610579578081fd5b610582846104fb565b9250610590602085016104fb565b9150604084013590509250925092565b600080604083850312156105b2578182fd5b6105bb836104fb565b946020939093013593505050565b6000602080835283518082850152825b818110156105f5578581018301518582016040015282016105d9565b818111156106065783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561062f5761062f610686565b500190565b60008282101561064657610646610686565b500390565b60028104600182168061065f57607f821691505b6020821081141561068057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212208b5a2250215b34074791c654b653c89c3d683da1ca1415471464b39f94541ec064736f6c63430008020033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b411461014a578063a9059cbb14610152578063dd62ed3e146101655761009e565b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab610190565b6040516100b891906105c9565b60405180910390f35b6100d46100cf3660046105a0565b61021e565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610565565b61028a565b6100ed61011c366004610512565b60006020819052908152604090205481565b6100ed60055481565b6100ed610145366004610512565b6103f5565b6100ab610414565b6100d46101603660046105a0565b610421565b6100ed610173366004610533565b600160209081526000928352604080842090915290825290205481565b6003805461019d9061064b565b80601f01602080910402602001604051908101604052809291908181526020018280546101c99061064b565b80156102165780601f106101eb57610100808354040283529160200191610216565b820191906000526020600020905b8154815290600101906020018083116101f957829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102799086815260200190565b60405180910390a350600192915050565b600081610296856103f5565b10156102db5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103425760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061036a90849061061c565b90915550506001600160a01b03841660009081526020819052604081208054849290610397908490610634565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103e391815260200190565b60405180910390a35060019392505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6004805461019d9061064b565b60008161042d336103f5565b101561046d5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061049590849061061c565b909155505033600090815260208190526040812080548492906104b9908490610634565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610279565b80356001600160a01b038116811461040f57600080fd5b600060208284031215610523578081fd5b61052c826104fb565b9392505050565b60008060408385031215610545578081fd5b61054e836104fb565b915061055c602084016104fb565b90509250929050565b600080600060608486031215610579578081fd5b610582846104fb565b9250610590602085016104fb565b9150604084013590509250925092565b600080604083850312156105b2578182fd5b6105bb836104fb565b946020939093013593505050565b6000602080835283518082850152825b818110156105f5578581018301518582016040015282016105d9565b818111156106065783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561062f5761062f610686565b500190565b60008282101561064657610646610686565b500390565b60028104600182168061065f57607f821691505b6020821081141561068057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212208b5a2250215b34074791c654b653c89c3d683da1ca1415471464b39f94541ec064736f6c63430008020033

Deployed Bytecode Sourcemap

27:1528:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;221:35;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1350:202;;;;;;:::i;:::-;;:::i;:::-;;;1445:14:1;;1438:22;1420:41;;1408:2;1393:18;1350:202:0;1375:92:1;164:50:0;;;;;;;;;2916:25:1;;;2904:2;2889:18;164:50:0;2871:76:1;977:361:0;;;;;;:::i;:::-;;:::i;49:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;298:25;;;;;;577:96;;;;;;:::i;:::-;;:::i;263:28::-;;;:::i;685:280::-;;;;;;:::i;:::-;;:::i;96:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;221:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1350:202::-;1439:10;1412:4;1429:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1429:30:0;;;;;;;;;;:38;;;1483:36;1412:4;;1429:30;;1483:36;;;;1462:5;2916:25:1;;2904:2;2889:18;;2871:76;1483:36:0;;;;;;;;-1:-1:-1;1537:4:0;1350:202;;;;:::o;977:361::-;1052:4;1096:5;1077:15;1087:4;1077:9;:15::i;:::-;:24;;1069:52;;;;-1:-1:-1;;;1069:52:0;;2282:2:1;1069:52:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;1069:52:0;;;;;;;;;-1:-1:-1;;;;;1140:15:0;;;;;;:9;:15;;;;;;;;1156:10;1140:27;;;;;;;;:36;-1:-1:-1;1140:36:0;1132:66;;;;-1:-1:-1;;;1132:66:0;;2626:2:1;1132:66:0;;;2608:21:1;2665:2;2645:18;;;2638:30;-1:-1:-1;;;2684:18:1;;;2677:47;2741:18;;1132:66:0;2598:167:1;1132:66:0;-1:-1:-1;;;;;1209:12:0;;:8;:12;;;;;;;;;;:21;;1225:5;;1209:8;:21;;1225:5;;1209:21;:::i;:::-;;;;-1:-1:-1;;;;;;;1241:14:0;;:8;:14;;;;;;;;;;:23;;1259:5;;1241:8;:23;;1259:5;;1241:23;:::i;:::-;;;;;;;;1295:2;-1:-1:-1;;;;;1280:25:0;1289:4;-1:-1:-1;;;;;1280:25:0;;1299:5;1280:25;;;;2916::1;;2904:2;2889:18;;2871:76;1280:25:0;;;;;;;;-1:-1:-1;1323:4:0;977:361;;;;;:::o;577:96::-;-1:-1:-1;;;;;650:15:0;;626:4;650:15;;;;;;;;;;;577:96;;;;:::o;263:28::-;;;;;;;:::i;685:280::-;742:4;792:5;767:21;777:10;767:9;:21::i;:::-;:30;;759:58;;;;-1:-1:-1;;;759:58:0;;2282:2:1;759:58:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;759:58:0;2254:165:1;759:58:0;-1:-1:-1;;;;;828:12:0;;:8;:12;;;;;;;;;;:21;;844:5;;828:8;:21;;844:5;;828:21;:::i;:::-;;;;-1:-1:-1;;869:10:0;860:8;:20;;;;;;;;;;:29;;884:5;;860:8;:29;;884:5;;860:29;:::i;:::-;;;;-1:-1:-1;;904:31:0;;2916:25:1;;;-1:-1:-1;;;;;904:31:0;;;913:10;;904:31;;2904:2:1;2889:18;904:31:0;2871:76:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:196;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;;;;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;;;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1472:603::-;;1613:2;1642;1631:9;1624:21;1674:6;1668:13;1717:6;1712:2;1701:9;1697:18;1690:34;1742:4;1755:140;1769:6;1766:1;1763:13;1755:140;;;1864:14;;;1860:23;;1854:30;1830:17;;;1849:2;1826:26;1819:66;1784:10;;1755:140;;;1913:6;1910:1;1907:13;1904:2;;;1983:4;1978:2;1969:6;1958:9;1954:22;1950:31;1943:45;1904:2;-1:-1:-1;2059:2:1;2038:15;-1:-1:-1;;2034:29:1;2019:45;;;;2066:2;2015:54;;1593:482;-1:-1:-1;;;1593:482:1:o;2952:128::-;;3023:1;3019:6;3016:1;3013:13;3010:2;;;3029:18;;:::i;:::-;-1:-1:-1;3065:9:1;;3000:80::o;3085:125::-;;3153:1;3150;3147:8;3144:2;;;3158:18;;:::i;:::-;-1:-1:-1;3195:9:1;;3134:76::o;3215:380::-;3300:1;3290:12;;3347:1;3337:12;;;3358:2;;3412:4;3404:6;3400:17;3390:27;;3358:2;3465;3457:6;3454:14;3434:18;3431:38;3428:2;;;3511:10;3506:3;3502:20;3499:1;3492:31;3546:4;3543:1;3536:15;3574:4;3571:1;3564:15;3428:2;;3270:325;;;:::o;3600:127::-;3661:10;3656:3;3652:20;3649:1;3642:31;3692:4;3689:1;3682:15;3716:4;3713:1;3706:15

Swarm Source

ipfs://8b5a2250215b34074791c654b653c89c3d683da1ca1415471464b39f94541ec0

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.