Token TeleBTC
Overview ERC-20
Total Supply:
120.007828 TeleBTC
Holders:
10 addresses
Profile Summary
Contract:
Decimals:
8
Balance
0 TeleBTC
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TeleBTC
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.8.4; import "./interfaces/ITeleBTC.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract TeleBTC is ITeleBTC, ERC20, Ownable, ReentrancyGuard { modifier onlyMinter() { require(isMinter(_msgSender()), "TeleBTC: only minters can mint"); _; } modifier onlyBurner() { require(isBurner(_msgSender()), "TeleBTC: only burners can burn"); _; } modifier nonZeroValue(uint _value) { require(_value > 0, "TeleBTC: value is zero"); _; } // Public variables mapping(address => bool) public minters; mapping(address => bool) public burners; uint public maxMintLimit; // Maximum mint limit per epoch uint public lastMintLimit; // Current mint limit in last epoch, decrease by minting in an epoch uint public epochLength; // Number of blocks in every epoch uint public lastEpoch; // Epoch number of last mint transaction constructor( string memory _name, string memory _symbol ) ERC20(_name, _symbol) { maxMintLimit = 200 * 10 ** 8; lastMintLimit = 200 * 10 ** 8; epochLength = 2000; } function renounceOwnership() public virtual override onlyOwner {} function decimals() public view virtual override(ERC20, ITeleBTC) returns (uint8) { return 8; } /** * @dev change maximum mint limit per epoch. */ function setMaxMintLimit(uint _mintLimit) public override onlyOwner { emit NewMintLimit(maxMintLimit, _mintLimit); maxMintLimit = _mintLimit; } /** * @dev change blocks number per epoch. */ function setEpochLength(uint _length) public override onlyOwner nonZeroValue(_length) { emit NewEpochLength(epochLength, _length); epochLength = _length; } /** * @dev Check if an account is minter. * @return bool */ function isMinter(address account) internal view returns (bool) { require(account != address(0), "TeleBTC: account is the zero address"); return minters[account]; } /// @notice Check if an account is burner /// @param account The account which intended to be checked /// @return bool function isBurner(address account) internal view returns (bool) { require(account != address(0), "TeleBTC: account is the zero address"); return burners[account]; } /// @notice Adds a minter /// @dev Only owner can call this function /// @param account The account which intended to be added to minters function addMinter(address account) external override onlyOwner { require(!isMinter(account), "TeleBTC: account already has role"); minters[account] = true; emit MinterAdded(account); } /// @notice Removes a minter /// @dev Only owner can call this function /// @param account The account which intended to be removed from minters function removeMinter(address account) external override onlyOwner { require(isMinter(account), "TeleBTC: account does not have role"); minters[account] = false; emit MinterRemoved(account); } /// @notice Adds a burner /// @dev Only owner can call this function /// @param account The account which intended to be added to burners function addBurner(address account) external override onlyOwner { require(!isBurner(account), "TeleBTC: account already has role"); burners[account] = true; emit BurnerAdded(account); } /// @notice Removes a burner /// @dev Only owner can call this function /// @param account The account which intended to be removed from burners function removeBurner(address account) external override onlyOwner { require(isBurner(account), "TeleBTC: account does not have role"); burners[account] = false; emit BurnerRemoved(account); } /// @notice Burns TeleBTC tokens of msg.sender /// @dev Only burners can call this /// @param _amount Amount of burnt tokens function burn(uint _amount) external nonReentrant onlyBurner override returns (bool) { _burn(_msgSender(), _amount); emit Burn(_msgSender(), _msgSender(), _amount); return true; } /// @notice Mints TeleBTC tokens for _receiver /// @dev Only minters can call this /// @param _receiver Address of token's receiver /// @param _amount Amount of minted tokens function mint(address _receiver, uint _amount) external nonReentrant onlyMinter override returns (bool) { require(_amount <= maxMintLimit, "TeleBTC: mint amount is more than maximum mint limit"); require(checkAndReduceMintLimit(_amount), "TeleBTC: reached maximum mint limit"); _mint(_receiver, _amount); emit Mint(_msgSender(), _receiver, _amount); return true; } /// @notice Check if can mint new tokens and update mint limit /// @param _amount Desired mint amount function checkAndReduceMintLimit(uint _amount) private returns (bool) { uint currentEpoch = block.number / epochLength; if (currentEpoch == lastEpoch) { if (_amount > lastMintLimit) return false; lastMintLimit -= _amount; } else { lastEpoch = currentEpoch; lastMintLimit = maxMintLimit - _amount; } return true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface ITeleBTC is IERC20 { // Events event Mint(address indexed doer, address indexed receiver, uint value); event Burn(address indexed doer, address indexed burner, uint value); event MinterAdded(address indexed newMinter); event MinterRemoved(address indexed minter); event BurnerAdded(address indexed newBurner); event BurnerRemoved(address indexed burner); event NewMintLimit(uint oldMintLimit, uint newMintLimit); event NewEpochLength(uint oldEpochLength, uint newEpochLength); // read functions function decimals() external view returns (uint8); // state-changing functions function addMinter(address account) external; function removeMinter(address account) external; function addBurner(address account) external; function removeBurner(address account) external; function mint(address receiver, uint amount) external returns(bool); function burn(uint256 amount) external returns(bool); function setMaxMintLimit(uint _mintLimit) external; function setEpochLength(uint _length) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":"doer","type":"address"},{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newBurner","type":"address"}],"name":"BurnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"}],"name":"BurnerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"doer","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newMinter","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldEpochLength","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEpochLength","type":"uint256"}],"name":"NewEpochLength","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMintLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMintLimit","type":"uint256"}],"name":"NewMintLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"account","type":"address"}],"name":"addBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epochLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_length","type":"uint256"}],"name":"setEpochLength","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"setMaxMintLimit","outputs":[],"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001a1e38038062001a1e833981016040819052620000349162000250565b8151829082906200004d906003906020850190620000f7565b50805162000063906004906020840190620000f7565b505050620000806200007a620000a160201b60201c565b620000a5565b505060016006556404a817c8006009819055600a556107d0600b556200030a565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010590620002b7565b90600052602060002090601f01602090048101928262000129576000855562000174565b82601f106200014457805160ff191683800117855562000174565b8280016001018555821562000174579182015b828111156200017457825182559160200191906001019062000157565b506200018292915062000186565b5090565b5b8082111562000182576000815560010162000187565b600082601f830112620001ae578081fd5b81516001600160401b0380821115620001cb57620001cb620002f4565b604051601f8301601f19908116603f01168101908282118183101715620001f657620001f6620002f4565b8160405283815260209250868385880101111562000212578485fd5b8491505b8382101562000235578582018301518183018401529082019062000216565b838211156200024657848385830101525b9695505050505050565b6000806040838503121562000263578182fd5b82516001600160401b03808211156200027a578384fd5b62000288868387016200019d565b935060208501519150808211156200029e578283fd5b50620002ad858286016200019d565b9150509250929050565b600281046001821680620002cc57607f821691505b60208210811415620002ee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611704806200031a6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806357d775f8116100f9578063a457c2d711610097578063f2fde38b11610071578063f2fde38b146103a9578063f44637ba146103bc578063f46eccc4146103cf578063f926b50c146103f2576101c4565b8063a457c2d71461034a578063a9059cbb1461035d578063dd62ed3e14610370576101c4565b8063715018a6116100d3578063715018a61461030c5780638da5cb5b1461031457806395d89b411461032f578063983b2d5614610337576101c4565b806357d775f8146102e757806370a08231146102f057806370e2f82714610303576101c4565b80632f99582a116101665780633950935111610140578063395093511461029b57806340c10f19146102ae57806342966c68146102c157806354eea796146102d4576101c4565b80632f99582a146102705780633092afd514610279578063313ce5671461028c576101c4565b806306fdde03116101a257806306fdde031461022d578063095ea7b31461024257806318160ddd1461025557806323b872dd1461025d576101c4565b806302846858146101c957806303d41e0e146101de57806306a4c98314610216575b600080fd5b6101dc6101d736600461140f565b610405565b005b6102016101ec36600461140f565b60086020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61021f600c5481565b60405190815260200161020d565b6102356104a6565b60405161020d91906114de565b61020161025036600461149d565b610538565b60025461021f565b61020161026b366004611462565b61054e565b61021f600a5481565b6101dc61028736600461140f565b6105f8565b6040516008815260200161020d565b6102016102a936600461149d565b610690565b6102016102bc36600461149d565b6106cc565b6102016102cf3660046114c6565b6108a2565b6101dc6102e23660046114c6565b61099e565b61021f600b5481565b61021f6102fe36600461140f565b610a54565b61021f60095481565b6101dc610a73565b6005546040516001600160a01b03909116815260200161020d565b610235610a9f565b6101dc61034536600461140f565b610aae565b61020161035836600461149d565b610b4a565b61020161036b36600461149d565b610be3565b61021f61037e366004611430565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101dc6103b736600461140f565b610bf0565b6101dc6103ca36600461140f565b610c8b565b6102016103dd36600461140f565b60076020526000908152604090205460ff1681565b6101dc6104003660046114c6565b610d27565b6005546001600160a01b031633146104385760405162461bcd60e51b815260040161042f906115b8565b60405180910390fd5b61044181610d92565b61045d5760405162461bcd60e51b815260040161042f90611575565b6001600160a01b038116600081815260086020526040808220805460ff19169055517f90eabbc0c667db2a5029ed6bc0f5fe9f356d11684a4ca9fcfaec0e53f12b9c8e9190a250565b6060600380546104b59061167d565b80601f01602080910402602001604051908101604052809291908181526020018280546104e19061167d565b801561052e5780601f106105035761010080835404028352916020019161052e565b820191906000526020600020905b81548152906001019060200180831161051157829003601f168201915b5050505050905090565b6000610545338484610dd9565b50600192915050565b600061055b848484610efe565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105e05760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161042f565b6105ed8533858403610dd9565b506001949350505050565b6005546001600160a01b031633146106225760405162461bcd60e51b815260040161042f906115b8565b61062b816110cd565b6106475760405162461bcd60e51b815260040161042f90611575565b6001600160a01b038116600081815260076020526040808220805460ff19169055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a250565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105459185906106c790869061162e565b610dd9565b6000600260065414156107215760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161042f565b600260065561072f336110cd565b61077b5760405162461bcd60e51b815260206004820152601e60248201527f54656c654254433a206f6e6c79206d696e746572732063616e206d696e740000604482015260640161042f565b6009548211156107ea5760405162461bcd60e51b815260206004820152603460248201527f54656c654254433a206d696e7420616d6f756e74206973206d6f7265207468616044820152731b881b585e1a5b5d5b481b5a5b9d081b1a5b5a5d60621b606482015260840161042f565b6107f382611114565b61084b5760405162461bcd60e51b815260206004820152602360248201527f54656c654254433a2072656163686564206d6178696d756d206d696e74206c696044820152621b5a5d60ea1b606482015260840161042f565b6108558383611181565b6040518281526001600160a01b0384169033907fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89060200160405180910390a35060018060065592915050565b6000600260065414156108f75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161042f565b600260065561090533610d92565b6109515760405162461bcd60e51b815260206004820152601e60248201527f54656c654254433a206f6e6c79206275726e6572732063616e206275726e0000604482015260640161042f565b61095b3383611260565b604051828152339081907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b94539060200160405180910390a350600180600655919050565b6005546001600160a01b031633146109c85760405162461bcd60e51b815260040161042f906115b8565b8060008111610a125760405162461bcd60e51b815260206004820152601660248201527554656c654254433a2076616c7565206973207a65726f60501b604482015260640161042f565b600b5460408051918252602082018490527fd077b1717c042dc03e7eb68030220b62f703db305be2ffb5b9e1d91b639a63f9910160405180910390a150600b55565b6001600160a01b0381166000908152602081905260409020545b919050565b6005546001600160a01b03163314610a9d5760405162461bcd60e51b815260040161042f906115b8565b565b6060600480546104b59061167d565b6005546001600160a01b03163314610ad85760405162461bcd60e51b815260040161042f906115b8565b610ae1816110cd565b15610afe5760405162461bcd60e51b815260040161042f906115ed565b6001600160a01b038116600081815260076020526040808220805460ff19166001179055517f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f69190a250565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610bcc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161042f565b610bd93385858403610dd9565b5060019392505050565b6000610545338484610efe565b6005546001600160a01b03163314610c1a5760405162461bcd60e51b815260040161042f906115b8565b6001600160a01b038116610c7f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161042f565b610c88816113a6565b50565b6005546001600160a01b03163314610cb55760405162461bcd60e51b815260040161042f906115b8565b610cbe81610d92565b15610cdb5760405162461bcd60e51b815260040161042f906115ed565b6001600160a01b038116600081815260086020526040808220805460ff19166001179055517f86e57fd2b90329052917118de7c3f521f400d439b9650deaa906a25b08b945609190a250565b6005546001600160a01b03163314610d515760405162461bcd60e51b815260040161042f906115b8565b60095460408051918252602082018390527f36ab29917278ebced3c63670f7872f78555ed7cdb4aa5184a159eb978be79508910160405180910390a1600955565b60006001600160a01b038216610dba5760405162461bcd60e51b815260040161042f90611531565b506001600160a01b031660009081526008602052604090205460ff1690565b6001600160a01b038316610e3b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161042f565b6001600160a01b038216610e9c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161042f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610f625760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161042f565b6001600160a01b038216610fc45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161042f565b6001600160a01b0383166000908152602081905260409020548181101561103c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161042f565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061107390849061162e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110bf91815260200190565b60405180910390a350505050565b60006001600160a01b0382166110f55760405162461bcd60e51b815260040161042f90611531565b506001600160a01b031660009081526007602052604090205460ff1690565b600080600b54436111259190611646565b9050600c5481141561116257600a54831115611145576000915050610a6e565b82600a60008282546111579190611666565b909155506105459050565b600c819055600954611175908490611666565b600a5550600192915050565b6001600160a01b0382166111d75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161042f565b80600260008282546111e9919061162e565b90915550506001600160a01b0382166000908152602081905260408120805483929061121690849061162e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166112c05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161042f565b6001600160a01b038216600090815260208190526040902054818110156113345760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161042f565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611363908490611666565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ef1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80356001600160a01b0381168114610a6e57600080fd5b600060208284031215611420578081fd5b611429826113f8565b9392505050565b60008060408385031215611442578081fd5b61144b836113f8565b9150611459602084016113f8565b90509250929050565b600080600060608486031215611476578081fd5b61147f846113f8565b925061148d602085016113f8565b9150604084013590509250925092565b600080604083850312156114af578182fd5b6114b8836113f8565b946020939093013593505050565b6000602082840312156114d7578081fd5b5035919050565b6000602080835283518082850152825b8181101561150a578581018301518582016040015282016114ee565b8181111561151b5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526024908201527f54656c654254433a206163636f756e7420697320746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526023908201527f54656c654254433a206163636f756e7420646f6573206e6f74206861766520726040820152626f6c6560e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f54656c654254433a206163636f756e7420616c72656164792068617320726f6c6040820152606560f81b606082015260800190565b60008219821115611641576116416116b8565b500190565b60008261166157634e487b7160e01b81526012600452602481fd5b500490565b600082821015611678576116786116b8565b500390565b60028104600182168061169157607f821691505b602082108114156116b257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220e3756dd623735cd5cdda8ada5b6e03d9d8728668c84fa9e89175cf6629e398e964736f6c6343000802003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000754656c6542544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000754656c6542544300000000000000000000000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000754656c6542544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000754656c6542544300000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): TeleBTC
Arg [1] : _symbol (string): TeleBTC
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [3] : 54656c6542544300000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 54656c6542544300000000000000000000000000000000000000000000000000