Feature Tip: Add private address tag to any address under My Name Tag !
Overview
Max Total Supply
1,618,033 SNC
Holders
66 (0.00%)
Transfers
-
1 (0%)
Market
Price
$29.98 @ 0.015145 ETH (-0.09%)
Onchain Market Cap
$48,508,629.34
Circulating Supply Market Cap
$2,280,393.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
SNC
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*────────────────────────────┐
Developed by Coinsult
_____ _ _ _
| |___|_|___ ___ _ _| | |_
| --| . | | |_ -| | | | _|
|_____|___|_|_|_|___|___|_|_|
tg: @coinsult_tg
──────────────────────────────┘
SPDX-License-Identifier: MIT */
pragma solidity 0.8.26;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Arrays.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract SNC is ERC20, Ownable(msg.sender), ReentrancyGuard {
using Arrays for uint256[];
using Counters for Counters.Counter;
struct Snapshots {
uint256[] ids;
uint256[] values;
}
mapping(address => Snapshots) private _accountBalanceSnapshots;
Snapshots private _totalSupplySnapshots;
Counters.Counter private _currentSnapshotId;
event Snapshot(uint256 id);
struct Proposal {
bytes32 descriptionHash;
uint256 voteCountFor;
uint256 voteCountAgainst;
uint256 deadline;
bool executed;
uint256 snapshotId;
}
Proposal[] public proposals;
mapping(uint256 => mapping(address => bool)) public hasVoted;
event ProposalCreated(uint256 proposalId, bytes32 descriptionHash, uint256 deadline);
event Voted(uint256 proposalId, address voter, bool voteFor, uint256 votePower);
event ProposalExecuted(uint256 proposalId, bool success);
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
mapping (address => bool) private _isExcludedFromFees;
uint256 public feeOnBuy;
uint256 public feeOnSell;
uint256 public feeOnTransfer;
address public feeReceiver;
uint256 public swapTokensAtAmount;
uint256 public maxFeeSwap;
bool public feeSwapEnabled;
bool private swapping;
bool public tradingEnabled;
error TradingNotEnabled();
error TradingAlreadyEnabled();
error FeeSetupError();
error InvalidAddress(address invalidAddress);
error NotAllowed(address token, address sender);
error FeeTooHigh(uint256 feeOnBuy, uint256 feeOnSell, uint256 feeOnTransfer);
error ZeroAddress(address feeReceiver);
event TradingEnabled();
event ExcludedFromFees(address indexed account, bool isExcluded);
event FeeReceiverChanged(address feeReceiver);
constructor () ERC20("Syncoin", "SNC") {
address router;
address pinkLock;
if (block.chainid == 56) {
router = 0x10ED43C718714eb63d5aA57B78B54704E256024E;
pinkLock = 0x407993575c91ce7643a4d4cCACc9A98c36eE1BBE;
} else if (block.chainid == 97) {
router = 0xD99D1c33F9fC3444f8101754aBC46c52416550D1;
pinkLock = 0x5E5b9bE5fd939c578ABE5800a90C566eeEbA44a5;
} else if (block.chainid == 1 || block.chainid == 5) {
router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
pinkLock = 0x71B5759d73262FBb223956913ecF4ecC51057641;
} else {
revert();
}
transferOwnership(0xeb6527Db45A9407515D2e29899Db771e6d7D2278);
uniswapV2Router = IUniswapV2Router02(router);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
.createPair(address(this), uniswapV2Router.WETH());
_approve(address(this), address(uniswapV2Router), type(uint256).max);
feeOnBuy = 1;
feeOnSell = 1;
feeOnTransfer = 0;
feeReceiver = 0xB685E32702D7c3D5c3C03B81224B8f121E5514db;
_isExcludedFromFees[owner()] = true;
_isExcludedFromFees[address(0xdead)] = true;
_isExcludedFromFees[address(this)] = true;
_isExcludedFromFees[pinkLock] = true;
maxWalletLimitEnabled = true;
_isExcludedFromMaxWalletLimit[owner()] = true;
_isExcludedFromMaxWalletLimit[address(this)] = true;
_isExcludedFromMaxWalletLimit[address(0xdead)] = true;
_isExcludedFromMaxWalletLimit[feeReceiver] = true;
_isExcludedFromMaxWalletLimit[pinkLock] = true;
uint256 totalSupply = 1_618_033 * (10 ** decimals());
maxFeeSwap = totalSupply / 1_000;
swapTokensAtAmount = totalSupply / 5_000;
maxWalletAmount = totalSupply * 10 / 1000;
feeSwapEnabled = false;
super._update(address(0), owner(), totalSupply);
}
receive() external payable {}
function _update(address from, address to, uint256 value) internal override {
bool isExcluded = _isExcludedFromFees[from] || _isExcludedFromFees[to];
if (!isExcluded && !tradingEnabled) {
revert TradingNotEnabled();
}
_beforeTokenTransfer(from, to, value);
if (!swapping && from != uniswapV2Pair && feeSwapEnabled) {
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (canSwap) {
swapping = true;
swapAndSendFee(contractTokenBalance);
swapping = false;
}
}
uint256 _totalFees = 0;
if (!isExcluded && !swapping) {
if (from == uniswapV2Pair) {
_totalFees = feeOnBuy;
} else if (to == uniswapV2Pair) {
_totalFees = feeOnSell;
} else {
_totalFees = feeOnTransfer;
}
}
if (_totalFees > 0) {
uint256 fees = (value * _totalFees) / 100;
value -= fees;
super._update(from, address(this), fees);
}
if (maxWalletLimitEnabled)
{
if (!_isExcludedFromMaxWalletLimit[from] &&
!_isExcludedFromMaxWalletLimit[to] &&
to != uniswapV2Pair
) {
uint256 balance = balanceOf(to);
require(
balance + value <= maxWalletAmount,
"MaxWallet: Recipient exceeds the maxWalletAmount"
);
}
}
super._update(from, to, value);
}
function swapAndSendFee(uint256 amount) internal returns (bool) {
if (amount > maxFeeSwap){
amount = maxFeeSwap;
}
uint256 initialBalance = address(this).balance;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
try uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
amount,
0,
path,
address(this),
block.timestamp
) {
uint256 newBalance = address(this).balance - initialBalance;
(bool success, ) = payable(feeReceiver).call{value: newBalance}("");
return success;
} catch {
return false;
}
}
function enableTrading() external onlyOwner {
if (tradingEnabled) {
revert TradingAlreadyEnabled();
}
tradingEnabled = true;
feeSwapEnabled = true;
emit TradingEnabled();
}
function setFeeSwapSettings(
uint256 _swapTokensAtAmount,
uint256 _maxFeeSwap,
bool _feeSwapEnabled
) external onlyOwner {
uint256 decimalsToAdd = 10 ** decimals();
maxFeeSwap = _maxFeeSwap * decimalsToAdd;
swapTokensAtAmount = _swapTokensAtAmount * decimalsToAdd;
feeSwapEnabled = _feeSwapEnabled;
if (swapTokensAtAmount > totalSupply() || maxFeeSwap < swapTokensAtAmount){
revert FeeSetupError();
}
}
function excludeFromFees(address account, bool excluded) external onlyOwner{
_isExcludedFromFees[account] = excluded;
emit ExcludedFromFees(account, excluded);
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
function changeFeeReceiver(address _feeReceiver) external onlyOwner{
if (_feeReceiver == address(0)){
revert ZeroAddress(_feeReceiver);
}
feeReceiver = _feeReceiver;
emit FeeReceiverChanged(feeReceiver);
}
function recoverStuckTokens(address token) external {
if (token == address(this) || (msg.sender != owner() && msg.sender != feeReceiver)){
revert NotAllowed(token, msg.sender);
}
if (token == address(0x0)) {
payable(msg.sender).transfer(address(this).balance);
return;
}
IERC20 ERC20token = IERC20(token);
uint256 balance = ERC20token.balanceOf(address(this));
ERC20token.transfer(msg.sender, balance);
}
mapping(address => bool) private _isExcludedFromMaxWalletLimit;
bool public maxWalletLimitEnabled;
uint256 public maxWalletAmount;
event ExcludedFromMaxWalletLimit(address indexed account, bool isExcluded);
event MaxWalletLimitStateChanged(bool maxWalletLimit);
event MaxWalletLimitAmountChanged(uint256 maxWalletAmount);
function setEnableMaxWalletLimit(bool enable) external onlyOwner {
require(enable != maxWalletLimitEnabled,"Max wallet limit is already set to that state");
maxWalletLimitEnabled = enable;
emit MaxWalletLimitStateChanged(maxWalletLimitEnabled);
}
function setMaxWalletAmount(uint256 _maxWalletAmount) external onlyOwner {
require(_maxWalletAmount >= (totalSupply() / (10 ** decimals())) / 100, "Max wallet percentage cannot be lower than 1%");
maxWalletAmount = _maxWalletAmount * (10 ** decimals());
emit MaxWalletLimitAmountChanged(maxWalletAmount);
}
function excludeFromMaxWallet(address account, bool exclude) external onlyOwner {
require( _isExcludedFromMaxWalletLimit[account] != exclude,"Account is already set to that state");
require(account != address(this), "Can't set this address.");
_isExcludedFromMaxWalletLimit[account] = exclude;
emit ExcludedFromMaxWalletLimit(account, exclude);
}
function isExcludedFromMaxWalletLimit(address account) public view returns(bool) {
return _isExcludedFromMaxWalletLimit[account];
}
function _snapshot() internal virtual returns (uint256) {
_currentSnapshotId.increment();
uint256 currentId = _getCurrentSnapshotId();
emit Snapshot(currentId);
return currentId;
}
function _getCurrentSnapshotId() internal view virtual returns (uint256) {
return _currentSnapshotId.current();
}
function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) {
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);
return snapshotted ? value : balanceOf(account);
}
function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) {
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);
return snapshotted ? value : totalSupply();
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {
if (from == address(0)) {
_updateAccountSnapshot(to);
_updateTotalSupplySnapshot();
} else if (to == address(0)) {
_updateAccountSnapshot(from);
_updateTotalSupplySnapshot();
} else {
_updateAccountSnapshot(from);
_updateAccountSnapshot(to);
}
}
function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) {
require(snapshotId > 0, "ERC20Snapshot: id is 0");
require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id");
uint256 index = snapshots.ids.findUpperBound(snapshotId);
if (index == snapshots.ids.length) {
return (false, 0);
} else {
return (true, snapshots.values[index]);
}
}
function _updateAccountSnapshot(address account) private {
_updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));
}
function _updateTotalSupplySnapshot() private {
_updateSnapshot(_totalSupplySnapshots, totalSupply());
}
function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
uint256 currentId = _getCurrentSnapshotId();
if (_lastSnapshotId(snapshots.ids) < currentId) {
snapshots.ids.push(currentId);
snapshots.values.push(currentValue);
}
}
function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {
if (ids.length == 0) {
return 0;
} else {
return ids[ids.length - 1];
}
}
function createProposal(bytes32 descriptionHash, uint256 duration) public onlyOwner {
uint256 deadline = block.timestamp + duration;
uint256 snapshotId = _snapshot();
proposals.push(Proposal({
descriptionHash: descriptionHash,
voteCountFor: 0,
voteCountAgainst: 0,
deadline: deadline,
executed: false,
snapshotId: snapshotId
}));
emit ProposalCreated(proposals.length - 1, descriptionHash, deadline);
}
function vote(uint256 proposalId, bool voteFor) public nonReentrant {
require(proposalId < proposals.length, "Proposal does not exist");
Proposal storage proposal = proposals[proposalId];
require(block.timestamp <= proposal.deadline, "Voting period is over");
require(!hasVoted[proposalId][msg.sender], "You have already voted");
uint256 votePower = balanceOfAt(msg.sender, proposal.snapshotId);
require(votePower > 0, "You have no voting power");
if (voteFor) {
proposal.voteCountFor += votePower;
} else {
proposal.voteCountAgainst += votePower;
}
hasVoted[proposalId][msg.sender] = true;
emit Voted(proposalId, msg.sender, voteFor, votePower);
}
function submitSnapshotResults(uint256 proposalId) public onlyOwner {
require(proposalId < proposals.length, "Proposal does not exist");
Proposal storage proposal = proposals[proposalId];
require(block.timestamp > proposal.deadline, "Voting period has not ended");
require(!proposal.executed, "Proposal already executed");
if (proposal.voteCountFor > proposal.voteCountAgainst) {
proposal.executed = true;
emit ProposalExecuted(proposalId, true);
} else {
proposal.executed = false;
emit ProposalExecuted(proposalId, false);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol)
pragma solidity ^0.8.20;
import {StorageSlot} from "./StorageSlot.sol";
import {Math} from "./math/Math.sol";
/**
* @dev Collection of functions related to array types.
*/
library Arrays {
using StorageSlot for bytes32;
/**
* @dev Searches a sorted `array` and returns the first index that contains
* a value greater or equal to `element`. If no such index exists (i.e. all
* values in the array are strictly less than `element`), the array length is
* returned. Time complexity O(log n).
*
* `array` is expected to be sorted in ascending order, and to contain no
* repeated elements.
*/
function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
uint256 low = 0;
uint256 high = array.length;
if (high == 0) {
return 0;
}
while (low < high) {
uint256 mid = Math.average(low, high);
// Note that mid will always be strictly less than high (i.e. it will be a valid array index)
// because Math.average rounds towards zero (it does integer division with truncation).
if (unsafeAccess(array, mid).value > element) {
high = mid;
} else {
low = mid + 1;
}
}
// At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
if (low > 0 && unsafeAccess(array, low - 1).value == element) {
return low - 1;
} else {
return low;
}
}
/**
* @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
*
* WARNING: Only use if you are certain `pos` is lower than the array length.
*/
function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) {
bytes32 slot;
// We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
// following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.
/// @solidity memory-safe-assembly
assembly {
mstore(0, arr.slot)
slot := add(keccak256(0, 0x20), pos)
}
return slot.getAddressSlot();
}
/**
* @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
*
* WARNING: Only use if you are certain `pos` is lower than the array length.
*/
function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) {
bytes32 slot;
// We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
// following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.
/// @solidity memory-safe-assembly
assembly {
mstore(0, arr.slot)
slot := add(keccak256(0, 0x20), pos)
}
return slot.getBytes32Slot();
}
/**
* @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
*
* WARNING: Only use if you are certain `pos` is lower than the array length.
*/
function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) {
bytes32 slot;
// We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
// following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.
/// @solidity memory-safe-assembly
assembly {
mstore(0, arr.slot)
slot := add(keccak256(0, 0x20), pos)
}
return slot.getUint256Slot();
}
/**
* @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
*
* WARNING: Only use if you are certain `pos` is lower than the array length.
*/
function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) {
assembly {
res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
}
}
/**
* @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
*
* WARNING: Only use if you are certain `pos` is lower than the array length.
*/
function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) {
assembly {
res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) 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/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual 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 default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual 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 `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` 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 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
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 `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` 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.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` 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.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// 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);
}pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}// 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/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// 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) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"FeeSetupError","type":"error"},{"inputs":[{"internalType":"uint256","name":"feeOnBuy","type":"uint256"},{"internalType":"uint256","name":"feeOnSell","type":"uint256"},{"internalType":"uint256","name":"feeOnTransfer","type":"uint256"}],"name":"FeeTooHigh","type":"error"},{"inputs":[{"internalType":"address","name":"invalidAddress","type":"address"}],"name":"InvalidAddress","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"sender","type":"address"}],"name":"NotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"TradingAlreadyEnabled","type":"error"},{"inputs":[],"name":"TradingNotEnabled","type":"error"},{"inputs":[{"internalType":"address","name":"feeReceiver","type":"address"}],"name":"ZeroAddress","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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludedFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludedFromMaxWalletLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeReceiver","type":"address"}],"name":"FeeReceiverChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxWalletAmount","type":"uint256"}],"name":"MaxWalletLimitAmountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"maxWalletLimit","type":"bool"}],"name":"MaxWalletLimitStateChanged","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":false,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"descriptionHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"ProposalCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"}],"name":"ProposalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[],"name":"TradingEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"bool","name":"voteFor","type":"bool"},{"indexed":false,"internalType":"uint256","name":"votePower","type":"uint256"}],"name":"Voted","type":"event"},{"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":"value","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":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"changeFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"descriptionHash","type":"bytes32"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"createProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"exclude","type":"bool"}],"name":"excludeFromMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeOnTransfer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"hasVoted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromMaxWalletLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFeeSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletLimitEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposals","outputs":[{"internalType":"bytes32","name":"descriptionHash","type":"bytes32"},{"internalType":"uint256","name":"voteCountFor","type":"uint256"},{"internalType":"uint256","name":"voteCountAgainst","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"executed","type":"bool"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"recoverStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"}],"name":"setEnableMaxWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapTokensAtAmount","type":"uint256"},{"internalType":"uint256","name":"_maxFeeSwap","type":"uint256"},{"internalType":"bool","name":"_feeSwapEnabled","type":"bool"}],"name":"setFeeSwapSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletAmount","type":"uint256"}],"name":"setMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"submitSnapshotResults","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"},{"internalType":"bool","name":"voteFor","type":"bool"}],"name":"vote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561000f575f80fd5b50336040518060400160405280600781526020016629bcb731b7b4b760c91b81525060405180604001604052806003815260200162534e4360e81b815250816003908161005c9190610882565b5060046100698282610882565b5050506001600160a01b03811661009a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100a381610523565b5060016006555f80466038036100e557507310ed43c718714eb63d5aa57b78b54704e256024e905073407993575c91ce7643a4d4ccacc9a98c36ee1bbe610169565b4660610361011f575073d99d1c33f9fc3444f8101754abc46c52416550d19050735e5b9be5fd939c578abe5800a90c566eeeba44a5610169565b466001148061012e5750466005145b156101655750737a250d5630b4cf539739df2c5dacb4c659f2488d90507371b5759d73262fbb223956913ecf4ecc51057641610169565b5f80fd5b61018673eb6527db45a9407515d2e29899db771e6d7d2278610574565b600d80546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa1580156101dd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610201919061093c565b6001600160a01b031663c9c6539630600d5f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610260573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610284919061093c565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156102ce573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102f2919061093c565b600e80546001600160a01b0319166001600160a01b03928316179055600d5461031f913091165f196105b1565b6001601081905560118190555f6012819055601380546001600160a01b03191673b685e32702d7c3d5c3c03b81224b8f121e5514db179055600f9061036c6005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff19968716179055600f9093527f99629f56119585bf27511b6b7d295dffb54757453fcc3dabcf51d92028301f1080548516600190811790915530845282842080548616821790559085168352908220805484168217905560188054909316811790925560179061040a6005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff1996871617905530815260179093528183208054851660019081179091557f43fedf50e12e5c047fbe3576d03ab50250348e9a6030f531ab6d4ce10f5b0303805486168217905560135482168452828420805486168217905590851683529082208054909316179091556104a2601290565b6104ad90600a610a62565b6104ba906218b071610a70565b90506104c86103e882610a87565b6015556104d761138882610a87565b6014556103e86104e882600a610a70565b6104f29190610a87565b6019556016805460ff1916905561051b5f6105156005546001600160a01b031690565b836105c3565b505050610ab9565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61057c6106e9565b6001600160a01b0381166105a557604051631e4fbdf760e01b81525f6004820152602401610091565b6105ae81610523565b50565b6105be8383836001610718565b505050565b6001600160a01b0383166105ed578060025f8282546105e29190610aa6565b9091555061065d9050565b6001600160a01b0383165f908152602081905260409020548181101561063f5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610091565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661067957600280548290039055610697565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106dc91815260200190565b60405180910390a3505050565b6005546001600160a01b031633146107165760405163118cdaa760e01b8152336004820152602401610091565b565b6001600160a01b0384166107415760405163e602df0560e01b81525f6004820152602401610091565b6001600160a01b03831661076a57604051634a1406b160e11b81525f6004820152602401610091565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156107e557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516107dc91815260200190565b60405180910390a35b50505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061081357607f821691505b60208210810361083157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156105be57805f5260205f20601f840160051c8101602085101561085c5750805b601f840160051c820191505b8181101561087b575f8155600101610868565b5050505050565b81516001600160401b0381111561089b5761089b6107eb565b6108af816108a984546107ff565b84610837565b6020601f8211600181146108e1575f83156108ca5750848201515b5f19600385901b1c1916600184901b17845561087b565b5f84815260208120601f198516915b8281101561091057878501518255602094850194600190920191016108f0565b508482101561092d57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f6020828403121561094c575f80fd5b81516001600160a01b0381168114610962575f80fd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156109b85780850481111561099c5761099c610969565b60018416156109aa57908102905b60019390931c928002610981565b935093915050565b5f826109ce57506001610a5c565b816109da57505f610a5c565b81600181146109f057600281146109fa57610a16565b6001915050610a5c565b60ff841115610a0b57610a0b610969565b50506001821b610a5c565b5060208310610133831016604e8410600b8410161715610a39575081810a610a5c565b610a455f19848461097d565b805f1904821115610a5857610a58610969565b0290505b92915050565b5f61096260ff8416836109c0565b8082028115828204841417610a5c57610a5c610969565b5f82610aa157634e487b7160e01b5f52601260045260245ffd5b500490565b80820180821115610a5c57610a5c610969565b61256e80610ac65f395ff3fe608060405260043610610241575f3560e01c806370a0823111610134578063aa4bde28116100b3578063c5627e0911610078578063c5627e09146106e6578063c9d27afe14610705578063d2fcc00114610724578063dd62ed3e14610743578063e2f4560514610787578063f2fde38b1461079c575f80fd5b8063aa4bde281461065f578063b3f0067414610674578063bb8c3ee014610693578063c0246668146106a8578063c32946f1146106c7575f80fd5b806395d89b41116100f957806395d89b41146105b7578063981b24d0146105cb5780639a02b3a7146105ea578063a8a69b9d14610609578063a9059cbb14610640575f80fd5b806370a082311461051f578063715018a6146105535780637c08b964146105675780638a8c523c146105865780638da5cb5b1461059a575f80fd5b80632a6c7dba116101c05780634ada218b116101855780634ada218b146104765780634be55d1f146104955780634ee2cd7e146104b45780634fbee193146104d357806365048d081461050a575f80fd5b80632a6c7dba146103cf5780632e3f418c146103ee578063313ce56714610403578063438596321461041e57806349bd5a5e14610457575f80fd5b80631694505e116102065780631694505e1461032b57806318160ddd1461036257806321a9d82a1461037657806323b872dd1461038f57806327a14fc2146103ae575f80fd5b8063013cf08b1461024c57806304866b801461029f57806306fdde03146102c8578063095ea7b3146102e95780630fa1eeab14610308575f80fd5b3661024857005b5f80fd5b348015610257575f80fd5b5061026b6102663660046120c4565b6107bb565b6040805196875260208701959095529385019290925260608401521515608083015260a082015260c0015b60405180910390f35b3480156102aa575f80fd5b506016546102b89060ff1681565b6040519015158152602001610296565b3480156102d3575f80fd5b506102dc610805565b60405161029691906120db565b3480156102f4575f80fd5b506102b8610303366004612124565b610895565b348015610313575f80fd5b5061031d60125481565b604051908152602001610296565b348015610336575f80fd5b50600d5461034a906001600160a01b031681565b6040516001600160a01b039091168152602001610296565b34801561036d575f80fd5b5060025461031d565b348015610381575f80fd5b506018546102b89060ff1681565b34801561039a575f80fd5b506102b86103a936600461214e565b6108ae565b3480156103b9575f80fd5b506103cd6103c83660046120c4565b6108d1565b005b3480156103da575f80fd5b506103cd6103e9366004612199565b6109ba565b3480156103f9575f80fd5b5061031d60155481565b34801561040e575f80fd5b5060405160128152602001610296565b348015610429575f80fd5b506102b86104383660046121b4565b600c60209081525f928352604080842090915290825290205460ff1681565b348015610462575f80fd5b50600e5461034a906001600160a01b031681565b348015610481575f80fd5b506016546102b89062010000900460ff1681565b3480156104a0575f80fd5b506103cd6104af3660046121e2565b610a77565b3480156104bf575f80fd5b5061031d6104ce366004612124565b610bfa565b3480156104de575f80fd5b506102b86104ed3660046121e2565b6001600160a01b03165f908152600f602052604090205460ff1690565b348015610515575f80fd5b5061031d60115481565b34801561052a575f80fd5b5061031d6105393660046121e2565b6001600160a01b03165f9081526020819052604090205490565b34801561055e575f80fd5b506103cd610c51565b348015610572575f80fd5b506103cd6105813660046121e2565b610c64565b348015610591575f80fd5b506103cd610cec565b3480156105a5575f80fd5b506005546001600160a01b031661034a565b3480156105c2575f80fd5b506102dc610d59565b3480156105d6575f80fd5b5061031d6105e53660046120c4565b610d68565b3480156105f5575f80fd5b506103cd6106043660046121fd565b610d91565b348015610614575f80fd5b506102b86106233660046121e2565b6001600160a01b03165f9081526017602052604090205460ff1690565b34801561064b575f80fd5b506102b861065a366004612124565b610e03565b34801561066a575f80fd5b5061031d60195481565b34801561067f575f80fd5b5060135461034a906001600160a01b031681565b34801561069e575f80fd5b5061031d60105481565b3480156106b3575f80fd5b506103cd6106c2366004612233565b610e10565b3480156106d2575f80fd5b506103cd6106e136600461225f565b610e77565b3480156106f1575f80fd5b506103cd6107003660046120c4565b611023565b348015610710575f80fd5b506103cd61071f36600461227f565b6111e2565b34801561072f575f80fd5b506103cd61073e366004612233565b61141b565b34801561074e575f80fd5b5061031d61075d3660046122a2565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610792575f80fd5b5061031d60145481565b3480156107a7575f80fd5b506103cd6107b63660046121e2565b61154d565b600b81815481106107ca575f80fd5b5f9182526020909120600690910201805460018201546002830154600384015460048501546005909501549395509193909260ff9091169086565b606060038054610814906122ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610840906122ce565b801561088b5780601f106108625761010080835404028352916020019161088b565b820191905f5260205f20905b81548152906001019060200180831161086e57829003601f168201915b5050505050905090565b5f336108a281858561158a565b60019150505b92915050565b5f336108bb85828561159c565b6108c6858585611611565b506001949350505050565b6108d961166e565b60646108e76012600a6123fd565b6002546108f4919061240b565b6108fe919061240b565b8110156109685760405162461bcd60e51b815260206004820152602d60248201527f4d61782077616c6c65742070657263656e746167652063616e6e6f742062652060448201526c6c6f776572207468616e20312560981b60648201526084015b60405180910390fd5b6109746012600a6123fd565b61097e908261242a565b60198190556040519081527f21bc0ea3406acb92d4449ab33befb4ae82f873a22f3b6cf0e466b2710beb5942906020015b60405180910390a150565b6109c261166e565b60185460ff16151581151503610a305760405162461bcd60e51b815260206004820152602d60248201527f4d61782077616c6c6574206c696d697420697320616c7265616479207365742060448201526c746f207468617420737461746560981b606482015260840161095f565b6018805460ff191682151590811790915560405160ff909116151581527f670f884265aba2d05e7c26efbc42f8365effc4cb3fcfcefddba0c0b71a6231f1906020016109af565b6001600160a01b038116301480610aaf57506005546001600160a01b03163314801590610aaf57506013546001600160a01b03163314155b15610ade57604051630272d02960e61b81526001600160a01b038216600482015233602482015260440161095f565b6001600160a01b038116610b195760405133904780156108fc02915f818181858888f19350505050158015610b15573d5f803e3d5ffd5b5050565b6040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b5f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b839190612441565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303815f875af1158015610bd0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bf49190612458565b50505050565b6001600160a01b0382165f90815260076020526040812081908190610c2090859061169b565b9150915081610c46576001600160a01b0385165f90815260208190526040902054610c48565b805b95945050505050565b610c5961166e565b610c625f61178b565b565b610c6c61166e565b6001600160a01b038116610c9e57604051633202e20d60e21b81526001600160a01b038216600482015260240161095f565b601380546001600160a01b0319166001600160a01b0383169081179091556040519081527f647672599d3468abcfa241a13c9e3d34383caadb5cc80fb67c3cdfcd5f786059906020016109af565b610cf461166e565b60165462010000900460ff1615610d1e57604051636b91f55d60e11b815260040160405180910390fd5b6016805462ff00ff1916620100011790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c7905f90a1565b606060048054610814906122ce565b5f805f610d7684600861169b565b9150915081610d8757600254610d89565b805b949350505050565b610d9961166e565b5f610da66012600a6123fd565b9050610db2818461242a565b601555610dbf818561242a565b6014556016805460ff19168315151790556002546014541180610de55750601454601554105b15610bf4576040516392cb531360e01b815260040160405180910390fd5b5f336108a2818585611611565b610e1861166e565b6001600160a01b0382165f818152600f6020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91015b60405180910390a25050565b610e7f61166e565b5f610e8a8242612473565b90505f610e956117dc565b6040805160c0810182528681525f60208201818152928201818152606083018781526080840183815260a08501878152600b8054600180820183559682905296517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db960069098029788015596517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba87015592517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb86015590517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbc850155517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbd8401805460ff1916911515919091179055517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbe9092019190915590549192507f9e11360c49d21b49588f4e4425c0d0e234aa7206f32c51bd357d570c262ef72391610fff9190612486565b6040805191825260208201879052810184905260600160405180910390a150505050565b61102b61166e565b600b5481106110765760405162461bcd60e51b8152602060048201526017602482015276141c9bdc1bdcd85b08191bd95cc81b9bdd08195e1a5cdd604a1b604482015260640161095f565b5f600b828154811061108a5761108a612499565b905f5260205f2090600602019050806003015442116110eb5760405162461bcd60e51b815260206004820152601b60248201527f566f74696e6720706572696f6420686173206e6f7420656e6465640000000000604482015260640161095f565b600481015460ff16156111405760405162461bcd60e51b815260206004820152601960248201527f50726f706f73616c20616c726561647920657865637574656400000000000000604482015260640161095f565b8060020154816001015411156111a15760048101805460ff191660019081179091556040805184815260208101929092527f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc0391015b60405180910390a15050565b60048101805460ff19169055604080518381525f60208201527f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc039101611195565b6111ea611834565b600b5482106112355760405162461bcd60e51b8152602060048201526017602482015276141c9bdc1bdcd85b08191bd95cc81b9bdd08195e1a5cdd604a1b604482015260640161095f565b5f600b838154811061124957611249612499565b905f5260205f209060060201905080600301544211156112a35760405162461bcd60e51b81526020600482015260156024820152742b37ba34b733903832b934b7b21034b99037bb32b960591b604482015260640161095f565b5f838152600c6020908152604080832033845290915290205460ff16156113055760405162461bcd60e51b8152602060048201526016602482015275165bdd481a185d9948185b1c9958591e481d9bdd195960521b604482015260640161095f565b5f611314338360050154610bfa565b90505f81116113655760405162461bcd60e51b815260206004820152601860248201527f596f752068617665206e6f20766f74696e6720706f7765720000000000000000604482015260640161095f565b82156113895780826001015f82825461137e9190612473565b909155506113a29050565b80826002015f82825461139c9190612473565b90915550505b5f848152600c602090815260408083203380855290835292819020805460ff19166001179055805187815291820192909252841515818301526060810183905290517f7c2de587c00d75474a0c6c6fa96fd3b45dc974cd4e8a75f712bb84c950dce1b5916080908290030190a15050610b156001600655565b61142361166e565b6001600160a01b0382165f9081526017602052604090205481151560ff90911615150361149e5760405162461bcd60e51b8152602060048201526024808201527f4163636f756e7420697320616c72656164792073657420746f207468617420736044820152637461746560e01b606482015260840161095f565b306001600160a01b038316036114f65760405162461bcd60e51b815260206004820152601760248201527f43616e277420736574207468697320616464726573732e000000000000000000604482015260640161095f565b6001600160a01b0382165f81815260176020908152604091829020805460ff191685151590811790915591519182527f1d9a11e204b58ad56c619c61600e42167624659d218f0143f1f64956b0daae6c9101610e6b565b61155561166e565b6001600160a01b03811661157e57604051631e4fbdf760e01b81525f600482015260240161095f565b6115878161178b565b50565b611597838383600161188d565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610bf4578181101561160357604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161095f565b610bf484848484035f61188d565b6001600160a01b03831661163a57604051634b637e8f60e11b81525f600482015260240161095f565b6001600160a01b0382166116635760405163ec442f0560e01b81525f600482015260240161095f565b61159783838361195f565b6005546001600160a01b03163314610c625760405163118cdaa760e01b815233600482015260240161095f565b5f805f84116116e55760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015260640161095f565b6116ed611bfb565b84111561173c5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015260640161095f565b5f6117478486611c0a565b8454909150810361175e575f809250925050611784565b600184600101828154811061177557611775612499565b905f5260205f20015492509250505b9250929050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f6117eb600a80546001019055565b5f6117f4611bfb565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161182791815260200190565b60405180910390a1919050565b6002600654036118865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161095f565b6002600655565b6001600160a01b0384166118b65760405163e602df0560e01b81525f600482015260240161095f565b6001600160a01b0383166118df57604051634a1406b160e11b81525f600482015260240161095f565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610bf457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161195191815260200190565b60405180910390a350505050565b6001600160a01b0383165f908152600f602052604081205460ff168061199c57506001600160a01b0383165f908152600f602052604090205460ff165b9050801580156119b5575060165462010000900460ff16155b156119d3576040516312f1f92360e01b815260040160405180910390fd5b6119de848484611cb1565b601654610100900460ff16158015611a045750600e546001600160a01b03858116911614155b8015611a12575060165460ff165b15611a5a57305f908152602081905260409020546014548110801590611a57576016805461ff001916610100179055611a4a82611cf9565b506016805461ff00191690555b50505b5f81158015611a715750601654610100900460ff16155b15611ab957600e546001600160a01b0390811690861603611a955750601054611ab9565b600e546001600160a01b0390811690851603611ab45750601154611ab9565b506012545b8015611af1575f6064611acc838661242a565b611ad6919061240b565b9050611ae28185612486565b9350611aef863083611eb5565b505b60185460ff1615611be9576001600160a01b0385165f9081526017602052604090205460ff16158015611b3c57506001600160a01b0384165f9081526017602052604090205460ff16155b8015611b565750600e546001600160a01b03858116911614155b15611be9576001600160a01b0384165f90815260208190526040902054601954611b808583612473565b1115611be75760405162461bcd60e51b815260206004820152603060248201527f4d617857616c6c65743a20526563697069656e7420657863656564732074686560448201526f081b585e15d85b1b195d105b5bdd5b9d60821b606482015260840161095f565b505b611bf4858585611eb5565b5050505050565b5f611c05600a5490565b905090565b81545f908190808203611c21575f925050506108a8565b80821015611c66575f611c348383611fdb565b5f8781526020902090915085908201541115611c5257809150611c60565b611c5d816001612473565b92505b50611c21565b5f82118015611c90575083611c8d86611c80600186612486565b5f91825260209091200190565b54145b15611ca957611ca0600183612486565b925050506108a8565b5090506108a8565b6001600160a01b038316611cd057611cc882611ffc565b61159761202d565b6001600160a01b038216611ce757611cc883611ffc565b611cf083611ffc565b61159782611ffc565b5f601554821115611d0a5760155491505b60408051600280825260608201835247925f92919060208301908036833701905050905030815f81518110611d4157611d41612499565b6001600160a01b03928316602091820292909201810191909152600d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611d98573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611dbc91906124ad565b81600181518110611dcf57611dcf612499565b6001600160a01b039283166020918202929092010152600d5460405163791ac94760e01b815291169063791ac94790611e149087905f908690309042906004016124c8565b5f604051808303815f87803b158015611e2b575f80fd5b505af1925050508015611e3c575060015b611e4957505f9392505050565b5f611e548347612486565b6013546040519192505f916001600160a01b039091169083908381818185875af1925050503d805f8114611ea3576040519150601f19603f3d011682016040523d82523d5f602084013e611ea8565b606091505b5090979650505050505050565b6001600160a01b038316611edf578060025f828254611ed49190612473565b90915550611f4f9050565b6001600160a01b0383165f9081526020819052604090205481811015611f315760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161095f565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216611f6b57600280548290039055611f89565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611fce91815260200190565b60405180910390a3505050565b5f611fe9600284841861240b565b611ff590848416612473565b9392505050565b6001600160a01b0381165f9081526007602090815260408083209183905290912054611587919061203b565b61203b565b610c62600861202860025490565b5f612044611bfb565b90508061205084612083565b1015611597578254600180820185555f858152602080822090930193909355938401805494850181558252902090910155565b80545f90810361209457505f919050565b815482906120a490600190612486565b815481106120b4576120b4612499565b905f5260205f2001549050919050565b5f602082840312156120d4575f80fd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114611587575f80fd5b5f8060408385031215612135575f80fd5b823561214081612110565b946020939093013593505050565b5f805f60608486031215612160575f80fd5b833561216b81612110565b9250602084013561217b81612110565b929592945050506040919091013590565b8015158114611587575f80fd5b5f602082840312156121a9575f80fd5b8135611ff58161218c565b5f80604083850312156121c5575f80fd5b8235915060208301356121d781612110565b809150509250929050565b5f602082840312156121f2575f80fd5b8135611ff581612110565b5f805f6060848603121561220f575f80fd5b833592506020840135915060408401356122288161218c565b809150509250925092565b5f8060408385031215612244575f80fd5b823561224f81612110565b915060208301356121d78161218c565b5f8060408385031215612270575f80fd5b50508035926020909101359150565b5f8060408385031215612290575f80fd5b8235915060208301356121d78161218c565b5f80604083850312156122b3575f80fd5b82356122be81612110565b915060208301356121d781612110565b600181811c908216806122e257607f821691505b60208210810361230057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156123555780850481111561233957612339612306565b600184161561234757908102905b60019390931c92800261231e565b935093915050565b5f8261236b575060016108a8565b8161237757505f6108a8565b816001811461238d5760028114612397576123b3565b60019150506108a8565b60ff8411156123a8576123a8612306565b50506001821b6108a8565b5060208310610133831016604e8410600b84101617156123d6575081810a6108a8565b6123e25f19848461231a565b805f19048211156123f5576123f5612306565b029392505050565b5f611ff560ff84168361235d565b5f8261242557634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176108a8576108a8612306565b5f60208284031215612451575f80fd5b5051919050565b5f60208284031215612468575f80fd5b8151611ff58161218c565b808201808211156108a8576108a8612306565b818103818111156108a8576108a8612306565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156124bd575f80fd5b8151611ff581612110565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b818110156125185783516001600160a01b03168352602093840193909201916001016124f1565b50506001600160a01b03959095166060840152505060800152939250505056fea26469706673582212203e4391b8a6df8991891c06b1f41fa81e45671e50a2558af6559056fc80e3e5e664736f6c634300081a0033
Deployed Bytecode
0x608060405260043610610241575f3560e01c806370a0823111610134578063aa4bde28116100b3578063c5627e0911610078578063c5627e09146106e6578063c9d27afe14610705578063d2fcc00114610724578063dd62ed3e14610743578063e2f4560514610787578063f2fde38b1461079c575f80fd5b8063aa4bde281461065f578063b3f0067414610674578063bb8c3ee014610693578063c0246668146106a8578063c32946f1146106c7575f80fd5b806395d89b41116100f957806395d89b41146105b7578063981b24d0146105cb5780639a02b3a7146105ea578063a8a69b9d14610609578063a9059cbb14610640575f80fd5b806370a082311461051f578063715018a6146105535780637c08b964146105675780638a8c523c146105865780638da5cb5b1461059a575f80fd5b80632a6c7dba116101c05780634ada218b116101855780634ada218b146104765780634be55d1f146104955780634ee2cd7e146104b45780634fbee193146104d357806365048d081461050a575f80fd5b80632a6c7dba146103cf5780632e3f418c146103ee578063313ce56714610403578063438596321461041e57806349bd5a5e14610457575f80fd5b80631694505e116102065780631694505e1461032b57806318160ddd1461036257806321a9d82a1461037657806323b872dd1461038f57806327a14fc2146103ae575f80fd5b8063013cf08b1461024c57806304866b801461029f57806306fdde03146102c8578063095ea7b3146102e95780630fa1eeab14610308575f80fd5b3661024857005b5f80fd5b348015610257575f80fd5b5061026b6102663660046120c4565b6107bb565b6040805196875260208701959095529385019290925260608401521515608083015260a082015260c0015b60405180910390f35b3480156102aa575f80fd5b506016546102b89060ff1681565b6040519015158152602001610296565b3480156102d3575f80fd5b506102dc610805565b60405161029691906120db565b3480156102f4575f80fd5b506102b8610303366004612124565b610895565b348015610313575f80fd5b5061031d60125481565b604051908152602001610296565b348015610336575f80fd5b50600d5461034a906001600160a01b031681565b6040516001600160a01b039091168152602001610296565b34801561036d575f80fd5b5060025461031d565b348015610381575f80fd5b506018546102b89060ff1681565b34801561039a575f80fd5b506102b86103a936600461214e565b6108ae565b3480156103b9575f80fd5b506103cd6103c83660046120c4565b6108d1565b005b3480156103da575f80fd5b506103cd6103e9366004612199565b6109ba565b3480156103f9575f80fd5b5061031d60155481565b34801561040e575f80fd5b5060405160128152602001610296565b348015610429575f80fd5b506102b86104383660046121b4565b600c60209081525f928352604080842090915290825290205460ff1681565b348015610462575f80fd5b50600e5461034a906001600160a01b031681565b348015610481575f80fd5b506016546102b89062010000900460ff1681565b3480156104a0575f80fd5b506103cd6104af3660046121e2565b610a77565b3480156104bf575f80fd5b5061031d6104ce366004612124565b610bfa565b3480156104de575f80fd5b506102b86104ed3660046121e2565b6001600160a01b03165f908152600f602052604090205460ff1690565b348015610515575f80fd5b5061031d60115481565b34801561052a575f80fd5b5061031d6105393660046121e2565b6001600160a01b03165f9081526020819052604090205490565b34801561055e575f80fd5b506103cd610c51565b348015610572575f80fd5b506103cd6105813660046121e2565b610c64565b348015610591575f80fd5b506103cd610cec565b3480156105a5575f80fd5b506005546001600160a01b031661034a565b3480156105c2575f80fd5b506102dc610d59565b3480156105d6575f80fd5b5061031d6105e53660046120c4565b610d68565b3480156105f5575f80fd5b506103cd6106043660046121fd565b610d91565b348015610614575f80fd5b506102b86106233660046121e2565b6001600160a01b03165f9081526017602052604090205460ff1690565b34801561064b575f80fd5b506102b861065a366004612124565b610e03565b34801561066a575f80fd5b5061031d60195481565b34801561067f575f80fd5b5060135461034a906001600160a01b031681565b34801561069e575f80fd5b5061031d60105481565b3480156106b3575f80fd5b506103cd6106c2366004612233565b610e10565b3480156106d2575f80fd5b506103cd6106e136600461225f565b610e77565b3480156106f1575f80fd5b506103cd6107003660046120c4565b611023565b348015610710575f80fd5b506103cd61071f36600461227f565b6111e2565b34801561072f575f80fd5b506103cd61073e366004612233565b61141b565b34801561074e575f80fd5b5061031d61075d3660046122a2565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610792575f80fd5b5061031d60145481565b3480156107a7575f80fd5b506103cd6107b63660046121e2565b61154d565b600b81815481106107ca575f80fd5b5f9182526020909120600690910201805460018201546002830154600384015460048501546005909501549395509193909260ff9091169086565b606060038054610814906122ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610840906122ce565b801561088b5780601f106108625761010080835404028352916020019161088b565b820191905f5260205f20905b81548152906001019060200180831161086e57829003601f168201915b5050505050905090565b5f336108a281858561158a565b60019150505b92915050565b5f336108bb85828561159c565b6108c6858585611611565b506001949350505050565b6108d961166e565b60646108e76012600a6123fd565b6002546108f4919061240b565b6108fe919061240b565b8110156109685760405162461bcd60e51b815260206004820152602d60248201527f4d61782077616c6c65742070657263656e746167652063616e6e6f742062652060448201526c6c6f776572207468616e20312560981b60648201526084015b60405180910390fd5b6109746012600a6123fd565b61097e908261242a565b60198190556040519081527f21bc0ea3406acb92d4449ab33befb4ae82f873a22f3b6cf0e466b2710beb5942906020015b60405180910390a150565b6109c261166e565b60185460ff16151581151503610a305760405162461bcd60e51b815260206004820152602d60248201527f4d61782077616c6c6574206c696d697420697320616c7265616479207365742060448201526c746f207468617420737461746560981b606482015260840161095f565b6018805460ff191682151590811790915560405160ff909116151581527f670f884265aba2d05e7c26efbc42f8365effc4cb3fcfcefddba0c0b71a6231f1906020016109af565b6001600160a01b038116301480610aaf57506005546001600160a01b03163314801590610aaf57506013546001600160a01b03163314155b15610ade57604051630272d02960e61b81526001600160a01b038216600482015233602482015260440161095f565b6001600160a01b038116610b195760405133904780156108fc02915f818181858888f19350505050158015610b15573d5f803e3d5ffd5b5050565b6040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b5f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b839190612441565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303815f875af1158015610bd0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bf49190612458565b50505050565b6001600160a01b0382165f90815260076020526040812081908190610c2090859061169b565b9150915081610c46576001600160a01b0385165f90815260208190526040902054610c48565b805b95945050505050565b610c5961166e565b610c625f61178b565b565b610c6c61166e565b6001600160a01b038116610c9e57604051633202e20d60e21b81526001600160a01b038216600482015260240161095f565b601380546001600160a01b0319166001600160a01b0383169081179091556040519081527f647672599d3468abcfa241a13c9e3d34383caadb5cc80fb67c3cdfcd5f786059906020016109af565b610cf461166e565b60165462010000900460ff1615610d1e57604051636b91f55d60e11b815260040160405180910390fd5b6016805462ff00ff1916620100011790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c7905f90a1565b606060048054610814906122ce565b5f805f610d7684600861169b565b9150915081610d8757600254610d89565b805b949350505050565b610d9961166e565b5f610da66012600a6123fd565b9050610db2818461242a565b601555610dbf818561242a565b6014556016805460ff19168315151790556002546014541180610de55750601454601554105b15610bf4576040516392cb531360e01b815260040160405180910390fd5b5f336108a2818585611611565b610e1861166e565b6001600160a01b0382165f818152600f6020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb91015b60405180910390a25050565b610e7f61166e565b5f610e8a8242612473565b90505f610e956117dc565b6040805160c0810182528681525f60208201818152928201818152606083018781526080840183815260a08501878152600b8054600180820183559682905296517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db960069098029788015596517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba87015592517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb86015590517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbc850155517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbd8401805460ff1916911515919091179055517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbe9092019190915590549192507f9e11360c49d21b49588f4e4425c0d0e234aa7206f32c51bd357d570c262ef72391610fff9190612486565b6040805191825260208201879052810184905260600160405180910390a150505050565b61102b61166e565b600b5481106110765760405162461bcd60e51b8152602060048201526017602482015276141c9bdc1bdcd85b08191bd95cc81b9bdd08195e1a5cdd604a1b604482015260640161095f565b5f600b828154811061108a5761108a612499565b905f5260205f2090600602019050806003015442116110eb5760405162461bcd60e51b815260206004820152601b60248201527f566f74696e6720706572696f6420686173206e6f7420656e6465640000000000604482015260640161095f565b600481015460ff16156111405760405162461bcd60e51b815260206004820152601960248201527f50726f706f73616c20616c726561647920657865637574656400000000000000604482015260640161095f565b8060020154816001015411156111a15760048101805460ff191660019081179091556040805184815260208101929092527f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc0391015b60405180910390a15050565b60048101805460ff19169055604080518381525f60208201527f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc039101611195565b6111ea611834565b600b5482106112355760405162461bcd60e51b8152602060048201526017602482015276141c9bdc1bdcd85b08191bd95cc81b9bdd08195e1a5cdd604a1b604482015260640161095f565b5f600b838154811061124957611249612499565b905f5260205f209060060201905080600301544211156112a35760405162461bcd60e51b81526020600482015260156024820152742b37ba34b733903832b934b7b21034b99037bb32b960591b604482015260640161095f565b5f838152600c6020908152604080832033845290915290205460ff16156113055760405162461bcd60e51b8152602060048201526016602482015275165bdd481a185d9948185b1c9958591e481d9bdd195960521b604482015260640161095f565b5f611314338360050154610bfa565b90505f81116113655760405162461bcd60e51b815260206004820152601860248201527f596f752068617665206e6f20766f74696e6720706f7765720000000000000000604482015260640161095f565b82156113895780826001015f82825461137e9190612473565b909155506113a29050565b80826002015f82825461139c9190612473565b90915550505b5f848152600c602090815260408083203380855290835292819020805460ff19166001179055805187815291820192909252841515818301526060810183905290517f7c2de587c00d75474a0c6c6fa96fd3b45dc974cd4e8a75f712bb84c950dce1b5916080908290030190a15050610b156001600655565b61142361166e565b6001600160a01b0382165f9081526017602052604090205481151560ff90911615150361149e5760405162461bcd60e51b8152602060048201526024808201527f4163636f756e7420697320616c72656164792073657420746f207468617420736044820152637461746560e01b606482015260840161095f565b306001600160a01b038316036114f65760405162461bcd60e51b815260206004820152601760248201527f43616e277420736574207468697320616464726573732e000000000000000000604482015260640161095f565b6001600160a01b0382165f81815260176020908152604091829020805460ff191685151590811790915591519182527f1d9a11e204b58ad56c619c61600e42167624659d218f0143f1f64956b0daae6c9101610e6b565b61155561166e565b6001600160a01b03811661157e57604051631e4fbdf760e01b81525f600482015260240161095f565b6115878161178b565b50565b611597838383600161188d565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610bf4578181101561160357604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161095f565b610bf484848484035f61188d565b6001600160a01b03831661163a57604051634b637e8f60e11b81525f600482015260240161095f565b6001600160a01b0382166116635760405163ec442f0560e01b81525f600482015260240161095f565b61159783838361195f565b6005546001600160a01b03163314610c625760405163118cdaa760e01b815233600482015260240161095f565b5f805f84116116e55760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015260640161095f565b6116ed611bfb565b84111561173c5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015260640161095f565b5f6117478486611c0a565b8454909150810361175e575f809250925050611784565b600184600101828154811061177557611775612499565b905f5260205f20015492509250505b9250929050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f6117eb600a80546001019055565b5f6117f4611bfb565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161182791815260200190565b60405180910390a1919050565b6002600654036118865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161095f565b6002600655565b6001600160a01b0384166118b65760405163e602df0560e01b81525f600482015260240161095f565b6001600160a01b0383166118df57604051634a1406b160e11b81525f600482015260240161095f565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610bf457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161195191815260200190565b60405180910390a350505050565b6001600160a01b0383165f908152600f602052604081205460ff168061199c57506001600160a01b0383165f908152600f602052604090205460ff165b9050801580156119b5575060165462010000900460ff16155b156119d3576040516312f1f92360e01b815260040160405180910390fd5b6119de848484611cb1565b601654610100900460ff16158015611a045750600e546001600160a01b03858116911614155b8015611a12575060165460ff165b15611a5a57305f908152602081905260409020546014548110801590611a57576016805461ff001916610100179055611a4a82611cf9565b506016805461ff00191690555b50505b5f81158015611a715750601654610100900460ff16155b15611ab957600e546001600160a01b0390811690861603611a955750601054611ab9565b600e546001600160a01b0390811690851603611ab45750601154611ab9565b506012545b8015611af1575f6064611acc838661242a565b611ad6919061240b565b9050611ae28185612486565b9350611aef863083611eb5565b505b60185460ff1615611be9576001600160a01b0385165f9081526017602052604090205460ff16158015611b3c57506001600160a01b0384165f9081526017602052604090205460ff16155b8015611b565750600e546001600160a01b03858116911614155b15611be9576001600160a01b0384165f90815260208190526040902054601954611b808583612473565b1115611be75760405162461bcd60e51b815260206004820152603060248201527f4d617857616c6c65743a20526563697069656e7420657863656564732074686560448201526f081b585e15d85b1b195d105b5bdd5b9d60821b606482015260840161095f565b505b611bf4858585611eb5565b5050505050565b5f611c05600a5490565b905090565b81545f908190808203611c21575f925050506108a8565b80821015611c66575f611c348383611fdb565b5f8781526020902090915085908201541115611c5257809150611c60565b611c5d816001612473565b92505b50611c21565b5f82118015611c90575083611c8d86611c80600186612486565b5f91825260209091200190565b54145b15611ca957611ca0600183612486565b925050506108a8565b5090506108a8565b6001600160a01b038316611cd057611cc882611ffc565b61159761202d565b6001600160a01b038216611ce757611cc883611ffc565b611cf083611ffc565b61159782611ffc565b5f601554821115611d0a5760155491505b60408051600280825260608201835247925f92919060208301908036833701905050905030815f81518110611d4157611d41612499565b6001600160a01b03928316602091820292909201810191909152600d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611d98573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611dbc91906124ad565b81600181518110611dcf57611dcf612499565b6001600160a01b039283166020918202929092010152600d5460405163791ac94760e01b815291169063791ac94790611e149087905f908690309042906004016124c8565b5f604051808303815f87803b158015611e2b575f80fd5b505af1925050508015611e3c575060015b611e4957505f9392505050565b5f611e548347612486565b6013546040519192505f916001600160a01b039091169083908381818185875af1925050503d805f8114611ea3576040519150601f19603f3d011682016040523d82523d5f602084013e611ea8565b606091505b5090979650505050505050565b6001600160a01b038316611edf578060025f828254611ed49190612473565b90915550611f4f9050565b6001600160a01b0383165f9081526020819052604090205481811015611f315760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161095f565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216611f6b57600280548290039055611f89565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611fce91815260200190565b60405180910390a3505050565b5f611fe9600284841861240b565b611ff590848416612473565b9392505050565b6001600160a01b0381165f9081526007602090815260408083209183905290912054611587919061203b565b61203b565b610c62600861202860025490565b5f612044611bfb565b90508061205084612083565b1015611597578254600180820185555f858152602080822090930193909355938401805494850181558252902090910155565b80545f90810361209457505f919050565b815482906120a490600190612486565b815481106120b4576120b4612499565b905f5260205f2001549050919050565b5f602082840312156120d4575f80fd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114611587575f80fd5b5f8060408385031215612135575f80fd5b823561214081612110565b946020939093013593505050565b5f805f60608486031215612160575f80fd5b833561216b81612110565b9250602084013561217b81612110565b929592945050506040919091013590565b8015158114611587575f80fd5b5f602082840312156121a9575f80fd5b8135611ff58161218c565b5f80604083850312156121c5575f80fd5b8235915060208301356121d781612110565b809150509250929050565b5f602082840312156121f2575f80fd5b8135611ff581612110565b5f805f6060848603121561220f575f80fd5b833592506020840135915060408401356122288161218c565b809150509250925092565b5f8060408385031215612244575f80fd5b823561224f81612110565b915060208301356121d78161218c565b5f8060408385031215612270575f80fd5b50508035926020909101359150565b5f8060408385031215612290575f80fd5b8235915060208301356121d78161218c565b5f80604083850312156122b3575f80fd5b82356122be81612110565b915060208301356121d781612110565b600181811c908216806122e257607f821691505b60208210810361230057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156123555780850481111561233957612339612306565b600184161561234757908102905b60019390931c92800261231e565b935093915050565b5f8261236b575060016108a8565b8161237757505f6108a8565b816001811461238d5760028114612397576123b3565b60019150506108a8565b60ff8411156123a8576123a8612306565b50506001821b6108a8565b5060208310610133831016604e8410600b84101617156123d6575081810a6108a8565b6123e25f19848461231a565b805f19048211156123f5576123f5612306565b029392505050565b5f611ff560ff84168361235d565b5f8261242557634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176108a8576108a8612306565b5f60208284031215612451575f80fd5b5051919050565b5f60208284031215612468575f80fd5b8151611ff58161218c565b808201808211156108a8576108a8612306565b818103818111156108a8576108a8612306565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156124bd575f80fd5b8151611ff581612110565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b818110156125185783516001600160a01b03168352602093840193909201916001016124f1565b50506001600160a01b03959095166060840152505060800152939250505056fea26469706673582212203e4391b8a6df8991891c06b1f41fa81e45671e50a2558af6559056fc80e3e5e664736f6c634300081a0033
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.
Add Token to MetaMask (Web3)