Overview
Max Total Supply
405,643,455.371714086898184882 1BEAM
Holders
223
Market
Price
$0.00 @ 0.000000 GLMR
Onchain Market Cap
$0.00
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xb217710E...B4677d1f6 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
OneBeam
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract OneBeam is IERC20 { using SafeMath for uint256; string public constant symbol = "1BEAM"; string public constant name = "OneBeam"; uint256 public constant MAX_TOTAL_SUPPLY = 1_000_000_000 ether; uint256 public constant GENESIS_SUPPLY = 350_000_000 ether; // GENESIS_SUPPLY tokens will be locked up in vesting fund contracts uint256 public constant decimals = 18; uint256 public override totalSupply; address public minter; mapping(address => uint256) public override balanceOf; mapping(address => mapping(address => uint256)) public override allowance; constructor() { if (GENESIS_SUPPLY > 0 && GENESIS_SUPPLY <= MAX_TOTAL_SUPPLY) { balanceOf[msg.sender] = GENESIS_SUPPLY; totalSupply = GENESIS_SUPPLY; emit Transfer(address(0), msg.sender, GENESIS_SUPPLY); } } function setMinter(address _minter) external returns (bool) { require(minter == address(0)); minter = _minter; return true; } function approve(address _spender, uint256 _value) external override returns (bool) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } /** shared logic for transfer and transferFrom */ function _transfer(address _from, address _to, uint256 _value) internal { require(balanceOf[_from] >= _value, "Insufficient balance"); balanceOf[_from] = balanceOf[_from].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); emit Transfer(_from, _to, _value); } /** @notice Transfer tokens to a specified address @param _to The address to transfer to @param _value The amount to be transferred @return Success boolean */ function transfer(address _to, uint256 _value) public override returns (bool) { _transfer(msg.sender, _to, _value); return true; } /** @notice Transfer tokens from one address to another @param _from The address which you want to send tokens from @param _to The address which you want to transfer to @param _value The amount of tokens to be transferred @return Success boolean */ function transferFrom( address _from, address _to, uint256 _value ) public override returns (bool) { uint256 allowed = allowance[_from][msg.sender]; require(allowed >= _value, "Insufficient allowance"); if (allowed != type(uint256).max) { allowance[_from][msg.sender] = allowed.sub(_value); } _transfer(_from, _to, _value); return true; } function mint(address _to, uint256 _value) external returns (bool) { require(msg.sender == minter); balanceOf[_to] = balanceOf[_to].add(_value); totalSupply = totalSupply.add(_value); require(MAX_TOTAL_SUPPLY >= totalSupply); emit Transfer(address(0), _to, _value); return true; } }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":[],"name":"GENESIS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"","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":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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"}]
Contract Creation Code
608060405234801561001057600080fd5b503360008181526002602090815260408083206b0121836204bc2ce21e0000009081905580845590519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610782806100766000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806340c10f191161008c57806399ec67651161006657806399ec676514610215578063a9059cbb14610228578063dd62ed3e1461023b578063fca3b5aa1461026657600080fd5b806340c10f19146101be57806370a08231146101d157806395d89b41146101f157600080fd5b806318160ddd116100c857806318160ddd1461017957806323b872dd14610190578063313ce567146101a357806333039d3d146101ab57600080fd5b806306fdde03146100ef578063075461721461012b578063095ea7b314610156575b600080fd5b610115604051806040016040528060078152602001664f6e654265616d60c81b81525081565b60405161012291906106b4565b60405180910390f35b60015461013e906001600160a01b031681565b6040516001600160a01b039091168152602001610122565b61016961016436600461068b565b610279565b6040519015158152602001610122565b61018260005481565b604051908152602001610122565b61016961019e366004610650565b6102e5565b610182601281565b6101826b033b2e3c9fd0803ce800000081565b6101696101cc36600461068b565b6103a5565b6101826101df366004610604565b60026020526000908152604090205481565b61011560405180604001604052806005815260200164314245414d60d81b81525081565b6101826b0121836204bc2ce21e00000081565b61016961023636600461068b565b610464565b61018261024936600461061e565b600360209081526000928352604080842090915290825290205481565b610169610274366004610604565b61047a565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102d49086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600360209081526040808320338452909152812054828110156103575760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064015b60405180910390fd5b600019811461038f5761036a81846104b7565b6001600160a01b03861660009081526003602090815260408083203384529091529020555b61039a8585856104ca565b506001949350505050565b6001546000906001600160a01b031633146103bf57600080fd5b6001600160a01b0383166000908152600260205260409020546103e290836105dc565b6001600160a01b0384166000908152600260205260408120919091555461040990836105dc565b60008190556b033b2e3c9fd0803ce8000000101561042657600080fd5b6040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016102d4565b60006104713384846104ca565b50600192915050565b6001546000906001600160a01b03161561049357600080fd5b50600180546001600160a01b0319166001600160a01b039290921691909117815590565b60006104c3828461071f565b9392505050565b6001600160a01b0383166000908152600260205260409020548111156105295760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161034e565b6001600160a01b03831660009081526002602052604090205461054c90826104b7565b6001600160a01b03808516600090815260026020526040808220939093559084168152205461057b90826105dc565b6001600160a01b0380841660008181526002602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906105cf9085815260200190565b60405180910390a3505050565b60006104c38284610707565b80356001600160a01b03811681146105ff57600080fd5b919050565b600060208284031215610615578081fd5b6104c3826105e8565b60008060408385031215610630578081fd5b610639836105e8565b9150610647602084016105e8565b90509250929050565b600080600060608486031215610664578081fd5b61066d846105e8565b925061067b602085016105e8565b9150604084013590509250925092565b6000806040838503121561069d578182fd5b6106a6836105e8565b946020939093013593505050565b6000602080835283518082850152825b818110156106e0578581018301518582016040015282016106c4565b818111156106f15783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561071a5761071a610736565b500190565b60008282101561073157610731610736565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220f54878bfb77f76a62084ef0e31b281252129f68beffa8db140609a5e2dcaedb264736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806340c10f191161008c57806399ec67651161006657806399ec676514610215578063a9059cbb14610228578063dd62ed3e1461023b578063fca3b5aa1461026657600080fd5b806340c10f19146101be57806370a08231146101d157806395d89b41146101f157600080fd5b806318160ddd116100c857806318160ddd1461017957806323b872dd14610190578063313ce567146101a357806333039d3d146101ab57600080fd5b806306fdde03146100ef578063075461721461012b578063095ea7b314610156575b600080fd5b610115604051806040016040528060078152602001664f6e654265616d60c81b81525081565b60405161012291906106b4565b60405180910390f35b60015461013e906001600160a01b031681565b6040516001600160a01b039091168152602001610122565b61016961016436600461068b565b610279565b6040519015158152602001610122565b61018260005481565b604051908152602001610122565b61016961019e366004610650565b6102e5565b610182601281565b6101826b033b2e3c9fd0803ce800000081565b6101696101cc36600461068b565b6103a5565b6101826101df366004610604565b60026020526000908152604090205481565b61011560405180604001604052806005815260200164314245414d60d81b81525081565b6101826b0121836204bc2ce21e00000081565b61016961023636600461068b565b610464565b61018261024936600461061e565b600360209081526000928352604080842090915290825290205481565b610169610274366004610604565b61047a565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102d49086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600360209081526040808320338452909152812054828110156103575760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064015b60405180910390fd5b600019811461038f5761036a81846104b7565b6001600160a01b03861660009081526003602090815260408083203384529091529020555b61039a8585856104ca565b506001949350505050565b6001546000906001600160a01b031633146103bf57600080fd5b6001600160a01b0383166000908152600260205260409020546103e290836105dc565b6001600160a01b0384166000908152600260205260408120919091555461040990836105dc565b60008190556b033b2e3c9fd0803ce8000000101561042657600080fd5b6040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016102d4565b60006104713384846104ca565b50600192915050565b6001546000906001600160a01b03161561049357600080fd5b50600180546001600160a01b0319166001600160a01b039290921691909117815590565b60006104c3828461071f565b9392505050565b6001600160a01b0383166000908152600260205260409020548111156105295760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161034e565b6001600160a01b03831660009081526002602052604090205461054c90826104b7565b6001600160a01b03808516600090815260026020526040808220939093559084168152205461057b90826105dc565b6001600160a01b0380841660008181526002602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906105cf9085815260200190565b60405180910390a3505050565b60006104c38284610707565b80356001600160a01b03811681146105ff57600080fd5b919050565b600060208284031215610615578081fd5b6104c3826105e8565b60008060408385031215610630578081fd5b610639836105e8565b9150610647602084016105e8565b90509250929050565b600080600060608486031215610664578081fd5b61066d846105e8565b925061067b602085016105e8565b9150604084013590509250925092565b6000806040838503121561069d578182fd5b6106a6836105e8565b946020939093013593505050565b6000602080835283518082850152825b818110156106e0578581018301518582016040015282016106c4565b818111156106f15783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561071a5761071a610736565b500190565b60008282101561073157610731610736565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220f54878bfb77f76a62084ef0e31b281252129f68beffa8db140609a5e2dcaedb264736f6c63430008040033
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.