Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 7,545 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 68189732 | 5 hrs ago | IN | 0 S | 0.00272098 | ||||
| Approve | 68096376 | 24 hrs ago | IN | 0 S | 0.00272098 | ||||
| Approve | 68091505 | 25 hrs ago | IN | 0 S | 0.00267239 | ||||
| Approve | 67914010 | 2 days ago | IN | 0 S | 0.00600528 | ||||
| Approve | 67849488 | 3 days ago | IN | 0 S | 0.00280601 | ||||
| Approve | 67801769 | 3 days ago | IN | 0 S | 0.00257059 | ||||
| Approve | 67649289 | 4 days ago | IN | 0 S | 0.0026238 | ||||
| Approve | 67449584 | 6 days ago | IN | 0 S | 0.0014588 | ||||
| Approve | 67334813 | 7 days ago | IN | 0 S | 0.00276957 | ||||
| Approve | 67293631 | 7 days ago | IN | 0 S | 0.00267239 | ||||
| Approve | 67276080 | 7 days ago | IN | 0 S | 0.0017155 | ||||
| Approve | 67166750 | 8 days ago | IN | 0 S | 0.00276957 | ||||
| Approve | 67051919 | 9 days ago | IN | 0 S | 0.00291534 | ||||
| Approve | 67010629 | 9 days ago | IN | 0 S | 0.00267239 | ||||
| Approve | 67005687 | 9 days ago | IN | 0 S | 0.00267173 | ||||
| Approve | 66987473 | 10 days ago | IN | 0 S | 0.0048589 | ||||
| Approve | 66965345 | 10 days ago | IN | 0 S | 0.0023138 | ||||
| Approve | 66864897 | 12 days ago | IN | 0 S | 0.00291534 | ||||
| Approve | 66849399 | 12 days ago | IN | 0 S | 0.00288434 | ||||
| Approve | 66847896 | 12 days ago | IN | 0 S | 0.0023138 | ||||
| Approve | 66835501 | 13 days ago | IN | 0 S | 0.00364417 | ||||
| Approve | 66807090 | 13 days ago | IN | 0 S | 0.00184852 | ||||
| Approve | 66786169 | 13 days ago | IN | 0 S | 0.00203109 | ||||
| Approve | 66786166 | 13 days ago | IN | 0 S | 0.0030542 | ||||
| Approve | 66737409 | 14 days ago | IN | 0 S | 0.0023138 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
xAQUAToken
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts-v3/utils/Context.sol";
import "@openzeppelin/contracts-v3/access/Ownable.sol";
import "@openzeppelin/contracts-v3/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-v3/math/SafeMath.sol";
import "@openzeppelin/contracts-v3/utils/Address.sol";
import "@openzeppelin/contracts-v3/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts-v3/utils/EnumerableSet.sol";
// Extension of IERC20 interface to include additional functions
interface IExtendedERC20 is IERC20 {
function getMaxSupply() external view returns (uint256);
function mint(address _to, uint256 _amount) external returns (bool);
}
/**
* @title xAQUAToken
* @dev Implementation of an escrowed token that is linked to another ERC20 token
*/
contract xAQUAToken is ERC20, Ownable {
using SafeMath for uint256;
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
uint256 public maxSupply;
EnumerableSet.AddressSet private _minters;
EnumerableSet.AddressSet private _transferWhitelist;
IExtendedERC20 public AQUA;
/**
* @dev Initializes the contract with the linked main token
* @param _name Token name
* @param _symbol Token symbol
* @param _aqua Address of the main token
*/
constructor(
string memory _name,
string memory _symbol,
IExtendedERC20 _aqua
) public ERC20(_name, _symbol) {
require(
address(_aqua) != address(0),
"xAQUA: AQUA token cannot be the zero address"
);
AQUA = _aqua;
maxSupply = AQUA.getMaxSupply(); // Set maxSupply to match the linked token's maxSupply
}
/**
* @dev Creates `_amount` tokens and assigns them to `_to`.
* First requests the main token to mint tokens for this contract.
*/
function mint(
address _to,
uint256 _amount
) public onlyMinter returns (bool) {
AQUA.mint(address(this), _amount);
_mint(_to, _amount);
return true;
}
/**
* @dev Locks main tokens and mints escrowed tokens
* @param _amount Amount of tokens to lock
*/
function lock(uint256 _amount) public onlyMinter {
require(
AQUA.transferFrom(msg.sender, address(this), _amount),
"xAQUA: AQUA token transfer failed"
);
_mint(msg.sender, _amount);
}
/**
* @dev Redeems escrowed tokens for main tokens
* @param _amount Amount of tokens to redeem
*/
function redeem(uint256 _amount) public onlyMinter {
require(
AQUA.transfer(msg.sender, _amount),
"xAQUA: AQUA token transfer failed"
);
_burn(msg.sender, _amount);
}
/**
* @dev Adds an address to the list of authorized minters
*/
function addMinter(address _addMinter) public onlyOwner returns (bool) {
require(
_addMinter != address(0),
"xAQUA: _addMinter is the zero address"
);
return EnumerableSet.add(_minters, _addMinter);
}
/**
* @dev Removes an address from the list of authorized minters
*/
function delMinter(address _delMinter) public onlyOwner returns (bool) {
require(
_delMinter != address(0),
"xAQUA: _delMinter is the zero address"
);
return EnumerableSet.remove(_minters, _delMinter);
}
/**
* @dev Returns the number of minters
*/
function getMinterLength() public view returns (uint256) {
return EnumerableSet.length(_minters);
}
/**
* @dev Checks if an address is an authorized minter
*/
function isMinter(address account) public view returns (bool) {
return EnumerableSet.contains(_minters, account);
}
/**
* @dev Returns the minter at the specified index
*/
function getMinter(uint256 _index) public view returns (address) {
require(_index <= getMinterLength() - 1, "xAQUA: index out of bounds");
return EnumerableSet.at(_minters, _index);
}
/**
* @dev Modifier to restrict function access to authorized minters
*/
modifier onlyMinter() {
require(
isMinter(msg.sender),
"xAQUA: caller is not an authorized minter"
);
_;
}
/**
* @dev Adds an address to the transfer whitelist
* @param _address Address to add to the whitelist
*/
function addToTransferWhitelist(
address _address
) public onlyOwner returns (bool) {
require(_address != address(0), "xAQUA: address is the zero address");
return EnumerableSet.add(_transferWhitelist, _address);
}
/**
* @dev Removes an address from the transfer whitelist
* @param _address Address to remove from the whitelist
*/
function removeFromTransferWhitelist(
address _address
) public onlyOwner returns (bool) {
require(_address != address(0), "xAQUA: address is the zero address");
return EnumerableSet.remove(_transferWhitelist, _address);
}
/**
* @dev Returns the number of addresses in the transfer whitelist
*/
function getTransferWhitelistLength() public view returns (uint256) {
return EnumerableSet.length(_transferWhitelist);
}
/**
* @dev Checks if an address is in the transfer whitelist
* @param _address Address to check
*/
function isInTransferWhitelist(
address _address
) public view returns (bool) {
return EnumerableSet.contains(_transferWhitelist, _address);
}
/**
* @dev Returns the address at the specified index in the transfer whitelist
* @param _index Index in the whitelist
*/
function getTransferWhitelistAddress(
uint256 _index
) public view returns (address) {
require(
_index <= getTransferWhitelistLength() - 1,
"xAQUA: index out of bounds"
);
return EnumerableSet.at(_transferWhitelist, _index);
}
/**
* @dev Hook that is called before any transfer of tokens
* Ensures that either the sender or the recipient is in the transfer whitelist
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual override {
// Skip the check for minting and burning operations
if (from != address(0) && to != address(0)) {
require(
isInTransferWhitelist(from) || isInTransferWhitelist(to),
"xAQUA: transfer not allowed, neither sender nor recipient is whitelisted"
);
}
super._beforeTokenTransfer(from, to, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of 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 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name_, string memory symbol_) public {
_name = name_;
_symbol = symbol_;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
* called.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` 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 = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) 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 Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal virtual {
_decimals = decimals_;
}
/**
* @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 to 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 { }
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"contract IExtendedERC20","name":"_aqua","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AQUA","outputs":[{"internalType":"contract IExtendedERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addMinter","type":"address"}],"name":"addMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addToTransferWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"_delMinter","type":"address"}],"name":"delMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinterLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getTransferWhitelistAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferWhitelistLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isInTransferWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","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":"_address","type":"address"}],"name":"removeFromTransferWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200201c3803806200201c833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491620001bd9160039185019062000328565b508051620001d390600490602084019062000328565b50506005805460ff19166012179055506000620001ef62000324565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166200028c5760405162461bcd60e51b815260040180806020018281038252602c81526020018062001ff0602c913960400191505060405180910390fd5b600b80546001600160a01b0319166001600160a01b038381169190911791829055604080516326079c6160e11b815290519290911691634c0f38c291600480820192602092909190829003018186803b158015620002e957600080fd5b505afa158015620002fe573d6000803e3d6000fd5b505050506040513d60208110156200031557600080fd5b505160065550620003c4915050565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200036b57805160ff19168380011785556200039b565b828001600101855582156200039b579182015b828111156200039b5782518255916020019190600101906200037e565b50620003a9929150620003ad565b5090565b5b80821115620003a95760008155600101620003ae565b611c1c80620003d46000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806383db232f11610104578063acbebf58116100a2578063dd46706411610071578063dd46706414610549578063dd62ed3e14610566578063f2fde38b14610594578063f731ac9f146105ba576101cf565b8063acbebf58146104f6578063cc74f4c0146104fe578063d5abeb0114610524578063db006a751461052c576101cf565b8063983b2d56116100de578063983b2d5614610452578063a457c2d714610478578063a9059cbb146104a4578063aa271e1a146104d0576101cf565b806383db232f1461041c5780638da5cb5b1461044257806395d89b411461044a576101cf565b806339509351116101715780635b7121f81161014b5780635b7121f8146103ab57806363fccba9146103e457806370a08231146103ec578063715018a614610412576101cf565b8063395093511461032d57806340c10f19146103595780634537f5c914610385576101cf565b806318160ddd116101ad57806318160ddd146102ab57806323338b88146102b357806323b872dd146102d9578063313ce5671461030f576101cf565b80630323aac7146101d457806306fdde03146101ee578063095ea7b31461026b575b600080fd5b6101dc6105d7565b60408051918252519081900360200190f35b6101f66105e8565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610230578181015183820152602001610218565b50505050905090810190601f16801561025d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102976004803603604081101561028157600080fd5b506001600160a01b03813516906020013561067e565b604080519115158252519081900360200190f35b6101dc61069c565b610297600480360360208110156102c957600080fd5b50356001600160a01b03166106a2565b610297600480360360608110156102ef57600080fd5b506001600160a01b03813581169160208101359091169060400135610756565b6103176107dd565b6040805160ff9092168252519081900360200190f35b6102976004803603604081101561034357600080fd5b506001600160a01b0381351690602001356107e6565b6102976004803603604081101561036f57600080fd5b506001600160a01b038135169060200135610834565b6102976004803603602081101561039b57600080fd5b50356001600160a01b0316610905565b6103c8600480360360208110156103c157600080fd5b50356109b9565b604080516001600160a01b039092168252519081900360200190f35b6103c8610a25565b6101dc6004803603602081101561040257600080fd5b50356001600160a01b0316610a34565b61041a610a4f565b005b6102976004803603602081101561043257600080fd5b50356001600160a01b0316610b01565b6103c8610b0e565b6101f6610b22565b6102976004803603602081101561046857600080fd5b50356001600160a01b0316610b83565b6102976004803603604081101561048e57600080fd5b506001600160a01b038135169060200135610c37565b610297600480360360408110156104ba57600080fd5b506001600160a01b038135169060200135610c9f565b610297600480360360208110156104e657600080fd5b50356001600160a01b0316610cb3565b6101dc610cc0565b6102976004803603602081101561051457600080fd5b50356001600160a01b0316610ccc565b6101dc610d80565b61041a6004803603602081101561054257600080fd5b5035610d86565b61041a6004803603602081101561055f57600080fd5b5035610e92565b6101dc6004803603604081101561057c57600080fd5b506001600160a01b0381358116916020013516610fa1565b61041a600480360360208110156105aa57600080fd5b50356001600160a01b0316610fcc565b6103c8600480360360208110156105d057600080fd5b50356110da565b60006105e36007611146565b905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106745780601f1061064957610100808354040283529160200191610674565b820191906000526020600020905b81548152906001019060200180831161065757829003601f168201915b5050505050905090565b600061069261068b611151565b8484611155565b5060015b92915050565b60025490565b60006106ac611151565b6001600160a01b03166106bd610b0e565b6001600160a01b031614610706576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b03821661074b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611ac16025913960400191505060405180910390fd5b610696600783611241565b600061076384848461125d565b6107d38461076f611151565b6107ce85604051806060016040528060288152602001611a33602891396001600160a01b038a166000908152600160205260408120906107ad611151565b6001600160a01b0316815260208101919091526040016000205491906113b8565b611155565b5060019392505050565b60055460ff1690565b60006106926107f3611151565b846107ce8560016000610804611151565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061144f565b600061083f33610cb3565b61087a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611b996029913960400191505060405180910390fd5b600b54604080516340c10f1960e01b81523060048201526024810185905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050506040513d60208110156108f857600080fd5b50610692905083836114a9565b600061090f611151565b6001600160a01b0316610920610b0e565b6001600160a01b031614610969576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b0382166109ae5760405162461bcd60e51b8152600401808060200182810382526022815260200180611b776022913960400191505060405180910390fd5b610696600983611241565b600060016109c56105d7565b03821115610a1a576040805162461bcd60e51b815260206004820152601a60248201527f78415155413a20696e646578206f7574206f6620626f756e6473000000000000604482015290519081900360640190fd5b610696600783611599565b600b546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b610a57611151565b6001600160a01b0316610a68610b0e565b6001600160a01b031614610ab1576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60006106966009836115a5565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106745780601f1061064957610100808354040283529160200191610674565b6000610b8d611151565b6001600160a01b0316610b9e610b0e565b6001600160a01b031614610be7576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b038216610c2c5760405162461bcd60e51b8152600401808060200182810382526025815260200180611a7b6025913960400191505060405180910390fd5b6106966007836115ba565b6000610692610c44611151565b846107ce85604051806060016040528060258152602001611bc26025913960016000610c6e611151565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906113b8565b6000610692610cac611151565b848461125d565b60006106966007836115a5565b60006105e36009611146565b6000610cd6611151565b6001600160a01b0316610ce7610b0e565b6001600160a01b031614610d30576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b038216610d755760405162461bcd60e51b8152600401808060200182810382526022815260200180611b776022913960400191505060405180910390fd5b6106966009836115ba565b60065481565b610d8f33610cb3565b610dca5760405162461bcd60e51b8152600401808060200182810382526029815260200180611b996029913960400191505060405180910390fd5b600b546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b158015610e1e57600080fd5b505af1158015610e32573d6000803e3d6000fd5b505050506040513d6020811015610e4857600080fd5b5051610e855760405162461bcd60e51b8152600401808060200182810382526021815260200180611a126021913960400191505060405180910390fd5b610e8f33826115cf565b50565b610e9b33610cb3565b610ed65760405162461bcd60e51b8152600401808060200182810382526029815260200180611b996029913960400191505060405180910390fd5b600b54604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610f3057600080fd5b505af1158015610f44573d6000803e3d6000fd5b505050506040513d6020811015610f5a57600080fd5b5051610f975760405162461bcd60e51b8152600401808060200182810382526021815260200180611a126021913960400191505060405180910390fd5b610e8f33826114a9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610fd4611151565b6001600160a01b0316610fe5610b0e565b6001600160a01b03161461102e576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b0381166110735760405162461bcd60e51b81526004018080602001828103825260268152602001806119a46026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600060016110e6610cc0565b0382111561113b576040805162461bcd60e51b815260206004820152601a60248201527f78415155413a20696e646578206f7574206f6620626f756e6473000000000000604482015290519081900360640190fd5b610696600983611599565b6000610696826116cb565b3390565b6001600160a01b03831661119a5760405162461bcd60e51b8152600401808060200182810382526024815260200180611b536024913960400191505060405180910390fd5b6001600160a01b0382166111df5760405162461bcd60e51b81526004018080602001828103825260228152602001806119ca6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000611256836001600160a01b0384166116cf565b9392505050565b6001600160a01b0383166112a25760405162461bcd60e51b8152600401808060200182810382526025815260200180611ae66025913960400191505060405180910390fd5b6001600160a01b0382166112e75760405162461bcd60e51b815260040180806020018281038252602381526020018061195f6023913960400191505060405180910390fd5b6112f2838383611795565b61132f816040518060600160405280602681526020016119ec602691396001600160a01b03861660009081526020819052604090205491906113b8565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461135e908261144f565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156114475760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561140c5781810151838201526020016113f4565b50505050905090810190601f1680156114395780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611256576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216611504576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61151060008383611795565b60025461151d908261144f565b6002556001600160a01b038216600090815260208190526040902054611543908261144f565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60006112568383611819565b6000611256836001600160a01b03841661187d565b6000611256836001600160a01b038416611895565b6001600160a01b0382166116145760405162461bcd60e51b8152600401808060200182810382526021815260200180611aa06021913960400191505060405180910390fd5b61162082600083611795565b61165d81604051806060016040528060228152602001611982602291396001600160a01b03851660009081526020819052604090205491906113b8565b6001600160a01b03831660009081526020819052604090205560025461168390826118df565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b5490565b6000818152600183016020526040812054801561178b578354600019808301919081019060009087908390811061170257fe5b906000526020600020015490508087600001848154811061171f57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061174f57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610696565b6000915050610696565b6001600160a01b038316158015906117b557506001600160a01b03821615155b1561180d576117c383610b01565b806117d257506117d282610b01565b61180d5760405162461bcd60e51b8152600401808060200182810382526048815260200180611b0b6048913960600191505060405180910390fd5b6118148383835b505050565b8154600090821061185b5760405162461bcd60e51b815260040180806020018281038252602281526020018061193d6022913960400191505060405180910390fd5b82600001828154811061186a57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b60006118a1838361187d565b6118d757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610696565b506000610696565b600082821115611936576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636578415155413a204151554120746f6b656e207472616e73666572206661696c656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657278415155413a205f6164644d696e74657220697320746865207a65726f206164647265737345524332303a206275726e2066726f6d20746865207a65726f206164647265737378415155413a205f64656c4d696e74657220697320746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737378415155413a207472616e73666572206e6f7420616c6c6f7765642c206e6569746865722073656e646572206e6f7220726563697069656e742069732077686974656c697374656445524332303a20617070726f76652066726f6d20746865207a65726f206164647265737378415155413a206164647265737320697320746865207a65726f206164647265737378415155413a2063616c6c6572206973206e6f7420616e20617574686f72697a6564206d696e74657245524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122019184a17a8516663629f86ffd029b7ab55e9be50b8ed58167173baf2a777da8964736f6c634300060c003378415155413a204151554120746f6b656e2063616e6e6f7420626520746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000009138a8733dce2e877f430b7500e3c229ad7599d9000000000000000000000000000000000000000000000000000000000000001c41746c616e746973204151554120457363726f77656420546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000057841515541000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806383db232f11610104578063acbebf58116100a2578063dd46706411610071578063dd46706414610549578063dd62ed3e14610566578063f2fde38b14610594578063f731ac9f146105ba576101cf565b8063acbebf58146104f6578063cc74f4c0146104fe578063d5abeb0114610524578063db006a751461052c576101cf565b8063983b2d56116100de578063983b2d5614610452578063a457c2d714610478578063a9059cbb146104a4578063aa271e1a146104d0576101cf565b806383db232f1461041c5780638da5cb5b1461044257806395d89b411461044a576101cf565b806339509351116101715780635b7121f81161014b5780635b7121f8146103ab57806363fccba9146103e457806370a08231146103ec578063715018a614610412576101cf565b8063395093511461032d57806340c10f19146103595780634537f5c914610385576101cf565b806318160ddd116101ad57806318160ddd146102ab57806323338b88146102b357806323b872dd146102d9578063313ce5671461030f576101cf565b80630323aac7146101d457806306fdde03146101ee578063095ea7b31461026b575b600080fd5b6101dc6105d7565b60408051918252519081900360200190f35b6101f66105e8565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610230578181015183820152602001610218565b50505050905090810190601f16801561025d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102976004803603604081101561028157600080fd5b506001600160a01b03813516906020013561067e565b604080519115158252519081900360200190f35b6101dc61069c565b610297600480360360208110156102c957600080fd5b50356001600160a01b03166106a2565b610297600480360360608110156102ef57600080fd5b506001600160a01b03813581169160208101359091169060400135610756565b6103176107dd565b6040805160ff9092168252519081900360200190f35b6102976004803603604081101561034357600080fd5b506001600160a01b0381351690602001356107e6565b6102976004803603604081101561036f57600080fd5b506001600160a01b038135169060200135610834565b6102976004803603602081101561039b57600080fd5b50356001600160a01b0316610905565b6103c8600480360360208110156103c157600080fd5b50356109b9565b604080516001600160a01b039092168252519081900360200190f35b6103c8610a25565b6101dc6004803603602081101561040257600080fd5b50356001600160a01b0316610a34565b61041a610a4f565b005b6102976004803603602081101561043257600080fd5b50356001600160a01b0316610b01565b6103c8610b0e565b6101f6610b22565b6102976004803603602081101561046857600080fd5b50356001600160a01b0316610b83565b6102976004803603604081101561048e57600080fd5b506001600160a01b038135169060200135610c37565b610297600480360360408110156104ba57600080fd5b506001600160a01b038135169060200135610c9f565b610297600480360360208110156104e657600080fd5b50356001600160a01b0316610cb3565b6101dc610cc0565b6102976004803603602081101561051457600080fd5b50356001600160a01b0316610ccc565b6101dc610d80565b61041a6004803603602081101561054257600080fd5b5035610d86565b61041a6004803603602081101561055f57600080fd5b5035610e92565b6101dc6004803603604081101561057c57600080fd5b506001600160a01b0381358116916020013516610fa1565b61041a600480360360208110156105aa57600080fd5b50356001600160a01b0316610fcc565b6103c8600480360360208110156105d057600080fd5b50356110da565b60006105e36007611146565b905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106745780601f1061064957610100808354040283529160200191610674565b820191906000526020600020905b81548152906001019060200180831161065757829003601f168201915b5050505050905090565b600061069261068b611151565b8484611155565b5060015b92915050565b60025490565b60006106ac611151565b6001600160a01b03166106bd610b0e565b6001600160a01b031614610706576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b03821661074b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611ac16025913960400191505060405180910390fd5b610696600783611241565b600061076384848461125d565b6107d38461076f611151565b6107ce85604051806060016040528060288152602001611a33602891396001600160a01b038a166000908152600160205260408120906107ad611151565b6001600160a01b0316815260208101919091526040016000205491906113b8565b611155565b5060019392505050565b60055460ff1690565b60006106926107f3611151565b846107ce8560016000610804611151565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061144f565b600061083f33610cb3565b61087a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611b996029913960400191505060405180910390fd5b600b54604080516340c10f1960e01b81523060048201526024810185905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050506040513d60208110156108f857600080fd5b50610692905083836114a9565b600061090f611151565b6001600160a01b0316610920610b0e565b6001600160a01b031614610969576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b0382166109ae5760405162461bcd60e51b8152600401808060200182810382526022815260200180611b776022913960400191505060405180910390fd5b610696600983611241565b600060016109c56105d7565b03821115610a1a576040805162461bcd60e51b815260206004820152601a60248201527f78415155413a20696e646578206f7574206f6620626f756e6473000000000000604482015290519081900360640190fd5b610696600783611599565b600b546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b610a57611151565b6001600160a01b0316610a68610b0e565b6001600160a01b031614610ab1576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60006106966009836115a5565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106745780601f1061064957610100808354040283529160200191610674565b6000610b8d611151565b6001600160a01b0316610b9e610b0e565b6001600160a01b031614610be7576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b038216610c2c5760405162461bcd60e51b8152600401808060200182810382526025815260200180611a7b6025913960400191505060405180910390fd5b6106966007836115ba565b6000610692610c44611151565b846107ce85604051806060016040528060258152602001611bc26025913960016000610c6e611151565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906113b8565b6000610692610cac611151565b848461125d565b60006106966007836115a5565b60006105e36009611146565b6000610cd6611151565b6001600160a01b0316610ce7610b0e565b6001600160a01b031614610d30576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b038216610d755760405162461bcd60e51b8152600401808060200182810382526022815260200180611b776022913960400191505060405180910390fd5b6106966009836115ba565b60065481565b610d8f33610cb3565b610dca5760405162461bcd60e51b8152600401808060200182810382526029815260200180611b996029913960400191505060405180910390fd5b600b546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b158015610e1e57600080fd5b505af1158015610e32573d6000803e3d6000fd5b505050506040513d6020811015610e4857600080fd5b5051610e855760405162461bcd60e51b8152600401808060200182810382526021815260200180611a126021913960400191505060405180910390fd5b610e8f33826115cf565b50565b610e9b33610cb3565b610ed65760405162461bcd60e51b8152600401808060200182810382526029815260200180611b996029913960400191505060405180910390fd5b600b54604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610f3057600080fd5b505af1158015610f44573d6000803e3d6000fd5b505050506040513d6020811015610f5a57600080fd5b5051610f975760405162461bcd60e51b8152600401808060200182810382526021815260200180611a126021913960400191505060405180910390fd5b610e8f33826114a9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610fd4611151565b6001600160a01b0316610fe5610b0e565b6001600160a01b03161461102e576040805162461bcd60e51b81526020600482018190526024820152600080516020611a5b833981519152604482015290519081900360640190fd5b6001600160a01b0381166110735760405162461bcd60e51b81526004018080602001828103825260268152602001806119a46026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600060016110e6610cc0565b0382111561113b576040805162461bcd60e51b815260206004820152601a60248201527f78415155413a20696e646578206f7574206f6620626f756e6473000000000000604482015290519081900360640190fd5b610696600983611599565b6000610696826116cb565b3390565b6001600160a01b03831661119a5760405162461bcd60e51b8152600401808060200182810382526024815260200180611b536024913960400191505060405180910390fd5b6001600160a01b0382166111df5760405162461bcd60e51b81526004018080602001828103825260228152602001806119ca6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000611256836001600160a01b0384166116cf565b9392505050565b6001600160a01b0383166112a25760405162461bcd60e51b8152600401808060200182810382526025815260200180611ae66025913960400191505060405180910390fd5b6001600160a01b0382166112e75760405162461bcd60e51b815260040180806020018281038252602381526020018061195f6023913960400191505060405180910390fd5b6112f2838383611795565b61132f816040518060600160405280602681526020016119ec602691396001600160a01b03861660009081526020819052604090205491906113b8565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461135e908261144f565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156114475760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561140c5781810151838201526020016113f4565b50505050905090810190601f1680156114395780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611256576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216611504576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61151060008383611795565b60025461151d908261144f565b6002556001600160a01b038216600090815260208190526040902054611543908261144f565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60006112568383611819565b6000611256836001600160a01b03841661187d565b6000611256836001600160a01b038416611895565b6001600160a01b0382166116145760405162461bcd60e51b8152600401808060200182810382526021815260200180611aa06021913960400191505060405180910390fd5b61162082600083611795565b61165d81604051806060016040528060228152602001611982602291396001600160a01b03851660009081526020819052604090205491906113b8565b6001600160a01b03831660009081526020819052604090205560025461168390826118df565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b5490565b6000818152600183016020526040812054801561178b578354600019808301919081019060009087908390811061170257fe5b906000526020600020015490508087600001848154811061171f57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061174f57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610696565b6000915050610696565b6001600160a01b038316158015906117b557506001600160a01b03821615155b1561180d576117c383610b01565b806117d257506117d282610b01565b61180d5760405162461bcd60e51b8152600401808060200182810382526048815260200180611b0b6048913960600191505060405180910390fd5b6118148383835b505050565b8154600090821061185b5760405162461bcd60e51b815260040180806020018281038252602281526020018061193d6022913960400191505060405180910390fd5b82600001828154811061186a57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b60006118a1838361187d565b6118d757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610696565b506000610696565b600082821115611936576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636578415155413a204151554120746f6b656e207472616e73666572206661696c656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657278415155413a205f6164644d696e74657220697320746865207a65726f206164647265737345524332303a206275726e2066726f6d20746865207a65726f206164647265737378415155413a205f64656c4d696e74657220697320746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737378415155413a207472616e73666572206e6f7420616c6c6f7765642c206e6569746865722073656e646572206e6f7220726563697069656e742069732077686974656c697374656445524332303a20617070726f76652066726f6d20746865207a65726f206164647265737378415155413a206164647265737320697320746865207a65726f206164647265737378415155413a2063616c6c6572206973206e6f7420616e20617574686f72697a6564206d696e74657245524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122019184a17a8516663629f86ffd029b7ab55e9be50b8ed58167173baf2a777da8964736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000009138a8733dce2e877f430b7500e3c229ad7599d9000000000000000000000000000000000000000000000000000000000000001c41746c616e746973204151554120457363726f77656420546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000057841515541000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Atlantis AQUA Escrowed Token
Arg [1] : _symbol (string): xAQUA
Arg [2] : _aqua (address): 0x9138a8733DCe2E877F430B7500e3c229aD7599d9
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000009138a8733dce2e877f430b7500e3c229ad7599d9
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [4] : 41746c616e746973204151554120457363726f77656420546f6b656e00000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 7841515541000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$2,779.73
Net Worth in S
Token Allocations
AQUA
100.00%
Multichain Portfolio | 32 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| SONIC | 100.00% | $0.002605 | 1,067,124.3729 | $2,779.73 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.