Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
MEME
Overview
Max Total Supply
899,981,246.362996721 DOUGH
Holders
225 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$35,405.26
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 9 Decimals)
Balance
0 DOUGHValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume | |
---|---|---|---|---|---|---|
There are no matching entriesPlease try again later |
Contract Name:
Dough
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // hollup... l3t h1m c00k. // https://twitter.com/l3th1mc00k pragma solidity ^0.8.20; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/access/extensions/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; abstract contract IDOUGH { /** * @notice Tokens minted event */ event Mint(address to, uint256 amount); /** * @notice Tokens burned event */ event Burn(address from, uint256 amount); } interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); } interface IUniswapV2Router02 { function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); } //Main contract for $DOUGH contract Dough is Context, Ownable, IERC20, AccessControlEnumerable { /** * @dev ERC-20 Variables */ mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private constant _name = "L3T H1M C00K"; string private constant _symbol = "DOUGH"; /** * @dev Dough specific variables */ bytes32 public constant OVEN_ROLE = keccak256("OVEN_ROLE"); // Role for minting tokens // struct for tax info struct TaxInfo { uint32 burnTaxBuy; uint32 burnTaxSell; uint32 rewardTaxBuy; uint32 rewardTaxSell; uint32 developmentTaxBuy; uint32 developmentTaxSell; } // tax info - represented as numerator / 1000 (i.e. 20 = 2%, 10 = 1%, etc.) TaxInfo public taxInfo = TaxInfo({ burnTaxBuy: 20, burnTaxSell: 30, rewardTaxBuy: 0, rewardTaxSell: 0, developmentTaxBuy: 20, developmentTaxSell: 20 }); // accumulated reward tokens uint256 public rewardsAccumulated; // fee exceptions mapping(address => bool) private _isExcludedFromFee; // development wallet address public developmentWallet; uint256 private constant INIT_SUPPLY = 1_000_000_000 * 1e9; // 1 billion tokens //uniswap info IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; //Ferment dough bool public fermented; // contract fee swap info bool private inSwap; bool private swapEnabled = true; uint256 public _swapTokensAtAmount = INIT_SUPPLY / 5000; modifier lockTheSwap { inSwap = true; _; inSwap = false; } // constructooor constructor() Ownable(msg.sender) { // create uniswap pair IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); // set development wallet, default fee exclusions developmentWallet = msg.sender; _isExcludedFromFee[msg.sender] = true; _isExcludedFromFee[address(this)] = true; // setup roles _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); // mint init supply _mint(msg.sender, INIT_SUPPLY); emit Transfer(address(0), msg.sender, INIT_SUPPLY); } /** * @dev fallback for receiving ETH - needed for swapping marketing tax tokens to ETH */ receive() external payable {} /** * @notice ERC-20 Functions */ /** * @dev Returns the name of the token. */ function name() public pure returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public pure 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 pure returns (uint8) { return 9; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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 override returns (bool) { _transfer(_msgSender(), to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view 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 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}. * * 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 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 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 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 `from` to `to`. * * 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 ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); if (from != owner() && to != owner()) { //Trade start check if (!fermented) { require(from == owner(), "DOUGH: This account cannot send tokens until dough is fermented"); } //Swap and send tax tokens to development wallet uint256 contractTokenBalance = balanceOf(address(this)); if (contractTokenBalance >= _swapTokensAtAmount && !inSwap && from != uniswapV2Pair && swapEnabled && !_isExcludedFromFee[from] && !_isExcludedFromFee[to]) { swapTokensForETH(contractTokenBalance); if (address(this).balance > 0) { sendETHToFee(address(this).balance); } } } // set tax amount only if fee needs to be taken uint256 taxAmountDevelopment; uint256 taxAmountBurn; uint256 taxAmountReward; if (!(_isExcludedFromFee[from] || _isExcludedFromFee[to]) && !(from != uniswapV2Pair && to != uniswapV2Pair)) { if (from == uniswapV2Pair && to != address(uniswapV2Router)) { // buy taxAmountDevelopment = Math.mulDiv(amount, uint256(taxInfo.developmentTaxBuy), 1000); taxAmountBurn = Math.mulDiv(amount, uint256(taxInfo.burnTaxBuy), 1000); taxAmountReward = Math.mulDiv(amount, uint256(taxInfo.rewardTaxBuy), 1000); } else if (to == uniswapV2Pair && from != address(uniswapV2Router)) { // sell taxAmountDevelopment = Math.mulDiv(amount, uint256(taxInfo.developmentTaxSell), 1000); taxAmountBurn = Math.mulDiv(amount, uint256(taxInfo.burnTaxSell), 1000); taxAmountReward = Math.mulDiv(amount, uint256(taxInfo.rewardTaxSell), 1000); } } uint256 amountAfterTax; _balances[from] -= amount; unchecked { _totalSupply -= taxAmountBurn; // taxAmountBurn can never exceed total supply rewardsAccumulated += taxAmountReward; // rewardsAccumulated can never exceed total supply amountAfterTax = amount - (taxAmountDevelopment + taxAmountBurn + taxAmountReward); //cannot underflow as sum of taxes <= amount _balances[to] += amountAfterTax; // cannot overflow as totalSupply >= any balance _balances[address(this)] += taxAmountDevelopment; // cannot overflow as totalSupply >= any balance } emit Transfer(from, to, amountAfterTax); } /** @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) private { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(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) private { require(account != address(0), "ERC20: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(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 ) private { 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 ) private { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "ERC20: insufficient allowance" ); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public { _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 { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } /** * @notice Gets the current reward balance of the contract */ function getRewardsAccumulated() external view returns (uint256) { return rewardsAccumulated; } /** * @notice Gets tax info */ function getTaxInfo() external view returns (TaxInfo memory) { return taxInfo; } /** * @notice Clears rewards accumulated */ function clearRewardsAccumulated() external { require(hasRole(OVEN_ROLE, _msgSender()), "DOUGH: Must have OVEN_ROLE"); assembly { sstore(rewardsAccumulated.slot, 0) } } /** * @notice Sets the tax */ function setTaxInfo( uint32 _burnTaxBuy, uint32 _burnTaxSell, uint32 _rewardTaxBuy, uint32 _rewardTaxSell, uint32 _developmentTaxBuy, uint32 _developmentTaxSell ) external onlyOwner { require( _burnTaxBuy + _burnTaxSell + _rewardTaxBuy <= 150, "Total buy tax must be less than 15%"); require( _burnTaxSell + _rewardTaxSell + _developmentTaxSell <= 150, "Total sell tax must be less than 15%"); taxInfo = TaxInfo({ burnTaxBuy: _burnTaxBuy, burnTaxSell: _burnTaxSell, rewardTaxBuy: _rewardTaxBuy, rewardTaxSell: _rewardTaxSell, developmentTaxBuy: _developmentTaxBuy, developmentTaxSell: _developmentTaxSell }); } /** * @notice Sets the fee exceptions - for additional CEX/DEX listings */ function setFeeException(address account, bool isExcluded) external onlyOwner { _isExcludedFromFee[account] = isExcluded; } /** * @notice Sets the development wallet */ function setDevelopmentWallet(address _developmentWallet) external onlyOwner { developmentWallet = _developmentWallet; } /** * @notice Swaps tokens for ETH for marketing tax */ function swapTokensForETH(uint256 tokenAmount) private lockTheSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } // Send ETH to development wallet using low level call function sendETHToFee(uint256 amount) private { (bool success, ) = payable(developmentWallet).call{value: amount}(""); require(success, "Unable to send ETH to marketing"); } // Opens trading, cannot be closed once opened function fermentDough() external onlyOwner { fermented = true; } // Sets contract swap open for collecting fees function setSwapEnabled(bool _enabled) external onlyOwner { swapEnabled = _enabled; } // Sets swap tokens at amount for development fee function setSwapTokensAtAmount(uint256 _newSwapTokensAtAmount) external onlyOwner { _swapTokensAtAmount = _newSwapTokensAtAmount; } // Manually swaps contract tokens for ETH function manualswap() external { require(_msgSender() == owner() || _msgSender() == developmentWallet); swapTokensForETH(balanceOf(address(this))); } // Manually sends contract ETH to development wallet function manualsend() external { require(_msgSender() == owner() || _msgSender() == developmentWallet); sendETHToFee(address(this).balance); } /** * @notice Mints new tokens, increasing totalSupply, initSupply, and a users balance. */ function mint(address to, uint256 amount) external returns (bool) { require(hasRole(OVEN_ROLE, _msgSender()), "DOUGH: Must have OVEN_ROLE"); _mint(to, amount); return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "./IAccessControl.sol"; import {Context} from "../utils/Context.sol"; import {ERC165} from "../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: * * ```solidity * 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}: * * ```solidity * 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. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ 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 returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @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 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. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual 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. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual 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 `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/AccessControlEnumerable.sol) pragma solidity ^0.8.20; import {IAccessControlEnumerable} from "./IAccessControlEnumerable.sol"; import {AccessControl} from "../AccessControl.sol"; import {EnumerableSet} from "../../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 role => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {AccessControl-_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override returns (bool) { bool granted = super._grantRole(role, account); if (granted) { _roleMembers[role].add(account); } return granted; } /** * @dev Overload {AccessControl-_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) { bool revoked = super._revokeRole(role, account); if (revoked) { _roleMembers[role].remove(account); } return revoked; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/IAccessControlEnumerable.sol) pragma solidity ^0.8.20; import {IAccessControl} from "../IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @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. */ 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 `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.20; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position is the index of the value in the `values` array plus 1. // Position 0 is used to mean a value is not in the set. mapping(bytes32 value => uint256) _positions; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._positions[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We cache the value's position to prevent multiple reads from the same storage slot uint256 position = set._positions[value]; if (position != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 valueIndex = position - 1; uint256 lastIndex = set._values.length - 1; if (valueIndex != lastIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the lastValue to the index where the value to delete is set._values[valueIndex] = lastValue; // Update the tracked position of the lastValue (that was just moved) set._positions[lastValue] = position; } // Delete the slot where the moved value was stored set._values.pop(); // Delete the tracked position for the deleted slot delete set._positions[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._positions[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"MathOverflowedMulDiv","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OVEN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"clearRewardsAccumulated","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"developmentWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fermentDough","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fermented","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsAccumulated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxInfo","outputs":[{"components":[{"internalType":"uint32","name":"burnTaxBuy","type":"uint32"},{"internalType":"uint32","name":"burnTaxSell","type":"uint32"},{"internalType":"uint32","name":"rewardTaxBuy","type":"uint32"},{"internalType":"uint32","name":"rewardTaxSell","type":"uint32"},{"internalType":"uint32","name":"developmentTaxBuy","type":"uint32"},{"internalType":"uint32","name":"developmentTaxSell","type":"uint32"}],"internalType":"struct Dough.TaxInfo","name":"","type":"tuple"}],"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":"manualsend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualswap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"rewardsAccumulated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_developmentWallet","type":"address"}],"name":"setDevelopmentWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"setFeeException","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSwapTokensAtAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_burnTaxBuy","type":"uint32"},{"internalType":"uint32","name":"_burnTaxSell","type":"uint32"},{"internalType":"uint32","name":"_rewardTaxBuy","type":"uint32"},{"internalType":"uint32","name":"_rewardTaxSell","type":"uint32"},{"internalType":"uint32","name":"_developmentTaxBuy","type":"uint32"},{"internalType":"uint32","name":"_developmentTaxSell","type":"uint32"}],"name":"setTaxInfo","outputs":[],"stateMutability":"nonpayable","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":"pure","type":"function"},{"inputs":[],"name":"taxInfo","outputs":[{"internalType":"uint32","name":"burnTaxBuy","type":"uint32"},{"internalType":"uint32","name":"burnTaxSell","type":"uint32"},{"internalType":"uint32","name":"rewardTaxBuy","type":"uint32"},{"internalType":"uint32","name":"rewardTaxSell","type":"uint32"},{"internalType":"uint32","name":"developmentTaxBuy","type":"uint32"},{"internalType":"uint32","name":"developmentTaxSell","type":"uint32"}],"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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
61014060405260146080819052601e60a0525f60c081905260e052610100819052610120526006805474140000001400000000000000000000001e000000146001600160c01b0319909116179055600b805460ff60b01b1916600160b01b17905562000076611388670de0b6b3a7640000620004f8565b600c5534801562000085575f80fd5b503380620000ad57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b620000b881620002d3565b50600a80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b81529051829163c45a01559160048083019260209291908290030181865afa1580156200011d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000143919062000518565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200018f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620001b5919062000518565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af115801562000200573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000226919062000518565b600b80546001600160a01b03929092166001600160a01b031992831617905560098054909116339081179091555f81815260086020526040808220805460ff19908116600190811790925530845291832080549092161790556200028a9162000322565b506200029f33670de0b6b3a76400006200035d565b604051670de0b6b3a7640000815233905f905f8051602062002f1e8339815191529060200160405180910390a35062000560565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f806200033084846200040e565b9050801562000354575f848152600260205260409020620003529084620004a1565b505b90505b92915050565b6001600160a01b038216620003b55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620000a4565b8060055f828254620003c8919062000540565b90915550506001600160a01b0382165f818152600360209081526040808320805486019055518481525f8051602062002f1e833981519152910160405180910390a35050565b5f8281526001602090815260408083206001600160a01b038516845290915281205460ff1662000499575f8381526001602081815260408084206001600160a01b0387168086529252808420805460ff19169093179092559051339286917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a450600162000357565b505f62000357565b5f62000354836001600160a01b0384165f8181526001830160205260408120546200049957508154600181810184555f84815260208082209093018490558454848252828601909352604090209190915562000357565b5f826200051357634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121562000529575f80fd5b81516001600160a01b038116811462000354575f80fd5b808201808211156200035757634e487b7160e01b5f52601160045260245ffd5b6129b0806200056e5f395ff3fe6080604052600436106102e5575f3560e01c8063715018a611610186578063ad022ce9116100dc578063d547741f11610087578063e01af92c11610062578063e01af92c146109c4578063e934da8c146109e3578063f2fde38b14610a9e575f80fd5b8063d547741f14610942578063d777c7f714610961578063dd62ed3e14610980575f80fd5b8063c04a5414116100b7578063c04a5414146108f0578063c3c8cd801461090f578063ca15c87314610923575f80fd5b8063ad022ce91461087f578063afa4f3b2146108b2578063bea4d796146108d1575f80fd5b806391d148541161013c578063a457c2d711610117578063a457c2d714610810578063a9059cbb1461082f578063aa86ae4a1461084e575f80fd5b806391d148541461077457806395d89b41146107b8578063a217fddf146107fd575f80fd5b806379cc67901161016c57806379cc67901461071a5780638da5cb5b146107395780639010d07c14610755575f80fd5b8063715018a6146106e757806372ac2486146106fb575f80fd5b8063313ce5671161023b57806340c10f19116101f15780635bbb05e6116101cc5780635bbb05e61461068a5780636fc3eaec1461069f57806370a08231146106b3575f80fd5b806340c10f191461062d57806342966c681461064c57806349bd5a5e1461066b575f80fd5b806336c13fa01161022157806336c13fa0146105e657806339509351146105fa57806339ac18a214610619575f80fd5b8063313ce567146105ac57806336568abe146105c7575f80fd5b806322a62e1e1161029b57806328a074f71161027657806328a074f7146105625780632f2ff15d146105785780632fd689e314610597575f80fd5b806322a62e1e146103e657806323b872dd14610514578063248a9ca314610533575f80fd5b8063095ea7b3116102cb578063095ea7b3146103725780631694505e1461039157806318160ddd146103c8575f80fd5b806301ffc9a7146102f057806306fdde0314610324575f80fd5b366102ec57005b5f80fd5b3480156102fb575f80fd5b5061030f61030a366004612546565b610abd565b60405190151581526020015b60405180910390f35b34801561032f575f80fd5b5060408051808201909152600c81527f4c33542048314d204330304b000000000000000000000000000000000000000060208201525b60405161031b9190612585565b34801561037d575f80fd5b5061030f61038c366004612602565b610b18565b34801561039c575f80fd5b50600a546103b0906001600160a01b031681565b6040516001600160a01b03909116815260200161031b565b3480156103d3575f80fd5b506005545b60405190815260200161031b565b3480156103f1575f80fd5b506104b76040805160c0810182525f80825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c08101825260065463ffffffff80821683526401000000008204811660208401526801000000000000000082048116938301939093526c0100000000000000000000000081048316606083015270010000000000000000000000000000000081048316608083015274010000000000000000000000000000000000000000900490911660a082015290565b60405161031b91905f60c08201905063ffffffff8084511683528060208501511660208401528060408501511660408401528060608501511660608401528060808501511660808401528060a08501511660a08401525092915050565b34801561051f575f80fd5b5061030f61052e36600461262c565b610b2d565b34801561053e575f80fd5b506103d861054d36600461266a565b5f908152600160208190526040909120015490565b34801561056d575f80fd5b50610576610b52565b005b348015610583575f80fd5b50610576610592366004612681565b610bd3565b3480156105a2575f80fd5b506103d8600c5481565b3480156105b7575f80fd5b506040516009815260200161031b565b3480156105d2575f80fd5b506105766105e1366004612681565b610bfe565b3480156105f1575f80fd5b506007546103d8565b348015610605575f80fd5b5061030f610614366004612602565b610c4f565b348015610624575f80fd5b50610576610c97565b348015610638575f80fd5b5061030f610647366004612602565b610ce0565b348015610657575f80fd5b5061057661066636600461266a565b610d61565b348015610676575f80fd5b50600b546103b0906001600160a01b031681565b348015610695575f80fd5b506103d860075481565b3480156106aa575f80fd5b50610576610d6e565b3480156106be575f80fd5b506103d86106cd3660046126af565b6001600160a01b03165f9081526003602052604090205490565b3480156106f2575f80fd5b50610576610dac565b348015610706575f80fd5b506105766107153660046126af565b610dbd565b348015610725575f80fd5b50610576610734366004612602565b610dff565b348015610744575f80fd5b505f546001600160a01b03166103b0565b348015610760575f80fd5b506103b061076f3660046126ca565b610e18565b34801561077f575f80fd5b5061030f61078e366004612681565b5f9182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107c3575f80fd5b5060408051808201909152600581527f444f5547480000000000000000000000000000000000000000000000000000006020820152610365565b348015610808575f80fd5b506103d85f81565b34801561081b575f80fd5b5061030f61082a366004612602565b610e2f565b34801561083a575f80fd5b5061030f610849366004612602565b610ee3565b348015610859575f80fd5b50600b5461030f9074010000000000000000000000000000000000000000900460ff1681565b34801561088a575f80fd5b506103d87f9349919b30781f92932102d65ec1fc728680b41ffc1b98020a604df428efec2081565b3480156108bd575f80fd5b506105766108cc36600461266a565b610eef565b3480156108dc575f80fd5b506105766108eb366004612702565b610efc565b3480156108fb575f80fd5b506009546103b0906001600160a01b031681565b34801561091a575f80fd5b50610576611188565b34801561092e575f80fd5b506103d861093d36600461266a565b6111d3565b34801561094d575f80fd5b5061057661095c366004612681565b6111e9565b34801561096c575f80fd5b5061057661097b366004612781565b61120e565b34801561098b575f80fd5b506103d861099a3660046127b4565b6001600160a01b039182165f90815260046020908152604080832093909416825291909152205490565b3480156109cf575f80fd5b506105766109de3660046127e0565b61125e565b3480156109ee575f80fd5b50600654610a5f9063ffffffff8082169164010000000081048216916801000000000000000082048116916c01000000000000000000000000810482169170010000000000000000000000000000000082048116917401000000000000000000000000000000000000000090041686565b6040805163ffffffff978816815295871660208701529386169385019390935290841660608401528316608083015290911660a082015260c00161031b565b348015610aa9575f80fd5b50610576610ab83660046126af565b6112b2565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f000000000000000000000000000000000000000000000000000000001480610b125750610b1282611305565b92915050565b5f610b2433848461139b565b50600192915050565b5f33610b3a8582856114f3565b610b4585858561159c565b60019150505b9392505050565b610b7c7f9349919b30781f92932102d65ec1fc728680b41ffc1b98020a604df428efec203361078e565b610bcd5760405162461bcd60e51b815260206004820152601a60248201527f444f5547483a204d7573742068617665204f56454e5f524f4c4500000000000060448201526064015b60405180910390fd5b5f600755565b5f8281526001602081905260409091200154610bee81611b42565b610bf88383611b4c565b50505050565b6001600160a01b0381163314610c40576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c4a8282611b7f565b505050565b335f8181526004602090815260408083206001600160a01b0387168452909152812054909190610c8d9082908690610c88908790612826565b61139b565b5060019392505050565b610c9f611baa565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b5f610d0b7f9349919b30781f92932102d65ec1fc728680b41ffc1b98020a604df428efec203361078e565b610d575760405162461bcd60e51b815260206004820152601a60248201527f444f5547483a204d7573742068617665204f56454e5f524f4c450000000000006044820152606401610bc4565b610b248383611bef565b610d6b3382611cae565b50565b5f546001600160a01b0316331480610d9957506009546001600160a01b0316336001600160a01b0316145b610da1575f80fd5b610daa47611e0f565b565b610db4611baa565b610daa5f611eaf565b610dc5611baa565b600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610e0a8233836114f3565b610e148282611cae565b5050565b5f828152600260205260408120610b4b9083611f16565b335f8181526004602090815260408083206001600160a01b038716845290915281205490919083811015610ecb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610bc4565b610ed8828686840361139b565b506001949350505050565b5f610b2433848461159c565b610ef7611baa565b600c55565b610f04611baa565b609684610f118789612839565b610f1b9190612839565b63ffffffff161115610f955760405162461bcd60e51b815260206004820152602360248201527f546f74616c2062757920746178206d757374206265206c657373207468616e2060448201527f31352500000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b609681610fa28588612839565b610fac9190612839565b63ffffffff1611156110255760405162461bcd60e51b8152602060048201526024808201527f546f74616c2073656c6c20746178206d757374206265206c657373207468616e60448201527f20313525000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6040805160c08101825263ffffffff9788168082529688166020820181905295881691810182905293871660608501819052928716608085018190529190961660a0909301839052600680547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016909517640100000000909402939093177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16680100000000000000009095027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff16949094176c01000000000000000000000000909402939093177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff167001000000000000000000000000000000009091027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff161774010000000000000000000000000000000000000000909202919091179055565b5f546001600160a01b03163314806111b357506009546001600160a01b0316336001600160a01b0316145b6111bb575f80fd5b305f90815260036020526040902054610daa90611f21565b5f818152600260205260408120610b129061210b565b5f828152600160208190526040909120015461120481611b42565b610bf88383611b7f565b611216611baa565b6001600160a01b03919091165f90815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b611266611baa565b600b8054911515760100000000000000000000000000000000000000000000027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6112ba611baa565b6001600160a01b0381166112fc576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f6004820152602401610bc4565b610d6b81611eaf565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b1257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b12565b6001600160a01b0383166114165760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0382166114925760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b038381165f8181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381165f908152600460209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610bf8578181101561158f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610bc4565b610bf8848484840361139b565b6001600160a01b0383166116185760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0382166116945760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b5f81116117095760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d75737420626520677265617465722060448201527f7468616e207a65726f00000000000000000000000000000000000000000000006064820152608401610bc4565b5f546001600160a01b0384811691161480159061173357505f546001600160a01b03838116911614155b156118c257600b5474010000000000000000000000000000000000000000900460ff166117dc575f546001600160a01b038481169116146117dc5760405162461bcd60e51b815260206004820152603f60248201527f444f5547483a2054686973206163636f756e742063616e6e6f742073656e642060448201527f746f6b656e7320756e74696c20646f756768206973206665726d656e746564006064820152608401610bc4565b305f90815260036020526040902054600c5481108015906118195750600b547501000000000000000000000000000000000000000000900460ff16155b80156118335750600b546001600160a01b03858116911614155b801561185b5750600b54760100000000000000000000000000000000000000000000900460ff165b801561187f57506001600160a01b0384165f9081526008602052604090205460ff16155b80156118a357506001600160a01b0383165f9081526008602052604090205460ff16155b156118c0576118b181611f21565b47156118c0576118c047611e0f565b505b6001600160a01b0383165f908152600860205260408120548190819060ff168061190357506001600160a01b0385165f9081526008602052604090205460ff165b1580156119395750600b546001600160a01b038781169116148015906119375750600b546001600160a01b03868116911614155b155b15611a8e57600b546001600160a01b0387811691161480156119695750600a546001600160a01b03868116911614155b156119e057600654611999908590700100000000000000000000000000000000900463ffffffff166103e8612114565b6006549093506119b390859063ffffffff166103e8612114565b6006549092506119d990859068010000000000000000900463ffffffff166103e8612114565b9050611a8e565b600b546001600160a01b038681169116148015611a0b5750600a546001600160a01b03878116911614155b15611a8e57600654611a3f90859074010000000000000000000000000000000000000000900463ffffffff166103e8612114565b600654909350611a61908590640100000000900463ffffffff166103e8612114565b600654909250611a8b9085906c01000000000000000000000000900463ffffffff166103e8612114565b90505b6001600160a01b0386165f90815260036020526040812080548691908390611ab7908490612856565b90915550506005805484900390555060078054820190556001600160a01b038581165f818152600360209081526040808320805489890188018b03908101909155308452928190208054890190555182815291938a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050505050565b610d6b813361220b565b5f80611b588484612278565b90508015610b4b575f848152600260205260409020611b779084612326565b509392505050565b5f80611b8b848461233a565b90508015610b4b575f848152600260205260409020611b7790846123dd565b5f546001600160a01b03163314610daa576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610bc4565b6001600160a01b038216611c455760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610bc4565b8060055f828254611c569190612826565b90915550506001600160a01b0382165f818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611d2a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0382165f9081526003602052604090205481811015611db85760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0383165f8181526003602090815260408083208686039055600580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016114e6565b6009546040515f916001600160a01b03169083908381818185875af1925050503d805f8114611e59576040519150601f19603f3d011682016040523d82523d5f602084013e611e5e565b606091505b5050905080610e145760405162461bcd60e51b815260206004820152601f60248201527f556e61626c6520746f2073656e642045544820746f206d61726b6574696e67006044820152606401610bc4565b5f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f610b4b83836123f1565b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000001790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110611f9457611f94612869565b6001600160a01b03928316602091820292909201810191909152600a54604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015612004573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120289190612896565b8160018151811061203b5761203b612869565b6001600160a01b039283166020918202929092010152600a54612061913091168461139b565b600a546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac947906120b29085905f908690309042906004016128b1565b5f604051808303815f87803b1580156120c9575f80fd5b505af11580156120db573d5f803e3d5ffd5b5050600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16905550505050565b5f610b12825490565b5f838302817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85870982811083820303915050805f036121675783828161215d5761215d612920565b0492505050610b4b565b8084116121a0576040517f227bc15300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f8281526001602090815260408083206001600160a01b038516845290915290205460ff16610e14576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260248101839052604401610bc4565b5f8281526001602090815260408083206001600160a01b038516845290915281205460ff1661231f575f8381526001602081815260408084206001600160a01b038716808652925280842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169093179092559051339286917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a4506001610b12565b505f610b12565b5f610b4b836001600160a01b038416612417565b5f8281526001602090815260408083206001600160a01b038516845290915281205460ff161561231f575f8381526001602090815260408083206001600160a01b038616808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610b12565b5f610b4b836001600160a01b03841661245c565b5f825f01828154811061240657612406612869565b905f5260205f200154905092915050565b5f81815260018301602052604081205461231f57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610b12565b5f8181526001830160205260408120548015612536575f61247e600183612856565b85549091505f9061249190600190612856565b90508082146124f0575f865f0182815481106124af576124af612869565b905f5260205f200154905080875f0184815481106124cf576124cf612869565b5f918252602080832090910192909255918252600188019052604090208390555b85548690806125015761250161294d565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610b12565b5f915050610b12565b5092915050565b5f60208284031215612556575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610b4b575f80fd5b5f6020808352835180828501525f5b818110156125b057858101830151858201604001528201612594565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b0381168114610d6b575f80fd5b5f8060408385031215612613575f80fd5b823561261e816125ee565b946020939093013593505050565b5f805f6060848603121561263e575f80fd5b8335612649816125ee565b92506020840135612659816125ee565b929592945050506040919091013590565b5f6020828403121561267a575f80fd5b5035919050565b5f8060408385031215612692575f80fd5b8235915060208301356126a4816125ee565b809150509250929050565b5f602082840312156126bf575f80fd5b8135610b4b816125ee565b5f80604083850312156126db575f80fd5b50508035926020909101359150565b803563ffffffff811681146126fd575f80fd5b919050565b5f805f805f8060c08789031215612717575f80fd5b612720876126ea565b955061272e602088016126ea565b945061273c604088016126ea565b935061274a606088016126ea565b9250612758608088016126ea565b915061276660a088016126ea565b90509295509295509295565b803580151581146126fd575f80fd5b5f8060408385031215612792575f80fd5b823561279d816125ee565b91506127ab60208401612772565b90509250929050565b5f80604083850312156127c5575f80fd5b82356127d0816125ee565b915060208301356126a4816125ee565b5f602082840312156127f0575f80fd5b610b4b82612772565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610b1257610b126127f9565b63ffffffff81811683821601908082111561253f5761253f6127f9565b81810381811115610b1257610b126127f9565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f602082840312156128a6575f80fd5b8151610b4b816125ee565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156128ff5784516001600160a01b0316835293830193918301916001016128da565b50506001600160a01b03969096166060850152505050608001529392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea2646970667358221220be1053f4402d154d6765efa164ac36cfe1b81dc37cd1048e398e3ce96ca8266c64736f6c63430008140033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106102e5575f3560e01c8063715018a611610186578063ad022ce9116100dc578063d547741f11610087578063e01af92c11610062578063e01af92c146109c4578063e934da8c146109e3578063f2fde38b14610a9e575f80fd5b8063d547741f14610942578063d777c7f714610961578063dd62ed3e14610980575f80fd5b8063c04a5414116100b7578063c04a5414146108f0578063c3c8cd801461090f578063ca15c87314610923575f80fd5b8063ad022ce91461087f578063afa4f3b2146108b2578063bea4d796146108d1575f80fd5b806391d148541161013c578063a457c2d711610117578063a457c2d714610810578063a9059cbb1461082f578063aa86ae4a1461084e575f80fd5b806391d148541461077457806395d89b41146107b8578063a217fddf146107fd575f80fd5b806379cc67901161016c57806379cc67901461071a5780638da5cb5b146107395780639010d07c14610755575f80fd5b8063715018a6146106e757806372ac2486146106fb575f80fd5b8063313ce5671161023b57806340c10f19116101f15780635bbb05e6116101cc5780635bbb05e61461068a5780636fc3eaec1461069f57806370a08231146106b3575f80fd5b806340c10f191461062d57806342966c681461064c57806349bd5a5e1461066b575f80fd5b806336c13fa01161022157806336c13fa0146105e657806339509351146105fa57806339ac18a214610619575f80fd5b8063313ce567146105ac57806336568abe146105c7575f80fd5b806322a62e1e1161029b57806328a074f71161027657806328a074f7146105625780632f2ff15d146105785780632fd689e314610597575f80fd5b806322a62e1e146103e657806323b872dd14610514578063248a9ca314610533575f80fd5b8063095ea7b3116102cb578063095ea7b3146103725780631694505e1461039157806318160ddd146103c8575f80fd5b806301ffc9a7146102f057806306fdde0314610324575f80fd5b366102ec57005b5f80fd5b3480156102fb575f80fd5b5061030f61030a366004612546565b610abd565b60405190151581526020015b60405180910390f35b34801561032f575f80fd5b5060408051808201909152600c81527f4c33542048314d204330304b000000000000000000000000000000000000000060208201525b60405161031b9190612585565b34801561037d575f80fd5b5061030f61038c366004612602565b610b18565b34801561039c575f80fd5b50600a546103b0906001600160a01b031681565b6040516001600160a01b03909116815260200161031b565b3480156103d3575f80fd5b506005545b60405190815260200161031b565b3480156103f1575f80fd5b506104b76040805160c0810182525f80825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c08101825260065463ffffffff80821683526401000000008204811660208401526801000000000000000082048116938301939093526c0100000000000000000000000081048316606083015270010000000000000000000000000000000081048316608083015274010000000000000000000000000000000000000000900490911660a082015290565b60405161031b91905f60c08201905063ffffffff8084511683528060208501511660208401528060408501511660408401528060608501511660608401528060808501511660808401528060a08501511660a08401525092915050565b34801561051f575f80fd5b5061030f61052e36600461262c565b610b2d565b34801561053e575f80fd5b506103d861054d36600461266a565b5f908152600160208190526040909120015490565b34801561056d575f80fd5b50610576610b52565b005b348015610583575f80fd5b50610576610592366004612681565b610bd3565b3480156105a2575f80fd5b506103d8600c5481565b3480156105b7575f80fd5b506040516009815260200161031b565b3480156105d2575f80fd5b506105766105e1366004612681565b610bfe565b3480156105f1575f80fd5b506007546103d8565b348015610605575f80fd5b5061030f610614366004612602565b610c4f565b348015610624575f80fd5b50610576610c97565b348015610638575f80fd5b5061030f610647366004612602565b610ce0565b348015610657575f80fd5b5061057661066636600461266a565b610d61565b348015610676575f80fd5b50600b546103b0906001600160a01b031681565b348015610695575f80fd5b506103d860075481565b3480156106aa575f80fd5b50610576610d6e565b3480156106be575f80fd5b506103d86106cd3660046126af565b6001600160a01b03165f9081526003602052604090205490565b3480156106f2575f80fd5b50610576610dac565b348015610706575f80fd5b506105766107153660046126af565b610dbd565b348015610725575f80fd5b50610576610734366004612602565b610dff565b348015610744575f80fd5b505f546001600160a01b03166103b0565b348015610760575f80fd5b506103b061076f3660046126ca565b610e18565b34801561077f575f80fd5b5061030f61078e366004612681565b5f9182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107c3575f80fd5b5060408051808201909152600581527f444f5547480000000000000000000000000000000000000000000000000000006020820152610365565b348015610808575f80fd5b506103d85f81565b34801561081b575f80fd5b5061030f61082a366004612602565b610e2f565b34801561083a575f80fd5b5061030f610849366004612602565b610ee3565b348015610859575f80fd5b50600b5461030f9074010000000000000000000000000000000000000000900460ff1681565b34801561088a575f80fd5b506103d87f9349919b30781f92932102d65ec1fc728680b41ffc1b98020a604df428efec2081565b3480156108bd575f80fd5b506105766108cc36600461266a565b610eef565b3480156108dc575f80fd5b506105766108eb366004612702565b610efc565b3480156108fb575f80fd5b506009546103b0906001600160a01b031681565b34801561091a575f80fd5b50610576611188565b34801561092e575f80fd5b506103d861093d36600461266a565b6111d3565b34801561094d575f80fd5b5061057661095c366004612681565b6111e9565b34801561096c575f80fd5b5061057661097b366004612781565b61120e565b34801561098b575f80fd5b506103d861099a3660046127b4565b6001600160a01b039182165f90815260046020908152604080832093909416825291909152205490565b3480156109cf575f80fd5b506105766109de3660046127e0565b61125e565b3480156109ee575f80fd5b50600654610a5f9063ffffffff8082169164010000000081048216916801000000000000000082048116916c01000000000000000000000000810482169170010000000000000000000000000000000082048116917401000000000000000000000000000000000000000090041686565b6040805163ffffffff978816815295871660208701529386169385019390935290841660608401528316608083015290911660a082015260c00161031b565b348015610aa9575f80fd5b50610576610ab83660046126af565b6112b2565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f000000000000000000000000000000000000000000000000000000001480610b125750610b1282611305565b92915050565b5f610b2433848461139b565b50600192915050565b5f33610b3a8582856114f3565b610b4585858561159c565b60019150505b9392505050565b610b7c7f9349919b30781f92932102d65ec1fc728680b41ffc1b98020a604df428efec203361078e565b610bcd5760405162461bcd60e51b815260206004820152601a60248201527f444f5547483a204d7573742068617665204f56454e5f524f4c4500000000000060448201526064015b60405180910390fd5b5f600755565b5f8281526001602081905260409091200154610bee81611b42565b610bf88383611b4c565b50505050565b6001600160a01b0381163314610c40576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c4a8282611b7f565b505050565b335f8181526004602090815260408083206001600160a01b0387168452909152812054909190610c8d9082908690610c88908790612826565b61139b565b5060019392505050565b610c9f611baa565b600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b5f610d0b7f9349919b30781f92932102d65ec1fc728680b41ffc1b98020a604df428efec203361078e565b610d575760405162461bcd60e51b815260206004820152601a60248201527f444f5547483a204d7573742068617665204f56454e5f524f4c450000000000006044820152606401610bc4565b610b248383611bef565b610d6b3382611cae565b50565b5f546001600160a01b0316331480610d9957506009546001600160a01b0316336001600160a01b0316145b610da1575f80fd5b610daa47611e0f565b565b610db4611baa565b610daa5f611eaf565b610dc5611baa565b600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610e0a8233836114f3565b610e148282611cae565b5050565b5f828152600260205260408120610b4b9083611f16565b335f8181526004602090815260408083206001600160a01b038716845290915281205490919083811015610ecb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610bc4565b610ed8828686840361139b565b506001949350505050565b5f610b2433848461159c565b610ef7611baa565b600c55565b610f04611baa565b609684610f118789612839565b610f1b9190612839565b63ffffffff161115610f955760405162461bcd60e51b815260206004820152602360248201527f546f74616c2062757920746178206d757374206265206c657373207468616e2060448201527f31352500000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b609681610fa28588612839565b610fac9190612839565b63ffffffff1611156110255760405162461bcd60e51b8152602060048201526024808201527f546f74616c2073656c6c20746178206d757374206265206c657373207468616e60448201527f20313525000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6040805160c08101825263ffffffff9788168082529688166020820181905295881691810182905293871660608501819052928716608085018190529190961660a0909301839052600680547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016909517640100000000909402939093177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16680100000000000000009095027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff16949094176c01000000000000000000000000909402939093177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff167001000000000000000000000000000000009091027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff161774010000000000000000000000000000000000000000909202919091179055565b5f546001600160a01b03163314806111b357506009546001600160a01b0316336001600160a01b0316145b6111bb575f80fd5b305f90815260036020526040902054610daa90611f21565b5f818152600260205260408120610b129061210b565b5f828152600160208190526040909120015461120481611b42565b610bf88383611b7f565b611216611baa565b6001600160a01b03919091165f90815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b611266611baa565b600b8054911515760100000000000000000000000000000000000000000000027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6112ba611baa565b6001600160a01b0381166112fc576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f6004820152602401610bc4565b610d6b81611eaf565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b1257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b12565b6001600160a01b0383166114165760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0382166114925760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b038381165f8181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381165f908152600460209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610bf8578181101561158f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610bc4565b610bf8848484840361139b565b6001600160a01b0383166116185760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0382166116945760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b5f81116117095760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d75737420626520677265617465722060448201527f7468616e207a65726f00000000000000000000000000000000000000000000006064820152608401610bc4565b5f546001600160a01b0384811691161480159061173357505f546001600160a01b03838116911614155b156118c257600b5474010000000000000000000000000000000000000000900460ff166117dc575f546001600160a01b038481169116146117dc5760405162461bcd60e51b815260206004820152603f60248201527f444f5547483a2054686973206163636f756e742063616e6e6f742073656e642060448201527f746f6b656e7320756e74696c20646f756768206973206665726d656e746564006064820152608401610bc4565b305f90815260036020526040902054600c5481108015906118195750600b547501000000000000000000000000000000000000000000900460ff16155b80156118335750600b546001600160a01b03858116911614155b801561185b5750600b54760100000000000000000000000000000000000000000000900460ff165b801561187f57506001600160a01b0384165f9081526008602052604090205460ff16155b80156118a357506001600160a01b0383165f9081526008602052604090205460ff16155b156118c0576118b181611f21565b47156118c0576118c047611e0f565b505b6001600160a01b0383165f908152600860205260408120548190819060ff168061190357506001600160a01b0385165f9081526008602052604090205460ff165b1580156119395750600b546001600160a01b038781169116148015906119375750600b546001600160a01b03868116911614155b155b15611a8e57600b546001600160a01b0387811691161480156119695750600a546001600160a01b03868116911614155b156119e057600654611999908590700100000000000000000000000000000000900463ffffffff166103e8612114565b6006549093506119b390859063ffffffff166103e8612114565b6006549092506119d990859068010000000000000000900463ffffffff166103e8612114565b9050611a8e565b600b546001600160a01b038681169116148015611a0b5750600a546001600160a01b03878116911614155b15611a8e57600654611a3f90859074010000000000000000000000000000000000000000900463ffffffff166103e8612114565b600654909350611a61908590640100000000900463ffffffff166103e8612114565b600654909250611a8b9085906c01000000000000000000000000900463ffffffff166103e8612114565b90505b6001600160a01b0386165f90815260036020526040812080548691908390611ab7908490612856565b90915550506005805484900390555060078054820190556001600160a01b038581165f818152600360209081526040808320805489890188018b03908101909155308452928190208054890190555182815291938a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050505050565b610d6b813361220b565b5f80611b588484612278565b90508015610b4b575f848152600260205260409020611b779084612326565b509392505050565b5f80611b8b848461233a565b90508015610b4b575f848152600260205260409020611b7790846123dd565b5f546001600160a01b03163314610daa576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610bc4565b6001600160a01b038216611c455760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610bc4565b8060055f828254611c569190612826565b90915550506001600160a01b0382165f818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611d2a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0382165f9081526003602052604090205481811015611db85760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610bc4565b6001600160a01b0383165f8181526003602090815260408083208686039055600580548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016114e6565b6009546040515f916001600160a01b03169083908381818185875af1925050503d805f8114611e59576040519150601f19603f3d011682016040523d82523d5f602084013e611e5e565b606091505b5050905080610e145760405162461bcd60e51b815260206004820152601f60248201527f556e61626c6520746f2073656e642045544820746f206d61726b6574696e67006044820152606401610bc4565b5f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f610b4b83836123f1565b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000001790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110611f9457611f94612869565b6001600160a01b03928316602091820292909201810191909152600a54604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015612004573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120289190612896565b8160018151811061203b5761203b612869565b6001600160a01b039283166020918202929092010152600a54612061913091168461139b565b600a546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac947906120b29085905f908690309042906004016128b1565b5f604051808303815f87803b1580156120c9575f80fd5b505af11580156120db573d5f803e3d5ffd5b5050600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16905550505050565b5f610b12825490565b5f838302817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85870982811083820303915050805f036121675783828161215d5761215d612920565b0492505050610b4b565b8084116121a0576040517f227bc15300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f8281526001602090815260408083206001600160a01b038516845290915290205460ff16610e14576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260248101839052604401610bc4565b5f8281526001602090815260408083206001600160a01b038516845290915281205460ff1661231f575f8381526001602081815260408084206001600160a01b038716808652925280842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169093179092559051339286917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a4506001610b12565b505f610b12565b5f610b4b836001600160a01b038416612417565b5f8281526001602090815260408083206001600160a01b038516845290915281205460ff161561231f575f8381526001602090815260408083206001600160a01b038616808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610b12565b5f610b4b836001600160a01b03841661245c565b5f825f01828154811061240657612406612869565b905f5260205f200154905092915050565b5f81815260018301602052604081205461231f57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610b12565b5f8181526001830160205260408120548015612536575f61247e600183612856565b85549091505f9061249190600190612856565b90508082146124f0575f865f0182815481106124af576124af612869565b905f5260205f200154905080875f0184815481106124cf576124cf612869565b5f918252602080832090910192909255918252600188019052604090208390555b85548690806125015761250161294d565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610b12565b5f915050610b12565b5092915050565b5f60208284031215612556575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610b4b575f80fd5b5f6020808352835180828501525f5b818110156125b057858101830151858201604001528201612594565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b0381168114610d6b575f80fd5b5f8060408385031215612613575f80fd5b823561261e816125ee565b946020939093013593505050565b5f805f6060848603121561263e575f80fd5b8335612649816125ee565b92506020840135612659816125ee565b929592945050506040919091013590565b5f6020828403121561267a575f80fd5b5035919050565b5f8060408385031215612692575f80fd5b8235915060208301356126a4816125ee565b809150509250929050565b5f602082840312156126bf575f80fd5b8135610b4b816125ee565b5f80604083850312156126db575f80fd5b50508035926020909101359150565b803563ffffffff811681146126fd575f80fd5b919050565b5f805f805f8060c08789031215612717575f80fd5b612720876126ea565b955061272e602088016126ea565b945061273c604088016126ea565b935061274a606088016126ea565b9250612758608088016126ea565b915061276660a088016126ea565b90509295509295509295565b803580151581146126fd575f80fd5b5f8060408385031215612792575f80fd5b823561279d816125ee565b91506127ab60208401612772565b90509250929050565b5f80604083850312156127c5575f80fd5b82356127d0816125ee565b915060208301356126a4816125ee565b5f602082840312156127f0575f80fd5b610b4b82612772565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610b1257610b126127f9565b63ffffffff81811683821601908082111561253f5761253f6127f9565b81810381811115610b1257610b126127f9565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f602082840312156128a6575f80fd5b8151610b4b816125ee565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156128ff5784516001600160a01b0316835293830193918301916001016128da565b50506001600160a01b03969096166060850152505050608001529392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea2646970667358221220be1053f4402d154d6765efa164ac36cfe1b81dc37cd1048e398e3ce96ca8266c64736f6c63430008140033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.