Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
aMATICb_R2
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SignedSafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "../interfaces/IinternetBond.sol";
import "../libraries/ERC20BondBase.sol";
contract aMATICb_R2 is OwnableUpgradeable, ERC20BondBase, IinternetBond {
using SafeMathUpgradeable for uint256;
using MathUpgradeable for uint256;
using SignedSafeMathUpgradeable for int256;
event RatioUpdate(uint256 newRatio);
event LastConfirmedRatioUpdate(uint256 newRatio);
address private _operator;
address private _crossChainBridge;
address private _polygonPool;
// ratio should be base on 1 MATIC, if ratio is 0.9, this variable should be 9e17
uint256 private _ratio;
int256 private _lockedShares;
mapping(address => uint256) private _pendingBurn;
uint256 private _pendingBurnsTotal;
uint256 private _collectableFee;
string private _name;
string private _symbol;
function initialize(address operator) public initializer {
__Ownable_init();
__ERC20_init("Ankr MATIC Reward Earning Bond", "aMATICb");
_operator = operator;
_ratio = 1e18;
}
function ratio() public override view returns (uint256) {
return _ratio;
}
function isRebasing() public pure returns (bool) {
return true;
}
function updateRatio(uint256 newRatio) public onlyOperator {
// // 0.002 * ratio
// uint256 threshold = _ratio.div(500);
// require(newRatio < _ratio.add(threshold) || newRatio > _ratio.sub(threshold), "New ratio should be in limits");
require(newRatio <= 1e18, "new ratio should be less or equal to 1e18");
_ratio = newRatio;
emit RatioUpdate(_ratio);
}
function repairRatio(uint256 newRatio) public onlyOwner {
_ratio = newRatio;
emit RatioUpdate(_ratio);
}
function collectableFee() public view returns (uint256) {
return _collectableFee;
}
function repairCollectableFee(uint256 newFee) public onlyOwner {
_collectableFee = newFee;
}
function updateRatioAndFee(uint256 newRatio, uint256 newFee) public onlyOperator {
// 0.002 * ratio
uint256 threshold = _ratio.div(500);
require(newRatio < _ratio.add(threshold) || newRatio > _ratio.sub(threshold), "New ratio should be in limits");
require(newRatio <= 1e18, "new ratio should be less or equal to 1e18");
_ratio = newRatio;
_collectableFee = newFee;
emit RatioUpdate(_ratio);
}
function totalSupply() public view override returns (uint256) {
uint256 supply = totalSharesSupply();
return _sharesToBonds(supply);
}
function totalSharesSupply() public view returns (uint256) {
return super.totalSupply();
}
function balanceOf(address account) public view override returns (uint256) {
uint256 shares = super.balanceOf(account);
return _sharesToBonds(shares).sub(_pendingBurn[account]);
}
function mintBonds(address account, uint256 amount) public override onlyBondMinter {
uint256 shares = _bondsToShares(amount);
_mint(account, shares);
emit Transfer(address(0), account, _sharesToBondsCeil(shares));
}
function mint(address account, uint256 shares) public onlyMinter {
_lockedShares = _lockedShares.sub(int256(shares));
_mint(account, shares);
emit Transfer(address(0), account, _sharesToBondsCeil(shares));
}
function burn(address account, uint256 amount) public override onlyMinter {
uint256 shares = _bondsToShares(amount);
_lockedShares = _lockedShares.add(int256(shares));
_burn(account, shares);
emit Transfer(account, address(0), _sharesToBondsCeil(shares));
}
function pendingBurn(address account) external view override returns (uint256) {
return _pendingBurn[account];
}
function lockForDelayedBurn(address account, uint256 amount) public override onlyBondMinter {
_pendingBurn[account] = _pendingBurn[account].add(amount);
_pendingBurnsTotal = _pendingBurnsTotal.add(amount);
}
function commitDelayedBurn(address account, uint256 amount) public override onlyBondMinter {
uint256 burnableAmount = _pendingBurn[account];
require(burnableAmount >= amount, "Too big amount to burn");
uint256 sharesToBurn = _bondsToShares(amount);
_pendingBurn[account] = burnableAmount.sub(amount);
_pendingBurnsTotal = _pendingBurnsTotal.sub(amount);
_burn(account, sharesToBurn);
emit Transfer(account, address(0), _sharesToBondsCeil(sharesToBurn));
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
uint256 shares = _bondsToSharesCeil(amount);
super.transfer(recipient, shares);
emit Transfer(msg.sender, recipient, _sharesToBondsCeil(shares));
return true;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _sharesToBonds(super.allowance(owner, spender));
}
function approve(address spender, uint256 amount) public override returns (bool) {
uint256 shares = _bondsToSharesCeil(amount);
super.approve(spender, shares);
emit Approval(msg.sender, spender, allowance(msg.sender, spender));
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
uint256 shares = _bondsToSharesCeil(amount);
super.transferFrom(sender, recipient, shares);
emit Transfer(sender, recipient, _sharesToBondsCeil(shares));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public override returns (bool) {
uint256 shares = _bondsToShares(addedValue);
super.increaseAllowance(spender, shares);
emit Approval(msg.sender, spender, allowance(msg.sender, spender));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public override returns (bool) {
uint256 shares = _bondsToShares(subtractedValue);
super.decreaseAllowance(spender, shares);
emit Approval(msg.sender, spender, allowance(msg.sender, spender));
return true;
}
function _bondsToShares(uint256 amount) internal view returns (uint256) {
return safeMultiplyAndDivide(amount, _ratio, 1e18);
}
function _bondsToSharesCeil(uint256 amount) internal view returns (uint256) {
return safeCeilMultiplyAndDivide(amount, _ratio, 1e18);
}
function _sharesToBonds(uint256 amount) internal view returns (uint256) {
return safeMultiplyAndDivide(amount, 1e18, _ratio);
}
function _sharesToBondsCeil(uint256 amount) internal view returns (uint256) {
return safeCeilMultiplyAndDivide(amount, 1e18, _ratio);
}
modifier onlyOperator() {
require(msg.sender == owner() || msg.sender == _operator, "Operator: not allowed");
_;
}
modifier onlyMinter() {
require(msg.sender == owner() || msg.sender == _crossChainBridge, "Minter: not allowed");
_;
}
modifier onlyBondMinter() {
require(msg.sender == owner() || msg.sender == _polygonPool, "Minter: not allowed");
_;
}
function changeOperator(address operator) public onlyOwner {
_operator = operator;
}
function changePolygonPool(address polygonPool) public onlyOwner {
_polygonPool = polygonPool;
}
function changeCrossChainBridge(address crossChainBridge) public onlyOwner {
_crossChainBridge = crossChainBridge;
}
function lockedSupply() public view returns (int256) {
return _lockedShares;
}
function name() public view override returns (string memory) {
if (bytes(_name).length != 0) {
return _name;
}
return super.name();
}
function symbol() public view override returns (string memory) {
if (bytes(_symbol).length != 0) {
return _symbol;
}
return super.symbol();
}
function setNameAndSymbol(string memory new_name, string memory new_symbol) public onlyOperator {
_name = new_name;
_symbol = new_symbol;
}
function safeMultiplyAndDivide(uint256 a, uint256 b, uint256 c) internal pure returns (uint256) {
uint256 reminder = a.mod(c);
uint256 result = a.div(c);
bool safe;
(safe, result) = result.tryMul(b);
if (!safe) {
return 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
}
(safe, result) = result.tryAdd(reminder.mul(b).div(c));
if (!safe) {
return 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
}
return result;
}
function safeCeilMultiplyAndDivide(uint256 a, uint256 b, uint256 c) internal pure returns (uint256) {
uint256 reminder = a.mod(c);
uint256 result = a.div(c);
bool safe;
(safe, result) = result.tryMul(b);
if (!safe) {
return 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
}
(safe, result) = result.tryAdd(reminder.mul(b).add(c.sub(1)).div(c));
if (!safe) {
return 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
// This is fork of openzeppelin ERC20Upgradeable to allow for custom events in Internet bonds
// No events are emitted in base contract, it's responsibility of caller to emit correct event
// Storage layout and inheritance preserved so it's safe for upgrade
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20BondBase is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
__Context_init_unchained();
__ERC20_init_unchained(name_, symbol_);
}
function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
_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;
}
/**
* @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 {}
uint256[45] private __gap;
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.6;
interface IinternetBond {
function mintBonds(address account, uint256 amount) external;
function burn(address account, uint256 amount) external;
function pendingBurn(address account) external view returns (uint256);
function lockForDelayedBurn(address account, uint256 amount) external;
function commitDelayedBurn(address account, uint256 amount) external;
function ratio() external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SignedSafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SignedSafeMathUpgradeable {
/**
* @dev Returns the multiplication of two signed integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
return a * b;
}
/**
* @dev Returns the integer division of two signed integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(int256 a, int256 b) internal pure returns (int256) {
return a / b;
}
/**
* @dev Returns the subtraction of two signed integers, reverting on
* overflow.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(int256 a, int256 b) internal pure returns (int256) {
return a - b;
}
/**
* @dev Returns the addition of two signed integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(int256 a, int256 b) internal pure returns (int256) {
return a + b;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMathUpgradeable {
/**
* @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) {
unchecked {
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) {
unchecked {
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) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the 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) {
return a + b;
}
/**
* @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) {
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) {
return a * b;
}
/**
* @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.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
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) {
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) {
unchecked {
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.
*
* 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) {
unchecked {
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) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUpgradeable {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a / b + (a % b == 0 ? 0 : 1);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal initializer {
__Context_init_unchained();
}
function __Context_init_unchained() internal initializer {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC20Upgradeable.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
require(_initializing || !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal initializer {
__Context_init_unchained();
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal initializer {
_setOwner(_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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
uint256[49] private __gap;
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "berlin",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":false,"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"LastConfirmedRatioUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"RatioUpdate","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"crossChainBridge","type":"address"}],"name":"changeCrossChainBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"changeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"polygonPool","type":"address"}],"name":"changePolygonPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectableFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"commitDelayedBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"operator","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isRebasing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lockForDelayedBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockedSupply","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintBonds","outputs":[],"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":"address","name":"account","type":"address"}],"name":"pendingBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"repairCollectableFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"repairRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"new_name","type":"string"},{"internalType":"string","name":"new_symbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSharesSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"updateRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"},{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"updateRatioAndFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061203b806100206000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063715018a61161011a578063c4d66de8116100ad578063dc647e291161007c578063dc647e291461041e578063dd62ed3e14610431578063e3ec72be14610444578063e5683ad914610457578063f2fde38b1461046a57600080fd5b8063c4d66de8146103e8578063c814cf89146103fb578063ca5c7b911461040e578063d50619cc1461041657600080fd5b80639dc29fac116100e95780639dc29fac1461039c578063a457c2d7146103af578063a85374e1146103c2578063a9059cbb146103d557600080fd5b8063715018a61461036957806371ca337d146103715780638da5cb5b1461037957806395d89b411461039457600080fd5b8063313ce5671161019d578063583585f41161016c578063583585f41461030b5780635a446215146103345780635dfba115146103475780636406dd5c1461034e57806370a082311461035657600080fd5b8063313ce567146102c357806339509351146102d257806340c10f19146102e557806353396d2f146102f857600080fd5b80630ed62270116101d95780630ed622701461027457806318160ddd146102875780631d62f87c1461029d57806323b872dd146102b057600080fd5b806306394c9b1461020b57806306fdde031461022057806307ef2a121461023e578063095ea7b314610251575b600080fd5b61021e610219366004611ba2565b61047d565b005b6102286104d2565b6040516102359190611cf5565b60405180910390f35b61021e61024c366004611c2c565b610585565b61026461025f366004611c2c565b610614565b6040519015158152602001610235565b61021e610282366004611c2c565b61067e565b61028f6107a4565b604051908152602001610235565b61021e6102ab366004611cba565b6107c0565b6102646102be366004611bf0565b6107ef565b60405160128152602001610235565b6102646102e0366004611c2c565b610853565b61021e6102f3366004611c2c565b61086b565b61021e610306366004611ba2565b6108fd565b61028f610319366004611ba2565b6001600160a01b03166000908152609c602052604090205490565b61021e610342366004611c56565b610949565b6001610264565b609e5461028f565b61028f610364366004611ba2565b6109b4565b61021e6109eb565b609a5461028f565b6033546040516001600160a01b039091168152602001610235565b610228610a21565b61021e6103aa366004611c2c565b610a4c565b6102646103bd366004611c2c565b610aed565b61021e6103d0366004611c2c565b610b05565b6102646103e3366004611c2c565b610b7f565b61021e6103f6366004611ba2565b610bbb565b61021e610409366004611cd3565b610cb5565b609b5461028f565b61028f610de4565b61021e61042c366004611cba565b610def565b61028f61043f366004611bbd565b610e91565b61021e610452366004611ba2565b610ec2565b61021e610465366004611cba565b610f0e565b61021e610478366004611ba2565b610f38565b6033546001600160a01b031633146104b05760405162461bcd60e51b81526004016104a790611df4565b60405180910390fd5b609780546001600160a01b0319166001600160a01b0392909216919091179055565b6060609f80546104e190611f54565b15905061057857609f80546104f590611f54565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611f54565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b610580610fd3565b905090565b6033546001600160a01b03163314806105a857506099546001600160a01b031633145b6105c45760405162461bcd60e51b81526004016104a790611d4a565b6001600160a01b0382166000908152609c60205260409020546105e79082610fe2565b6001600160a01b0383166000908152609c6020526040902055609d5461060d9082610fe2565b609d555050565b60008061062083610fee565b905061062c848261100b565b506001600160a01b038416337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256106638288610e91565b60405190815260200160405180910390a35060019392505050565b6033546001600160a01b03163314806106a157506099546001600160a01b031633145b6106bd5760405162461bcd60e51b81526004016104a790611d4a565b6001600160a01b0382166000908152609c60205260409020548181101561071f5760405162461bcd60e51b81526020600482015260166024820152752a37b7903134b39030b6b7bab73a103a3790313ab93760511b60448201526064016104a7565b600061072a83611021565b90506107368284611038565b6001600160a01b0385166000908152609c6020526040902055609d5461075c9084611038565b609d556107698482611044565b60006001600160a01b038516600080516020611fe683398151915261078d84611157565b60405190815260200160405180910390a350505050565b6000806107af610de4565b90506107ba8161116e565b91505090565b6033546001600160a01b031633146107ea5760405162461bcd60e51b81526004016104a790611df4565b609e55565b6000806107fb83610fee565b9050610808858583611185565b50836001600160a01b0316856001600160a01b0316600080516020611fe683398151915261083584611157565b60405190815260200160405180910390a360019150505b9392505050565b60008061085f83611021565b905061062c848261122f565b6033546001600160a01b031633148061088e57506098546001600160a01b031633145b6108aa5760405162461bcd60e51b81526004016104a790611d4a565b609b546108b7908261126b565b609b556108c48282611277565b6001600160a01b0382166000600080516020611fe68339815191526108e884611157565b60405190815260200160405180910390a35050565b6033546001600160a01b031633146109275760405162461bcd60e51b81526004016104a790611df4565b609980546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b031633148061096c57506097546001600160a01b031633145b6109885760405162461bcd60e51b81526004016104a790611d77565b815161099b90609f906020850190611a60565b5080516109af9060a0906020840190611a60565b505050565b6001600160a01b038116600090815260656020908152604080832054609c90925282205461084c906109e58361116e565b90611038565b6033546001600160a01b03163314610a155760405162461bcd60e51b81526004016104a790611df4565b610a1f6000611317565b565b606060a08054610a3090611f54565b159050610a445760a080546104f590611f54565b610580611369565b6033546001600160a01b0316331480610a6f57506098546001600160a01b031633145b610a8b5760405162461bcd60e51b81526004016104a790611d4a565b6000610a9682611021565b609b54909150610aa69082611378565b609b55610ab38382611044565b60006001600160a01b038416600080516020611fe6833981519152610ad784611157565b60405190815260200160405180910390a3505050565b600080610af983611021565b905061062c8482611384565b6033546001600160a01b0316331480610b2857506099546001600160a01b031633145b610b445760405162461bcd60e51b81526004016104a790611d4a565b6000610b4f82611021565b9050610b5b8382611277565b6001600160a01b0383166000600080516020611fe6833981519152610ad784611157565b600080610b8b83610fee565b9050610b97848261141d565b506001600160a01b03841633600080516020611fe683398151915261066384611157565b600054610100900460ff1680610bd4575060005460ff16155b610bf05760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015610c12576000805461ffff19166101011790555b610c1a61142a565b610c786040518060400160405280601e81526020017f416e6b72204d4154494320526577617264204561726e696e6720426f6e6400008152506040518060400160405280600781526020016630a6a0aa24a1b160c91b8152506114a5565b609780546001600160a01b0319166001600160a01b038416179055670de0b6b3a7640000609a558015610cb1576000805461ff00191690555b5050565b6033546001600160a01b0316331480610cd857506097546001600160a01b031633145b610cf45760405162461bcd60e51b81526004016104a790611d77565b609a54600090610d06906101f4611524565b609a54909150610d169082610fe2565b831080610d2e5750609a54610d2b9082611038565b83115b610d7a5760405162461bcd60e51b815260206004820152601d60248201527f4e657720726174696f2073686f756c6420626520696e206c696d69747300000060448201526064016104a7565b670de0b6b3a7640000831115610da25760405162461bcd60e51b81526004016104a790611e29565b609a839055609e8290556040518381527fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9060200160405180910390a1505050565b600061058060675490565b6033546001600160a01b0316331480610e1257506097546001600160a01b031633145b610e2e5760405162461bcd60e51b81526004016104a790611d77565b670de0b6b3a7640000811115610e565760405162461bcd60e51b81526004016104a790611e29565b609a8190556040518181527fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9060200160405180910390a150565b6001600160a01b03808316600090815260666020908152604080832093851683529290529081205461084c9061116e565b6033546001600160a01b03163314610eec5760405162461bcd60e51b81526004016104a790611df4565b609880546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610e565760405162461bcd60e51b81526004016104a790611df4565b6033546001600160a01b03163314610f625760405162461bcd60e51b81526004016104a790611df4565b6001600160a01b038116610fc75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a7565b610fd081611317565b50565b6060606880546104f590611f54565b600061084c8284611eb3565b600061100582609a54670de0b6b3a7640000611530565b92915050565b60006110183384846115c1565b50600192915050565b600061100582609a54670de0b6b3a76400006116b0565b600061084c8284611f3d565b6001600160a01b0382166110a45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104a7565b6001600160a01b038216600090815260656020526040902054818110156111185760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104a7565b6001600160a01b0383166000908152606560205260408120838303905560678054849290611147908490611f3d565b909155506109af90508360008483565b600061100582670de0b6b3a7640000609a54611530565b600061100582670de0b6b3a7640000609a546116b0565b6000611192848484611700565b6001600160a01b0384166000908152606660209081526040808320338452909152902054828110156112175760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104a7565b61122485338584036115c1565b506001949350505050565b3360008181526066602090815260408083206001600160a01b03871684529091528120549091611018918590611266908690611eb3565b6115c1565b600061084c8284611efe565b6001600160a01b0382166112cd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104a7565b80606760008282546112df9190611eb3565b90915550506001600160a01b0382166000908152606560205260408120805483929061130c908490611eb3565b90915550610cb19050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060606980546104f590611f54565b600061084c8284611e72565b3360009081526066602090815260408083206001600160a01b0386168452909152812054828110156114065760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104a7565b61141333858584036115c1565b5060019392505050565b6000611018338484611700565b600054610100900460ff1680611443575060005460ff16155b61145f5760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015611481576000805461ffff19166101011790555b611489611886565b6114916118f0565b8015610fd0576000805461ff001916905550565b600054610100900460ff16806114be575060005460ff16155b6114da5760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff161580156114fc576000805461ffff19166101011790555b611504611886565b61150e8383611950565b80156109af576000805461ff0019169055505050565b600061084c8284611ecb565b60008061153d85846119e5565b9050600061154b8685611524565b9050600061155982876119f1565b925090508061156f57600019935050505061084c565b6115a161159a86611594611584826001611038565b61158e888c611a39565b90610fe2565b90611524565b8390611a45565b92509050806115b757600019935050505061084c565b5095945050505050565b6001600160a01b0383166116235760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104a7565b6001600160a01b0382166116845760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104a7565b6001600160a01b0392831660009081526066602090815260408083209490951682529290925291902055565b6000806116bd85846119e5565b905060006116cb8685611524565b905060006116d982876119f1565b92509050806116ef57600019935050505061084c565b6115a161159a86611594868a611a39565b6001600160a01b0383166117645760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104a7565b6001600160a01b0382166117c65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104a7565b6001600160a01b0383166000908152606560205260409020548181101561183e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104a7565b6001600160a01b03808516600090815260656020526040808220858503905591851681529081208054849290611875908490611eb3565b909155506118809050565b50505050565b600054610100900460ff168061189f575060005460ff16155b6118bb5760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015611491576000805461ffff19166101011790558015610fd0576000805461ff001916905550565b600054610100900460ff1680611909575060005460ff16155b6119255760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015611947576000805461ffff19166101011790555b61149133611317565b600054610100900460ff1680611969575060005460ff16155b6119855760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff161580156119a7576000805461ffff19166101011790555b82516119ba906068906020860190611a60565b5081516119ce906069906020850190611a60565b5080156109af576000805461ff0019169055505050565b600061084c8284611f8f565b60008083611a055750600190506000611a32565b83830283858281611a1857611a18611fb9565b0414611a2b576000809250925050611a32565b6001925090505b9250929050565b600061084c8284611edf565b60008083830184811015611a2b576000809250925050611a32565b828054611a6c90611f54565b90600052602060002090601f016020900481019282611a8e5760008555611ad4565b82601f10611aa757805160ff1916838001178555611ad4565b82800160010185558215611ad4579182015b82811115611ad4578251825591602001919060010190611ab9565b50611ae0929150611ae4565b5090565b5b80821115611ae05760008155600101611ae5565b80356001600160a01b0381168114611b1057600080fd5b919050565b600082601f830112611b2657600080fd5b813567ffffffffffffffff80821115611b4157611b41611fcf565b604051601f8301601f19908116603f01168101908282118183101715611b6957611b69611fcf565b81604052838152866020858801011115611b8257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215611bb457600080fd5b61084c82611af9565b60008060408385031215611bd057600080fd5b611bd983611af9565b9150611be760208401611af9565b90509250929050565b600080600060608486031215611c0557600080fd5b611c0e84611af9565b9250611c1c60208501611af9565b9150604084013590509250925092565b60008060408385031215611c3f57600080fd5b611c4883611af9565b946020939093013593505050565b60008060408385031215611c6957600080fd5b823567ffffffffffffffff80821115611c8157600080fd5b611c8d86838701611b15565b93506020850135915080821115611ca357600080fd5b50611cb085828601611b15565b9150509250929050565b600060208284031215611ccc57600080fd5b5035919050565b60008060408385031215611ce657600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015611d2257858101830151858201604001528201611d06565b81811115611d34576000604083870101525b50601f01601f1916929092016040019392505050565b602080825260139082015272135a5b9d195c8e881b9bdd08185b1b1bddd959606a1b604082015260600190565b60208082526015908201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f6e657720726174696f2073686f756c64206265206c657373206f7220657175616040820152680d840e8de4062ca62760bb1b606082015260800190565b600080821280156001600160ff1b0384900385131615611e9457611e94611fa3565b600160ff1b8390038412811615611ead57611ead611fa3565b50500190565b60008219821115611ec657611ec6611fa3565b500190565b600082611eda57611eda611fb9565b500490565b6000816000190483118215151615611ef957611ef9611fa3565b500290565b60008083128015600160ff1b850184121615611f1c57611f1c611fa3565b6001600160ff1b0384018313811615611f3757611f37611fa3565b50500390565b600082821015611f4f57611f4f611fa3565b500390565b600181811c90821680611f6857607f821691505b60208210811415611f8957634e487b7160e01b600052602260045260246000fd5b50919050565b600082611f9e57611f9e611fb9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122005471e7b87ef9aaf74750b7e3cc1944db8c5dfe4c7ad5582a444bfa0d68b297b64736f6c63430008060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c8063715018a61161011a578063c4d66de8116100ad578063dc647e291161007c578063dc647e291461041e578063dd62ed3e14610431578063e3ec72be14610444578063e5683ad914610457578063f2fde38b1461046a57600080fd5b8063c4d66de8146103e8578063c814cf89146103fb578063ca5c7b911461040e578063d50619cc1461041657600080fd5b80639dc29fac116100e95780639dc29fac1461039c578063a457c2d7146103af578063a85374e1146103c2578063a9059cbb146103d557600080fd5b8063715018a61461036957806371ca337d146103715780638da5cb5b1461037957806395d89b411461039457600080fd5b8063313ce5671161019d578063583585f41161016c578063583585f41461030b5780635a446215146103345780635dfba115146103475780636406dd5c1461034e57806370a082311461035657600080fd5b8063313ce567146102c357806339509351146102d257806340c10f19146102e557806353396d2f146102f857600080fd5b80630ed62270116101d95780630ed622701461027457806318160ddd146102875780631d62f87c1461029d57806323b872dd146102b057600080fd5b806306394c9b1461020b57806306fdde031461022057806307ef2a121461023e578063095ea7b314610251575b600080fd5b61021e610219366004611ba2565b61047d565b005b6102286104d2565b6040516102359190611cf5565b60405180910390f35b61021e61024c366004611c2c565b610585565b61026461025f366004611c2c565b610614565b6040519015158152602001610235565b61021e610282366004611c2c565b61067e565b61028f6107a4565b604051908152602001610235565b61021e6102ab366004611cba565b6107c0565b6102646102be366004611bf0565b6107ef565b60405160128152602001610235565b6102646102e0366004611c2c565b610853565b61021e6102f3366004611c2c565b61086b565b61021e610306366004611ba2565b6108fd565b61028f610319366004611ba2565b6001600160a01b03166000908152609c602052604090205490565b61021e610342366004611c56565b610949565b6001610264565b609e5461028f565b61028f610364366004611ba2565b6109b4565b61021e6109eb565b609a5461028f565b6033546040516001600160a01b039091168152602001610235565b610228610a21565b61021e6103aa366004611c2c565b610a4c565b6102646103bd366004611c2c565b610aed565b61021e6103d0366004611c2c565b610b05565b6102646103e3366004611c2c565b610b7f565b61021e6103f6366004611ba2565b610bbb565b61021e610409366004611cd3565b610cb5565b609b5461028f565b61028f610de4565b61021e61042c366004611cba565b610def565b61028f61043f366004611bbd565b610e91565b61021e610452366004611ba2565b610ec2565b61021e610465366004611cba565b610f0e565b61021e610478366004611ba2565b610f38565b6033546001600160a01b031633146104b05760405162461bcd60e51b81526004016104a790611df4565b60405180910390fd5b609780546001600160a01b0319166001600160a01b0392909216919091179055565b6060609f80546104e190611f54565b15905061057857609f80546104f590611f54565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611f54565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b610580610fd3565b905090565b6033546001600160a01b03163314806105a857506099546001600160a01b031633145b6105c45760405162461bcd60e51b81526004016104a790611d4a565b6001600160a01b0382166000908152609c60205260409020546105e79082610fe2565b6001600160a01b0383166000908152609c6020526040902055609d5461060d9082610fe2565b609d555050565b60008061062083610fee565b905061062c848261100b565b506001600160a01b038416337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256106638288610e91565b60405190815260200160405180910390a35060019392505050565b6033546001600160a01b03163314806106a157506099546001600160a01b031633145b6106bd5760405162461bcd60e51b81526004016104a790611d4a565b6001600160a01b0382166000908152609c60205260409020548181101561071f5760405162461bcd60e51b81526020600482015260166024820152752a37b7903134b39030b6b7bab73a103a3790313ab93760511b60448201526064016104a7565b600061072a83611021565b90506107368284611038565b6001600160a01b0385166000908152609c6020526040902055609d5461075c9084611038565b609d556107698482611044565b60006001600160a01b038516600080516020611fe683398151915261078d84611157565b60405190815260200160405180910390a350505050565b6000806107af610de4565b90506107ba8161116e565b91505090565b6033546001600160a01b031633146107ea5760405162461bcd60e51b81526004016104a790611df4565b609e55565b6000806107fb83610fee565b9050610808858583611185565b50836001600160a01b0316856001600160a01b0316600080516020611fe683398151915261083584611157565b60405190815260200160405180910390a360019150505b9392505050565b60008061085f83611021565b905061062c848261122f565b6033546001600160a01b031633148061088e57506098546001600160a01b031633145b6108aa5760405162461bcd60e51b81526004016104a790611d4a565b609b546108b7908261126b565b609b556108c48282611277565b6001600160a01b0382166000600080516020611fe68339815191526108e884611157565b60405190815260200160405180910390a35050565b6033546001600160a01b031633146109275760405162461bcd60e51b81526004016104a790611df4565b609980546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b031633148061096c57506097546001600160a01b031633145b6109885760405162461bcd60e51b81526004016104a790611d77565b815161099b90609f906020850190611a60565b5080516109af9060a0906020840190611a60565b505050565b6001600160a01b038116600090815260656020908152604080832054609c90925282205461084c906109e58361116e565b90611038565b6033546001600160a01b03163314610a155760405162461bcd60e51b81526004016104a790611df4565b610a1f6000611317565b565b606060a08054610a3090611f54565b159050610a445760a080546104f590611f54565b610580611369565b6033546001600160a01b0316331480610a6f57506098546001600160a01b031633145b610a8b5760405162461bcd60e51b81526004016104a790611d4a565b6000610a9682611021565b609b54909150610aa69082611378565b609b55610ab38382611044565b60006001600160a01b038416600080516020611fe6833981519152610ad784611157565b60405190815260200160405180910390a3505050565b600080610af983611021565b905061062c8482611384565b6033546001600160a01b0316331480610b2857506099546001600160a01b031633145b610b445760405162461bcd60e51b81526004016104a790611d4a565b6000610b4f82611021565b9050610b5b8382611277565b6001600160a01b0383166000600080516020611fe6833981519152610ad784611157565b600080610b8b83610fee565b9050610b97848261141d565b506001600160a01b03841633600080516020611fe683398151915261066384611157565b600054610100900460ff1680610bd4575060005460ff16155b610bf05760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015610c12576000805461ffff19166101011790555b610c1a61142a565b610c786040518060400160405280601e81526020017f416e6b72204d4154494320526577617264204561726e696e6720426f6e6400008152506040518060400160405280600781526020016630a6a0aa24a1b160c91b8152506114a5565b609780546001600160a01b0319166001600160a01b038416179055670de0b6b3a7640000609a558015610cb1576000805461ff00191690555b5050565b6033546001600160a01b0316331480610cd857506097546001600160a01b031633145b610cf45760405162461bcd60e51b81526004016104a790611d77565b609a54600090610d06906101f4611524565b609a54909150610d169082610fe2565b831080610d2e5750609a54610d2b9082611038565b83115b610d7a5760405162461bcd60e51b815260206004820152601d60248201527f4e657720726174696f2073686f756c6420626520696e206c696d69747300000060448201526064016104a7565b670de0b6b3a7640000831115610da25760405162461bcd60e51b81526004016104a790611e29565b609a839055609e8290556040518381527fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9060200160405180910390a1505050565b600061058060675490565b6033546001600160a01b0316331480610e1257506097546001600160a01b031633145b610e2e5760405162461bcd60e51b81526004016104a790611d77565b670de0b6b3a7640000811115610e565760405162461bcd60e51b81526004016104a790611e29565b609a8190556040518181527fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9060200160405180910390a150565b6001600160a01b03808316600090815260666020908152604080832093851683529290529081205461084c9061116e565b6033546001600160a01b03163314610eec5760405162461bcd60e51b81526004016104a790611df4565b609880546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610e565760405162461bcd60e51b81526004016104a790611df4565b6033546001600160a01b03163314610f625760405162461bcd60e51b81526004016104a790611df4565b6001600160a01b038116610fc75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a7565b610fd081611317565b50565b6060606880546104f590611f54565b600061084c8284611eb3565b600061100582609a54670de0b6b3a7640000611530565b92915050565b60006110183384846115c1565b50600192915050565b600061100582609a54670de0b6b3a76400006116b0565b600061084c8284611f3d565b6001600160a01b0382166110a45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104a7565b6001600160a01b038216600090815260656020526040902054818110156111185760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104a7565b6001600160a01b0383166000908152606560205260408120838303905560678054849290611147908490611f3d565b909155506109af90508360008483565b600061100582670de0b6b3a7640000609a54611530565b600061100582670de0b6b3a7640000609a546116b0565b6000611192848484611700565b6001600160a01b0384166000908152606660209081526040808320338452909152902054828110156112175760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104a7565b61122485338584036115c1565b506001949350505050565b3360008181526066602090815260408083206001600160a01b03871684529091528120549091611018918590611266908690611eb3565b6115c1565b600061084c8284611efe565b6001600160a01b0382166112cd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104a7565b80606760008282546112df9190611eb3565b90915550506001600160a01b0382166000908152606560205260408120805483929061130c908490611eb3565b90915550610cb19050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060606980546104f590611f54565b600061084c8284611e72565b3360009081526066602090815260408083206001600160a01b0386168452909152812054828110156114065760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104a7565b61141333858584036115c1565b5060019392505050565b6000611018338484611700565b600054610100900460ff1680611443575060005460ff16155b61145f5760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015611481576000805461ffff19166101011790555b611489611886565b6114916118f0565b8015610fd0576000805461ff001916905550565b600054610100900460ff16806114be575060005460ff16155b6114da5760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff161580156114fc576000805461ffff19166101011790555b611504611886565b61150e8383611950565b80156109af576000805461ff0019169055505050565b600061084c8284611ecb565b60008061153d85846119e5565b9050600061154b8685611524565b9050600061155982876119f1565b925090508061156f57600019935050505061084c565b6115a161159a86611594611584826001611038565b61158e888c611a39565b90610fe2565b90611524565b8390611a45565b92509050806115b757600019935050505061084c565b5095945050505050565b6001600160a01b0383166116235760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104a7565b6001600160a01b0382166116845760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104a7565b6001600160a01b0392831660009081526066602090815260408083209490951682529290925291902055565b6000806116bd85846119e5565b905060006116cb8685611524565b905060006116d982876119f1565b92509050806116ef57600019935050505061084c565b6115a161159a86611594868a611a39565b6001600160a01b0383166117645760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104a7565b6001600160a01b0382166117c65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104a7565b6001600160a01b0383166000908152606560205260409020548181101561183e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104a7565b6001600160a01b03808516600090815260656020526040808220858503905591851681529081208054849290611875908490611eb3565b909155506118809050565b50505050565b600054610100900460ff168061189f575060005460ff16155b6118bb5760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015611491576000805461ffff19166101011790558015610fd0576000805461ff001916905550565b600054610100900460ff1680611909575060005460ff16155b6119255760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff16158015611947576000805461ffff19166101011790555b61149133611317565b600054610100900460ff1680611969575060005460ff16155b6119855760405162461bcd60e51b81526004016104a790611da6565b600054610100900460ff161580156119a7576000805461ffff19166101011790555b82516119ba906068906020860190611a60565b5081516119ce906069906020850190611a60565b5080156109af576000805461ff0019169055505050565b600061084c8284611f8f565b60008083611a055750600190506000611a32565b83830283858281611a1857611a18611fb9565b0414611a2b576000809250925050611a32565b6001925090505b9250929050565b600061084c8284611edf565b60008083830184811015611a2b576000809250925050611a32565b828054611a6c90611f54565b90600052602060002090601f016020900481019282611a8e5760008555611ad4565b82601f10611aa757805160ff1916838001178555611ad4565b82800160010185558215611ad4579182015b82811115611ad4578251825591602001919060010190611ab9565b50611ae0929150611ae4565b5090565b5b80821115611ae05760008155600101611ae5565b80356001600160a01b0381168114611b1057600080fd5b919050565b600082601f830112611b2657600080fd5b813567ffffffffffffffff80821115611b4157611b41611fcf565b604051601f8301601f19908116603f01168101908282118183101715611b6957611b69611fcf565b81604052838152866020858801011115611b8257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215611bb457600080fd5b61084c82611af9565b60008060408385031215611bd057600080fd5b611bd983611af9565b9150611be760208401611af9565b90509250929050565b600080600060608486031215611c0557600080fd5b611c0e84611af9565b9250611c1c60208501611af9565b9150604084013590509250925092565b60008060408385031215611c3f57600080fd5b611c4883611af9565b946020939093013593505050565b60008060408385031215611c6957600080fd5b823567ffffffffffffffff80821115611c8157600080fd5b611c8d86838701611b15565b93506020850135915080821115611ca357600080fd5b50611cb085828601611b15565b9150509250929050565b600060208284031215611ccc57600080fd5b5035919050565b60008060408385031215611ce657600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015611d2257858101830151858201604001528201611d06565b81811115611d34576000604083870101525b50601f01601f1916929092016040019392505050565b602080825260139082015272135a5b9d195c8e881b9bdd08185b1b1bddd959606a1b604082015260600190565b60208082526015908201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f6e657720726174696f2073686f756c64206265206c657373206f7220657175616040820152680d840e8de4062ca62760bb1b606082015260800190565b600080821280156001600160ff1b0384900385131615611e9457611e94611fa3565b600160ff1b8390038412811615611ead57611ead611fa3565b50500190565b60008219821115611ec657611ec6611fa3565b500190565b600082611eda57611eda611fb9565b500490565b6000816000190483118215151615611ef957611ef9611fa3565b500290565b60008083128015600160ff1b850184121615611f1c57611f1c611fa3565b6001600160ff1b0384018313811615611f3757611f37611fa3565b50500390565b600082821015611f4f57611f4f611fa3565b500390565b600181811c90821680611f6857607f821691505b60208210811415611f8957634e487b7160e01b600052602260045260246000fd5b50919050565b600082611f9e57611f9e611fb9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122005471e7b87ef9aaf74750b7e3cc1944db8c5dfe4c7ad5582a444bfa0d68b297b64736f6c63430008060033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.