ERC-20
Source Code
Overview
Max Total Supply
1,000,000 WAY
Holders
240
Transfers
-
0
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
Bitway
Compiler Version
v0.6.0+commit.26b70077
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-05-24
*/
pragma solidity >=0.5.0 <0.7.0;
// © BITWAY https://bitway.net
contract Bitway {
address private minter;
string public name;
string public symbol;
uint public decimals;
uint internal supply;
uint internal blocks;
uint internal target;
mapping (address => uint) internal balances;
event Transfer(address indexed sender, address indexed receiver, uint amount);
constructor() public {
minter = msg.sender;
name = "BITWAY";
symbol = "WAY";
decimals = 18;
supply = 0;
blocks = 1000000 * 10**uint(decimals);
target = 21 * blocks;
}
function mint() public {
require(msg.sender == minter);
require(supply < target);
balances[minter] += blocks;
supply += blocks;
}
function transfer(address receiver, uint amount) public {
require(amount <= balances[msg.sender]);
balances[msg.sender] -= amount;
balances[receiver] += amount;
emit Transfer(msg.sender, receiver, amount);
}
function balanceOf(address owner) public view returns (uint) {
return balances[owner];
}
function totalSupply() public view returns (uint) {
return supply;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","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":"mint","outputs":[],"stateMutability":"nonpayable","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":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b031916331790556040805180820190915260068082526542495457415960d01b6020909201918252610050916001916100a8565b506040805180820190915260038082526257415960e81b602090920191825261007b916002916100a8565b506012600355600060045569d3c21bcecceda10000006005556a115eec47f6cf7e35000000600655610143565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100e957805160ff1916838001178555610116565b82800160010185558215610116579182015b828111156101165782518255916020019190600101906100fb565b50610122929150610126565b5090565b61014091905b80821115610122576000815560010161012c565b90565b6103a2806101526000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063313ce5671161005b578063313ce5671461012357806370a082311461012b57806395d89b4114610151578063a9059cbb146101595761007d565b806306fdde03146100825780631249c58b146100ff57806318160ddd14610109575b600080fd5b61008a610185565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100c45781810151838201526020016100ac565b50505050905090810190601f1680156100f15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610107610212565b005b610111610268565b60408051918252519081900360200190f35b61011161026e565b6101116004803603602081101561014157600080fd5b50356001600160a01b0316610274565b61008a61028f565b6101076004803603604081101561016f57600080fd5b506001600160a01b0381351690602001356102e7565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561020a5780601f106101df5761010080835404028352916020019161020a565b820191906000526020600020905b8154815290600101906020018083116101ed57829003601f168201915b505050505081565b6000546001600160a01b0316331461022957600080fd5b6006546004541061023957600080fd5b60058054600080546001600160a01b031681526007602052604090208054909101905554600480549091019055565b60045490565b60035481565b6001600160a01b031660009081526007602052604090205490565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561020a5780601f106101df5761010080835404028352916020019161020a565b3360009081526007602052604090205481111561030357600080fd5b336000818152600760209081526040808320805486900390556001600160a01b03861680845292819020805486019055805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3505056fea26469706673582212202e4e4e69679c2b96613e05b1e3d6278d654eae3607be929b98f570dc2d561e1164736f6c63430006000033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063313ce5671161005b578063313ce5671461012357806370a082311461012b57806395d89b4114610151578063a9059cbb146101595761007d565b806306fdde03146100825780631249c58b146100ff57806318160ddd14610109575b600080fd5b61008a610185565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100c45781810151838201526020016100ac565b50505050905090810190601f1680156100f15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610107610212565b005b610111610268565b60408051918252519081900360200190f35b61011161026e565b6101116004803603602081101561014157600080fd5b50356001600160a01b0316610274565b61008a61028f565b6101076004803603604081101561016f57600080fd5b506001600160a01b0381351690602001356102e7565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561020a5780601f106101df5761010080835404028352916020019161020a565b820191906000526020600020905b8154815290600101906020018083116101ed57829003601f168201915b505050505081565b6000546001600160a01b0316331461022957600080fd5b6006546004541061023957600080fd5b60058054600080546001600160a01b031681526007602052604090208054909101905554600480549091019055565b60045490565b60035481565b6001600160a01b031660009081526007602052604090205490565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561020a5780601f106101df5761010080835404028352916020019161020a565b3360009081526007602052604090205481111561030357600080fd5b336000818152600760209081526040808320805486900390556001600160a01b03861680845292819020805486019055805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3505056fea26469706673582212202e4e4e69679c2b96613e05b1e3d6278d654eae3607be929b98f570dc2d561e1164736f6c63430006000033
Deployed Bytecode Sourcemap
70:1221:0:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70:1221:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;122:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;662:170;;;:::i;:::-;;1206:82;;;:::i;:::-;;;;;;;;;;;;;;;;174:20;;;:::i;1096:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1096:102:0;-1:-1:-1;;;;;1096:102:0;;:::i;147:20::-;;;:::i;840:248::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;840:248:0;;;;;;;;:::i;122:18::-;;;;;;;;;;;;;;;-1:-1:-1;;122:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;662:170::-;718:6;;-1:-1:-1;;;;;718:6:0;704:10;:20;696:29;;;;;;753:6;;744;;:15;736:24;;;;;;791:6;;;771:16;780:6;;-1:-1:-1;;;;;780:6:0;771:16;;:8;:16;;;;;:26;;;;;;;818:6;808;:16;;;;;;;662:170::o;1206:82::-;1274:6;;1206:82;:::o;174:20::-;;;;:::o;1096:102::-;-1:-1:-1;;;;;1175:15:0;1151:4;1175:15;;;:8;:15;;;;;;;1096:102::o;147:20::-;;;;;;;;;;;;;;-1:-1:-1;;147:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;840:248;934:10;925:20;;;;:8;:20;;;;;;915:30;;;907:39;;;;;;966:10;957:20;;;;:8;:20;;;;;;;;:30;;;;;;;-1:-1:-1;;;;;998:18:0;;;;;;;;;:28;;;;;;1042:38;;;;;;;998:18;;966:10;1042:38;;;;;;;;;;;840:248;;:::o
Swarm Source
ipfs://2e4e4e69679c2b96613e05b1e3d6278d654eae3607be929b98f570dc2d561e11
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.
Add Token to MetaMask (Web3)