Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- TokenB
- Optimization enabled
- false
- Compiler version
- v0.8.20+commit.a1b79de6
- EVM Version
- default
- Verified at
- 2024-12-12T02:38:19.771887Z
Constructor Arguments
0x00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5700000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000271000000000000000000000000011c23092e035ab7174bc4580f8c4b9f42ea6aadc0000000000000000000000000f7f17b3635e7d53f0b1b7b6beec9f52ea6451e5
Arg [0] (address) : 0x44de2d9eb4f3cb4131287d5c76c88c275139da57
Arg [1] (uint256) : 1000
Arg [2] (uint256) : 10000
Arg [3] (address) : 0x11c23092e035ab7174bc4580f8c4b9f42ea6aadc
Arg [4] (address) : 0x0f7f17b3635e7d53f0b1b7b6beec9f52ea6451e5
Contract source code
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// File: @openzeppelin/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
// File: contracts/Wartortle/wartortle.sol
// ⠀⠀⠀⠀⠀⠀⠀⢀⣠⡶⠖⠛⠓⢶⡄⠀⠀⠀⠀⢠⡶⠚⠛⠓⠶⣤⣀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⢀⣴⠟⠁⢀⡤⠀⠀⠀⣿⠀⠀⠀⠀⣿⠀⠀⠀⢤⣀⠈⠙⣷⡀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⢠⡞⠁⢀⡴⠋⠀⠀⠀⣰⠏⠀⠀⠀⠀⠹⣦⠀⠀⠀⠘⢷⡀⠈⠻⡄⠀⠀⠀⠀
// ⠀⠀⠀⢠⠟⠀⢀⡞⢁⡄⠀⠀⡾⠋⠀⠀⠀⠀⠀⠀⠙⢷⠀⠀⢠⡀⢳⡄⠀⠹⣆⠀⠀⠀
// ⠀⠀⢠⠏⠀⢠⣾⣿⡞⢁⠄⠀⠙⣦⠀⠀⠀⠀⠀⠀⣴⠋⠀⠠⡄⢳⣿⣿⡄⠀⠹⡄⠀⠀
// ⠀⢀⡞⠀⢠⡾⠻⣿⣧⡎⢠⠀⣴⠋⠀⠀⠀⠀⠀⠀⠙⢧⠀⣄⢹⣼⣿⡛⢿⡆⠀⢻⡄⠀
// ⠀⣸⠁⠀⣼⠃⢀⡏⣿⣧⣏⣸⠁⠀⠀⠀⠀⠀⠀⠀⠀⠈⣧⣸⣾⣿⢹⡄⠈⣧⠀⠈⣧⠀
// ⠀⡇⠀⠀⡿⠀⣼⠀⡭⠻⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⠟⢩⠀⢷⠀⢻⡀⠀⢸⡄
// ⢸⡇⠀⢸⠳⣴⣇⢰⠇⢰⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣆⠸⡆⢸⣷⠞⡇⠀⢸⡇
// ⢸⡇⠀⢿⣾⣹⢻⣿⣧⡟⠀ WINGLESS ANGEL⠀⢻⣼⣿⣏⣧⣷⣿⠀⢸⡇
// ⢸⡇⠀⡿⠋⡟⢿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡿⢻⠉⢻⠀⢸⡇
// ⠀⣷⠀⡇⠀⡇⠀⡇⠀⠀⠀ ⠀⠀⠀⢸⣀⢸⠀⢸⠀⣾⠀
// ⠀⢹⡄⡇⡄⣗⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣸⣦⣸⢀⡏⠀
// ⠀⠈⣧⢹⣻⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣟⡟⣸⠁⠀
// ⠀⠀⠸⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣷⠇⠀⠀
//This version go from 100:1 to 1000:1 then flip and go back to 100:1
pragma solidity ^0.8.2;
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract TokenB is ERC20, Ownable {
address public immutable Token_A;
address private MakerAddress1;
address private MakerAddress2;
address private BurnAddress;
uint256 public immutable startTime;
uint256 public immutable InflationInterval = 604800;
uint256 public immutable InflationPercent;
uint256 public InflationCount;
uint256 public immutable initialRatio;
uint256 private lastUpdateTime;
bool public isInflating = false;
event MintOperation(address indexed caller, uint256 Token_bToMint, uint256 computedRatio, uint256 amount, bool isInflating);
event MakerAddressesChanged(address newMaker1, address newMaker2);
event Burn(address indexed caller, uint256 amount);
/**
* @dev Constructor initializes token A, inflation percentage, and the minting ratio.
* @param _Token_A Address of the token used for minting Wartortle.
* @param _InflationPercent Percentage increase per inflation cycle.
* @param _initialRatio Ratio defining how many Token A are needed for 1 Wartortle.
*/
constructor(
address _Token_A,
uint256 _InflationPercent,
uint256 _initialRatio,
address _makerAddress1,
address _makerAddress2
)
ERC20("Wartortle \u30AB\u30E1\u30FC\u30EB", "Wartortle")
{
Token_A = _Token_A;
InflationPercent = _InflationPercent;
initialRatio = _initialRatio;
startTime = block.timestamp;
MakerAddress1 = _makerAddress1; //Change to caller in the future
MakerAddress2 = _makerAddress2;
BurnAddress = 0x0000000000000000000000000000000000000333;
transferOwnership(msg.sender);
InflationCount = 0;
}
/**
* @dev Updates inflation count based on elapsed time.
* @param _to Address to receive the transferred tokens.
* @param _amount Amount of tokens to transfer.
*/
function update(address _to, uint256 _amount) external onlyOwner {
safeTokenTransfer(_to, _amount);
uint256 timeSinceDeployment = block.timestamp - startTime;
InflationCount = timeSinceDeployment / InflationInterval;
}
/**
* @dev Allows the owner to change the MakerAddress.
* @param newMaker1 The new MakerAddress.
* @param newMaker2 The new MakerAddress.
*/
function changeMaker(address newMaker1, address newMaker2) external onlyOwner {
MakerAddress1 = newMaker1;
MakerAddress2 = newMaker2;
}
function Mint(address caller, uint256 amount) external onlyOwner {
IERC20(Token_A).transferFrom(caller, address(this), amount / 100 * 85); // sends % to tokenB contract
IERC20(Token_A).transferFrom(caller, address(MakerAddress1), amount / 100 * 3); // sends % to maker1
IERC20(Token_A).transferFrom(caller, address(MakerAddress2), amount / 100 * 2); // sends % to maker2
IERC20(Token_A).transferFrom(caller, address(BurnAddress), amount / 100 * 10); // Set amount and burn address
emit Burn(caller, amount / 100 *10);
uint256 computedRatio;
// Determine inflation or deflation based on Phase 2 status
if (isInflating) {
computedRatio = initialRatio / 10;
for (uint256 i = 0; i < InflationCount; i++) {
// Increase ratio with each inflation cycle
computedRatio = computedRatio + (computedRatio * InflationPercent) / 1e4;
if (computedRatio >= initialRatio) {
computedRatio = initialRatio;
isInflating = false;
InflationCount = 0;
break;
}
}
} else {
// Phase 1 logic: Start at initial ratio and decrease with inflation
computedRatio = initialRatio;
for (uint256 i = 0; i < InflationCount; i++) {
// Decrease ratio with each inflation cycle
computedRatio = (computedRatio * (1e4 - InflationPercent)) / 1e4;
//computedRatio = computedRatio * (computedRatio - InflationPercent) / 1e4;
if (computedRatio <= initialRatio / 10) {
isInflating = true;
computedRatio = initialRatio / 10;
InflationCount = 0;
break;
}
}
}
// Calculate the amount of Token B to mint based on computedRatio
//uint256 Token_bToMint = ((amount * 1e6) / computedRatio) / 1e4;
uint256 Token_bToMint = (amount * computedRatio) / 1e6;
// Emit the MintOperation event
emit MintOperation(caller, Token_bToMint, computedRatio, amount, isInflating);
// Mint Token B to the caller and MakerAddresses
_mint(caller, Token_bToMint);
_mint(MakerAddress1, Token_bToMint / 100 * 2);
_mint(MakerAddress2, Token_bToMint / 100 * 2);
}
/**
* @dev Safely transfers Token A to a specified address.
* @param _to Address receiving the tokens.
* @param _amount Amount of Token A to transfer.
*/
function safeTokenTransfer(address _to, uint256 _amount) internal {
uint256 SecBal = ERC20(Token_A).balanceOf(address(this));
ERC20(Token_A).transfer(_to, _amount > SecBal ? SecBal : _amount);
}
//****************TESTING REMOVE FOR MAIN-NET*************************************
/**
* @dev Increments the inflation count for testing purposes.
* @notice Remove this function for mainnet deployment.
*/
// function Inflate() external onlyOwner {
// InflationCount++;
// }
// function SetInflationCount(uint256 _amount) external onlyOwner {
// InflationCount = _amount;
// }
// function calculateRatio() public view returns (uint256) {
// uint256 computedRatio;
// if (isInflating) {
// computedRatio = initialRatio / 10;
// // Apply compounded inflation for Phase 2
// for (uint256 i = 0; i < InflationCount; i++) {
// computedRatio = computedRatio + (computedRatio * InflationPercent) / 1e4;
// if (computedRatio >= initialRatio) {
// computedRatio = initialRatio;
// break;
// }
// }
// } else {
// computedRatio = initialRatio;
// // Apply deflation logic in Phase 1
// for (uint256 i = 0; i < InflationCount; i++) {
// //computedRatio = computedRatio - (computedRatio * InflationPercent) / 1e4;
// //computedRatio = computedRatio * (computedRatio - InflationPercent) / 1e4;
// computedRatio = (computedRatio * (1e4 - InflationPercent)) / 1e4;
// if (computedRatio <= initialRatio / 10) {
// computedRatio = initialRatio / 10;
// break;
// }
// }
// }
// return computedRatio;
// }
// function calculateRatioAB() public view returns (uint256) {
// // uint256 _InflationCount = Token_B.InflationCount();
// // uint256 _InflationPercent = Token_B.InflationPercent();
// // uint256 _initialRatio = Token_B.initialRatio(); // Initial ratio for Phase 1
// // bool isInflating = Token_B.isInflating(); // Check if we are in Phase 2
// uint256 computedRatio; // Start with initial ratio
// if (isInflating) {
// computedRatio = initialRatio / 10;
// // Apply compounded inflation for Phase 2
// for (uint256 i = 0; i < InflationCount; i++) {
// computedRatio = computedRatio + (computedRatio * InflationPercent) / 1e4;
// if (computedRatio >= initialRatio) {
// computedRatio = initialRatio;
// break;
// }
// }
// } else {
// computedRatio = initialRatio;
// // Apply deflation logic in Phase 1
// for (uint256 i = 0; i < InflationCount; i++) {
// computedRatio = (computedRatio * (1e4 - InflationPercent)) / 1e4;
// if (computedRatio <= initialRatio / 10) {
// computedRatio = initialRatio / 10;
// break;
// }
// }
// }
// // Convert the ratio to "Token A cost per 1 Token B"
// computedRatio = 1e8 / computedRatio; // Additional Line
// return computedRatio;
// }
}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_Token_A","internalType":"address"},{"type":"uint256","name":"_InflationPercent","internalType":"uint256"},{"type":"uint256","name":"_initialRatio","internalType":"uint256"},{"type":"address","name":"_makerAddress1","internalType":"address"},{"type":"address","name":"_makerAddress2","internalType":"address"}]},{"type":"error","name":"ERC20InsufficientAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"allowance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InsufficientBalance","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"balance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InvalidApprover","inputs":[{"type":"address","name":"approver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidReceiver","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSender","inputs":[{"type":"address","name":"sender","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSpender","inputs":[{"type":"address","name":"spender","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Burn","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MakerAddressesChanged","inputs":[{"type":"address","name":"newMaker1","internalType":"address","indexed":false},{"type":"address","name":"newMaker2","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"MintOperation","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"uint256","name":"Token_bToMint","internalType":"uint256","indexed":false},{"type":"uint256","name":"computedRatio","internalType":"uint256","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"bool","name":"isInflating","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"InflationCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"InflationInterval","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"InflationPercent","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"Mint","inputs":[{"type":"address","name":"caller","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"Token_A","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeMaker","inputs":[{"type":"address","name":"newMaker1","internalType":"address"},{"type":"address","name":"newMaker2","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"initialRatio","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isInflating","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"update","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]}]
Contract Creation Code
0x61012060405262093a8060c0908152505f600b5f6101000a81548160ff02191690831515021790555034801562000034575f80fd5b5060405162002d1c38038062002d1c83398181016040528101906200005a919062000556565b6040518060400160405280601681526020017f576172746f72746c6520e382abe383a1e383bce383ab000000000000000000008152506040518060400160405280600981526020017f576172746f72746c6500000000000000000000000000000000000000000000008152508160039081620000d7919062000835565b508060049081620000e9919062000835565b5050505f620000fd620002cc60201b60201c565b90508060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508360e081815250508261010081815250504260a081815250508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061033360085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002ba33620002d360201b60201c565b5f600981905550505050505062000a2b565b5f33905090565b620002e3620002cc60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003096200049160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000362576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003599062000977565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620003d3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003ca9062000a0b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620004e882620004bd565b9050919050565b620004fa81620004dc565b811462000505575f80fd5b50565b5f815190506200051881620004ef565b92915050565b5f819050919050565b62000532816200051e565b81146200053d575f80fd5b50565b5f81519050620005508162000527565b92915050565b5f805f805f60a08688031215620005725762000571620004b9565b5b5f620005818882890162000508565b9550506020620005948882890162000540565b9450506040620005a78882890162000540565b9350506060620005ba8882890162000508565b9250506080620005cd8882890162000508565b9150509295509295909350565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200065657607f821691505b6020821081036200066c576200066b62000611565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620006d07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000693565b620006dc868362000693565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6200071d6200071762000711846200051e565b620006f4565b6200051e565b9050919050565b5f819050919050565b6200073883620006fd565b62000750620007478262000724565b8484546200069f565b825550505050565b5f90565b6200076662000758565b620007738184846200072d565b505050565b5b818110156200079a576200078e5f826200075c565b60018101905062000779565b5050565b601f821115620007e957620007b38162000672565b620007be8462000684565b81016020851015620007ce578190505b620007e6620007dd8562000684565b83018262000778565b50505b505050565b5f82821c905092915050565b5f6200080b5f1984600802620007ee565b1980831691505092915050565b5f620008258383620007fa565b9150826002028217905092915050565b6200084082620005da565b67ffffffffffffffff8111156200085c576200085b620005e4565b5b6200086882546200063e565b620008758282856200079e565b5f60209050601f831160018114620008ab575f841562000896578287015190505b620008a2858262000818565b86555062000911565b601f198416620008bb8662000672565b5f5b82811015620008e457848901518255600182019150602085019450602081019050620008bd565b8683101562000904578489015162000900601f891682620007fa565b8355505b6001600288020188555050505b505050505050565b5f82825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6200095f60208362000919565b91506200096c8262000929565b602082019050919050565b5f6020820190508181035f830152620009908162000951565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f620009f360268362000919565b915062000a008262000997565b604082019050919050565b5f6020820190508181035f83015262000a2481620009e5565b9050919050565b60805160a05160c05160e0516101005161224362000ad95f395f818161090401528181610983015281816109aa01528181610a0b01528181610a8401528181610ad1015261115901525f818161094001528181610a3d0152610c8501525f8181610f6f015261110001525f8181610f2701526110d201525f818161054c01528181610602015281816106d9015281816107b001528181610f4b015281816115c2015261165c01526122435ff3fe608060405234801561000f575f80fd5b5060043610610140575f3560e01c8063715018a6116100b657806395d89b411161007a57806395d89b4114610342578063a2d83b5e14610360578063a9059cbb1461037c578063d4611ec2146103ac578063dd62ed3e146103ca578063f2fde38b146103fa57610140565b8063715018a6146102c057806378e97925146102ca5780637ecd8005146102e857806382d4e6e3146103065780638da5cb5b1461032457610140565b806322a79a291161010857806322a79a29146101ea57806323b872dd14610208578063313ce56714610238578063589b37e714610256578063613783621461027457806370a082311461029057610140565b806306fdde0314610144578063095ea7b3146101625780630e943984146101925780630f6798a5146101b057806318160ddd146101cc575b5f80fd5b61014c610416565b6040516101599190611b7b565b60405180910390f35b61017c60048036038101906101779190611c2c565b6104a6565b6040516101899190611c84565b60405180910390f35b61019a6104c8565b6040516101a79190611cac565b60405180910390f35b6101ca60048036038101906101c59190611c2c565b6104ce565b005b6101d4610c32565b6040516101e19190611cac565b60405180910390f35b6101f2610c3b565b6040516101ff9190611c84565b60405180910390f35b610222600480360381019061021d9190611cc5565b610c4d565b60405161022f9190611c84565b60405180910390f35b610240610c7b565b60405161024d9190611d30565b60405180910390f35b61025e610c83565b60405161026b9190611cac565b60405180910390f35b61028e60048036038101906102899190611d49565b610ca7565b005b6102aa60048036038101906102a59190611d87565b610da7565b6040516102b79190611cac565b60405180910390f35b6102c8610dec565b005b6102d2610f25565b6040516102df9190611cac565b60405180910390f35b6102f0610f49565b6040516102fd9190611dc1565b60405180910390f35b61030e610f6d565b60405161031b9190611cac565b60405180910390f35b61032c610f91565b6040516103399190611dc1565b60405180910390f35b61034a610fb9565b6040516103579190611b7b565b60405180910390f35b61037a60048036038101906103759190611c2c565b611049565b005b61039660048036038101906103919190611c2c565b611135565b6040516103a39190611c84565b60405180910390f35b6103b4611157565b6040516103c19190611cac565b60405180910390f35b6103e460048036038101906103df9190611d49565b61117b565b6040516103f19190611cac565b60405180910390f35b610414600480360381019061040f9190611d87565b6111fd565b005b60606003805461042590611e07565b80601f016020809104026020016040519081016040528092919081815260200182805461045190611e07565b801561049c5780601f106104735761010080835404028352916020019161049c565b820191905f5260205f20905b81548152906001019060200180831161047f57829003601f168201915b5050505050905090565b5f806104b06113a5565b90506104bd8185856113ac565b600191505092915050565b60095481565b6104d66113a5565b73ffffffffffffffffffffffffffffffffffffffff166104f4610f91565b73ffffffffffffffffffffffffffffffffffffffff161461054a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054190611e81565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd833060556064866105979190611ef9565b6105a19190611f29565b6040518463ffffffff1660e01b81526004016105bf93929190611f6a565b6020604051808303815f875af11580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff9190611fc9565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd8360065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360648661066e9190611ef9565b6106789190611f29565b6040518463ffffffff1660e01b815260040161069693929190611f6a565b6020604051808303815f875af11580156106b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d69190611fc9565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd8360075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660026064866107459190611ef9565b61074f9190611f29565b6040518463ffffffff1660e01b815260040161076d93929190611f6a565b6020604051808303815f875af1158015610789573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107ad9190611fc9565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd8360085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a60648661081c9190611ef9565b6108269190611f29565b6040518463ffffffff1660e01b815260040161084493929190611f6a565b6020604051808303815f875af1158015610860573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108849190611fc9565b508173ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5600a6064846108cc9190611ef9565b6108d69190611f29565b6040516108e39190611cac565b60405180910390a25f600b5f9054906101000a900460ff1615610a0957600a7f000000000000000000000000000000000000000000000000000000000000000061092d9190611ef9565b90505f5b600954811015610a03576127107f00000000000000000000000000000000000000000000000000000000000000008361096a9190611f29565b6109749190611ef9565b8261097f9190611ff4565b91507f000000000000000000000000000000000000000000000000000000000000000082106109f0577f000000000000000000000000000000000000000000000000000000000000000091505f600b5f6101000a81548160ff0219169083151502179055505f600981905550610a03565b80806109fb90612027565b915050610931565b50610b1d565b7f000000000000000000000000000000000000000000000000000000000000000090505f5b600954811015610b1b576127107f0000000000000000000000000000000000000000000000000000000000000000612710610a69919061206e565b83610a749190611f29565b610a7e9190611ef9565b9150600a7f0000000000000000000000000000000000000000000000000000000000000000610aad9190611ef9565b8211610b08576001600b5f6101000a81548160ff021916908315150217905550600a7f0000000000000000000000000000000000000000000000000000000000000000610afa9190611ef9565b91505f600981905550610b1b565b8080610b1390612027565b915050610a2e565b505b5f620f42408284610b2e9190611f29565b610b389190611ef9565b90508373ffffffffffffffffffffffffffffffffffffffff167fb50a60180bccf4917f942c36c82b87a73cd6a8d7d5487d119f7e918aa777fe5c828486600b5f9054906101000a900460ff16604051610b9494939291906120a1565b60405180910390a2610ba684826113be565b610be960065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002606484610bda9190611ef9565b610be49190611f29565b6113be565b610c2c60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002606484610c1d9190611ef9565b610c279190611f29565b6113be565b50505050565b5f600254905090565b600b5f9054906101000a900460ff1681565b5f80610c576113a5565b9050610c6485828561143d565b610c6f8585856114cf565b60019150509392505050565b5f6012905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610caf6113a5565b73ffffffffffffffffffffffffffffffffffffffff16610ccd610f91565b73ffffffffffffffffffffffffffffffffffffffff1614610d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1a90611e81565b60405180910390fd5b8160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610df46113a5565b73ffffffffffffffffffffffffffffffffffffffff16610e12610f91565b73ffffffffffffffffffffffffffffffffffffffff1614610e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5f90611e81565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610fc890611e07565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff490611e07565b801561103f5780601f106110165761010080835404028352916020019161103f565b820191905f5260205f20905b81548152906001019060200180831161102257829003601f168201915b5050505050905090565b6110516113a5565b73ffffffffffffffffffffffffffffffffffffffff1661106f610f91565b73ffffffffffffffffffffffffffffffffffffffff16146110c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bc90611e81565b60405180910390fd5b6110cf82826115bf565b5f7f0000000000000000000000000000000000000000000000000000000000000000426110fc919061206e565b90507f00000000000000000000000000000000000000000000000000000000000000008161112a9190611ef9565b600981905550505050565b5f8061113f6113a5565b905061114c8185856114cf565b600191505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6112056113a5565b73ffffffffffffffffffffffffffffffffffffffff16611223610f91565b73ffffffffffffffffffffffffffffffffffffffff1614611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127090611e81565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112de90612154565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f33905090565b6113b98383836001611709565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361142e575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016114259190611dc1565b60405180910390fd5b6114395f83836118d8565b5050565b5f611448848461117b565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146114c957818110156114ba578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016114b193929190612172565b60405180910390fd5b6114c884848484035f611709565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361153f575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016115369190611dc1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115af575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016115a69190611dc1565b60405180910390fd5b6115ba8383836118d8565b505050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116199190611dc1565b602060405180830381865afa158015611634573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061165891906121bb565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb848385116116a457846116a6565b835b6040518363ffffffff1660e01b81526004016116c39291906121e6565b6020604051808303815f875af11580156116df573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117039190611fc9565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611779575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016117709190611dc1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117e9575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016117e09190611dc1565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156118d2578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516118c99190611cac565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611928578060025f82825461191c9190611ff4565b925050819055506119f6565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156119b1578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016119a893929190612172565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a3d578060025f8282540392505081905550611a87565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611ae49190611cac565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611b28578082015181840152602081019050611b0d565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611b4d82611af1565b611b578185611afb565b9350611b67818560208601611b0b565b611b7081611b33565b840191505092915050565b5f6020820190508181035f830152611b938184611b43565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611bc882611b9f565b9050919050565b611bd881611bbe565b8114611be2575f80fd5b50565b5f81359050611bf381611bcf565b92915050565b5f819050919050565b611c0b81611bf9565b8114611c15575f80fd5b50565b5f81359050611c2681611c02565b92915050565b5f8060408385031215611c4257611c41611b9b565b5b5f611c4f85828601611be5565b9250506020611c6085828601611c18565b9150509250929050565b5f8115159050919050565b611c7e81611c6a565b82525050565b5f602082019050611c975f830184611c75565b92915050565b611ca681611bf9565b82525050565b5f602082019050611cbf5f830184611c9d565b92915050565b5f805f60608486031215611cdc57611cdb611b9b565b5b5f611ce986828701611be5565b9350506020611cfa86828701611be5565b9250506040611d0b86828701611c18565b9150509250925092565b5f60ff82169050919050565b611d2a81611d15565b82525050565b5f602082019050611d435f830184611d21565b92915050565b5f8060408385031215611d5f57611d5e611b9b565b5b5f611d6c85828601611be5565b9250506020611d7d85828601611be5565b9150509250929050565b5f60208284031215611d9c57611d9b611b9b565b5b5f611da984828501611be5565b91505092915050565b611dbb81611bbe565b82525050565b5f602082019050611dd45f830184611db2565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611e1e57607f821691505b602082108103611e3157611e30611dda565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f611e6b602083611afb565b9150611e7682611e37565b602082019050919050565b5f6020820190508181035f830152611e9881611e5f565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611f0382611bf9565b9150611f0e83611bf9565b925082611f1e57611f1d611e9f565b5b828204905092915050565b5f611f3382611bf9565b9150611f3e83611bf9565b9250828202611f4c81611bf9565b91508282048414831517611f6357611f62611ecc565b5b5092915050565b5f606082019050611f7d5f830186611db2565b611f8a6020830185611db2565b611f976040830184611c9d565b949350505050565b611fa881611c6a565b8114611fb2575f80fd5b50565b5f81519050611fc381611f9f565b92915050565b5f60208284031215611fde57611fdd611b9b565b5b5f611feb84828501611fb5565b91505092915050565b5f611ffe82611bf9565b915061200983611bf9565b925082820190508082111561202157612020611ecc565b5b92915050565b5f61203182611bf9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361206357612062611ecc565b5b600182019050919050565b5f61207882611bf9565b915061208383611bf9565b925082820390508181111561209b5761209a611ecc565b5b92915050565b5f6080820190506120b45f830187611c9d565b6120c16020830186611c9d565b6120ce6040830185611c9d565b6120db6060830184611c75565b95945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61213e602683611afb565b9150612149826120e4565b604082019050919050565b5f6020820190508181035f83015261216b81612132565b9050919050565b5f6060820190506121855f830186611db2565b6121926020830185611c9d565b61219f6040830184611c9d565b949350505050565b5f815190506121b581611c02565b92915050565b5f602082840312156121d0576121cf611b9b565b5b5f6121dd848285016121a7565b91505092915050565b5f6040820190506121f95f830185611db2565b6122066020830184611c9d565b939250505056fea26469706673582212200de8c57f94356cacd03b8099ffeb6f658113a32f15f5db3da2bfce3feb40dd9264736f6c6343000814003300000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5700000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000271000000000000000000000000011c23092e035ab7174bc4580f8c4b9f42ea6aadc0000000000000000000000000f7f17b3635e7d53f0b1b7b6beec9f52ea6451e5
Deployed ByteCode
0x608060405234801561000f575f80fd5b5060043610610140575f3560e01c8063715018a6116100b657806395d89b411161007a57806395d89b4114610342578063a2d83b5e14610360578063a9059cbb1461037c578063d4611ec2146103ac578063dd62ed3e146103ca578063f2fde38b146103fa57610140565b8063715018a6146102c057806378e97925146102ca5780637ecd8005146102e857806382d4e6e3146103065780638da5cb5b1461032457610140565b806322a79a291161010857806322a79a29146101ea57806323b872dd14610208578063313ce56714610238578063589b37e714610256578063613783621461027457806370a082311461029057610140565b806306fdde0314610144578063095ea7b3146101625780630e943984146101925780630f6798a5146101b057806318160ddd146101cc575b5f80fd5b61014c610416565b6040516101599190611b7b565b60405180910390f35b61017c60048036038101906101779190611c2c565b6104a6565b6040516101899190611c84565b60405180910390f35b61019a6104c8565b6040516101a79190611cac565b60405180910390f35b6101ca60048036038101906101c59190611c2c565b6104ce565b005b6101d4610c32565b6040516101e19190611cac565b60405180910390f35b6101f2610c3b565b6040516101ff9190611c84565b60405180910390f35b610222600480360381019061021d9190611cc5565b610c4d565b60405161022f9190611c84565b60405180910390f35b610240610c7b565b60405161024d9190611d30565b60405180910390f35b61025e610c83565b60405161026b9190611cac565b60405180910390f35b61028e60048036038101906102899190611d49565b610ca7565b005b6102aa60048036038101906102a59190611d87565b610da7565b6040516102b79190611cac565b60405180910390f35b6102c8610dec565b005b6102d2610f25565b6040516102df9190611cac565b60405180910390f35b6102f0610f49565b6040516102fd9190611dc1565b60405180910390f35b61030e610f6d565b60405161031b9190611cac565b60405180910390f35b61032c610f91565b6040516103399190611dc1565b60405180910390f35b61034a610fb9565b6040516103579190611b7b565b60405180910390f35b61037a60048036038101906103759190611c2c565b611049565b005b61039660048036038101906103919190611c2c565b611135565b6040516103a39190611c84565b60405180910390f35b6103b4611157565b6040516103c19190611cac565b60405180910390f35b6103e460048036038101906103df9190611d49565b61117b565b6040516103f19190611cac565b60405180910390f35b610414600480360381019061040f9190611d87565b6111fd565b005b60606003805461042590611e07565b80601f016020809104026020016040519081016040528092919081815260200182805461045190611e07565b801561049c5780601f106104735761010080835404028352916020019161049c565b820191905f5260205f20905b81548152906001019060200180831161047f57829003601f168201915b5050505050905090565b5f806104b06113a5565b90506104bd8185856113ac565b600191505092915050565b60095481565b6104d66113a5565b73ffffffffffffffffffffffffffffffffffffffff166104f4610f91565b73ffffffffffffffffffffffffffffffffffffffff161461054a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054190611e81565b60405180910390fd5b7f00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5773ffffffffffffffffffffffffffffffffffffffff166323b872dd833060556064866105979190611ef9565b6105a19190611f29565b6040518463ffffffff1660e01b81526004016105bf93929190611f6a565b6020604051808303815f875af11580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff9190611fc9565b507f00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5773ffffffffffffffffffffffffffffffffffffffff166323b872dd8360065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360648661066e9190611ef9565b6106789190611f29565b6040518463ffffffff1660e01b815260040161069693929190611f6a565b6020604051808303815f875af11580156106b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d69190611fc9565b507f00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5773ffffffffffffffffffffffffffffffffffffffff166323b872dd8360075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660026064866107459190611ef9565b61074f9190611f29565b6040518463ffffffff1660e01b815260040161076d93929190611f6a565b6020604051808303815f875af1158015610789573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107ad9190611fc9565b507f00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5773ffffffffffffffffffffffffffffffffffffffff166323b872dd8360085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a60648661081c9190611ef9565b6108269190611f29565b6040518463ffffffff1660e01b815260040161084493929190611f6a565b6020604051808303815f875af1158015610860573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108849190611fc9565b508173ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5600a6064846108cc9190611ef9565b6108d69190611f29565b6040516108e39190611cac565b60405180910390a25f600b5f9054906101000a900460ff1615610a0957600a7f000000000000000000000000000000000000000000000000000000000000271061092d9190611ef9565b90505f5b600954811015610a03576127107f00000000000000000000000000000000000000000000000000000000000003e88361096a9190611f29565b6109749190611ef9565b8261097f9190611ff4565b91507f000000000000000000000000000000000000000000000000000000000000271082106109f0577f000000000000000000000000000000000000000000000000000000000000271091505f600b5f6101000a81548160ff0219169083151502179055505f600981905550610a03565b80806109fb90612027565b915050610931565b50610b1d565b7f000000000000000000000000000000000000000000000000000000000000271090505f5b600954811015610b1b576127107f00000000000000000000000000000000000000000000000000000000000003e8612710610a69919061206e565b83610a749190611f29565b610a7e9190611ef9565b9150600a7f0000000000000000000000000000000000000000000000000000000000002710610aad9190611ef9565b8211610b08576001600b5f6101000a81548160ff021916908315150217905550600a7f0000000000000000000000000000000000000000000000000000000000002710610afa9190611ef9565b91505f600981905550610b1b565b8080610b1390612027565b915050610a2e565b505b5f620f42408284610b2e9190611f29565b610b389190611ef9565b90508373ffffffffffffffffffffffffffffffffffffffff167fb50a60180bccf4917f942c36c82b87a73cd6a8d7d5487d119f7e918aa777fe5c828486600b5f9054906101000a900460ff16604051610b9494939291906120a1565b60405180910390a2610ba684826113be565b610be960065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002606484610bda9190611ef9565b610be49190611f29565b6113be565b610c2c60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002606484610c1d9190611ef9565b610c279190611f29565b6113be565b50505050565b5f600254905090565b600b5f9054906101000a900460ff1681565b5f80610c576113a5565b9050610c6485828561143d565b610c6f8585856114cf565b60019150509392505050565b5f6012905090565b7f00000000000000000000000000000000000000000000000000000000000003e881565b610caf6113a5565b73ffffffffffffffffffffffffffffffffffffffff16610ccd610f91565b73ffffffffffffffffffffffffffffffffffffffff1614610d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1a90611e81565b60405180910390fd5b8160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610df46113a5565b73ffffffffffffffffffffffffffffffffffffffff16610e12610f91565b73ffffffffffffffffffffffffffffffffffffffff1614610e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5f90611e81565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b7f00000000000000000000000000000000000000000000000000000000675a326b81565b7f00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5781565b7f0000000000000000000000000000000000000000000000000000000000093a8081565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610fc890611e07565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff490611e07565b801561103f5780601f106110165761010080835404028352916020019161103f565b820191905f5260205f20905b81548152906001019060200180831161102257829003601f168201915b5050505050905090565b6110516113a5565b73ffffffffffffffffffffffffffffffffffffffff1661106f610f91565b73ffffffffffffffffffffffffffffffffffffffff16146110c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bc90611e81565b60405180910390fd5b6110cf82826115bf565b5f7f00000000000000000000000000000000000000000000000000000000675a326b426110fc919061206e565b90507f0000000000000000000000000000000000000000000000000000000000093a808161112a9190611ef9565b600981905550505050565b5f8061113f6113a5565b905061114c8185856114cf565b600191505092915050565b7f000000000000000000000000000000000000000000000000000000000000271081565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6112056113a5565b73ffffffffffffffffffffffffffffffffffffffff16611223610f91565b73ffffffffffffffffffffffffffffffffffffffff1614611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127090611e81565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112de90612154565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f33905090565b6113b98383836001611709565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361142e575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016114259190611dc1565b60405180910390fd5b6114395f83836118d8565b5050565b5f611448848461117b565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146114c957818110156114ba578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016114b193929190612172565b60405180910390fd5b6114c884848484035f611709565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361153f575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016115369190611dc1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115af575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016115a69190611dc1565b60405180910390fd5b6115ba8383836118d8565b505050565b5f7f00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116199190611dc1565b602060405180830381865afa158015611634573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061165891906121bb565b90507f00000000000000000000000044de2d9eb4f3cb4131287d5c76c88c275139da5773ffffffffffffffffffffffffffffffffffffffff1663a9059cbb848385116116a457846116a6565b835b6040518363ffffffff1660e01b81526004016116c39291906121e6565b6020604051808303815f875af11580156116df573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117039190611fc9565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611779575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016117709190611dc1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117e9575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016117e09190611dc1565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156118d2578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516118c99190611cac565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611928578060025f82825461191c9190611ff4565b925050819055506119f6565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156119b1578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016119a893929190612172565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a3d578060025f8282540392505081905550611a87565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611ae49190611cac565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611b28578082015181840152602081019050611b0d565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611b4d82611af1565b611b578185611afb565b9350611b67818560208601611b0b565b611b7081611b33565b840191505092915050565b5f6020820190508181035f830152611b938184611b43565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611bc882611b9f565b9050919050565b611bd881611bbe565b8114611be2575f80fd5b50565b5f81359050611bf381611bcf565b92915050565b5f819050919050565b611c0b81611bf9565b8114611c15575f80fd5b50565b5f81359050611c2681611c02565b92915050565b5f8060408385031215611c4257611c41611b9b565b5b5f611c4f85828601611be5565b9250506020611c6085828601611c18565b9150509250929050565b5f8115159050919050565b611c7e81611c6a565b82525050565b5f602082019050611c975f830184611c75565b92915050565b611ca681611bf9565b82525050565b5f602082019050611cbf5f830184611c9d565b92915050565b5f805f60608486031215611cdc57611cdb611b9b565b5b5f611ce986828701611be5565b9350506020611cfa86828701611be5565b9250506040611d0b86828701611c18565b9150509250925092565b5f60ff82169050919050565b611d2a81611d15565b82525050565b5f602082019050611d435f830184611d21565b92915050565b5f8060408385031215611d5f57611d5e611b9b565b5b5f611d6c85828601611be5565b9250506020611d7d85828601611be5565b9150509250929050565b5f60208284031215611d9c57611d9b611b9b565b5b5f611da984828501611be5565b91505092915050565b611dbb81611bbe565b82525050565b5f602082019050611dd45f830184611db2565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611e1e57607f821691505b602082108103611e3157611e30611dda565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f611e6b602083611afb565b9150611e7682611e37565b602082019050919050565b5f6020820190508181035f830152611e9881611e5f565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611f0382611bf9565b9150611f0e83611bf9565b925082611f1e57611f1d611e9f565b5b828204905092915050565b5f611f3382611bf9565b9150611f3e83611bf9565b9250828202611f4c81611bf9565b91508282048414831517611f6357611f62611ecc565b5b5092915050565b5f606082019050611f7d5f830186611db2565b611f8a6020830185611db2565b611f976040830184611c9d565b949350505050565b611fa881611c6a565b8114611fb2575f80fd5b50565b5f81519050611fc381611f9f565b92915050565b5f60208284031215611fde57611fdd611b9b565b5b5f611feb84828501611fb5565b91505092915050565b5f611ffe82611bf9565b915061200983611bf9565b925082820190508082111561202157612020611ecc565b5b92915050565b5f61203182611bf9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361206357612062611ecc565b5b600182019050919050565b5f61207882611bf9565b915061208383611bf9565b925082820390508181111561209b5761209a611ecc565b5b92915050565b5f6080820190506120b45f830187611c9d565b6120c16020830186611c9d565b6120ce6040830185611c9d565b6120db6060830184611c75565b95945050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61213e602683611afb565b9150612149826120e4565b604082019050919050565b5f6020820190508181035f83015261216b81612132565b9050919050565b5f6060820190506121855f830186611db2565b6121926020830185611c9d565b61219f6040830184611c9d565b949350505050565b5f815190506121b581611c02565b92915050565b5f602082840312156121d0576121cf611b9b565b5b5f6121dd848285016121a7565b91505092915050565b5f6040820190506121f95f830185611db2565b6122066020830184611c9d565b939250505056fea26469706673582212200de8c57f94356cacd03b8099ffeb6f658113a32f15f5db3da2bfce3feb40dd9264736f6c63430008140033