ERC-20
Overview
Max Total Supply
250,000,000 BLiVX
Holders
104
Market
Onchain Market Cap
$0.00
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:
BLIVX
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract BLIVX is IERC20 { string public constant name = "BLiVX"; string public constant symbol = "BLiVX"; uint8 public constant decimals = 18; mapping(address => uint256) balances; mapping(address => mapping (address => uint256)) allowed; uint256 totalSupply_ = 250000000 ether; constructor() { balances[msg.sender] = totalSupply_; } function totalSupply() public override view returns (uint256) { return totalSupply_; } function balanceOf(address tokenOwner) public override view returns (uint256) { return balances[tokenOwner]; } function transfer(address receiver, uint256 numTokens) public override returns (bool) { require(numTokens <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender]-numTokens; balances[receiver] = balances[receiver]+numTokens; emit Transfer(msg.sender, receiver, numTokens); return true; } function approve(address delegate, uint256 numTokens) public override returns (bool) { allowed[msg.sender][delegate] = numTokens; emit Approval(msg.sender, delegate, numTokens); return true; } function allowance(address owner, address delegate) public override view returns (uint) { return allowed[owner][delegate]; } function transferFrom(address owner, address buyer, uint256 numTokens) public override returns (bool) { require(numTokens <= balances[owner]); require(numTokens <= allowed[owner][msg.sender]); balances[owner] = balances[owner]-numTokens; allowed[owner][msg.sender] = allowed[owner][msg.sender]-numTokens; balances[buyer] = balances[buyer]+numTokens; emit Transfer(owner, buyer, numTokens); return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: 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 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"owner","type":"address"},{"internalType":"address","name":"delegate","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"receiver","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526acecb8f27f4200f3a00000060025534801561001f57600080fd5b50600254336000908152602081905260409020556105aa806100426000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461011a57806370a082311461013457806395d89b4114610098578063a9059cbb1461015d578063dd62ed3e1461017057600080fd5b806306fdde0314610098578063095ea7b3146100d257806318160ddd146100f557806323b872dd14610107575b600080fd5b6100bc6040518060400160405280600581526020016408498d2acb60db1b81525081565b6040516100c99190610413565b60405180910390f35b6100e56100e036600461047d565b6101a9565b60405190151581526020016100c9565b6002545b6040519081526020016100c9565b6100e56101153660046104a7565b610216565b610122601281565b60405160ff90911681526020016100c9565b6100f96101423660046104e3565b6001600160a01b031660009081526020819052604090205490565b6100e561016b36600461047d565b610361565b6100f961017e366004610505565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102049086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526020819052604081205482111561023b57600080fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561026b57600080fd5b6001600160a01b03841660009081526020819052604090205461028f90839061054e565b6001600160a01b0385166000908152602081815260408083209390935560018152828220338352905220546102c590839061054e565b6001600160a01b0380861660009081526001602090815260408083203384528252808320949094559186168152908190522054610303908390610561565b6001600160a01b038481166000818152602081815260409182902094909455518581529092918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35060019392505050565b3360009081526020819052604081205482111561037d57600080fd5b3360009081526020819052604090205461039890839061054e565b33600090815260208190526040808220929092556001600160a01b038516815220546103c5908390610561565b6001600160a01b038416600081815260208181526040918290209390935551848152909133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610204565b600060208083528351808285015260005b8181101561044057858101830151858201604001528201610424565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461047857600080fd5b919050565b6000806040838503121561049057600080fd5b61049983610461565b946020939093013593505050565b6000806000606084860312156104bc57600080fd5b6104c584610461565b92506104d360208501610461565b9150604084013590509250925092565b6000602082840312156104f557600080fd5b6104fe82610461565b9392505050565b6000806040838503121561051857600080fd5b61052183610461565b915061052f60208401610461565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561021057610210610538565b808201808211156102105761021061053856fea26469706673582212202667aab46ef76ba0266ed517271ea4218d47edbcf4c3f4fe35e821c1ae9521ca64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461011a57806370a082311461013457806395d89b4114610098578063a9059cbb1461015d578063dd62ed3e1461017057600080fd5b806306fdde0314610098578063095ea7b3146100d257806318160ddd146100f557806323b872dd14610107575b600080fd5b6100bc6040518060400160405280600581526020016408498d2acb60db1b81525081565b6040516100c99190610413565b60405180910390f35b6100e56100e036600461047d565b6101a9565b60405190151581526020016100c9565b6002545b6040519081526020016100c9565b6100e56101153660046104a7565b610216565b610122601281565b60405160ff90911681526020016100c9565b6100f96101423660046104e3565b6001600160a01b031660009081526020819052604090205490565b6100e561016b36600461047d565b610361565b6100f961017e366004610505565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102049086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526020819052604081205482111561023b57600080fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561026b57600080fd5b6001600160a01b03841660009081526020819052604090205461028f90839061054e565b6001600160a01b0385166000908152602081815260408083209390935560018152828220338352905220546102c590839061054e565b6001600160a01b0380861660009081526001602090815260408083203384528252808320949094559186168152908190522054610303908390610561565b6001600160a01b038481166000818152602081815260409182902094909455518581529092918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35060019392505050565b3360009081526020819052604081205482111561037d57600080fd5b3360009081526020819052604090205461039890839061054e565b33600090815260208190526040808220929092556001600160a01b038516815220546103c5908390610561565b6001600160a01b038416600081815260208181526040918290209390935551848152909133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610204565b600060208083528351808285015260005b8181101561044057858101830151858201604001528201610424565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461047857600080fd5b919050565b6000806040838503121561049057600080fd5b61049983610461565b946020939093013593505050565b6000806000606084860312156104bc57600080fd5b6104c584610461565b92506104d360208501610461565b9150604084013590509250925092565b6000602082840312156104f557600080fd5b6104fe82610461565b9392505050565b6000806040838503121561051857600080fd5b61052183610461565b915061052f60208401610461565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561021057610210610538565b808201808211156102105761021061053856fea26469706673582212202667aab46ef76ba0266ed517271ea4218d47edbcf4c3f4fe35e821c1ae9521ca64736f6c63430008110033
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.