ERC-20
Overview
Max Total Supply
110,540 HUNT
Holders
40
Total Transfers
-
Market
Price
$0.00 @ 0.000000 POL
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
HUNT
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /* ----------------------- https://app.airdrop-hunter.site/ ----------------------- #### ### ########## ######### ########## ######## ########## #### ### ### #### ### ##### ### #### ##### #### ## ### ###### ### ### ### ### ### ### ### ### ### ## ## ### ### ### ### #### ### ## ### #### ### ## ## #### ### ### ### ########## ### ## ########## ### ## ######### ########## ### ### #### ### ## ### #### ### ### ## ### ### ### ### ### ### ### ### ### ### ### ## ## ### ### ### ### ########## ### ### ########## ## # ###### ### ### ######### ### ### ####### ## ### ### ## ### ### ### ########### ########## ########## ### ### ## ### #### ### ### ## ### #### ### ### ## ### ##### ### ### ## ### ### ########### ## ### ## ### ### ### ######### ### #### ########### ## ### ## ### ### ### ########## ########## ### ### ## ### ## ###### ### ## ### #### ### ### ### ### ## ##### ### ## ### ### ### ### ########## ## #### ### ########## ### ### ### ### ####### ## ### ### ########## ### ### */ import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Snapshot.sol"; import "./inc/Admin.sol"; contract HUNT is ERC20, ERC20Snapshot, admin { constructor() ERC20("AIRHUNTER", "HUNT") { uint256 initialSupply = 100 * 10**3 * 10**decimals(); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); Admins.push(_msgSender()); AdminAdd(0x80C01D52e55e5e870C43652891fb44D1810b28A2); AdminAdd(0x208b02f98d36983982eA9c0cdC6B3208e0f198A3); mint(0xdB3aA70f9f4D83c6C49C01D18866227E5fd32a7c,initialSupply * 30 / 100); mint(0xF00124EE6df2656509d29de6958EEc07Ca017f34,initialSupply * 30 / 100); mint(0xb6eD2791C249b2373ba9bD48128Ff940e552078d,initialSupply * 30 / 100); mint(0x02e72d16D02ce4868d8e2318B6129A076D6cde08,initialSupply * 10 / 100); } struct snap_struct { uint48 blk; uint48 time; address sender; uint256 totalSupply; uint256 holdersLength; } mapping(uint256 => snap_struct)public snapInfo; uint256 public snapLength; address[] public holders; struct holder_struct { bool set; uint48 time_funder; uint48 time_sweep; uint48 txs; uint48 tx_num_in; uint48 tx_num_out; uint256 value; uint256 balance; uint48[] blks; uint48[] times; uint256[] balances; } mapping(address => holder_struct)public holdersInfo; function decimals() public view virtual override returns (uint8) { return 18; } function burn(uint256 amount)public { _burn(_msgSender(),amount); _holder_transfer(_msgSender(), address(0), amount); } function mint(address addr,uint256 amount)public onlyAdmin { if(addr == address(0))addr = _msgSender(); _mint(addr,amount); _holder_transfer(address(0), addr, amount); snapshot(); } function snapshot() public onlyAdmin returns(uint256 id) { uint256 t = totalSupply(); id = _snapshot(); snapInfo[id].blk = uint48(block.number); snapInfo[id].time = uint48(block.timestamp); snapInfo[id].sender = _msgSender(); snapInfo[id].totalSupply = t; snapInfo[id].holdersLength = holders.length; snapLength = id; } function _beforeTokenTransfer(address from, address to, uint256 amount)internal override(ERC20, ERC20Snapshot) { if(holdersInfo[from].set == false) { holdersInfo[from].set = true; holdersInfo[from].time_funder = uint48(block.timestamp); holders.push(from); } if(holdersInfo[to].set == false) { holdersInfo[to].set = true; holdersInfo[to].time_funder = uint48(block.timestamp); holders.push(to); } super._beforeTokenTransfer(from, to, amount); } function _transfer(address sender, address recipient, uint256 amount)internal override(ERC20) { super._transfer(sender, recipient, amount); _holder_transfer(sender, recipient, amount); } function _holder_transfer(address sender, address recipient, uint256 amount)internal { holdersInfo[sender].txs++; holdersInfo[sender].tx_num_out++; holdersInfo[recipient].tx_num_in++; holdersInfo[sender].blks.push(uint48(block.number)); holdersInfo[recipient].blks.push(uint48(block.number)); holdersInfo[sender].times.push(uint48(block.timestamp)); holdersInfo[recipient].times.push(uint48(block.timestamp)); holdersInfo[sender].value += amount; holdersInfo[recipient].value += amount; uint256 b_sender = balanceOf(sender); uint256 b_recipient = balanceOf(recipient); holdersInfo[sender].balances.push(b_sender); holdersInfo[recipient].balances.push(b_recipient); holdersInfo[sender].balance = b_sender; holdersInfo[recipient].balance = b_recipient; if(b_sender == 0) holdersInfo[sender].time_sweep = uint48(block.timestamp); else holdersInfo[sender].time_sweep = 0; if(b_recipient == 0) holdersInfo[recipient].time_sweep = uint48(block.timestamp); else holdersInfo[recipient].time_sweep = 0; } function balanceList(address addr)public view returns(uint256[]memory balances,uint48[]memory blks,uint48[]memory times) { balances = holdersInfo[addr].balances; blks = holdersInfo[addr].blks; times = holdersInfo[addr].times; } function holdersLength()public view returns(uint256) { return holders.length; } function balanceOfAtById(uint256 holder_id,uint256 snap)public view returns(uint256) { address addr = holders[holder_id]; return balanceOfAt(addr,snap); } function holdersListAt(uint256 snap)public view returns(uint256,address[] memory,uint256[] memory) { address addr; uint256 i; uint256 l = snapInfo[snap].holdersLength; address[] memory out1 = new address[](l); uint256[] memory out2 = new uint256[](l); if(l>0) for(i=1;i<=l;i++) { addr = holders[i]; out1[i-1] = addr; out2[i-1] = balanceOfAt(addr,snap); } return(l,out1,out2); } function snapHolderLen(uint256 snap)public view returns(uint256) { return snapInfo[snap].holdersLength; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Arrays.sol"; import "../../../utils/Counters.sol"; /** * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and * total supply at the time are recorded for later access. * * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be * used to create an efficient ERC20 forking mechanism. * * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id * and the account address. * * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it * return `block.number` will trigger the creation of snapshot at the begining of each new block. When overridding this * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract. * * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient * alternative consider {ERC20Votes}. * * ==== Gas Costs * * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much * smaller since identical balances in subsequent snapshots are stored as a single entry. * * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent * transfers will have normal cost until the next snapshot, and so on. */ abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a // Snapshot struct, but that would impede usage of functions that work on an array. struct Snapshots { uint256[] ids; uint256[] values; } mapping(address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupplySnapshots; // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid. Counters.Counter private _currentSnapshotId; /** * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created. */ event Snapshot(uint256 id); /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. * * [WARNING] * ==== * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking, * you must consider that it can potentially be used by attackers in two ways. * * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs * section above. * * We haven't measured the actual numbers; if this is something you're interested in please reach out to us. * ==== */ function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = _getCurrentSnapshotId(); emit Snapshot(currentId); return currentId; } /** * @dev Get the current snapshotId */ function _getCurrentSnapshotId() internal view virtual returns (uint256) { return _currentSnapshotId.current(); } /** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */ function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]); return snapshotted ? value : balanceOf(account); } /** * @dev Retrieves the total supply at the time `snapshotId` was created. */ function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots); return snapshotted ? value : totalSupply(); } // Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // mint _updateAccountSnapshot(to); _updateTotalSupplySnapshot(); } else if (to == address(0)) { // burn _updateAccountSnapshot(from); _updateTotalSupplySnapshot(); } else { // transfer _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"); // When a valid snapshot is queried, there are three possibilities: // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds // to this id is the current one. // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the // requested id, and its value is the one to return. // c) More snapshots were created after the requested one, and the queried value was later modified. There will be // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is // larger than the requested one. // // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does // exactly this. 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]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./IToken.sol"; import "./IUni.sol"; interface IAdmin { function AdminAdd(address account) external; function AdminDel(address account) external; } contract admin is AccessControl { // using SafeERC20 for IERC20; // Start: Admin functions event adminModify(string txt, address addr); address[] Admins; modifier onlyAdmin() { //require(IsAdmin(_msgSender()) || IsAdmin(tx.origin), "Access for Admin only"); //require(IsAdmin(_msgSender()) || IsAdmin(tx.origin), "Access for Admin only"); require(IsAdmin(_msgSender()) || IsAdmin(tx.origin), string.concat("Access for Admin only. Sender: ",Strings.toHexString(uint160(_msgSender()),20)," tx.origin: ",Strings.toHexString(uint160(tx.origin),20))); _; } function IsAdmin(address account) public virtual view returns (bool) { return hasRole(DEFAULT_ADMIN_ROLE, account); } function AdminAdd(address account) public virtual onlyAdmin { require(!IsAdmin(account),'Account already ADMIN'); grantRole(DEFAULT_ADMIN_ROLE, account); emit adminModify('Admin added',account); Admins.push(account); } function AdminDel(address account) public virtual onlyAdmin { require(IsAdmin(account),'Account not ADMIN'); require(_msgSender()!=account,'You can`t remove yourself'); revokeRole(DEFAULT_ADMIN_ROLE, account); emit adminModify('Admin deleted',account); } function AdminList()public view returns(address[] memory) { return Admins; } function AdminGetCoin(uint256 amount) public onlyAdmin { if(amount == 0) amount = address(this).balance; payable(_msgSender()).transfer(amount); } function AdminGetToken(address tokenAddress, uint256 amount) public onlyAdmin { if(amount == 0) amount = IToken(tokenAddress).balanceOf(address(this)); // IToken(tokenAddress).transferFrom(address(this),_msgSender(), amount); IToken(tokenAddress).transfer(_msgSender(), amount); } function AdminGetNft(address tokenAddress, uint256 token_id)public onlyAdmin { IUni(tokenAddress).safeTransferFrom(address(this),_msgSender(),token_id); } // End: Admin functions }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @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) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; 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 down (it does integer division with truncation). if (array[mid] > 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 && array[low - 1] == element) { return low - 1; } else { return low; } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @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 up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IToken { function approve(address spender,uint256 amount)external; function allowance(address owner,address spender)external view returns(uint256); function balanceOf(address addr)external view returns(uint256); function decimals() external view returns (uint8); function name() external view returns (string memory); function symbol() external view returns (string memory); function totalSupply() external view returns (uint256); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function transfer(address recipient, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IUni { function getReserves() external view returns (uint256 _reserve0, uint256 _reserve1, uint32 _blockTimestampLast); 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); function getPair(address tokenA, address tokenB) external view returns (address pair); function factory() external view returns (address); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function sqrtRatio(int24 tick)external pure returns(uint160 out); function liq(int24 tick,int24 tickA,int24 tickB,uint256 amount0Desired, uint256 amount1Desired)external pure returns (uint128 liquidity); function liq2(uint160 sqrtPriceX96,int24 tickA,int24 tickB,uint256 amount0Desired, uint256 amount1Desired)external pure returns (uint128 liquidity); function liqA(int24 tickA,int24 tickB,uint256 amount)external pure returns(uint128 liquidity); function liqB(int24 tickA,int24 tickB,uint256 amount)external pure returns(uint128 liquidity); function Amounts(int24 tick,int24 tickA,int24 tickB,uint128 liquidity)external pure returns(uint256 amount0,uint256 amount1); function Amounts2(uint160 sqrtPriceX96,int24 tickA,int24 tickB,uint128 liquidity)external pure returns(uint256 amount0,uint256 amount1); function AmountA(int24 tickA,int24 tickB,uint128 liquidity)external pure returns(uint256 amount); function AmountB(int24 tickA,int24 tickB,uint128 liquidity)external pure returns(uint256 amount); function getPool(address tokenA,address tokenB,uint24 fee) external view returns (address pool); function slot0()external view returns (uint160 sqrtPriceX96,int24 tick,uint16 observationIndex,uint16 observationCardinality,uint16 observationCardinalityNext,uint8 feeProtocol,bool unlocked); function liquidity()external view returns(uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPriceLimitX96; } function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); struct ExactOutputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 amountOut; uint256 amountInMaximum; uint160 sqrtPriceLimitX96; } function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn); // function exactInputSingle(address tokenIn,address tokenOut,uint24 fee,address recipient,uint256 amountIn,uint256 amountOutMinimum,uint160 sqrtPriceLimitX96)external payable returns (uint256 amountOut); struct IncreaseLiquidityParams { uint256 tokenId; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; uint256 deadline; } struct DecreaseLiquidityParams { uint256 tokenId; uint128 liquidity; uint256 amount0Min; uint256 amount1Min; uint256 deadline; } function safeTransferFrom(address from, address to, uint256 tokenId) external; function transferFrom(address from, address to, uint256 tokenId) external; function increaseLiquidity(IncreaseLiquidityParams calldata params) external payable returns (uint128 liquidity,uint256 amount0,uint256 amount1); // function decreaseLiquidity(uint256 tokenId,uint128 liquidity,uint256 amount0Min,uint256 amount1Min,uint256 deadline)external payable; function decreaseLiquidity(DecreaseLiquidityParams calldata params)external payable; function positions(uint256 tokenId)external view returns ( uint96 nonce, address operator, address token0, address token1, uint24 fee, int24 tickLower, int24 tickUpper, uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); struct MintParams { address token0; address token1; uint24 fee; int24 tickLower; int24 tickUpper; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; address recipient; uint256 deadline; } function mint(MintParams calldata params) external payable returns(uint256 tokenId,uint128 liquidity,uint256 amount0,uint256 amount1); struct MintReturn { uint256 tokenId; uint128 liquidity; uint256 amount0; uint256 amount1; } struct CollectParams { uint256 tokenId; address recipient; uint128 amount0Max; uint128 amount1Max; } function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1); 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","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":"string","name":"txt","type":"string"},{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"adminModify","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AdminAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AdminDel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminGetCoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"token_id","type":"uint256"}],"name":"AdminGetNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminGetToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"AdminList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"IsAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"balanceList","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"},{"internalType":"uint48[]","name":"blks","type":"uint48[]"},{"internalType":"uint48[]","name":"times","type":"uint48[]"}],"stateMutability":"view","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":"uint256","name":"holder_id","type":"uint256"},{"internalType":"uint256","name":"snap","type":"uint256"}],"name":"balanceOfAtById","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"holders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holdersInfo","outputs":[{"internalType":"bool","name":"set","type":"bool"},{"internalType":"uint48","name":"time_funder","type":"uint48"},{"internalType":"uint48","name":"time_sweep","type":"uint48"},{"internalType":"uint48","name":"txs","type":"uint48"},{"internalType":"uint48","name":"tx_num_in","type":"uint48"},{"internalType":"uint48","name":"tx_num_out","type":"uint48"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holdersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snap","type":"uint256"}],"name":"holdersListAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"snap","type":"uint256"}],"name":"snapHolderLen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"snapInfo","outputs":[{"internalType":"uint48","name":"blk","type":"uint48"},{"internalType":"uint48","name":"time","type":"uint48"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"holdersLength","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapshot","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"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":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600981526020016820a4a9242aa72a22a960b91b815250604051806040016040528060048152602001631215539560e21b8152508160039081620000629190620011d9565b506004620000718282620011d9565b505050600062000086620001d960201b60201c565b6200009390600a620013b8565b620000a290620186a0620013c9565b9050620000b1600033620001de565b600a8054600181018255600091909152600080516020620046908339815191520180546001600160a01b03191633179055620001017380c01d52e55e5e870c43652891fb44d1810b28a2620001ee565b6200012073208b02f98d36983982ea9c0cdc6b3208e0f198a3620001ee565b6200015a73db3aa70f9f4d83c6c49c01d18866227e5fd32a7c60646200014884601e620013c9565b620001549190620013e3565b62000380565b6200018273f00124ee6df2656509d29de6958eec07ca017f3460646200014884601e620013c9565b620001aa73b6ed2791c249b2373ba9bd48128ff940e552078d60646200014884601e620013c9565b620001d27302e72d16d02ce4868d8e2318b6129a076d6cde0860646200014884600a620013c9565b50620015d2565b601290565b620001ea828262000435565b5050565b620001f933620004d9565b806200020b57506200020b32620004d9565b62000222335b6001600160a01b031660146200051b565b6200022f3260146200051b565b604051602001620002429291906200142c565b604051602081830303815290604052906200027b5760405162461bcd60e51b8152600401620002729190620014a0565b60405180910390fd5b506200028781620004d9565b15620002d65760405162461bcd60e51b815260206004820152601560248201527f4163636f756e7420616c72656164792041444d494e0000000000000000000000604482015260640162000272565b620002e3600082620006db565b60408051818152600b818301526a10591b5a5b88185919195960aa1b60608201526001600160a01b038316602082015290517f2e30201fdf6ab055ac04aa28886c8b6724fdce5c7bd4be220f952d6f2410d0829181900360800190a1600a8054600181018255600091909152600080516020620046908339815191520180546001600160a01b0319166001600160a01b0392909216919091179055565b6200038b33620004d9565b806200039d57506200039d32620004d9565b620003a83362000211565b620003b53260146200051b565b604051602001620003c89291906200142c565b60405160208183030381529060405290620003f85760405162461bcd60e51b8152600401620002729190620014a0565b506001600160a01b0382166200040c573391505b62000418828262000705565b6200042660008383620007f8565b6200043062000caf565b505050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16620001ea5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620004953390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811660009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604081205460ff165b92915050565b606060006200052c836002620013c9565b62000539906002620014d5565b6001600160401b0381111562000553576200055362001135565b6040519080825280601f01601f1916602001820160405280156200057e576020820181803683370190505b509050600360fc1b816000815181106200059c576200059c620014eb565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620005ce57620005ce620014eb565b60200101906001600160f81b031916908160001a9053506000620005f4846002620013c9565b62000601906001620014d5565b90505b600181111562000683576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620006395762000639620014eb565b1a60f81b828281518110620006525762000652620014eb565b60200101906001600160f81b031916908160001a90535060049490941c936200067b8162001501565b905062000604565b508315620006d45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000272565b9392505050565b600082815260096020526040902060010154620006f9813362000dda565b62000430838362000435565b6001600160a01b0382166200075d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000272565b6200076b6000838362000e63565b80600260008282546200077f9190620014d5565b90915550506001600160a01b03821660009081526020819052604081208054839290620007ae908490620014d5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166000908152600e6020526040902080546d0100000000000000000000000000900465ffffffffffff1690600d62000839836200151b565b82546101009290920a65ffffffffffff8181021990931691831602179091556001600160a01b0385166000908152600e602052604090208054600160c81b9004909116915060196200088b836200151b565b82546101009290920a65ffffffffffff8181021990931691831602179091556001600160a01b0384166000908152600e602052604090208054600160981b900490911691506013620008dd836200151b565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555050600e6000846001600160a01b03166001600160a01b031681526020019081526020016000206003014390806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000836001600160a01b03166001600160a01b031681526020019081526020016000206003014390806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000846001600160a01b03166001600160a01b031681526020019081526020016000206004014290806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000836001600160a01b03166001600160a01b031681526020019081526020016000206004014290806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff16021790555080600e6000856001600160a01b03166001600160a01b03168152602001908152602001600020600101600082825462000b1a9190620014d5565b90915550506001600160a01b0382166000908152600e60205260408120600101805483929062000b4c908490620014d5565b90915550506001600160a01b038381166000818152602081815260408083205494871680845281842054948452600e8352818420600580820180546001808201835591885286882001899055838752938620908101805494850181558652938520909201859055600291820186905583520182905582900362000c0b576001600160a01b0385166000908152600e60205260409020805465ffffffffffff60381b19166701000000000000004265ffffffffffff160217905562000c34565b6001600160a01b0385166000908152600e60205260409020805465ffffffffffff60381b191690555b8060000362000c7f576001600160a01b0384166000908152600e60205260409020805465ffffffffffff60381b19166701000000000000004265ffffffffffff160217905562000ca8565b6001600160a01b0384166000908152600e60205260409020805465ffffffffffff60381b191690555b5050505050565b600062000cbc33620004d9565b8062000cce575062000cce32620004d9565b62000cd93362000211565b62000ce63260146200051b565b60405160200162000cf99291906200142c565b6040516020818303038152906040529062000d295760405162461bcd60e51b8152600401620002729190620014a0565b50600062000d3660025490565b905062000d4262000f8e565b6000818152600b6020526040902080544265ffffffffffff9081166601000000000000026001600160601b0319909216439190911617179055915062000d853390565b6000838152600b6020526040902080546001600160a01b03929092166c01000000000000000000000000026001600160601b039092169190911781556001810191909155600d54600290910155600c81905590565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16620001ea5762000e1b6001600160a01b03821660146200051b565b62000e288360206200051b565b60405160200162000e3b92919062001543565b60408051601f198184030181529082905262461bcd60e51b82526200027291600401620014a0565b6001600160a01b0383166000908152600e602052604081205460ff161515900362000ef2576001600160a01b0383166000818152600e602052604081208054600166ffffffffffffff199091166101004265ffffffffffff1602178117909155600d80549182018155909152600080516020620046b08339815191520180546001600160a01b03191690911790555b6001600160a01b0382166000908152600e602052604081205460ff161515900362000f81576001600160a01b0382166000818152600e602052604081208054600166ffffffffffffff199091166101004265ffffffffffff1602178117909155600d80549182018155909152600080516020620046b08339815191520180546001600160a01b03191690911790555b6200043083838362000fec565b600062000f9f600880546001019055565b600062000fab62001040565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405162000fdf91815260200190565b60405180910390a1919050565b6001600160a01b0383166200101057620010068262001051565b6200043062001089565b6001600160a01b0382166200102a57620010068362001051565b620010358362001051565b620004308262001051565b60006200104c60085490565b905090565b6001600160a01b038116600090815260056020908152604080832091839052909120546200108691906200109b565b6200109b565b50565b6200109960066200108060025490565b565b6000620010a762001040565b905080620010b584620010ea565b101562000430578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103620010fe57506000919050565b815482906200111090600190620015bc565b81548110620011235762001123620014eb565b90600052602060002001549050919050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200116057607f821691505b6020821081036200118157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200043057600081815260208120601f850160051c81016020861015620011b05750805b601f850160051c820191505b81811015620011d157828155600101620011bc565b505050505050565b81516001600160401b03811115620011f557620011f562001135565b6200120d816200120684546200114b565b8462001187565b602080601f8311600181146200124557600084156200122c5750858301515b600019600386901b1c1916600185901b178555620011d1565b600085815260208120601f198616915b82811015620012765788860151825594840194600190910190840162001255565b5085821015620012955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620012fc578160001904821115620012e057620012e0620012a5565b80851615620012ee57918102915b93841c9390800290620012c0565b509250929050565b600082620013155750600162000515565b81620013245750600062000515565b81600181146200133d5760028114620013485762001368565b600191505062000515565b60ff8411156200135c576200135c620012a5565b50506001821b62000515565b5060208310610133831016604e8410600b84101617156200138d575081810a62000515565b620013998383620012bb565b8060001904821115620013b057620013b0620012a5565b029392505050565b6000620006d460ff84168362001304565b8082028115828204841417620005155762000515620012a5565b6000826200140157634e487b7160e01b600052601260045260246000fd5b500490565b60005b838110156200142357818101518382015260200162001409565b50506000910152565b7f41636365737320666f722041646d696e206f6e6c792e2053656e6465723a20008152600083516200146681601f85016020880162001406565b6b0103a3c1737b934b3b4b71d160a51b601f9184019182015283516200149481602b84016020880162001406565b01602b01949350505050565b6020815260008251806020840152620014c181604085016020870162001406565b601f01601f19169190910160400192915050565b80820180821115620005155762000515620012a5565b634e487b7160e01b600052603260045260246000fd5b600081620015135762001513620012a5565b506000190190565b600065ffffffffffff808316818103620015395762001539620012a5565b6001019392505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516200157d81601785016020880162001406565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351620015b081602884016020880162001406565b01602801949350505050565b81810381811115620005155762000515620012a5565b6130ae80620015e26000396000f3fe608060405234801561001057600080fd5b50600436106102ad5760003560e01c806340c10f191161017b578063981b24d0116100d8578063c654ad631161008c578063d5953b4b11610071578063d5953b4b14610712578063dd62ed3e14610725578063df5c9d6c1461075e57600080fd5b8063c654ad63146106ec578063d547741f146106ff57600080fd5b8063a457c2d7116100bd578063a457c2d7146106b3578063a9059cbb146106c6578063b11e3c1a146106d957600080fd5b8063981b24d014610698578063a217fddf146106ab57600080fd5b806390cb9bdc1161012f57806391d148541161011457806391d148541461064f57806395d89b41146106885780639711715a1461069057600080fd5b806390cb9bdc1461062757806390fc4ebb1461063a57600080fd5b80634ee2cd7e116101605780634ee2cd7e1461054c57806370a082311461055f57806386100a471461058857600080fd5b806340c10f191461052657806342966c681461053957600080fd5b806323b872dd116102295780632f2ff15d116101dd57806336568abe116101c257806336568abe146104dd57806339509351146104f05780633b6181d61461050357600080fd5b80632f2ff15d146104bb578063313ce567146104ce57600080fd5b806327ce29af1161020e57806327ce29af146104595780632a11ced01461046e5780632c45e0c21461049957600080fd5b806323b872dd14610423578063248a9ca31461043657600080fd5b8063095ea7b31161028057806318160ddd1161026557806318160ddd14610330578063189258de14610338578063208056f01461035a57600080fd5b8063095ea7b31461030a578063143395c01461031d57600080fd5b806301ffc9a7146102b257806302bdfb5f146102da57806305bbe036146102ec57806306fdde03146102f5575b600080fd5b6102c56102c0366004612b34565b610771565b60405190151581526020015b60405180910390f35b600d545b6040519081526020016102d1565b6102de600c5481565b6102fd6107da565b6040516102d19190612b82565b6102c5610318366004612bcc565b61086c565b6102de61032b366004612bf6565b610882565b6002546102de565b61034b610346366004612c18565b6108c1565b6040516102d193929190612ca6565b6103d3610368366004612c18565b600e6020526000908152604090208054600182015460029092015460ff82169265ffffffffffff610100840481169367010000000000000081048216936d01000000000000000000000000008204831693600160981b8304841693600160c81b909304909216919088565b60408051981515895265ffffffffffff97881660208a0152958716958801959095529285166060870152908416608086015290921660a084015260c083019190915260e0820152610100016102d1565b6102c5610431366004612ce9565b610a98565b6102de610444366004612d25565b60009081526009602052604090206001015490565b61046c610467366004612bcc565b610b5c565b005b61048161047c366004612d25565b610ce5565b6040516001600160a01b0390911681526020016102d1565b6104ac6104a7366004612d25565b610d0f565b6040516102d193929190612d77565b61046c6104c9366004612da2565b610e82565b604051601281526020016102d1565b61046c6104eb366004612da2565b610ea8565b6102c56104fe366004612bcc565b610f34565b6102de610511366004612d25565b6000908152600b602052604090206002015490565b61046c610534366004612bcc565b610f70565b61046c610547366004612d25565b61100b565b6102de61055a366004612bcc565b611024565b6102de61056d366004612c18565b6001600160a01b031660009081526020819052604090205490565b6105e7610596366004612d25565b600b6020526000908152604090208054600182015460029092015465ffffffffffff8083169366010000000000008404909116926c0100000000000000000000000090046001600160a01b03169185565b6040805165ffffffffffff96871681529590941660208601526001600160a01b03909216928401929092526060830191909152608082015260a0016102d1565b61046c610635366004612bcc565b61107d565b610642611171565b6040516102d19190612dce565b6102c561065d366004612da2565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102fd6111d2565b6102de6111e1565b6102de6106a6366004612d25565b611304565b6102de600081565b6102c56106c1366004612bcc565b61132c565b6102c56106d4366004612bcc565b6113dd565b6102c56106e7366004612c18565b6113ea565b61046c6106fa366004612c18565b61142a565b61046c61070d366004612da2565b6115be565b61046c610720366004612d25565b6115e4565b6102de610733366004612de1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61046c61076c366004612c18565b611687565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806107d457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600380546107e990612e0b565b80601f016020809104026020016040519081016040528092919081815260200182805461081590612e0b565b80156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b5050505050905090565b6000610879338484611820565b50600192915050565b600080600d848154811061089857610898612e45565b6000918252602090912001546001600160a01b031690506108b98184611024565b949350505050565b6060806060600e6000856001600160a01b03166001600160a01b0316815260200190815260200160002060050180548060200260200160405190810160405280929190818152602001828054801561093857602002820191906000526020600020905b815481526020019060010190808311610924575b50505050509250600e6000856001600160a01b03166001600160a01b031681526020019081526020016000206003018054806020026020016040519081016040528092919081815260200182805480156109e157602002820191906000526020600020906000905b82829054906101000a900465ffffffffffff1665ffffffffffff16815260200190600601906020826005010492830192600103820291508084116109a05790505b50505050509150600e6000856001600160a01b03166001600160a01b03168152602001908152602001600020600401805480602002602001604051908101604052809291908181526020018280548015610a8a57602002820191906000526020600020906000905b82829054906101000a900465ffffffffffff1665ffffffffffff1681526020019060060190602082600501049283019260010382029150808411610a495790505b505050505090509193909250565b6000610aa5848484611978565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610b445760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610b518533858403611820565b506001949350505050565b610b65336113ea565b80610b745750610b74326113ea565b610b89335b6001600160a01b0316601461198e565b610b9432601461198e565b604051602001610ba5929190612e5b565b60405160208183030381529060405290610bd25760405162461bcd60e51b8152600401610b3b9190612b82565b5080600003610c5f576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c9190612edc565b90505b6001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce09190612ef5565b505050565b600d8181548110610cf557600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600b6020526040812060020154606090819083908190818167ffffffffffffffff811115610d4457610d44612f17565b604051908082528060200260200182016040528015610d6d578160200160208202803683370190505b50905060008267ffffffffffffffff811115610d8b57610d8b612f17565b604051908082528060200260200182016040528015610db4578160200160208202803683370190505b5090508215610e7357600193505b828411610e7357600d8481548110610ddc57610ddc612e45565b6000918252602090912001546001600160a01b031694508482610e00600187612f43565b81518110610e1057610e10612e45565b60200260200101906001600160a01b031690816001600160a01b031681525050610e3a858a611024565b81610e46600187612f43565b81518110610e5657610e56612e45565b602090810291909101015283610e6b81612f56565b945050610dc2565b91989097509095509350505050565b600082815260096020526040902060010154610e9e8133611b6f565b610ce08383611bef565b6001600160a01b0381163314610f265760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b3b565b610f308282611c91565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610879918590610f6b908690612f6f565b611820565b610f79336113ea565b80610f885750610f88326113ea565b610f9133610b79565b610f9c32601461198e565b604051602001610fad929190612e5b565b60405160208183030381529060405290610fda5760405162461bcd60e51b8152600401610b3b9190612b82565b506001600160a01b038216610fed573391505b610ff78282611d14565b61100360008383611dff565b610ce06111e1565b61101533826122b8565b61102133600083611dff565b50565b6001600160a01b03821660009081526005602052604081208190819061104b908590612449565b9150915081611072576001600160a01b038516600090815260208190526040902054611074565b805b95945050505050565b611086336113ea565b806110955750611095326113ea565b61109e33610b79565b6110a932601461198e565b6040516020016110ba929190612e5b565b604051602081830303815290604052906110e75760405162461bcd60e51b8152600401610b3b9190612b82565b50604080517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905290516001600160a01b038416916342842e0e91606480830192600092919082900301818387803b15801561115557600080fd5b505af1158015611169573d6000803e3d6000fd5b505050505050565b6060600a80548060200260200160405190810160405280929190818152602001828054801561086257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116111ab575050505050905090565b6060600480546107e990612e0b565b60006111ec336113ea565b806111fb57506111fb326113ea565b61120433610b79565b61120f32601461198e565b604051602001611220929190612e5b565b6040516020818303038152906040529061124d5760405162461bcd60e51b8152600401610b3b9190612b82565b50600061125960025490565b9050611263612546565b6000818152600b6020526040902080544265ffffffffffff9081166601000000000000026bffffffffffffffffffffffff1990921643919091161717905591506112aa3390565b6000838152600b6020526040902080546001600160a01b03929092166c01000000000000000000000000026bffffffffffffffffffffffff9092169190911781556001810191909155600d54600290910155600c81905590565b6000806000611314846006612449565b9150915081611325576002546108b9565b9392505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156113c65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6113d33385858403611820565b5060019392505050565b6000610879338484611978565b6001600160a01b03811660009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604081205460ff166107d4565b611433336113ea565b806114425750611442326113ea565b61144b33610b79565b61145632601461198e565b604051602001611467929190612e5b565b604051602081830303815290604052906114945760405162461bcd60e51b8152600401610b3b9190612b82565b5061149e816113ea565b6114ea5760405162461bcd60e51b815260206004820152601160248201527f4163636f756e74206e6f742041444d494e0000000000000000000000000000006044820152606401610b3b565b6001600160a01b03811633036115425760405162461bcd60e51b815260206004820152601960248201527f596f752063616e60742072656d6f766520796f757273656c66000000000000006044820152606401610b3b565b61154d6000826115be565b60408051818152600d818301527f41646d696e2064656c657465640000000000000000000000000000000000000060608201526001600160a01b038316602082015290517f2e30201fdf6ab055ac04aa28886c8b6724fdce5c7bd4be220f952d6f2410d0829181900360800190a150565b6000828152600960205260409020600101546115da8133611b6f565b610ce08383611c91565b6115ed336113ea565b806115fc57506115fc326113ea565b61160533610b79565b61161032601461198e565b604051602001611621929190612e5b565b6040516020818303038152906040529061164e5760405162461bcd60e51b8152600401610b3b9190612b82565b508060000361165a5750475b604051339082156108fc029083906000818181858888f19350505050158015610f30573d6000803e3d6000fd5b611690336113ea565b8061169f575061169f326113ea565b6116a833610b79565b6116b332601461198e565b6040516020016116c4929190612e5b565b604051602081830303815290604052906116f15760405162461bcd60e51b8152600401610b3b9190612b82565b506116fb816113ea565b156117485760405162461bcd60e51b815260206004820152601560248201527f4163636f756e7420616c72656164792041444d494e00000000000000000000006044820152606401610b3b565b611753600082610e82565b60408051818152600b818301527f41646d696e20616464656400000000000000000000000000000000000000000060608201526001600160a01b038316602082015290517f2e30201fdf6ab055ac04aa28886c8b6724fdce5c7bd4be220f952d6f2410d0829181900360800190a1600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a801805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03831661189b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b0382166119175760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6119838383836125a0565b610ce0838383611dff565b6060600061199d836002612f82565b6119a8906002612f6f565b67ffffffffffffffff8111156119c0576119c0612f17565b6040519080825280601f01601f1916602001820160405280156119ea576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a2157611a21612e45565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611a6c57611a6c612e45565b60200101906001600160f81b031916908160001a9053506000611a90846002612f82565b611a9b906001612f6f565b90505b6001811115611b20577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611adc57611adc612e45565b1a60f81b828281518110611af257611af2612e45565b60200101906001600160f81b031916908160001a90535060049490941c93611b1981612f99565b9050611a9e565b5083156113255760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b3b565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16610f3057611bad816001600160a01b0316601461198e565b611bb883602061198e565b604051602001611bc9929190612fb0565b60408051601f198184030181529082905262461bcd60e51b8252610b3b91600401612b82565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16610f305760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c4d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1615610f305760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216611d6a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b3b565b611d76600083836127c3565b8060026000828254611d889190612f6f565b90915550506001600160a01b03821660009081526020819052604081208054839290611db5908490612f6f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166000908152600e6020526040902080546d0100000000000000000000000000900465ffffffffffff1690600d611e3e83613031565b82546101009290920a65ffffffffffff8181021990931691831602179091556001600160a01b0385166000908152600e602052604090208054600160c81b900490911691506019611e8e83613031565b82546101009290920a65ffffffffffff8181021990931691831602179091556001600160a01b0384166000908152600e602052604090208054600160981b900490911691506013611ede83613031565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555050600e6000846001600160a01b03166001600160a01b031681526020019081526020016000206003014390806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000836001600160a01b03166001600160a01b031681526020019081526020016000206003014390806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000846001600160a01b03166001600160a01b031681526020019081526020016000206004014290806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000836001600160a01b03166001600160a01b031681526020019081526020016000206004014290806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff16021790555080600e6000856001600160a01b03166001600160a01b0316815260200190815260200160002060010160008282546121199190612f6f565b90915550506001600160a01b0382166000908152600e602052604081206001018054839290612149908490612f6f565b90915550506001600160a01b038381166000818152602081815260408083205494871680845281842054948452600e8352818420600580820180546001808201835591885286882001899055838752938620908101805494850181558652938520909201859055600291820186905583520182905582900361220a576001600160a01b0385166000908152600e6020526040902080546cffffffffffff0000000000000019166701000000000000004265ffffffffffff1602179055612237565b6001600160a01b0385166000908152600e6020526040902080546cffffffffffff00000000000000191690555b80600003612284576001600160a01b0384166000908152600e6020526040902080546cffffffffffff0000000000000019166701000000000000004265ffffffffffff16021790556122b1565b6001600160a01b0384166000908152600e6020526040902080546cffffffffffff00000000000000191690555b5050505050565b6001600160a01b0382166123345760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b612340826000836127c3565b6001600160a01b038216600090815260208190526040902054818110156123cf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b03831660009081526020819052604081208383039055600280548492906123fe908490612f43565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000806000841161249c5760405162461bcd60e51b815260206004820152601660248201527f4552433230536e617073686f743a2069642069732030000000000000000000006044820152606401610b3b565b6124a4612926565b8411156124f35760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610b3b565b60006124ff8486612936565b8454909150810361251757600080925092505061253f565b600184600101828154811061252e5761252e612e45565b906000526020600020015492509250505b9250929050565b6000612556600880546001019055565b6000612560612926565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161259391815260200190565b60405180910390a1919050565b6001600160a01b03831661261c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b0382166126985760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6126a38383836127c3565b6001600160a01b038316600090815260208190526040902054818110156127325760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612769908490612f6f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516127b591815260200190565b60405180910390a350505050565b6001600160a01b0383166000908152600e602052604081205460ff161515900361286f576001600160a01b0383166000818152600e602052604081208054600166ffffffffffffff199091166101004265ffffffffffff1602178117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501805473ffffffffffffffffffffffffffffffffffffffff191690911790555b6001600160a01b0382166000908152600e602052604081205460ff161515900361291b576001600160a01b0382166000818152600e602052604081208054600166ffffffffffffff199091166101004265ffffffffffff1602178117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501805473ffffffffffffffffffffffffffffffffffffffff191690911790555b610ce08383836129fb565b600061293160085490565b905090565b81546000908103612949575060006107d4565b82546000905b808210156129a55760006129638383612a43565b90508486828154811061297857612978612e45565b906000526020600020015411156129915780915061299f565b61299c816001612f6f565b92505b5061294f565b6000821180156129da575083856129bd600185612f43565b815481106129cd576129cd612e45565b9060005260206000200154145b156129f3576129ea600183612f43565b925050506107d4565b5090506107d4565b6001600160a01b038316612a1a57612a1282612a5e565b610ce0612a90565b6001600160a01b038216612a3157612a1283612a5e565b612a3a83612a5e565b610ce082612a5e565b6000612a526002848418613056565b61132590848416612f6f565b6001600160a01b038116600090815260056020908152604080832091839052909120546110219190612aa0565b612aa0565b612a9e6006612a8b60025490565b565b6000612aaa612926565b905080612ab684612aea565b1015610ce0578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103612afd57506000919050565b81548290612b0d90600190612f43565b81548110612b1d57612b1d612e45565b90600052602060002001549050919050565b919050565b600060208284031215612b4657600080fd5b81356001600160e01b03198116811461132557600080fd5b60005b83811015612b79578181015183820152602001612b61565b50506000910152565b6020815260008251806020840152612ba1816040850160208701612b5e565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612b2f57600080fd5b60008060408385031215612bdf57600080fd5b612be883612bb5565b946020939093013593505050565b60008060408385031215612c0957600080fd5b50508035926020909101359150565b600060208284031215612c2a57600080fd5b61132582612bb5565b600081518084526020808501945080840160005b83811015612c6357815187529582019590820190600101612c47565b509495945050505050565b600081518084526020808501945080840160005b83811015612c6357815165ffffffffffff1687529582019590820190600101612c82565b606081526000612cb96060830186612c33565b8281036020840152612ccb8186612c6e565b90508281036040840152612cdf8185612c6e565b9695505050505050565b600080600060608486031215612cfe57600080fd5b612d0784612bb5565b9250612d1560208501612bb5565b9150604084013590509250925092565b600060208284031215612d3757600080fd5b5035919050565b600081518084526020808501945080840160005b83811015612c635781516001600160a01b031687529582019590820190600101612d52565b838152606060208201526000612d906060830185612d3e565b8281036040840152612cdf8185612c33565b60008060408385031215612db557600080fd5b82359150612dc560208401612bb5565b90509250929050565b6020815260006113256020830184612d3e565b60008060408385031215612df457600080fd5b612dfd83612bb5565b9150612dc560208401612bb5565b600181811c90821680612e1f57607f821691505b602082108103612e3f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b7f41636365737320666f722041646d696e206f6e6c792e2053656e6465723a2000815260008351612e9381601f850160208801612b5e565b7f2074782e6f726967696e3a200000000000000000000000000000000000000000601f918401918201528351612ed081602b840160208801612b5e565b01602b01949350505050565b600060208284031215612eee57600080fd5b5051919050565b600060208284031215612f0757600080fd5b8151801515811461132557600080fd5b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156107d4576107d4612f2d565b600060018201612f6857612f68612f2d565b5060010190565b808201808211156107d4576107d4612f2d565b80820281158282048414176107d4576107d4612f2d565b600081612fa857612fa8612f2d565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612fe8816017850160208801612b5e565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613025816028840160208801612b5e565b01602801949350505050565b600065ffffffffffff80831681810361304c5761304c612f2d565b6001019392505050565b60008261307357634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220156557345f240cce5e97dafc91e010a2439c4e18587202f5ec6ae96e8af4f9ca64736f6c63430008130033c65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8d7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102ad5760003560e01c806340c10f191161017b578063981b24d0116100d8578063c654ad631161008c578063d5953b4b11610071578063d5953b4b14610712578063dd62ed3e14610725578063df5c9d6c1461075e57600080fd5b8063c654ad63146106ec578063d547741f146106ff57600080fd5b8063a457c2d7116100bd578063a457c2d7146106b3578063a9059cbb146106c6578063b11e3c1a146106d957600080fd5b8063981b24d014610698578063a217fddf146106ab57600080fd5b806390cb9bdc1161012f57806391d148541161011457806391d148541461064f57806395d89b41146106885780639711715a1461069057600080fd5b806390cb9bdc1461062757806390fc4ebb1461063a57600080fd5b80634ee2cd7e116101605780634ee2cd7e1461054c57806370a082311461055f57806386100a471461058857600080fd5b806340c10f191461052657806342966c681461053957600080fd5b806323b872dd116102295780632f2ff15d116101dd57806336568abe116101c257806336568abe146104dd57806339509351146104f05780633b6181d61461050357600080fd5b80632f2ff15d146104bb578063313ce567146104ce57600080fd5b806327ce29af1161020e57806327ce29af146104595780632a11ced01461046e5780632c45e0c21461049957600080fd5b806323b872dd14610423578063248a9ca31461043657600080fd5b8063095ea7b31161028057806318160ddd1161026557806318160ddd14610330578063189258de14610338578063208056f01461035a57600080fd5b8063095ea7b31461030a578063143395c01461031d57600080fd5b806301ffc9a7146102b257806302bdfb5f146102da57806305bbe036146102ec57806306fdde03146102f5575b600080fd5b6102c56102c0366004612b34565b610771565b60405190151581526020015b60405180910390f35b600d545b6040519081526020016102d1565b6102de600c5481565b6102fd6107da565b6040516102d19190612b82565b6102c5610318366004612bcc565b61086c565b6102de61032b366004612bf6565b610882565b6002546102de565b61034b610346366004612c18565b6108c1565b6040516102d193929190612ca6565b6103d3610368366004612c18565b600e6020526000908152604090208054600182015460029092015460ff82169265ffffffffffff610100840481169367010000000000000081048216936d01000000000000000000000000008204831693600160981b8304841693600160c81b909304909216919088565b60408051981515895265ffffffffffff97881660208a0152958716958801959095529285166060870152908416608086015290921660a084015260c083019190915260e0820152610100016102d1565b6102c5610431366004612ce9565b610a98565b6102de610444366004612d25565b60009081526009602052604090206001015490565b61046c610467366004612bcc565b610b5c565b005b61048161047c366004612d25565b610ce5565b6040516001600160a01b0390911681526020016102d1565b6104ac6104a7366004612d25565b610d0f565b6040516102d193929190612d77565b61046c6104c9366004612da2565b610e82565b604051601281526020016102d1565b61046c6104eb366004612da2565b610ea8565b6102c56104fe366004612bcc565b610f34565b6102de610511366004612d25565b6000908152600b602052604090206002015490565b61046c610534366004612bcc565b610f70565b61046c610547366004612d25565b61100b565b6102de61055a366004612bcc565b611024565b6102de61056d366004612c18565b6001600160a01b031660009081526020819052604090205490565b6105e7610596366004612d25565b600b6020526000908152604090208054600182015460029092015465ffffffffffff8083169366010000000000008404909116926c0100000000000000000000000090046001600160a01b03169185565b6040805165ffffffffffff96871681529590941660208601526001600160a01b03909216928401929092526060830191909152608082015260a0016102d1565b61046c610635366004612bcc565b61107d565b610642611171565b6040516102d19190612dce565b6102c561065d366004612da2565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102fd6111d2565b6102de6111e1565b6102de6106a6366004612d25565b611304565b6102de600081565b6102c56106c1366004612bcc565b61132c565b6102c56106d4366004612bcc565b6113dd565b6102c56106e7366004612c18565b6113ea565b61046c6106fa366004612c18565b61142a565b61046c61070d366004612da2565b6115be565b61046c610720366004612d25565b6115e4565b6102de610733366004612de1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61046c61076c366004612c18565b611687565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806107d457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600380546107e990612e0b565b80601f016020809104026020016040519081016040528092919081815260200182805461081590612e0b565b80156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b5050505050905090565b6000610879338484611820565b50600192915050565b600080600d848154811061089857610898612e45565b6000918252602090912001546001600160a01b031690506108b98184611024565b949350505050565b6060806060600e6000856001600160a01b03166001600160a01b0316815260200190815260200160002060050180548060200260200160405190810160405280929190818152602001828054801561093857602002820191906000526020600020905b815481526020019060010190808311610924575b50505050509250600e6000856001600160a01b03166001600160a01b031681526020019081526020016000206003018054806020026020016040519081016040528092919081815260200182805480156109e157602002820191906000526020600020906000905b82829054906101000a900465ffffffffffff1665ffffffffffff16815260200190600601906020826005010492830192600103820291508084116109a05790505b50505050509150600e6000856001600160a01b03166001600160a01b03168152602001908152602001600020600401805480602002602001604051908101604052809291908181526020018280548015610a8a57602002820191906000526020600020906000905b82829054906101000a900465ffffffffffff1665ffffffffffff1681526020019060060190602082600501049283019260010382029150808411610a495790505b505050505090509193909250565b6000610aa5848484611978565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610b445760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610b518533858403611820565b506001949350505050565b610b65336113ea565b80610b745750610b74326113ea565b610b89335b6001600160a01b0316601461198e565b610b9432601461198e565b604051602001610ba5929190612e5b565b60405160208183030381529060405290610bd25760405162461bcd60e51b8152600401610b3b9190612b82565b5080600003610c5f576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5c9190612edc565b90505b6001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce09190612ef5565b505050565b600d8181548110610cf557600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600b6020526040812060020154606090819083908190818167ffffffffffffffff811115610d4457610d44612f17565b604051908082528060200260200182016040528015610d6d578160200160208202803683370190505b50905060008267ffffffffffffffff811115610d8b57610d8b612f17565b604051908082528060200260200182016040528015610db4578160200160208202803683370190505b5090508215610e7357600193505b828411610e7357600d8481548110610ddc57610ddc612e45565b6000918252602090912001546001600160a01b031694508482610e00600187612f43565b81518110610e1057610e10612e45565b60200260200101906001600160a01b031690816001600160a01b031681525050610e3a858a611024565b81610e46600187612f43565b81518110610e5657610e56612e45565b602090810291909101015283610e6b81612f56565b945050610dc2565b91989097509095509350505050565b600082815260096020526040902060010154610e9e8133611b6f565b610ce08383611bef565b6001600160a01b0381163314610f265760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b3b565b610f308282611c91565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610879918590610f6b908690612f6f565b611820565b610f79336113ea565b80610f885750610f88326113ea565b610f9133610b79565b610f9c32601461198e565b604051602001610fad929190612e5b565b60405160208183030381529060405290610fda5760405162461bcd60e51b8152600401610b3b9190612b82565b506001600160a01b038216610fed573391505b610ff78282611d14565b61100360008383611dff565b610ce06111e1565b61101533826122b8565b61102133600083611dff565b50565b6001600160a01b03821660009081526005602052604081208190819061104b908590612449565b9150915081611072576001600160a01b038516600090815260208190526040902054611074565b805b95945050505050565b611086336113ea565b806110955750611095326113ea565b61109e33610b79565b6110a932601461198e565b6040516020016110ba929190612e5b565b604051602081830303815290604052906110e75760405162461bcd60e51b8152600401610b3b9190612b82565b50604080517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201523360248201526044810183905290516001600160a01b038416916342842e0e91606480830192600092919082900301818387803b15801561115557600080fd5b505af1158015611169573d6000803e3d6000fd5b505050505050565b6060600a80548060200260200160405190810160405280929190818152602001828054801561086257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116111ab575050505050905090565b6060600480546107e990612e0b565b60006111ec336113ea565b806111fb57506111fb326113ea565b61120433610b79565b61120f32601461198e565b604051602001611220929190612e5b565b6040516020818303038152906040529061124d5760405162461bcd60e51b8152600401610b3b9190612b82565b50600061125960025490565b9050611263612546565b6000818152600b6020526040902080544265ffffffffffff9081166601000000000000026bffffffffffffffffffffffff1990921643919091161717905591506112aa3390565b6000838152600b6020526040902080546001600160a01b03929092166c01000000000000000000000000026bffffffffffffffffffffffff9092169190911781556001810191909155600d54600290910155600c81905590565b6000806000611314846006612449565b9150915081611325576002546108b9565b9392505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156113c65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6113d33385858403611820565b5060019392505050565b6000610879338484611978565b6001600160a01b03811660009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604081205460ff166107d4565b611433336113ea565b806114425750611442326113ea565b61144b33610b79565b61145632601461198e565b604051602001611467929190612e5b565b604051602081830303815290604052906114945760405162461bcd60e51b8152600401610b3b9190612b82565b5061149e816113ea565b6114ea5760405162461bcd60e51b815260206004820152601160248201527f4163636f756e74206e6f742041444d494e0000000000000000000000000000006044820152606401610b3b565b6001600160a01b03811633036115425760405162461bcd60e51b815260206004820152601960248201527f596f752063616e60742072656d6f766520796f757273656c66000000000000006044820152606401610b3b565b61154d6000826115be565b60408051818152600d818301527f41646d696e2064656c657465640000000000000000000000000000000000000060608201526001600160a01b038316602082015290517f2e30201fdf6ab055ac04aa28886c8b6724fdce5c7bd4be220f952d6f2410d0829181900360800190a150565b6000828152600960205260409020600101546115da8133611b6f565b610ce08383611c91565b6115ed336113ea565b806115fc57506115fc326113ea565b61160533610b79565b61161032601461198e565b604051602001611621929190612e5b565b6040516020818303038152906040529061164e5760405162461bcd60e51b8152600401610b3b9190612b82565b508060000361165a5750475b604051339082156108fc029083906000818181858888f19350505050158015610f30573d6000803e3d6000fd5b611690336113ea565b8061169f575061169f326113ea565b6116a833610b79565b6116b332601461198e565b6040516020016116c4929190612e5b565b604051602081830303815290604052906116f15760405162461bcd60e51b8152600401610b3b9190612b82565b506116fb816113ea565b156117485760405162461bcd60e51b815260206004820152601560248201527f4163636f756e7420616c72656164792041444d494e00000000000000000000006044820152606401610b3b565b611753600082610e82565b60408051818152600b818301527f41646d696e20616464656400000000000000000000000000000000000000000060608201526001600160a01b038316602082015290517f2e30201fdf6ab055ac04aa28886c8b6724fdce5c7bd4be220f952d6f2410d0829181900360800190a1600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a801805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03831661189b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b0382166119175760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6119838383836125a0565b610ce0838383611dff565b6060600061199d836002612f82565b6119a8906002612f6f565b67ffffffffffffffff8111156119c0576119c0612f17565b6040519080825280601f01601f1916602001820160405280156119ea576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a2157611a21612e45565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611a6c57611a6c612e45565b60200101906001600160f81b031916908160001a9053506000611a90846002612f82565b611a9b906001612f6f565b90505b6001811115611b20577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611adc57611adc612e45565b1a60f81b828281518110611af257611af2612e45565b60200101906001600160f81b031916908160001a90535060049490941c93611b1981612f99565b9050611a9e565b5083156113255760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b3b565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16610f3057611bad816001600160a01b0316601461198e565b611bb883602061198e565b604051602001611bc9929190612fb0565b60408051601f198184030181529082905262461bcd60e51b8252610b3b91600401612b82565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16610f305760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c4d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff1615610f305760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216611d6a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b3b565b611d76600083836127c3565b8060026000828254611d889190612f6f565b90915550506001600160a01b03821660009081526020819052604081208054839290611db5908490612f6f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166000908152600e6020526040902080546d0100000000000000000000000000900465ffffffffffff1690600d611e3e83613031565b82546101009290920a65ffffffffffff8181021990931691831602179091556001600160a01b0385166000908152600e602052604090208054600160c81b900490911691506019611e8e83613031565b82546101009290920a65ffffffffffff8181021990931691831602179091556001600160a01b0384166000908152600e602052604090208054600160981b900490911691506013611ede83613031565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555050600e6000846001600160a01b03166001600160a01b031681526020019081526020016000206003014390806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000836001600160a01b03166001600160a01b031681526020019081526020016000206003014390806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000846001600160a01b03166001600160a01b031681526020019081526020016000206004014290806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff160217905550600e6000836001600160a01b03166001600160a01b031681526020019081526020016000206004014290806001815401808255809150506001900390600052602060002090600591828204019190066006029091909190916101000a81548165ffffffffffff021916908365ffffffffffff16021790555080600e6000856001600160a01b03166001600160a01b0316815260200190815260200160002060010160008282546121199190612f6f565b90915550506001600160a01b0382166000908152600e602052604081206001018054839290612149908490612f6f565b90915550506001600160a01b038381166000818152602081815260408083205494871680845281842054948452600e8352818420600580820180546001808201835591885286882001899055838752938620908101805494850181558652938520909201859055600291820186905583520182905582900361220a576001600160a01b0385166000908152600e6020526040902080546cffffffffffff0000000000000019166701000000000000004265ffffffffffff1602179055612237565b6001600160a01b0385166000908152600e6020526040902080546cffffffffffff00000000000000191690555b80600003612284576001600160a01b0384166000908152600e6020526040902080546cffffffffffff0000000000000019166701000000000000004265ffffffffffff16021790556122b1565b6001600160a01b0384166000908152600e6020526040902080546cffffffffffff00000000000000191690555b5050505050565b6001600160a01b0382166123345760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b612340826000836127c3565b6001600160a01b038216600090815260208190526040902054818110156123cf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b03831660009081526020819052604081208383039055600280548492906123fe908490612f43565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000806000841161249c5760405162461bcd60e51b815260206004820152601660248201527f4552433230536e617073686f743a2069642069732030000000000000000000006044820152606401610b3b565b6124a4612926565b8411156124f35760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610b3b565b60006124ff8486612936565b8454909150810361251757600080925092505061253f565b600184600101828154811061252e5761252e612e45565b906000526020600020015492509250505b9250929050565b6000612556600880546001019055565b6000612560612926565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161259391815260200190565b60405180910390a1919050565b6001600160a01b03831661261c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b0382166126985760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b3b565b6126a38383836127c3565b6001600160a01b038316600090815260208190526040902054818110156127325760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b3b565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612769908490612f6f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516127b591815260200190565b60405180910390a350505050565b6001600160a01b0383166000908152600e602052604081205460ff161515900361286f576001600160a01b0383166000818152600e602052604081208054600166ffffffffffffff199091166101004265ffffffffffff1602178117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501805473ffffffffffffffffffffffffffffffffffffffff191690911790555b6001600160a01b0382166000908152600e602052604081205460ff161515900361291b576001600160a01b0382166000818152600e602052604081208054600166ffffffffffffff199091166101004265ffffffffffff1602178117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501805473ffffffffffffffffffffffffffffffffffffffff191690911790555b610ce08383836129fb565b600061293160085490565b905090565b81546000908103612949575060006107d4565b82546000905b808210156129a55760006129638383612a43565b90508486828154811061297857612978612e45565b906000526020600020015411156129915780915061299f565b61299c816001612f6f565b92505b5061294f565b6000821180156129da575083856129bd600185612f43565b815481106129cd576129cd612e45565b9060005260206000200154145b156129f3576129ea600183612f43565b925050506107d4565b5090506107d4565b6001600160a01b038316612a1a57612a1282612a5e565b610ce0612a90565b6001600160a01b038216612a3157612a1283612a5e565b612a3a83612a5e565b610ce082612a5e565b6000612a526002848418613056565b61132590848416612f6f565b6001600160a01b038116600090815260056020908152604080832091839052909120546110219190612aa0565b612aa0565b612a9e6006612a8b60025490565b565b6000612aaa612926565b905080612ab684612aea565b1015610ce0578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103612afd57506000919050565b81548290612b0d90600190612f43565b81548110612b1d57612b1d612e45565b90600052602060002001549050919050565b919050565b600060208284031215612b4657600080fd5b81356001600160e01b03198116811461132557600080fd5b60005b83811015612b79578181015183820152602001612b61565b50506000910152565b6020815260008251806020840152612ba1816040850160208701612b5e565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612b2f57600080fd5b60008060408385031215612bdf57600080fd5b612be883612bb5565b946020939093013593505050565b60008060408385031215612c0957600080fd5b50508035926020909101359150565b600060208284031215612c2a57600080fd5b61132582612bb5565b600081518084526020808501945080840160005b83811015612c6357815187529582019590820190600101612c47565b509495945050505050565b600081518084526020808501945080840160005b83811015612c6357815165ffffffffffff1687529582019590820190600101612c82565b606081526000612cb96060830186612c33565b8281036020840152612ccb8186612c6e565b90508281036040840152612cdf8185612c6e565b9695505050505050565b600080600060608486031215612cfe57600080fd5b612d0784612bb5565b9250612d1560208501612bb5565b9150604084013590509250925092565b600060208284031215612d3757600080fd5b5035919050565b600081518084526020808501945080840160005b83811015612c635781516001600160a01b031687529582019590820190600101612d52565b838152606060208201526000612d906060830185612d3e565b8281036040840152612cdf8185612c33565b60008060408385031215612db557600080fd5b82359150612dc560208401612bb5565b90509250929050565b6020815260006113256020830184612d3e565b60008060408385031215612df457600080fd5b612dfd83612bb5565b9150612dc560208401612bb5565b600181811c90821680612e1f57607f821691505b602082108103612e3f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b7f41636365737320666f722041646d696e206f6e6c792e2053656e6465723a2000815260008351612e9381601f850160208801612b5e565b7f2074782e6f726967696e3a200000000000000000000000000000000000000000601f918401918201528351612ed081602b840160208801612b5e565b01602b01949350505050565b600060208284031215612eee57600080fd5b5051919050565b600060208284031215612f0757600080fd5b8151801515811461132557600080fd5b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b818103818111156107d4576107d4612f2d565b600060018201612f6857612f68612f2d565b5060010190565b808201808211156107d4576107d4612f2d565b80820281158282048414176107d4576107d4612f2d565b600081612fa857612fa8612f2d565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612fe8816017850160208801612b5e565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613025816028840160208801612b5e565b01602801949350505050565b600065ffffffffffff80831681810361304c5761304c612f2d565b6001019392505050565b60008261307357634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220156557345f240cce5e97dafc91e010a2439c4e18587202f5ec6ae96e8af4f9ca64736f6c63430008130033
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.