ERC-20
Source Code
Overview
Max Total Supply
100,000 U
Holders
108 (0.00%)
Market
Price
$0.1998 @ 0.000068 ETH
Onchain Market Cap
$19,981.90
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.725191399664615307 UValue
$0.14 ( ~4.75759726760499E-05 ETH) [0.0007%]Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Uranium3o8
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 10000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import {IERC20} from "../lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol";
import {ERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import {Pausable} from "./Pausable.sol";
import {Blacklistable} from "./Blacklistable.sol";
import {ReentrancyGuard} from "../lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";
import {Rescuable} from "./Rescuable.sol";
import {SafeERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
/**
* @title Uranium3o8 Token
* @dev ERC20 token with pausable, blacklistable, and rescuable features.
* @notice Major powers are separated amongst the roles in the Uranium3o8 token
*
* Owner: Can change ownership and update contract roles.
* Power: can transfer Ownership, update Pauser, Rescuer, Blacklister, and MasterMinter.
*
* Pauser: Can pause and unpause the contract.
* Power: Pause and Unpause. Pausing restricts all non-view functions in the Uranium3o8 contract.
*
* Rescuer: Can rescue ERC20 tokens accidentally sent to the contract.
* Power: Rescue Funds.
Rescue rights not affected by pauses.
*
* Blacklister: Can manage the blacklist and restrict certain functions.
* Power: Add to and Remove from Blacklist.
* Blacklisted addresses face restricted functionalities.
* Blacklisting rights are not affected by pauses.
*
* Master Minter: Controls minting-related operations and configuration.
* Power: Issue and Redeem tokens. Configure and manage minters.
* The Master minter has the exclusive authority to add, update, and remove minters.
* Constraint: Minting and burning can only be performed by the masterMinter.
* Minters' operations are subject to the allowance set by the masterMinter.
*/
contract Uranium3o8 is
Pausable,
Blacklistable,
Rescuable,
ReentrancyGuard,
ERC20
{
constructor() ERC20("Uranium3o8", "U") {
masterMinter = address(msg.sender);
}
uint256 public salt = 1;
uint256 public maxMinterNumber;
address public masterMinter;
/** @notice array of all minter address */
address[] public minterAddresses;
/** @notice mapping to check if a given address is a minter */
mapping(address => bool) public minters;
/** @notice mapping of minter to its allowance */
mapping(address => uint256) public minterAllowance;
/** @notice mapping of minter to allowance already used */
mapping(address => uint256) public minterUsedAllowance;
event Issued(uint256 amount);
event Redeemed(uint256 amount);
event MintedByMinter(uint256 amount, uint256 usedAllowance, address minter);
event BurnedByMinter(uint256 amount, uint256 usedAllowance, address minter);
event MasterMinterChanged(address indexed newMasterMinter);
event MinterConfigured(
address indexed minter,
uint256 minterAllowanceAmount
);
event MinterRemoved(address minter);
event DestroyedBlackFunds(
address indexed blackListedUser,
uint256 dirtyFunds
);
event MaximumNumberOfMinters(uint256 newMinterNumber);
/**
* @dev Throws if called by any account other than a minter
*/
modifier onlyMinters() {
require(minters[msg.sender], "Uranium3o8: caller is not a minter");
_;
}
/**
* @dev Throws if called by any account other than the masterMinter
*/
modifier onlyMasterMinter() {
require(
msg.sender == masterMinter,
"Uranium3o8: caller is not the masterMinter"
);
_;
}
/**
@dev checks if it is on the minterAddresses array
* We iterate over the dynamic array and not the mapping because
* this is the most informationally dense structure where data on minters is stored.
*/
function isMinter(address minter) public view returns (bool) {
// for (uint i = 0; i < minterAddresses.length; i++) {
// if (minterAddresses[i] == minter) {
// return true;
// }
// }
// return false;
bool _is = minters[minter];
return _is;
}
function allMinters() public view returns (address[] memory) {
return minterAddresses;
}
function numberOfMinters() public view returns (uint256 mintersNumber) {
address[] memory _minterAddresses = allMinters();
mintersNumber = _minterAddresses.length;
return mintersNumber;
}
function transfer(
address _to,
uint256 _value
)
public
override
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(_to)
returns (bool)
{
return super.transfer(_to, _value);
}
function transferFrom(
address _from,
address _to,
uint256 _value
)
public
override
whenNotPaused
notBlacklisted(_from)
notBlacklisted(_to)
returns (bool)
{
return super.transferFrom(_from, _to, _value);
}
/** @dev Issues a new amount of tokens.
* These tokens are deposted into the owner address.
* Only the masterMinter call this function.
* Issue amount is unlimited.
*/
function issue(
uint256 amount
)
external
nonReentrant
onlyMasterMinter
whenNotPaused
notBlacklisted(msg.sender)
{
_mint(masterMinter, amount);
emit Issued(amount);
}
/** @dev Redeems an amount of tokens.
* These tokens are withdrawn from the owner address,
* which means the tokens must be deposited from the owner address before hand.
* Only the masterMinter call this function.
* The redemption amount must be covered by the balance in the owern address
* or the call will fail.
*/
function redeem(
uint256 amount
)
external
nonReentrant
onlyMasterMinter
whenNotPaused
notBlacklisted(msg.sender)
{
_burn(masterMinter, amount);
emit Redeemed(amount);
}
/**
* @notice Mint new tokens by an authorized minter.
* MasterMinter may not call this function as masterMinter cannot be added to the list of minters
* @param to Recipient address for minted tokens.
* @param amount Amount of tokens to mint.
* Requirements: Authorized minter, contract not paused, recipient not blacklisting.
* Emits a MintedByMinter event.
*/
function mintByMinter(
address to,
uint256 amount
)
external
nonReentrant
onlyMinters
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(to)
{
uint256 allowance = minterAllowance[msg.sender];
uint256 usedAllowance = minterUsedAllowance[msg.sender];
require(usedAllowance + amount <= allowance, "Insufficient allowance");
_mint(to, amount);
minterUsedAllowance[msg.sender] += amount;
emit MintedByMinter(amount, minterUsedAllowance[msg.sender], to);
}
/**
* @notice Redeems tokens by an authorized minter.
* MasterMinter may not call this function as masterMinter cannot be added to the list of minters
* @param amount Amount of tokens to be redeemed.
* Requirements: Authorized minter, contract not paused, recipient not blacklisting.
* Emits a BurnedByMinter event.
*/
function burnByMinter(
uint256 amount
)
external
nonReentrant
onlyMinters
whenNotPaused
notBlacklisted(msg.sender)
{
uint256 usedAllowance = minterUsedAllowance[msg.sender];
/** the minter can't burn if it has not used any of its allowance. */
require(usedAllowance > 0, "minter has not used any of its allowance");
/** The following basically means if a minter burns more than its usedAllownace,
* there will be tokens left unburned,
* and some other minter will have to burn it.
*/
bool burningMoreThanUsedAllowance = (usedAllowance < amount);
uint256 burningAmount = (
burningMoreThanUsedAllowance ? usedAllowance : amount
);
minterUsedAllowance[msg.sender] -= burningAmount;
_burn(msg.sender, burningAmount);
emit BurnedByMinter(burningAmount, usedAllowance, msg.sender);
}
/**
* @dev Updates the address of the masterMinter role.
* Only the contract owner can update the masterMinter address.
* @param _newMasterMinter The new address to be set as the masterMinter.
* The new address cannot be the zero address and must not be blacklisted.
* Emits a MasterMinterChanged event.
*/
function updateMasterMinter(
address _newMasterMinter
)
external
nonReentrant
whenNotPaused
onlyOwner
notBlacklisted(_newMasterMinter)
{
require(
_newMasterMinter != address(0),
"Uranium3o8: new masterMinter is the zero address"
);
masterMinter = _newMasterMinter;
emit MasterMinterChanged(masterMinter);
}
/**
* @dev Function to add a new minter or to update the allowance of a minter
* @param minter The address of the minter
* @param newMinterAllowanceAmount The minting amount allowed for the minter
* @return True if the operation was successful.
*/
function configureMinter(
address minter,
uint256 newMinterAllowanceAmount
) external nonReentrant whenNotPaused onlyMasterMinter returns (bool) {
require(minter != masterMinter, "Trying to add masterMinter");
require(
minter != address(0),
"Trying to add the zero address as minter!"
);
bool _alreadyIsMinter = isMinter(minter);
if (!_alreadyIsMinter) {
require(
numberOfMinters() + 1 <= maxMinterNumber,
"maximum number of minters reached"
);
}
/** If the masterMinter reconfigures the minter's allowance
* to something lower than the allowance it has already used,
* the minter's usedAllowance will be reset to the new allowance,
* which effectively means the minter will not be able to mint anymore.
*/
uint256 oldMinterAllowanceAmount = minterAllowance[minter];
uint256 usedAllowance = minterUsedAllowance[minter];
if (
newMinterAllowanceAmount <= oldMinterAllowanceAmount &&
usedAllowance >= newMinterAllowanceAmount
) {
minterUsedAllowance[minter] = newMinterAllowanceAmount;
}
minterAllowance[minter] = newMinterAllowanceAmount;
if (!_alreadyIsMinter) {
minterAddresses.push(minter);
minters[minter] = true;
assert(numberOfMinters() <= maxMinterNumber);
}
emit MinterConfigured(minter, newMinterAllowanceAmount);
return true;
}
/**
* @dev Removes a minter from the list of authorized minters.
* Only the masterMinter can call this function to remove a minter.
* @param minter The address of the minter to be removed.
* @return A boolean indicating the success of the operation.
* Requirements: Caller must be the masterMinter, contract not paused,
* the minter address cannot be the zero address, and the minter cannot be the contract owner.
* Emits a MinterRemoved event.
*/
function removeMinter(
address minter
) external nonReentrant whenNotPaused onlyMasterMinter returns (bool) {
require(minter != address(0), "Zero address!");
require(isMinter(minter), "Address not on list of minter addresses!");
// deleting value from mapping
delete minters[minter];
delete minterAllowance[minter];
delete minterUsedAllowance[minter];
// Find and remove the minter from the list of minter addresses
for (uint256 i = 0; i < minterAddresses.length; i++) {
// if the programme finds a slot in the array whose entry is the minter
// it replaces it with the last element in the array
if (minterAddresses[i] == minter) {
minterAddresses[i] = minterAddresses[
minterAddresses.length - 1
];
minterAddresses.pop();
break;
}
}
emit MinterRemoved(minter);
return true;
}
/** @dev called by owner to configure the maximum number of minters
* Not in the hands of the masterMinter to separate powers.
*/
function setMaximumNumberOfMinters(
uint256 minterNumber
) external onlyOwner {
maxMinterNumber = minterNumber;
emit MaximumNumberOfMinters(minterNumber);
}
/**
* @dev this function destroys the balance of a blacklisted address.
* The function is callable only by the masterMinter and not the blacklister.
* This is to concentrate the rights concerning supply change in the hands of the masterMinter.
* And to deprive the blacklister of independent and unchecked fund destruction powers.
*/
function destroyBlackFunds(
address _blackListedUser
) external nonReentrant onlyMasterMinter {
require(isBlacklisted[_blackListedUser], "user is not blacklisted!");
uint256 dirtyFunds = balanceOf(_blackListedUser);
_burn(_blackListedUser, dirtyFunds);
emit DestroyedBlackFunds(_blackListedUser, dirtyFunds);
}
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* 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}.
*
* 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 default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_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;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/** @dev This is based on OpenZeppelin's Pausable.
* Unfortunately it's only last updated v4.7.0 (security/Pausable.sol).
* So we have to manually update the contract ourselves.
*/
// import {Ownable} from "../lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import {UnrenounceableOwnable2Step} from "./UnrenounceableOwnable2Step.sol";
/**
* @dev A contract module enabling an authorized account to pause and unpause functionality.
*
* This module provides the `whenNotPaused` and `whenPaused` modifiers for functions.
* The whenNotPaused modifier is used for normal functions of an ERC20 token - transfer(), transferFrom() but also other
* functions such as issue() and redeem().
* The function of introducing these modifiers in the contract, is to pause all activity in the situation where something has gone wrong.
*/
// contract Pausable is Ownable {
contract Pausable is UnrenounceableOwnable2Step {
address public pauser;
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
/**
* @dev Emitted when the pauser address is updated.
* @param newAddress The new address assigned as the pauser.
*/
event PauserChanged(address indexed newAddress);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
pauser = msg.sender;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
* Requirements:
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
* Requirements:
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
* Requirements:
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
* Requirements:
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
/**
* @dev throws if called by any account other than the pauser
*/
modifier onlyPauser() {
require(msg.sender == pauser, "Pausable: caller is not the pauser");
_;
}
// Pausing
function pause() public onlyPauser returns (bool) {
_pause();
return (paused());
}
function unpause() public onlyPauser returns (bool) {
_unpause();
return (paused());
}
/**
* @dev update the pauser role - only the owner can call this function
* Requirements:
* - The newPauser must not be the zero address.
*/
function updatePauser(address _newPauser) external onlyOwner {
require(
_newPauser != address(0),
"Pausable: new pauser is the zero address"
);
pauser = _newPauser;
emit PauserChanged(pauser);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import {ERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
// import {Ownable} from "../lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import {UnrenounceableOwnable2Step} from "./UnrenounceableOwnable2Step.sol";
/**
* @title Blacklistable Contract
* @dev This contract provides functionality to manage a blacklist of addresses and control access to blacklisting operations.
*/
// contract Blacklistable is Ownable {
contract Blacklistable is UnrenounceableOwnable2Step {
mapping(address => bool) public isBlacklisted;
address public blacklister;
event AddedBlackList(address indexed evilUser);
event RemovedBlackList(address indexed clearedUser);
event BlacklisterChanged(address indexed newBlacklister);
/**
* @dev Initializes the contract with the deployer's address as the initial blacklister.
*/
constructor() {
blacklister = msg.sender;
}
/**
* @dev Reverts if called by any account other than the blacklister
*/
modifier onlyBlacklister() {
require(
msg.sender == blacklister,
"Blacklistable: caller is not the blacklister"
);
_;
}
/**
* @dev Throws if argument account is blacklisted
* @param _account The address to check
*/
modifier notBlacklisted(address _account) {
require(
!isBlacklisted[_account],
"Blacklistable: account is blacklisted"
);
_;
}
/**
* @dev Blacklists an address.
* @param _evilUser Address to blacklist.
* Emits `AddedBlackList` event.
*/
function addBlacklist(address _evilUser) external onlyBlacklister {
isBlacklisted[_evilUser] = true;
emit AddedBlackList(_evilUser);
}
/**
* @dev Removes an address from the blacklist.
* @param _clearedUser Address to unblacklist.
* Emits `RemovedBlackList` event.
*/
function removeBlackList(address _clearedUser) external onlyBlacklister {
isBlacklisted[_clearedUser] = false;
emit RemovedBlackList(_clearedUser);
}
/**
* @dev Updates the blacklister address. Only the owner can change the blacklister.
* @param _newBlacklister New blacklister's address.
* Requires non-zero address.
* Emits `BlacklisterChanged` event.
*/
function updateBlacklister(address _newBlacklister) external onlyOwner {
require(
_newBlacklister != address(0),
"Blacklistable: new blacklister is the zero address"
);
blacklister = _newBlacklister;
emit BlacklisterChanged(blacklister);
}
/**
* @dev Checks if an address is blacklisted.
*/
function getBlackListStatus(address _maker) public view returns (bool) {
return isBlacklisted[_maker];
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import {IERC20} from "../lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol";
// import {Ownable} from "../lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import {UnrenounceableOwnable2Step} from "./UnrenounceableOwnable2Step.sol";
import {SafeERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
contract Rescuable is UnrenounceableOwnable2Step {
using SafeERC20 for IERC20;
address public rescuer;
event RescuerChanged(address indexed newRescuer);
/**
* @notice Revert if called by any account other than the rescuer.
*/
modifier onlyRescuer() {
require(msg.sender == rescuer, "Rescuable: caller is not the rescuer");
_;
}
constructor() {
rescuer = msg.sender;
}
/**
* @notice Rescue ERC20 tokens locked up in this contract.
* @param tokenContract ERC20 token contract address
* @param to Recipient address
* @param amount Amount to withdraw
*/
function rescueERC20(
address tokenContract,
address to,
uint256 amount
) external onlyRescuer {
IERC20(tokenContract).transfer(to, amount);
}
/**
* @notice Assign the rescuer role to a given address.
* @param newRescuer New rescuer's address
*/
function updateRescuer(address newRescuer) external onlyOwner {
require(
newRescuer != address(0),
"Rescuable: new rescuer is the zero address"
);
rescuer = newRescuer;
emit RescuerChanged(newRescuer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
* 0 before setting it to a non-zero value.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import {Ownable2Step} from "../lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol";
contract UnrenounceableOwnable2Step is Ownable2Step {
function renounceOwnership() public view override onlyOwner {
revert("UnrenounceableOwnable2Step: renounceOwnership is disabled");
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.0;
import "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}{
"remappings": [
"chainlink/=lib/chainlink/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin/=lib/openzeppelin-contracts/contracts/",
"@prb-test/=lib/prb-test/src/",
"@uniswap/lib/=lib/solidity-lib/",
"pyth-sdk-solidity/=lib/pyth-sdk-solidity/",
"solidity-lib/=lib/solidity-lib/contracts/",
"@uniswap/v2-core/=lib/v2-core/",
"@uniswap/v2-periphery/=lib/v2-periphery/contracts/",
"prb-test/=lib/prb-test/src/",
"v2-core/=lib/v2-core/contracts/",
"v2-periphery/=lib/v2-periphery/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 10000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": false
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"evilUser","type":"address"}],"name":"AddedBlackList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newBlacklister","type":"address"}],"name":"BlacklisterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usedAllowance","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"BurnedByMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"blackListedUser","type":"address"},{"indexed":false,"internalType":"uint256","name":"dirtyFunds","type":"uint256"}],"name":"DestroyedBlackFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Issued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newMasterMinter","type":"address"}],"name":"MasterMinterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinterNumber","type":"uint256"}],"name":"MaximumNumberOfMinters","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usedAllowance","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"MintedByMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"minterAllowanceAmount","type":"uint256"}],"name":"MinterConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"PauserChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"clearedUser","type":"address"}],"name":"RemovedBlackList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newRescuer","type":"address"}],"name":"RescuerChanged","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_evilUser","type":"address"}],"name":"addBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allMinters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blacklister","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnByMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"newMinterAllowanceAmount","type":"uint256"}],"name":"configureMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_blackListedUser","type":"address"}],"name":"destroyBlackFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_maker","type":"address"}],"name":"getBlackListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"issue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"masterMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMinterNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintByMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"minterAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minterAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minterUsedAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfMinters","outputs":[{"internalType":"uint256","name":"mintersNumber","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_clearedUser","type":"address"}],"name":"removeBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"removeMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescuer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minterNumber","type":"uint256"}],"name":"setMaximumNumberOfMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newBlacklister","type":"address"}],"name":"updateBlacklister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMasterMinter","type":"address"}],"name":"updateMasterMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPauser","type":"address"}],"name":"updatePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRescuer","type":"address"}],"name":"updateRescuer","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526001600c553480156200001657600080fd5b506040518060400160405280600a8152602001690aae4c2dcd2eada66de760b31b815250604051806040016040528060018152602001605560f81b8152506200006e62000068620000e160201b60201c565b620000e5565b600280546001600160a81b03191633908117909155600480546001600160a01b031990811683179091556005805490911690911790556001600655600a620000b78382620001f8565b50600b620000c68282620001f8565b5050600e80546001600160a01b0319163317905550620002c4565b3390565b600180546001600160a01b0319169055620001008162000103565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200017e57607f821691505b6020821081036200019f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f357600081815260208120601f850160051c81016020861015620001ce5750805b601f850160051c820191505b81811015620001ef57828155600101620001da565b5050505b505050565b81516001600160401b0381111562000214576200021462000153565b6200022c8162000225845462000169565b84620001a5565b602080601f8311600181146200026457600084156200024b5750858301515b600019600386901b1c1916600185901b178555620001ef565b600085815260208120601f198616915b82811015620002955788860151825594840194600190910190840162000274565b5085821015620002b45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6132c280620002d46000396000f3fe608060405234801561001057600080fd5b506004361061032b5760003560e01c80638a6db9c3116101b2578063bd102430116100f9578063e4997dc5116100a2578063f2fde38b1161007c578063f2fde38b146106f3578063f3bdc22814610706578063f46eccc414610719578063fe575a871461073c57600080fd5b8063e4997dc5146106c4578063f0d35446146106d7578063f2887ded146106ea57600080fd5b8063db006a75116100d3578063db006a7514610667578063dd62ed3e1461067a578063e30c3978146106b357600080fd5b8063bd10243014610638578063bfa0b1331461064b578063cc872b661461065457600080fd5b8063a9059cbb1161015b578063ad38bf2211610135578063ad38bf22146105fd578063b2118a8d14610610578063b302e0a71461062357600080fd5b8063a9059cbb146105ab578063aa20e1e4146105be578063aa271e1a146105d157600080fd5b80639cfe42da1161018c5780639cfe42da146105725780639fd0506d14610585578063a457c2d71461059857600080fd5b80638a6db9c3146105395780638da5cb5b1461055957806395d89b411461056a57600080fd5b80633f4ba83a116102765780635c975abb1161021f57806379ba5097116101f957806379ba509714610509578063836c748c146105115780638456cb591461053157600080fd5b80635c975abb146104b557806370a08231146104d8578063715018a61461050157600080fd5b806352491d771161025057806352491d7714610463578063554bab3c1461047657806359bf1abe1461048957600080fd5b80633f4ba83a146104355780634d15e8691461043d5780634e44d9561461045057600080fd5b80632ab60045116102d857806335d99f35116102b257806335d99f35146103fc57806338a631831461040f578063395093511461042257600080fd5b80632ab60045146103c55780633092afd5146103da578063313ce567146103ed57600080fd5b806318160ddd1161030957806318160ddd1461039857806318a22473146103aa57806323b872dd146103b257600080fd5b8063028850971461033057806306fdde0314610360578063095ea7b314610375575b600080fd5b61034361033e366004612f8f565b61075f565b6040516001600160a01b0390911681526020015b60405180910390f35b610368610789565b6040516103579190612fa8565b61038861038336600461302b565b61081b565b6040519015158152602001610357565b6009545b604051908152602001610357565b61039c610835565b6103886103c0366004613055565b610847565b6103d86103d3366004613091565b61098d565b005b6103886103e8366004613091565b610a73565b60405160128152602001610357565b600e54610343906001600160a01b031681565b600554610343906001600160a01b031681565b61038861043036600461302b565b610dc9565b610388610e08565b6103d861044b366004612f8f565b610eb6565b61038861045e36600461302b565b6110ea565b6103d861047136600461302b565b61147d565b6103d8610484366004613091565b611735565b610388610497366004613091565b6001600160a01b031660009081526003602052604090205460ff1690565b60025474010000000000000000000000000000000000000000900460ff16610388565b61039c6104e6366004613091565b6001600160a01b031660009081526007602052604090205490565b6103d861181b565b6103d8611891565b61039c61051f366004613091565b60126020526000908152604090205481565b61038861191c565b61039c610547366004613091565b60116020526000908152604090205481565b6000546001600160a01b0316610343565b6103686119a7565b6103d8610580366004613091565b6119b6565b600254610343906001600160a01b031681565b6103886105a636600461302b565b611aa0565b6103886105b936600461302b565b611b55565b6103d86105cc366004613091565b611c89565b6103886105df366004613091565b6001600160a01b031660009081526010602052604090205460ff1690565b6103d861060b366004613091565b611e18565b6103d861061e366004613055565b611efe565b61062b61200f565b60405161035791906130b3565b600454610343906001600160a01b031681565b61039c600c5481565b6103d8610662366004612f8f565b612070565b6103d8610675366004612f8f565b6121db565b61039c610688366004613100565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6001546001600160a01b0316610343565b6103d86106d2366004613091565b612337565b6103d86106e5366004612f8f565b61241e565b61039c600d5481565b6103d8610701366004613091565b612461565b6103d8610714366004613091565b6124ea565b610388610727366004613091565b60106020526000908152604090205460ff1681565b61038861074a366004613091565b60036020526000908152604090205460ff1681565b600f818154811061076f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600a805461079890613133565b80601f01602080910402602001604051908101604052809291908181526020018280546107c490613133565b80156108115780601f106107e657610100808354040283529160200191610811565b820191906000526020600020905b8154815290600101906020018083116107f457829003601f168201915b5050505050905090565b60003361082981858561264b565b60019150505b92915050565b60008061084061200f565b5192915050565b60006108516127a4565b6001600160a01b038416600090815260036020526040902054849060ff16156108e75760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6001600160a01b038416600090815260036020526040902054849060ff16156109785760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b610983868686612811565b9695505050505050565b61099561282a565b6001600160a01b038116610a115760405162461bcd60e51b815260206004820152602a60248201527f526573637561626c653a206e6577207265736375657220697320746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108de565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fe475e580d85111348e40d8ca33cfdd74c30fe1655c2d8537a13abc10065ffa5a90600090a250565b6000610a7d612884565b610a856127a4565b600e546001600160a01b03163314610b055760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216610b5b5760405162461bcd60e51b815260206004820152600d60248201527f5a65726f2061646472657373210000000000000000000000000000000000000060448201526064016108de565b6001600160a01b03821660009081526010602052604090205460ff16610be95760405162461bcd60e51b815260206004820152602860248201527f41646472657373206e6f74206f6e206c697374206f66206d696e74657220616460448201527f647265737365732100000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216600090815260106020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560118252808320839055601290915281208190555b600f54811015610d7a57826001600160a01b0316600f8281548110610c6657610c66613186565b6000918252602090912001546001600160a01b031603610d6857600f8054610c90906001906131e4565b81548110610ca057610ca0613186565b600091825260209091200154600f80546001600160a01b039092169183908110610ccc57610ccc613186565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600f805480610d0b57610d0b6131f7565b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055019055610d7a565b80610d7281613226565b915050610c3f565b506040516001600160a01b03831681527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929060200160405180910390a1506001610dc46001600655565b919050565b3360008181526008602090815260408083206001600160a01b03871684529091528120549091906108299082908690610e0390879061325e565b61264b565b6002546000906001600160a01b03163314610e8b5760405162461bcd60e51b815260206004820152602260248201527f5061757361626c653a2063616c6c6572206973206e6f7420746865207061757360448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b610e936128dd565b60025474010000000000000000000000000000000000000000900460ff16905090565b610ebe612884565b3360009081526010602052604090205460ff16610f435760405162461bcd60e51b815260206004820152602260248201527f5572616e69756d336f383a2063616c6c6572206973206e6f742061206d696e7460448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b610f4b6127a4565b3360008181526003602052604090205460ff1615610fd15760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b33600090815260126020526040902054806110545760405162461bcd60e51b815260206004820152602860248201527f6d696e74657220686173206e6f74207573656420616e79206f6620697473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084016108de565b8281106000816110645784611066565b825b3360009081526012602052604081208054929350839290919061108a9084906131e4565b9091555061109a9050338261294d565b6040805182815260208101859052338183015290517fcb6bf4efcc2ffe48cadcd63bf5423afa58ed9c6d6ee1ea31ec3dcc0f3e63402e9181900360600190a1505050506110e76001600655565b50565b60006110f4612884565b6110fc6127a4565b600e546001600160a01b0316331461117c5760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b600e546001600160a01b03908116908416036111da5760405162461bcd60e51b815260206004820152601a60248201527f547279696e6720746f20616464206d61737465724d696e74657200000000000060448201526064016108de565b6001600160a01b0383166112565760405162461bcd60e51b815260206004820152602960248201527f547279696e6720746f2061646420746865207a65726f2061646472657373206160448201527f73206d696e74657221000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03831660009081526010602052604090205460ff168061130157600d54611282610835565b61128d90600161325e565b11156113015760405162461bcd60e51b815260206004820152602160248201527f6d6178696d756d206e756d626572206f66206d696e746572732072656163686560448201527f640000000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0384166000908152601160209081526040808320546012909252909120548185118015906113365750848110155b15611357576001600160a01b03861660009081526012602052604090208590555b6001600160a01b03861660009081526011602052604090208590558261142957600f805460018082019092557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038916908117909155600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055600d5461141b610835565b111561142957611429613271565b856001600160a01b03167f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d208660405161146491815260200190565b60405180910390a26001935050505061082f6001600655565b611485612884565b3360009081526010602052604090205460ff1661150a5760405162461bcd60e51b815260206004820152602260248201527f5572616e69756d336f383a2063616c6c6572206973206e6f742061206d696e7460448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6115126127a4565b3360008181526003602052604090205460ff16156115985760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038316600090815260036020526040902054839060ff16156116295760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b3360009081526011602090815260408083205460129092529091205481611650868361325e565b111561169e5760405162461bcd60e51b815260206004820152601660248201527f496e73756666696369656e7420616c6c6f77616e63650000000000000000000060448201526064016108de565b6116a88686612ab0565b33600090815260126020526040812080548792906116c790849061325e565b909155505033600090815260126020908152604091829020548251888152918201526001600160a01b0388168183015290517f1c5c84779fee7fc8c322c22e00a7c9eda78e08905a0bec9e56d081bbefe689159181900360600190a1505050506117316001600655565b5050565b61173d61282a565b6001600160a01b0381166117b95760405162461bcd60e51b815260206004820152602860248201527f5061757361626c653a206e65772070617573657220697320746865207a65726f60448201527f206164647265737300000000000000000000000000000000000000000000000060648201526084016108de565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fb80482a293ca2e013eda8683c9bd7fc8347cfdaeea5ede58cba46df502c2a60490600090a250565b61182361282a565b60405162461bcd60e51b815260206004820152603960248201527f556e72656e6f756e636561626c654f776e61626c6532537465703a2072656e6f60448201527f756e63654f776e6572736869702069732064697361626c65640000000000000060648201526084016108de565b60015433906001600160a01b031681146119135760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016108de565b6110e781612b71565b6002546000906001600160a01b0316331461199f5760405162461bcd60e51b815260206004820152602260248201527f5061757361626c653a2063616c6c6572206973206e6f7420746865207061757360448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b610e93612ba2565b6060600b805461079890613133565b6004546001600160a01b03163314611a365760405162461bcd60e51b815260206004820152602c60248201527f426c61636b6c69737461626c653a2063616c6c6572206973206e6f742074686560448201527f20626c61636b6c6973746572000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03811660008181526003602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc9190a250565b3360008181526008602090815260408083206001600160a01b038716845290915281205490919083811015611b3d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016108de565b611b4a828686840361264b565b506001949350505050565b6000611b5f6127a4565b3360008181526003602052604090205460ff1615611be55760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038416600090815260036020526040902054849060ff1615611c765760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b611c808585612c11565b95945050505050565b611c91612884565b611c996127a4565b611ca161282a565b6001600160a01b038116600090815260036020526040902054819060ff1615611d325760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216611dae5760405162461bcd60e51b815260206004820152603060248201527f5572616e69756d336f383a206e6577206d61737465724d696e7465722069732060448201527f746865207a65726f20616464726573730000000000000000000000000000000060648201526084016108de565b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091556040517fdb66dfa9c6b8f5226fe9aac7e51897ae8ee94ac31dc70bb6c9900b2574b707e690600090a2506110e76001600655565b611e2061282a565b6001600160a01b038116611e9c5760405162461bcd60e51b815260206004820152603260248201527f426c61636b6c69737461626c653a206e657720626c61636b6c6973746572206960448201527f7320746865207a65726f2061646472657373000000000000000000000000000060648201526084016108de565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b6005546001600160a01b03163314611f7d5760405162461bcd60e51b8152602060048201526024808201527f526573637561626c653a2063616c6c6572206973206e6f74207468652072657360448201527f637565720000000000000000000000000000000000000000000000000000000060648201526084016108de565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015611fe5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200991906132a0565b50505050565b6060600f80548060200260200160405190810160405280929190818152602001828054801561081157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612049575050505050905090565b612078612884565b600e546001600160a01b031633146120f85760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b6121006127a4565b3360008181526003602052604090205460ff16156121865760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b600e5461219c906001600160a01b031683612ab0565b6040518281527f0ff70e913721268f674352b5efa2e7268fcc191c80983d3fdf95fb474768b468906020015b60405180910390a1506110e76001600655565b6121e3612884565b600e546001600160a01b031633146122635760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b61226b6127a4565b3360008181526003602052604090205460ff16156122f15760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b600e54612307906001600160a01b03168361294d565b6040518281527f82498456531a1065f689ba348ce20bda781238c424cf36748dd40bc282831e03906020016121c8565b6004546001600160a01b031633146123b75760405162461bcd60e51b815260206004820152602c60248201527f426c61636b6c69737461626c653a2063616c6c6572206973206e6f742074686560448201527f20626c61636b6c6973746572000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03811660008181526003602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c9190a250565b61242661282a565b600d8190556040518181527f8cddf5ab1a64225310bfdf63e9912ac38c1aef068ed4869afa0cd2e7adeff6979060200160405180910390a150565b61246961282a565b600180546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556124b26000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6124f2612884565b600e546001600160a01b031633146125725760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03811660009081526003602052604090205460ff166125da5760405162461bcd60e51b815260206004820152601860248201527f75736572206973206e6f7420626c61636b6c697374656421000000000000000060448201526064016108de565b6001600160a01b0381166000908152600760205260409020546125fd828261294d565b816001600160a01b03167f61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c68260405161263891815260200190565b60405180910390a2506110e76001600655565b6001600160a01b0383166126c65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0382166127425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60025474010000000000000000000000000000000000000000900460ff161561280f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016108de565b565b60003361281f858285612c1f565b611b4a858585612cc9565b6000546001600160a01b0316331461280f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108de565b6002600654036128d65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108de565b6002600655565b6128e5612ebd565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166129c95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03821660009081526007602052604090205481811015612a585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03831660008181526007602090815260408083208686039055600980548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101612797565b6001600160a01b038216612b065760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108de565b8060096000828254612b18919061325e565b90915550506001600160a01b0382166000818152600760209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556110e781612f27565b612baa6127a4565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129303390565b600033610829818585612cc9565b6001600160a01b038381166000908152600860209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146120095781811015612cbc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108de565b612009848484840361264b565b6001600160a01b038316612d455760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216612dc15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03831660009081526007602052604090205481811015612e505760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0380851660008181526007602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612eb09086815260200190565b60405180910390a3612009565b60025474010000000000000000000000000000000000000000900460ff1661280f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016108de565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215612fa157600080fd5b5035919050565b600060208083528351808285015260005b81811015612fd557858101830151858201604001528201612fb9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b80356001600160a01b0381168114610dc457600080fd5b6000806040838503121561303e57600080fd5b61304783613014565b946020939093013593505050565b60008060006060848603121561306a57600080fd5b61307384613014565b925061308160208501613014565b9150604084013590509250925092565b6000602082840312156130a357600080fd5b6130ac82613014565b9392505050565b6020808252825182820181905260009190848201906040850190845b818110156130f45783516001600160a01b0316835292840192918401916001016130cf565b50909695505050505050565b6000806040838503121561311357600080fd5b61311c83613014565b915061312a60208401613014565b90509250929050565b600181811c9082168061314757607f821691505b602082108103613180577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561082f5761082f6131b5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613257576132576131b5565b5060010190565b8082018082111561082f5761082f6131b5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b6000602082840312156132b257600080fd5b815180151581146130ac57600080fd
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061032b5760003560e01c80638a6db9c3116101b2578063bd102430116100f9578063e4997dc5116100a2578063f2fde38b1161007c578063f2fde38b146106f3578063f3bdc22814610706578063f46eccc414610719578063fe575a871461073c57600080fd5b8063e4997dc5146106c4578063f0d35446146106d7578063f2887ded146106ea57600080fd5b8063db006a75116100d3578063db006a7514610667578063dd62ed3e1461067a578063e30c3978146106b357600080fd5b8063bd10243014610638578063bfa0b1331461064b578063cc872b661461065457600080fd5b8063a9059cbb1161015b578063ad38bf2211610135578063ad38bf22146105fd578063b2118a8d14610610578063b302e0a71461062357600080fd5b8063a9059cbb146105ab578063aa20e1e4146105be578063aa271e1a146105d157600080fd5b80639cfe42da1161018c5780639cfe42da146105725780639fd0506d14610585578063a457c2d71461059857600080fd5b80638a6db9c3146105395780638da5cb5b1461055957806395d89b411461056a57600080fd5b80633f4ba83a116102765780635c975abb1161021f57806379ba5097116101f957806379ba509714610509578063836c748c146105115780638456cb591461053157600080fd5b80635c975abb146104b557806370a08231146104d8578063715018a61461050157600080fd5b806352491d771161025057806352491d7714610463578063554bab3c1461047657806359bf1abe1461048957600080fd5b80633f4ba83a146104355780634d15e8691461043d5780634e44d9561461045057600080fd5b80632ab60045116102d857806335d99f35116102b257806335d99f35146103fc57806338a631831461040f578063395093511461042257600080fd5b80632ab60045146103c55780633092afd5146103da578063313ce567146103ed57600080fd5b806318160ddd1161030957806318160ddd1461039857806318a22473146103aa57806323b872dd146103b257600080fd5b8063028850971461033057806306fdde0314610360578063095ea7b314610375575b600080fd5b61034361033e366004612f8f565b61075f565b6040516001600160a01b0390911681526020015b60405180910390f35b610368610789565b6040516103579190612fa8565b61038861038336600461302b565b61081b565b6040519015158152602001610357565b6009545b604051908152602001610357565b61039c610835565b6103886103c0366004613055565b610847565b6103d86103d3366004613091565b61098d565b005b6103886103e8366004613091565b610a73565b60405160128152602001610357565b600e54610343906001600160a01b031681565b600554610343906001600160a01b031681565b61038861043036600461302b565b610dc9565b610388610e08565b6103d861044b366004612f8f565b610eb6565b61038861045e36600461302b565b6110ea565b6103d861047136600461302b565b61147d565b6103d8610484366004613091565b611735565b610388610497366004613091565b6001600160a01b031660009081526003602052604090205460ff1690565b60025474010000000000000000000000000000000000000000900460ff16610388565b61039c6104e6366004613091565b6001600160a01b031660009081526007602052604090205490565b6103d861181b565b6103d8611891565b61039c61051f366004613091565b60126020526000908152604090205481565b61038861191c565b61039c610547366004613091565b60116020526000908152604090205481565b6000546001600160a01b0316610343565b6103686119a7565b6103d8610580366004613091565b6119b6565b600254610343906001600160a01b031681565b6103886105a636600461302b565b611aa0565b6103886105b936600461302b565b611b55565b6103d86105cc366004613091565b611c89565b6103886105df366004613091565b6001600160a01b031660009081526010602052604090205460ff1690565b6103d861060b366004613091565b611e18565b6103d861061e366004613055565b611efe565b61062b61200f565b60405161035791906130b3565b600454610343906001600160a01b031681565b61039c600c5481565b6103d8610662366004612f8f565b612070565b6103d8610675366004612f8f565b6121db565b61039c610688366004613100565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6001546001600160a01b0316610343565b6103d86106d2366004613091565b612337565b6103d86106e5366004612f8f565b61241e565b61039c600d5481565b6103d8610701366004613091565b612461565b6103d8610714366004613091565b6124ea565b610388610727366004613091565b60106020526000908152604090205460ff1681565b61038861074a366004613091565b60036020526000908152604090205460ff1681565b600f818154811061076f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600a805461079890613133565b80601f01602080910402602001604051908101604052809291908181526020018280546107c490613133565b80156108115780601f106107e657610100808354040283529160200191610811565b820191906000526020600020905b8154815290600101906020018083116107f457829003601f168201915b5050505050905090565b60003361082981858561264b565b60019150505b92915050565b60008061084061200f565b5192915050565b60006108516127a4565b6001600160a01b038416600090815260036020526040902054849060ff16156108e75760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6001600160a01b038416600090815260036020526040902054849060ff16156109785760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b610983868686612811565b9695505050505050565b61099561282a565b6001600160a01b038116610a115760405162461bcd60e51b815260206004820152602a60248201527f526573637561626c653a206e6577207265736375657220697320746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108de565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fe475e580d85111348e40d8ca33cfdd74c30fe1655c2d8537a13abc10065ffa5a90600090a250565b6000610a7d612884565b610a856127a4565b600e546001600160a01b03163314610b055760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216610b5b5760405162461bcd60e51b815260206004820152600d60248201527f5a65726f2061646472657373210000000000000000000000000000000000000060448201526064016108de565b6001600160a01b03821660009081526010602052604090205460ff16610be95760405162461bcd60e51b815260206004820152602860248201527f41646472657373206e6f74206f6e206c697374206f66206d696e74657220616460448201527f647265737365732100000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216600090815260106020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560118252808320839055601290915281208190555b600f54811015610d7a57826001600160a01b0316600f8281548110610c6657610c66613186565b6000918252602090912001546001600160a01b031603610d6857600f8054610c90906001906131e4565b81548110610ca057610ca0613186565b600091825260209091200154600f80546001600160a01b039092169183908110610ccc57610ccc613186565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600f805480610d0b57610d0b6131f7565b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055019055610d7a565b80610d7281613226565b915050610c3f565b506040516001600160a01b03831681527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929060200160405180910390a1506001610dc46001600655565b919050565b3360008181526008602090815260408083206001600160a01b03871684529091528120549091906108299082908690610e0390879061325e565b61264b565b6002546000906001600160a01b03163314610e8b5760405162461bcd60e51b815260206004820152602260248201527f5061757361626c653a2063616c6c6572206973206e6f7420746865207061757360448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b610e936128dd565b60025474010000000000000000000000000000000000000000900460ff16905090565b610ebe612884565b3360009081526010602052604090205460ff16610f435760405162461bcd60e51b815260206004820152602260248201527f5572616e69756d336f383a2063616c6c6572206973206e6f742061206d696e7460448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b610f4b6127a4565b3360008181526003602052604090205460ff1615610fd15760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b33600090815260126020526040902054806110545760405162461bcd60e51b815260206004820152602860248201527f6d696e74657220686173206e6f74207573656420616e79206f6620697473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084016108de565b8281106000816110645784611066565b825b3360009081526012602052604081208054929350839290919061108a9084906131e4565b9091555061109a9050338261294d565b6040805182815260208101859052338183015290517fcb6bf4efcc2ffe48cadcd63bf5423afa58ed9c6d6ee1ea31ec3dcc0f3e63402e9181900360600190a1505050506110e76001600655565b50565b60006110f4612884565b6110fc6127a4565b600e546001600160a01b0316331461117c5760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b600e546001600160a01b03908116908416036111da5760405162461bcd60e51b815260206004820152601a60248201527f547279696e6720746f20616464206d61737465724d696e74657200000000000060448201526064016108de565b6001600160a01b0383166112565760405162461bcd60e51b815260206004820152602960248201527f547279696e6720746f2061646420746865207a65726f2061646472657373206160448201527f73206d696e74657221000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03831660009081526010602052604090205460ff168061130157600d54611282610835565b61128d90600161325e565b11156113015760405162461bcd60e51b815260206004820152602160248201527f6d6178696d756d206e756d626572206f66206d696e746572732072656163686560448201527f640000000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0384166000908152601160209081526040808320546012909252909120548185118015906113365750848110155b15611357576001600160a01b03861660009081526012602052604090208590555b6001600160a01b03861660009081526011602052604090208590558261142957600f805460018082019092557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038916908117909155600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055600d5461141b610835565b111561142957611429613271565b856001600160a01b03167f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d208660405161146491815260200190565b60405180910390a26001935050505061082f6001600655565b611485612884565b3360009081526010602052604090205460ff1661150a5760405162461bcd60e51b815260206004820152602260248201527f5572616e69756d336f383a2063616c6c6572206973206e6f742061206d696e7460448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6115126127a4565b3360008181526003602052604090205460ff16156115985760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038316600090815260036020526040902054839060ff16156116295760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b3360009081526011602090815260408083205460129092529091205481611650868361325e565b111561169e5760405162461bcd60e51b815260206004820152601660248201527f496e73756666696369656e7420616c6c6f77616e63650000000000000000000060448201526064016108de565b6116a88686612ab0565b33600090815260126020526040812080548792906116c790849061325e565b909155505033600090815260126020908152604091829020548251888152918201526001600160a01b0388168183015290517f1c5c84779fee7fc8c322c22e00a7c9eda78e08905a0bec9e56d081bbefe689159181900360600190a1505050506117316001600655565b5050565b61173d61282a565b6001600160a01b0381166117b95760405162461bcd60e51b815260206004820152602860248201527f5061757361626c653a206e65772070617573657220697320746865207a65726f60448201527f206164647265737300000000000000000000000000000000000000000000000060648201526084016108de565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fb80482a293ca2e013eda8683c9bd7fc8347cfdaeea5ede58cba46df502c2a60490600090a250565b61182361282a565b60405162461bcd60e51b815260206004820152603960248201527f556e72656e6f756e636561626c654f776e61626c6532537465703a2072656e6f60448201527f756e63654f776e6572736869702069732064697361626c65640000000000000060648201526084016108de565b60015433906001600160a01b031681146119135760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016108de565b6110e781612b71565b6002546000906001600160a01b0316331461199f5760405162461bcd60e51b815260206004820152602260248201527f5061757361626c653a2063616c6c6572206973206e6f7420746865207061757360448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016108de565b610e93612ba2565b6060600b805461079890613133565b6004546001600160a01b03163314611a365760405162461bcd60e51b815260206004820152602c60248201527f426c61636b6c69737461626c653a2063616c6c6572206973206e6f742074686560448201527f20626c61636b6c6973746572000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03811660008181526003602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc9190a250565b3360008181526008602090815260408083206001600160a01b038716845290915281205490919083811015611b3d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016108de565b611b4a828686840361264b565b506001949350505050565b6000611b5f6127a4565b3360008181526003602052604090205460ff1615611be55760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038416600090815260036020526040902054849060ff1615611c765760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b611c808585612c11565b95945050505050565b611c91612884565b611c996127a4565b611ca161282a565b6001600160a01b038116600090815260036020526040902054819060ff1615611d325760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216611dae5760405162461bcd60e51b815260206004820152603060248201527f5572616e69756d336f383a206e6577206d61737465724d696e7465722069732060448201527f746865207a65726f20616464726573730000000000000000000000000000000060648201526084016108de565b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091556040517fdb66dfa9c6b8f5226fe9aac7e51897ae8ee94ac31dc70bb6c9900b2574b707e690600090a2506110e76001600655565b611e2061282a565b6001600160a01b038116611e9c5760405162461bcd60e51b815260206004820152603260248201527f426c61636b6c69737461626c653a206e657720626c61636b6c6973746572206960448201527f7320746865207a65726f2061646472657373000000000000000000000000000060648201526084016108de565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b6005546001600160a01b03163314611f7d5760405162461bcd60e51b8152602060048201526024808201527f526573637561626c653a2063616c6c6572206973206e6f74207468652072657360448201527f637565720000000000000000000000000000000000000000000000000000000060648201526084016108de565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015611fe5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200991906132a0565b50505050565b6060600f80548060200260200160405190810160405280929190818152602001828054801561081157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612049575050505050905090565b612078612884565b600e546001600160a01b031633146120f85760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b6121006127a4565b3360008181526003602052604090205460ff16156121865760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b600e5461219c906001600160a01b031683612ab0565b6040518281527f0ff70e913721268f674352b5efa2e7268fcc191c80983d3fdf95fb474768b468906020015b60405180910390a1506110e76001600655565b6121e3612884565b600e546001600160a01b031633146122635760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b61226b6127a4565b3360008181526003602052604090205460ff16156122f15760405162461bcd60e51b815260206004820152602560248201527f426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c60448201527f697374656400000000000000000000000000000000000000000000000000000060648201526084016108de565b600e54612307906001600160a01b03168361294d565b6040518281527f82498456531a1065f689ba348ce20bda781238c424cf36748dd40bc282831e03906020016121c8565b6004546001600160a01b031633146123b75760405162461bcd60e51b815260206004820152602c60248201527f426c61636b6c69737461626c653a2063616c6c6572206973206e6f742074686560448201527f20626c61636b6c6973746572000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03811660008181526003602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c9190a250565b61242661282a565b600d8190556040518181527f8cddf5ab1a64225310bfdf63e9912ac38c1aef068ed4869afa0cd2e7adeff6979060200160405180910390a150565b61246961282a565b600180546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556124b26000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6124f2612884565b600e546001600160a01b031633146125725760405162461bcd60e51b815260206004820152602a60248201527f5572616e69756d336f383a2063616c6c6572206973206e6f7420746865206d6160448201527f737465724d696e7465720000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03811660009081526003602052604090205460ff166125da5760405162461bcd60e51b815260206004820152601860248201527f75736572206973206e6f7420626c61636b6c697374656421000000000000000060448201526064016108de565b6001600160a01b0381166000908152600760205260409020546125fd828261294d565b816001600160a01b03167f61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c68260405161263891815260200190565b60405180910390a2506110e76001600655565b6001600160a01b0383166126c65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0382166127425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60025474010000000000000000000000000000000000000000900460ff161561280f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016108de565b565b60003361281f858285612c1f565b611b4a858585612cc9565b6000546001600160a01b0316331461280f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108de565b6002600654036128d65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108de565b6002600655565b6128e5612ebd565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166129c95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03821660009081526007602052604090205481811015612a585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03831660008181526007602090815260408083208686039055600980548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101612797565b6001600160a01b038216612b065760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108de565b8060096000828254612b18919061325e565b90915550506001600160a01b0382166000818152600760209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556110e781612f27565b612baa6127a4565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129303390565b600033610829818585612cc9565b6001600160a01b038381166000908152600860209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146120095781811015612cbc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108de565b612009848484840361264b565b6001600160a01b038316612d455760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b038216612dc15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b03831660009081526007602052604090205481811015612e505760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108de565b6001600160a01b0380851660008181526007602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612eb09086815260200190565b60405180910390a3612009565b60025474010000000000000000000000000000000000000000900460ff1661280f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016108de565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215612fa157600080fd5b5035919050565b600060208083528351808285015260005b81811015612fd557858101830151858201604001528201612fb9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b80356001600160a01b0381168114610dc457600080fd5b6000806040838503121561303e57600080fd5b61304783613014565b946020939093013593505050565b60008060006060848603121561306a57600080fd5b61307384613014565b925061308160208501613014565b9150604084013590509250925092565b6000602082840312156130a357600080fd5b6130ac82613014565b9392505050565b6020808252825182820181905260009190848201906040850190845b818110156130f45783516001600160a01b0316835292840192918401916001016130cf565b50909695505050505050565b6000806040838503121561311357600080fd5b61311c83613014565b915061312a60208401613014565b90509250929050565b600181811c9082168061314757607f821691505b602082108103613180577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561082f5761082f6131b5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613257576132576131b5565b5060010190565b8082018082111561082f5761082f6131b5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b6000602082840312156132b257600080fd5b815180151581146130ac57600080fd
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.
Add Token to MetaMask (Web3)