Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 12 from a total of 12 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 19865284 | 618 days ago | IN | 0 ETH | 0.00032485 | ||||
| Approve | 19574536 | 659 days ago | IN | 0 ETH | 0.00101792 | ||||
| Transfer | 19236622 | 706 days ago | IN | 0 ETH | 0.00104587 | ||||
| Transfer | 18724083 | 778 days ago | IN | 0 ETH | 0.0024535 | ||||
| Transfer | 18674449 | 785 days ago | IN | 0.025406 ETH | 0.00064645 | ||||
| Transfer | 18538774 | 804 days ago | IN | 0.03 ETH | 0.00102113 | ||||
| Transfer | 18538743 | 804 days ago | IN | 0.03 ETH | 0.00077428 | ||||
| Transfer | 18535866 | 805 days ago | IN | 0.05 ETH | 0.00150601 | ||||
| Transfer | 18532866 | 805 days ago | IN | 0.00887655 ETH | 0.00074874 | ||||
| Grant Role | 18383526 | 826 days ago | IN | 0 ETH | 0.00033651 | ||||
| Transfer | 17658149 | 927 days ago | IN | 0.10090129 ETH | 0.00035778 | ||||
| Update Fee Colle... | 17372009 | 968 days ago | IN | 0 ETH | 0.00323624 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
InQubeta
Compiler Version
v0.8.19+commit.7dd6d404
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.19;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "../interfaces/IFeeCollector.sol";
contract InQubeta is ERC20, ERC20Burnable, AccessControl {
/// @notice Precision for mathematical calculations with percents. 100% === 10000
uint256 private constant PRECISION = 100_00;
/// @notice Access Control fee collector role hash
bytes32 public constant FEE_DISTRIBUTION_ROLE =
keccak256("FEE_DISTRIBUTION_ROLE");
/// @notice fee collector address
address public feeCollector;
/// @notice the percentage of the fee charged for the purchase of the token
uint256 public buyFee;
/// @notice the percentage of the fee charged for the selling of the token
uint256 public sellFee;
/// @notice bool value, if true, fees is enabled, if false, disabled
bool public isEnabledFees;
/// @notice pair mapping, if true the pair is added and fees are charged,
/// if false, no fees are charged
mapping(address => bool) public pairs;
/// ================================ Errors ================================ ///
/// @dev - address is not a contract;
error IsNotContract(string err);
///@dev returned if passed zero address
error ZeroAddress(string err);
///@dev returned if passed zero amount
error ZeroAmount(string err);
///@dev returned if the set percentage is equal to or greater than PRECISION
error HighValue(string err);
///@dev returned if the pair address already exists
error ExistsAddress(string err);
///@dev returned if the value already assigned
error ExistsValue(string err);
///@dev returned if the pair address has not been added
error NotFoundAddress(string err);
///@dev returned if the caller dont have access to function
error AccessIsDenied(string err);
/// ================================ Events ================================ ///
///@dev emitted when owner add new pair
event AddPair(
address indexed addressPair,
bool enabled,
uint256 indexed timestamp
);
///@dev emitted when owner set fee percents
event SetFees(uint256 buyFee, uint256 sellFee, uint256 indexed timestamp);
///@dev emitted when owner update fee collector address
event UpdateFeeCollector(
address indexed feeCollector,
uint256 indexed timestamp
);
///@dev emitted when fees enabled
event EnableFees(bool indexed enabled, uint256 indexed timestamp);
///@dev emitted when fees disabled
event DisableFees(bool indexed enabled, uint256 indexed timestamp);
///@dev emitted when owner disable pair address
event RemovePair(
address indexed addressPair,
bool disable,
uint256 indexed timestamp
);
///@dev emitted when buy fee is updated for all pairs
event UpdateBuyFee(uint256 buyFee, uint256 indexed timestamp);
///@dev emitted when sell fee is updated for all pairs
event UpdateSellFee(uint256 buyFee, uint256 indexed timestamp);
constructor(
address _admin, /// contract owner
uint256 _initialSupply, /// total supply of tokens
uint256 _buyFee, /// buy fee percent. 5% * 100 = 500
uint256 _sellFee, /// buy fee percent. 10% * 100 = 1000
address _feeCollector /// fee collector contract addrees
) ERC20("InQubeta", "QUBE") checkMaxFee(_buyFee, _sellFee) {
if (_feeCollector == address(0) || _admin == address(0)) {
revert ZeroAddress("InQubeta: Zero address");
}
if (!Address.isContract(_feeCollector)) {
revert IsNotContract("InQubeta: Fee collector is not a contract");
}
_mint(_admin, _initialSupply);
feeCollector = _feeCollector;
_grantRole(DEFAULT_ADMIN_ROLE, _admin);
_grantRole(FEE_DISTRIBUTION_ROLE, _admin);
_grantRole(FEE_DISTRIBUTION_ROLE, _feeCollector);
buyFee = _buyFee;
sellFee = _sellFee;
isEnabledFees = true;
}
/**
@dev the modifier checks whether the commission percentages
are within the allowed range
*/
modifier checkMaxFee(uint256 _buyFee, uint256 _sellFee) {
if (_buyFee >= PRECISION || _sellFee >= PRECISION) {
revert HighValue("InQubeta: Fee value is too high");
}
_;
}
/**
* @notice The function performs an ERC20 transfer, but with some modifications. In the event
* that the token will be sent to the pool that is added to our contract, the sell commission
* will be charged from the number of tokens sent. If the token will
* be sent from the pool, the buy fee will be charged from the number of tokens sent.
* If it is a normal transfer that is not sent to or from the pool,
* it will work as a standard ERC20 transfer
*/
function transfer(
address to,
uint256 amount
) public virtual override returns (bool) {
return _transferFrom(msg.sender, to, amount);
}
/**
* @notice The function performs an ERC20 transferFrom, but with some modifications. In the event
* that the token will be sent to the pool that is added to our contract, the sell commission
* will be charged from the number of tokens sent. If the token will
* be sent from the pool, the buy fee will be charged from the number of tokens sent.
* If it is a normal transferFrom that is not sent to or from the pool,
* it will work as a standard ERC20 transferFrom.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
_spendAllowance(from, msg.sender, amount);
return _transferFrom(from, to, amount);
}
/**
* @notice The function adds a new pair from which commissions will be charged
* for the purchase and sale of our token. Only the owner can call.
* @param addressPair - pair address
*/
function addPair(
address addressPair
) external onlyRole(DEFAULT_ADMIN_ROLE) {
if (addressPair == address(0)) {
revert ZeroAddress("InQubeta: Zero address");
}
if (pairs[addressPair]) {
revert ExistsAddress("InQubeta: Address already exists");
}
pairs[addressPair] = true;
emit AddPair(addressPair, true, block.timestamp);
}
/**
* @notice The function performs disabling pool.
* Only the owner can call.
* @param addressPair - pair address
*/
function removePair(
address addressPair
) external onlyRole(DEFAULT_ADMIN_ROLE) {
if (addressPair == address(0)) {
revert ZeroAddress("InQubeta: Zero address");
}
pairs[addressPair] = false;
emit RemovePair(addressPair, false, block.timestamp);
}
/**
* @notice The function performs disabling buy and sell fees.
* Only the default admin or fee collector can call it.
*/
function disableFees() external onlyRole(FEE_DISTRIBUTION_ROLE) {
isEnabledFees = false;
emit DisableFees(false, block.timestamp);
}
/**
* @notice The function performs enabling buy and sell fees.
* Only the default admin or fee collector can call it.
*/
function enableFees() external onlyRole(FEE_DISTRIBUTION_ROLE) {
isEnabledFees = true;
emit EnableFees(true, block.timestamp);
}
/**
* @notice The function updates the buy fee percentage.
* Only the owner can call.
* @param _buyFee - sell fee percent
*/
function updateBuyFee(
uint256 _buyFee
) external onlyRole(DEFAULT_ADMIN_ROLE) {
if (_buyFee >= PRECISION) {
revert HighValue("InQubeta: Fee value is too high");
}
buyFee = _buyFee;
emit UpdateBuyFee(_buyFee, block.timestamp);
}
/**
* @notice The function updates the sell fee percentage.
* Only the owner can call.
* @param _sellFee - sell fee percent
*/
function updateSellFee(
uint256 _sellFee
) external onlyRole(DEFAULT_ADMIN_ROLE) {
if (_sellFee >= PRECISION) {
revert HighValue("InQubeta: Fee value is too high");
}
sellFee = _sellFee;
emit UpdateSellFee(_sellFee, block.timestamp);
}
/**
* @notice The function updates the settings of commission percentages
* for buying and selling. Only the owner can call.
* @param _buyFee - buy fee percent
* @param _sellFee - sell fee percent
*/
function updateFeesPercents(
uint256 _buyFee,
uint256 _sellFee
) external onlyRole(DEFAULT_ADMIN_ROLE) checkMaxFee(_buyFee, _sellFee) {
buyFee = _buyFee;
sellFee = _sellFee;
emit SetFees(_buyFee, _sellFee, block.timestamp);
}
/**
* @notice The function updates the address that receives all commissions.
* Only the owner can call.
* @param newFeeCollector - new fee collector address
*/
function updateFeeCollector(
address newFeeCollector
) external onlyRole(DEFAULT_ADMIN_ROLE) {
if (newFeeCollector == address(0)) {
revert ZeroAddress("InQubeta: Zero address");
}
if (newFeeCollector == feeCollector) {
revert ExistsAddress("InQubeta: No new address specified");
}
if (!Address.isContract(newFeeCollector)) {
revert IsNotContract("InQubeta: Fee collector is not a contract");
}
revokeRole(FEE_DISTRIBUTION_ROLE, feeCollector);
feeCollector = newFeeCollector;
grantRole(FEE_DISTRIBUTION_ROLE, newFeeCollector);
emit UpdateFeeCollector(newFeeCollector, block.timestamp);
}
/**
* @notice Internal function that implements the logic of token transfer and the logic of fee collection.
*/
function _transferFrom(
address from,
address to,
uint256 amount
) internal returns (bool) {
if (isEnabledFees) {
if (pairs[to]) {
uint256 fee = (amount * sellFee) / PRECISION;
uint256 transferAmount = amount - fee;
_transfer(from, feeCollector, fee);
_transfer(from, to, transferAmount);
IFeeCollector(feeCollector).recordSellFee(fee);
} else if (pairs[from]) {
uint256 fee = (amount * buyFee) / PRECISION;
_transfer(from, to, amount);
_transfer(to, feeCollector, fee);
IFeeCollector(feeCollector).recordBuyFee(fee);
} else {
_transfer(from, to, amount);
}
} else {
_transfer(from, to, amount);
}
return true;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)
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:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, 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}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, 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}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, 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) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, 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) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, 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:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_balances[to] += amount;
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, 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 Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - 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
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `_msgSender()` is missing `role`.
* Overriding this function changes the behavior of the {onlyRole} modifier.
*
* Format of the revert message is described in {_checkRole}.
*
* _Available since v4.6._
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
interface IFeeCollector {
function recordBuyFee(uint amount) external;
function recordSellFee(uint amount) external;
function distributeIfNeeded() external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
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
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view 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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"uint256","name":"_buyFee","type":"uint256"},{"internalType":"uint256","name":"_sellFee","type":"uint256"},{"internalType":"address","name":"_feeCollector","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"AccessIsDenied","type":"error"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"ExistsAddress","type":"error"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"ExistsValue","type":"error"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"HighValue","type":"error"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"IsNotContract","type":"error"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"NotFoundAddress","type":"error"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"ZeroAddress","type":"error"},{"inputs":[{"internalType":"string","name":"err","type":"string"}],"name":"ZeroAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addressPair","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AddPair","type":"event"},{"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":"bool","name":"enabled","type":"bool"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"DisableFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"enabled","type":"bool"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"EnableFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addressPair","type":"address"},{"indexed":false,"internalType":"bool","name":"disable","type":"bool"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RemovePair","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"buyFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellFee","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SetFees","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"buyFee","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"UpdateBuyFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"feeCollector","type":"address"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"UpdateFeeCollector","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"buyFee","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"UpdateSellFee","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DISTRIBUTION_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressPair","type":"address"}],"name":"addPair","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":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"disableFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isEnabledFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressPair","type":"address"}],"name":"removePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyFee","type":"uint256"}],"name":"updateBuyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeCollector","type":"address"}],"name":"updateFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyFee","type":"uint256"},{"internalType":"uint256","name":"_sellFee","type":"uint256"}],"name":"updateFeesPercents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellFee","type":"uint256"}],"name":"updateSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200206b3803806200206b833981016040819052620000349162000423565b60405180604001604052806008815260200167496e51756265746160c01b815250604051806040016040528060048152602001635155424560e01b81525081600390816200008391906200051c565b5060046200009282826200051c565b505050828261271082101580620000ab57506127108110155b15620000ff5760405163c55530a760e01b815260206004820152601f60248201527f496e5175626574613a204665652076616c756520697320746f6f20686967680060448201526064015b60405180910390fd5b6001600160a01b03831615806200011d57506001600160a01b038716155b156200016d5760405163eac0d38960e01b815260206004820152601660248201527f496e5175626574613a205a65726f2061646472657373000000000000000000006044820152606401620000f6565b6001600160a01b0383163b620001d9576040516357a4a13960e01b815260206004820152602960248201527f496e5175626574613a2046656520636f6c6c6563746f72206973206e6f7420616044820152680818dbdb9d1c9858dd60ba1b6064820152608401620000f6565b620001e5878762000264565b600680546001600160a01b0319166001600160a01b0385161790556200020d6000886200034a565b620002286000805160206200204b833981519152886200034a565b620002436000805160206200204b833981519152846200034a565b50505060079190915560085550506009805460ff191660011790556200060a565b6001600160a01b038216620002bc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620000f6565b8060026000828254620002d09190620005e8565b90915550506001600160a01b03821660009081526020819052604081208054839290620002ff908490620005e8565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b620003568282620003d9565b620003465760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003903390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b80516001600160a01b03811681146200041e57600080fd5b919050565b600080600080600060a086880312156200043c57600080fd5b620004478662000406565b94506020860151935060408601519250606086015191506200046c6080870162000406565b90509295509295909350565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004a357607f821691505b602082108103620004c457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003d457600081815260208120601f850160051c81016020861015620004f35750805b601f850160051c820191505b818110156200051457828155600101620004ff565b505050505050565b81516001600160401b0381111562000538576200053862000478565b62000550816200054984546200048e565b84620004ca565b602080601f8311600181146200058857600084156200056f5750858301515b600019600386901b1c1916600185901b17855562000514565b600085815260208120601f198616915b82811015620005b95788860151825594840194600190910190840162000598565b5085821015620005d85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200040057634e487b7160e01b600052601160045260246000fd5b611a31806200061a6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063c2b7bbb6116100ad578063d2c35ce81161007c578063d2c35ce81461043e578063d547741f14610451578063dd62ed3e14610464578063edd508d814610477578063fe33b3021461048c57600080fd5b8063c2b7bbb6146103e5578063c415b95c146103f8578063ce404b2314610423578063d007db8a1461042b57600080fd5b8063a217fddf116100e9578063a217fddf146103a4578063a457c2d7146103ac578063a9059cbb146103bf578063af6c9c1d146103d257600080fd5b806370a082311461034d57806379cc67901461037657806391d148541461038957806395d89b411461039c57600080fd5b80632f2ff15d1161019d578063395093511161016c57806339509351146102fe57806342966c6814610311578063467abe0a146103245780634706240214610337578063552b37881461034057600080fd5b80632f2ff15d146102c1578063313ce567146102d457806336568abe146102e3578063368f5bd5146102f657600080fd5b80631d933a4a116101d95780631d933a4a1461026d57806323b872dd14610282578063248a9ca3146102955780632b14ca56146102b857600080fd5b806301ffc9a71461020b57806306fdde0314610233578063095ea7b31461024857806318160ddd1461025b575b600080fd5b61021e61021936600461165e565b6104af565b60405190151581526020015b60405180910390f35b61023b6104e6565b60405161022a91906116ac565b61021e6102563660046116fb565b610578565b6002545b60405190815260200161022a565b61028061027b366004611725565b610590565b005b61021e61029036600461173e565b610605565b61025f6102a3366004611725565b60009081526005602052604090206001015490565b61025f60085481565b6102806102cf36600461177a565b610625565b6040516012815260200161022a565b6102806102f136600461177a565b61064f565b6102806106cd565b61021e61030c3660046116fb565b610724565b61028061031f366004611725565b610746565b610280610332366004611725565b610753565b61025f60075481565b60095461021e9060ff1681565b61025f61035b3660046117a6565b6001600160a01b031660009081526020819052604090205490565b6102806103843660046116fb565b6107b7565b61021e61039736600461177a565b6107cc565b61023b6107f7565b61025f600081565b61021e6103ba3660046116fb565b610806565b61021e6103cd3660046116fb565b61088c565b6102806103e03660046117a6565b6108a0565b6102806103f33660046117a6565b61092c565b60065461040b906001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b610280610a22565b6102806104393660046117c1565b610a74565b61028061044c3660046117a6565b610afe565b61028061045f36600461177a565b610c96565b61025f6104723660046117e3565b610cbb565b61025f6000805160206119dc83398151915281565b61021e61049a3660046117a6565b600a6020526000908152604090205460ff1681565b60006001600160e01b03198216637965db0b60e01b14806104e057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546104f59061180d565b80601f01602080910402602001604051908101604052809291908181526020018280546105219061180d565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b600033610586818585610ce6565b5060019392505050565b600061059b81610e0a565b61271082106105c65760405163c55530a760e01b81526004016105bd90611847565b60405180910390fd5b600882905560405182815242907fde4022aab72c416fa5c54f5b02a3d8ce50d8a9418a85c790d51cf759ebb4697d906020015b60405180910390a25050565b6000610612843384610e14565b61061d848484610e8e565b949350505050565b60008281526005602052604090206001015461064081610e0a565b61064a8383611055565b505050565b6001600160a01b03811633146106bf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105bd565b6106c982826110db565b5050565b6000805160206119dc8339815191526106e581610e0a565b6009805460ff191660019081179091556040514291907f45d3d04798348aacd1da05f8d95eaada62ac3be2dd76963d14a07be993aa92b390600090a350565b6000336105868185856107378383610cbb565b6107419190611894565b610ce6565b6107503382611142565b50565b600061075e81610e0a565b61271082106107805760405163c55530a760e01b81526004016105bd90611847565b600782905560405182815242907fc66f11a4e1af275a2ecb111e96ff29a572358bd3abd0d8851f439ca0f4aa40ac906020016105f9565b6107c2823383610e14565b6106c98282611142565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546104f59061180d565b600033816108148286610cbb565b9050838110156108745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105bd565b6108818286868403610ce6565b506001949350505050565b6000610899338484610e8e565b9392505050565b60006108ab81610e0a565b6001600160a01b0382166108d25760405163eac0d38960e01b81526004016105bd906118a7565b6001600160a01b0382166000818152600a60209081526040808320805460ff19169055519182524292917fd108346601a5498fb2ea1df88bcbf18b017bdff6996ebd27f3c544832810db7891015b60405180910390a35050565b600061093781610e0a565b6001600160a01b03821661095e5760405163eac0d38960e01b81526004016105bd906118a7565b6001600160a01b0382166000908152600a602052604090205460ff16156109c85760405163dfd4246160e01b815260206004820181905260248201527f496e5175626574613a204164647265737320616c72656164792065786973747360448201526064016105bd565b6001600160a01b0382166000818152600a6020908152604091829020805460ff1916600190811790915591519182524292917f577f9843a7881187d256e1ac26a17ed75a342a460135625e44f9136939cf2a349101610920565b6000805160206119dc833981519152610a3a81610e0a565b6009805460ff1916905560405142906000907fd1095bab2961add9cd6fcc56b95597100f510c20e90abae35cf12ad1aa83b7b0908290a350565b6000610a7f81610e0a565b828261271082101580610a9457506127108110155b15610ab25760405163c55530a760e01b81526004016105bd90611847565b60078590556008849055604080518681526020810186905242917f37322890d66d781059d797be5e2f27dc160a34d8bc0a8e09116cb9a773ce88ef910160405180910390a25050505050565b6000610b0981610e0a565b6001600160a01b038216610b305760405163eac0d38960e01b81526004016105bd906118a7565b6006546001600160a01b0390811690831603610b9a5760405163dfd4246160e01b815260206004820152602260248201527f496e5175626574613a204e6f206e657720616464726573732073706563696669604482015261195960f21b60648201526084016105bd565b6001600160a01b0382163b610c04576040516357a4a13960e01b815260206004820152602960248201527f496e5175626574613a2046656520636f6c6c6563746f72206973206e6f7420616044820152680818dbdb9d1c9858dd60ba1b60648201526084016105bd565b600654610c29906000805160206119dc833981519152906001600160a01b0316610c96565b600680546001600160a01b0319166001600160a01b038416179055610c5c6000805160206119dc83398151915283610625565b60405142906001600160a01b038416907f508c75403cc8fb7a6325dded13c32b3f556a49653f5bbc55ac7ef2937ea53d4890600090a35050565b600082815260056020526040902060010154610cb181610e0a565b61064a83836110db565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610d485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105bd565b6001600160a01b038216610da95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105bd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6107508133611290565b6000610e208484610cbb565b90506000198114610e885781811015610e7b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105bd565b610e888484848403610ce6565b50505050565b60095460009060ff161561104a576001600160a01b0383166000908152600a602052604090205460ff1615610f7357600061271060085484610ed091906118d7565b610eda91906118ee565b90506000610ee88285611910565b600654909150610f039087906001600160a01b0316846112f4565b610f0e8686836112f4565b60065460405163cde38c9760e01b8152600481018490526001600160a01b039091169063cde38c9790602401600060405180830381600087803b158015610f5457600080fd5b505af1158015610f68573d6000803e3d6000fd5b505050505050610586565b6001600160a01b0384166000908152600a602052604090205460ff161561103a57600061271060075484610fa791906118d7565b610fb191906118ee565b9050610fbe8585856112f4565b600654610fd69085906001600160a01b0316836112f4565b60065460405163151f8b7b60e21b8152600481018390526001600160a01b039091169063547e2dec90602401600060405180830381600087803b15801561101c57600080fd5b505af1158015611030573d6000803e3d6000fd5b5050505050610586565b6110458484846112f4565b610586565b6105868484846112f4565b61105f82826107cc565b6106c95760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556110973390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110e582826107cc565b156106c95760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166111a25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105bd565b6001600160a01b038216600090815260208190526040902054818110156112165760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105bd565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611245908490611910565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b61129a82826107cc565b6106c9576112b2816001600160a01b031660146114c2565b6112bd8360206114c2565b6040516020016112ce929190611923565b60408051601f198184030181529082905262461bcd60e51b82526105bd916004016116ac565b6001600160a01b0383166113585760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105bd565b6001600160a01b0382166113ba5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105bd565b6001600160a01b038316600090815260208190526040902054818110156114325760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105bd565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611469908490611894565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114b591815260200190565b60405180910390a3610e88565b606060006114d18360026118d7565b6114dc906002611894565b67ffffffffffffffff8111156114f4576114f4611998565b6040519080825280601f01601f19166020018201604052801561151e576020820181803683370190505b509050600360fc1b81600081518110611539576115396119ae565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611568576115686119ae565b60200101906001600160f81b031916908160001a905350600061158c8460026118d7565b611597906001611894565b90505b600181111561160f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106115cb576115cb6119ae565b1a60f81b8282815181106115e1576115e16119ae565b60200101906001600160f81b031916908160001a90535060049490941c93611608816119c4565b905061159a565b5083156108995760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105bd565b60006020828403121561167057600080fd5b81356001600160e01b03198116811461089957600080fd5b60005b838110156116a357818101518382015260200161168b565b50506000910152565b60208152600082518060208401526116cb816040850160208701611688565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146116f657600080fd5b919050565b6000806040838503121561170e57600080fd5b611717836116df565b946020939093013593505050565b60006020828403121561173757600080fd5b5035919050565b60008060006060848603121561175357600080fd5b61175c846116df565b925061176a602085016116df565b9150604084013590509250925092565b6000806040838503121561178d57600080fd5b8235915061179d602084016116df565b90509250929050565b6000602082840312156117b857600080fd5b610899826116df565b600080604083850312156117d457600080fd5b50508035926020909101359150565b600080604083850312156117f657600080fd5b6117ff836116df565b915061179d602084016116df565b600181811c9082168061182157607f821691505b60208210810361184157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f496e5175626574613a204665652076616c756520697320746f6f206869676800604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156104e0576104e061187e565b602080825260169082015275496e5175626574613a205a65726f206164647265737360501b604082015260600190565b80820281158282048414176104e0576104e061187e565b60008261190b57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156104e0576104e061187e565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161195b816017850160208801611688565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161198c816028840160208801611688565b01602801949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816119d3576119d361187e565b50600019019056fea56be0bb4dc7e0954b8ccc78ba1e1a046d82357f58efb06203f0030483436deda264697066735822122068020dc0b9b0ac06e4e245cec0eef5218211ba15f88788cca834396e3cdf3c8364736f6c63430008130033a56be0bb4dc7e0954b8ccc78ba1e1a046d82357f58efb06203f0030483436ded00000000000000000000000055e7fe3bc831117ba5a132df147351aabb372393000000000000000000000000000000000000000004d8c55aefb8c05b5c00000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e80000000000000000000000002a90dd63208bf43ea0e4995cbd025c6c0c5f5d78
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063c2b7bbb6116100ad578063d2c35ce81161007c578063d2c35ce81461043e578063d547741f14610451578063dd62ed3e14610464578063edd508d814610477578063fe33b3021461048c57600080fd5b8063c2b7bbb6146103e5578063c415b95c146103f8578063ce404b2314610423578063d007db8a1461042b57600080fd5b8063a217fddf116100e9578063a217fddf146103a4578063a457c2d7146103ac578063a9059cbb146103bf578063af6c9c1d146103d257600080fd5b806370a082311461034d57806379cc67901461037657806391d148541461038957806395d89b411461039c57600080fd5b80632f2ff15d1161019d578063395093511161016c57806339509351146102fe57806342966c6814610311578063467abe0a146103245780634706240214610337578063552b37881461034057600080fd5b80632f2ff15d146102c1578063313ce567146102d457806336568abe146102e3578063368f5bd5146102f657600080fd5b80631d933a4a116101d95780631d933a4a1461026d57806323b872dd14610282578063248a9ca3146102955780632b14ca56146102b857600080fd5b806301ffc9a71461020b57806306fdde0314610233578063095ea7b31461024857806318160ddd1461025b575b600080fd5b61021e61021936600461165e565b6104af565b60405190151581526020015b60405180910390f35b61023b6104e6565b60405161022a91906116ac565b61021e6102563660046116fb565b610578565b6002545b60405190815260200161022a565b61028061027b366004611725565b610590565b005b61021e61029036600461173e565b610605565b61025f6102a3366004611725565b60009081526005602052604090206001015490565b61025f60085481565b6102806102cf36600461177a565b610625565b6040516012815260200161022a565b6102806102f136600461177a565b61064f565b6102806106cd565b61021e61030c3660046116fb565b610724565b61028061031f366004611725565b610746565b610280610332366004611725565b610753565b61025f60075481565b60095461021e9060ff1681565b61025f61035b3660046117a6565b6001600160a01b031660009081526020819052604090205490565b6102806103843660046116fb565b6107b7565b61021e61039736600461177a565b6107cc565b61023b6107f7565b61025f600081565b61021e6103ba3660046116fb565b610806565b61021e6103cd3660046116fb565b61088c565b6102806103e03660046117a6565b6108a0565b6102806103f33660046117a6565b61092c565b60065461040b906001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b610280610a22565b6102806104393660046117c1565b610a74565b61028061044c3660046117a6565b610afe565b61028061045f36600461177a565b610c96565b61025f6104723660046117e3565b610cbb565b61025f6000805160206119dc83398151915281565b61021e61049a3660046117a6565b600a6020526000908152604090205460ff1681565b60006001600160e01b03198216637965db0b60e01b14806104e057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546104f59061180d565b80601f01602080910402602001604051908101604052809291908181526020018280546105219061180d565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b600033610586818585610ce6565b5060019392505050565b600061059b81610e0a565b61271082106105c65760405163c55530a760e01b81526004016105bd90611847565b60405180910390fd5b600882905560405182815242907fde4022aab72c416fa5c54f5b02a3d8ce50d8a9418a85c790d51cf759ebb4697d906020015b60405180910390a25050565b6000610612843384610e14565b61061d848484610e8e565b949350505050565b60008281526005602052604090206001015461064081610e0a565b61064a8383611055565b505050565b6001600160a01b03811633146106bf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105bd565b6106c982826110db565b5050565b6000805160206119dc8339815191526106e581610e0a565b6009805460ff191660019081179091556040514291907f45d3d04798348aacd1da05f8d95eaada62ac3be2dd76963d14a07be993aa92b390600090a350565b6000336105868185856107378383610cbb565b6107419190611894565b610ce6565b6107503382611142565b50565b600061075e81610e0a565b61271082106107805760405163c55530a760e01b81526004016105bd90611847565b600782905560405182815242907fc66f11a4e1af275a2ecb111e96ff29a572358bd3abd0d8851f439ca0f4aa40ac906020016105f9565b6107c2823383610e14565b6106c98282611142565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546104f59061180d565b600033816108148286610cbb565b9050838110156108745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105bd565b6108818286868403610ce6565b506001949350505050565b6000610899338484610e8e565b9392505050565b60006108ab81610e0a565b6001600160a01b0382166108d25760405163eac0d38960e01b81526004016105bd906118a7565b6001600160a01b0382166000818152600a60209081526040808320805460ff19169055519182524292917fd108346601a5498fb2ea1df88bcbf18b017bdff6996ebd27f3c544832810db7891015b60405180910390a35050565b600061093781610e0a565b6001600160a01b03821661095e5760405163eac0d38960e01b81526004016105bd906118a7565b6001600160a01b0382166000908152600a602052604090205460ff16156109c85760405163dfd4246160e01b815260206004820181905260248201527f496e5175626574613a204164647265737320616c72656164792065786973747360448201526064016105bd565b6001600160a01b0382166000818152600a6020908152604091829020805460ff1916600190811790915591519182524292917f577f9843a7881187d256e1ac26a17ed75a342a460135625e44f9136939cf2a349101610920565b6000805160206119dc833981519152610a3a81610e0a565b6009805460ff1916905560405142906000907fd1095bab2961add9cd6fcc56b95597100f510c20e90abae35cf12ad1aa83b7b0908290a350565b6000610a7f81610e0a565b828261271082101580610a9457506127108110155b15610ab25760405163c55530a760e01b81526004016105bd90611847565b60078590556008849055604080518681526020810186905242917f37322890d66d781059d797be5e2f27dc160a34d8bc0a8e09116cb9a773ce88ef910160405180910390a25050505050565b6000610b0981610e0a565b6001600160a01b038216610b305760405163eac0d38960e01b81526004016105bd906118a7565b6006546001600160a01b0390811690831603610b9a5760405163dfd4246160e01b815260206004820152602260248201527f496e5175626574613a204e6f206e657720616464726573732073706563696669604482015261195960f21b60648201526084016105bd565b6001600160a01b0382163b610c04576040516357a4a13960e01b815260206004820152602960248201527f496e5175626574613a2046656520636f6c6c6563746f72206973206e6f7420616044820152680818dbdb9d1c9858dd60ba1b60648201526084016105bd565b600654610c29906000805160206119dc833981519152906001600160a01b0316610c96565b600680546001600160a01b0319166001600160a01b038416179055610c5c6000805160206119dc83398151915283610625565b60405142906001600160a01b038416907f508c75403cc8fb7a6325dded13c32b3f556a49653f5bbc55ac7ef2937ea53d4890600090a35050565b600082815260056020526040902060010154610cb181610e0a565b61064a83836110db565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610d485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105bd565b6001600160a01b038216610da95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105bd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6107508133611290565b6000610e208484610cbb565b90506000198114610e885781811015610e7b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105bd565b610e888484848403610ce6565b50505050565b60095460009060ff161561104a576001600160a01b0383166000908152600a602052604090205460ff1615610f7357600061271060085484610ed091906118d7565b610eda91906118ee565b90506000610ee88285611910565b600654909150610f039087906001600160a01b0316846112f4565b610f0e8686836112f4565b60065460405163cde38c9760e01b8152600481018490526001600160a01b039091169063cde38c9790602401600060405180830381600087803b158015610f5457600080fd5b505af1158015610f68573d6000803e3d6000fd5b505050505050610586565b6001600160a01b0384166000908152600a602052604090205460ff161561103a57600061271060075484610fa791906118d7565b610fb191906118ee565b9050610fbe8585856112f4565b600654610fd69085906001600160a01b0316836112f4565b60065460405163151f8b7b60e21b8152600481018390526001600160a01b039091169063547e2dec90602401600060405180830381600087803b15801561101c57600080fd5b505af1158015611030573d6000803e3d6000fd5b5050505050610586565b6110458484846112f4565b610586565b6105868484846112f4565b61105f82826107cc565b6106c95760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556110973390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110e582826107cc565b156106c95760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166111a25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105bd565b6001600160a01b038216600090815260208190526040902054818110156112165760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105bd565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611245908490611910565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b61129a82826107cc565b6106c9576112b2816001600160a01b031660146114c2565b6112bd8360206114c2565b6040516020016112ce929190611923565b60408051601f198184030181529082905262461bcd60e51b82526105bd916004016116ac565b6001600160a01b0383166113585760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105bd565b6001600160a01b0382166113ba5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105bd565b6001600160a01b038316600090815260208190526040902054818110156114325760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105bd565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611469908490611894565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114b591815260200190565b60405180910390a3610e88565b606060006114d18360026118d7565b6114dc906002611894565b67ffffffffffffffff8111156114f4576114f4611998565b6040519080825280601f01601f19166020018201604052801561151e576020820181803683370190505b509050600360fc1b81600081518110611539576115396119ae565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611568576115686119ae565b60200101906001600160f81b031916908160001a905350600061158c8460026118d7565b611597906001611894565b90505b600181111561160f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106115cb576115cb6119ae565b1a60f81b8282815181106115e1576115e16119ae565b60200101906001600160f81b031916908160001a90535060049490941c93611608816119c4565b905061159a565b5083156108995760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105bd565b60006020828403121561167057600080fd5b81356001600160e01b03198116811461089957600080fd5b60005b838110156116a357818101518382015260200161168b565b50506000910152565b60208152600082518060208401526116cb816040850160208701611688565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146116f657600080fd5b919050565b6000806040838503121561170e57600080fd5b611717836116df565b946020939093013593505050565b60006020828403121561173757600080fd5b5035919050565b60008060006060848603121561175357600080fd5b61175c846116df565b925061176a602085016116df565b9150604084013590509250925092565b6000806040838503121561178d57600080fd5b8235915061179d602084016116df565b90509250929050565b6000602082840312156117b857600080fd5b610899826116df565b600080604083850312156117d457600080fd5b50508035926020909101359150565b600080604083850312156117f657600080fd5b6117ff836116df565b915061179d602084016116df565b600181811c9082168061182157607f821691505b60208210810361184157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f496e5175626574613a204665652076616c756520697320746f6f206869676800604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156104e0576104e061187e565b602080825260169082015275496e5175626574613a205a65726f206164647265737360501b604082015260600190565b80820281158282048414176104e0576104e061187e565b60008261190b57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156104e0576104e061187e565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161195b816017850160208801611688565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161198c816028840160208801611688565b01602801949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816119d3576119d361187e565b50600019019056fea56be0bb4dc7e0954b8ccc78ba1e1a046d82357f58efb06203f0030483436deda264697066735822122068020dc0b9b0ac06e4e245cec0eef5218211ba15f88788cca834396e3cdf3c8364736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000055e7fe3bc831117ba5a132df147351aabb372393000000000000000000000000000000000000000004d8c55aefb8c05b5c00000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e80000000000000000000000002a90dd63208bf43ea0e4995cbd025c6c0c5f5d78
-----Decoded View---------------
Arg [0] : _admin (address): 0x55e7Fe3bc831117BA5a132DF147351aabb372393
Arg [1] : _initialSupply (uint256): 1500000000000000000000000000
Arg [2] : _buyFee (uint256): 500
Arg [3] : _sellFee (uint256): 1000
Arg [4] : _feeCollector (address): 0x2A90Dd63208bF43EA0e4995cbD025C6c0c5f5D78
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000055e7fe3bc831117ba5a132df147351aabb372393
Arg [1] : 000000000000000000000000000000000000000004d8c55aefb8c05b5c000000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000002a90dd63208bf43ea0e4995cbd025c6c0c5f5d78
Loading...
Loading
Loading...
Loading
Net Worth in USD
$236.38
Net Worth in ETH
0.079885
Token Allocations
SHIB
56.94%
USDT
42.69%
BNB
0.37%
Multichain Portfolio | 35 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.