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:
- BlazeitkinTokeballReflectionTetramon
- Optimization enabled
- true
- Compiler version
- v0.8.17+commit.8df45f5f
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2023-12-22T02:35:33.578703Z
Constructor Arguments
0x0000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000001e848000000000000000000000000087f1c90658012d086e78d09243cf40b53ef41f9900000000000000000000000098bf93ebf5c380c0e6ae8e192a7e2ae08edacc02000000000000000000000000000000000000000000000000000000000000000100000000000000000000000051e46fddf884518d96ebea18023f7b2d0a82582a000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000002f343230426c617a6569746b696e20f09f94a520546f6b6562616c6c205265666c656374696f6e2054657472616d6f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d544e4445570000000000000000000000000000000000000000000000000000
Contract source code
/**
420Blazeitkin has a total supply of 2 million with 18 decimals.
On buys through the WPLS liquidity pool, 5% of the transaction distributes Tokeball to holders, and 3% of the transaction gets added to liquidity.
On sells through the WPLS liquidity pool, 4% of the transaction sends PLS to the the burn address, and 4% of the transaction burns MTNDEW.
Half the supply of 420Blazeitkin starts in the burn address, so the total available supply and possible reflections are reduced.
This is to effectively burn Tokeballs. The burn address will also continue to collect 420Blazeitkin, increasing the Tokeball mining power of the burn address.
Theoretically, an increasing 2.5% of the available Tokeball reflections are sent to the burn address, gradually burning more and more Tokeballs.
Theoretically, the 3% liquidity tax will never be accessed by the burn address, and is independent of the MTNDEW token, approximating a 3% value-based opportunity for liquidity providers.
Theoretically, the 4% PLS burn will give a bullish use-case outside of the Tetramon ecosystem.
Theoretically, the 4% MTNDEW burn will continue to deflate the supply of MTNDEW, and increase the Tokeball mining power of the burn address and MTNDEW holders.
The largest percentage of Tokeball supply is on Phux traded against Gengar.
Gengar's tax is 1% but will change back to a higher percentage if the largest holder ever sells, burns, or adds liquidity.
For now, low-percentage arbitrage is open between Tokeball and Gengar.
Theoretically, MTNDEW should scoop small percentages of Tokeball from PulseX and send it to the burn address.
Theoretically leaving greater arbitrage opportunities for bots and traders, theoretically decreasing the amount of Tokeball on Phux.
Theoretically this should make Gengar have a greater use-case, but I can't fully back Gengar until the largest holder does something with their bags.
Tokeball 0x87F1C90658012d086e78D09243cf40B53eF41f99
Gengar 0x8e9998D13DBD8603501DEB3a679923E63fBE759B
nCelebi2 0xb9d801Ded0ff1102701dbF0Edf6aC74dd42D6392
Darkrai 0xec25c63c39abA98027EF4DC3BdfCc532f0cF856e
Raichu 0xb31E75CD95Ac258C86679ba083902F7CE4D3EE8a
Darkraichu - Phux Pool Token - 0x17511b9E88DD9B9353502e13866e9a45b4021Ee3
fundamentals of 'tetramon' - combining tokenomics with automation - automated benevolence - Fewer decimals - Lower Supply - Special BS - Catch Em' All?
prior to tetra - exosystem links, and ecosystem marketing
post tetra - Because of the ongoing fluctuations and volatility in markets, I could never ensure positive valuation. I do not offer guaranteed rewards.
I can not, or could ever give, perfect answers. I can only provide my own personal opinions, and any possibilities mentioned are simply theoretical.
Theoretically, any individual could create something, and in that process, they also have the possibility of losing a lot more than they've gained.
If an individual were to use their love of something, to create something that allowed that individual to support the thing they loved, this individual has in no way guaranteed anyone else profit.
In no way should any individual who happens to participate in catching Tetramon, expect to benefit from another individual's personal dedication...
And, in fact, any individual could dedicate themselves in the same way, to any token, using publicly available materials.
That being said, Tetramon will likely reside in dangerous territories, with lots of dangerous signals they use to ward folks away.
However, theoretically, as time goes into the future, more will be understood about taming Tetramon, and catching Tetramon will be a lot easier.
Tokeballs - Initially meant to be distributed over a long period of time, simply put, I Phuxxed Tokeball. No excuses. That being said, most of the Tokeball is available on Phux, trading against Gengar, and by proxy, contrarian memecoins.
That being said, there is probably some damn good arbyz between Phux and PulseX. In my opinion, it's better to try to make it more public to bring competition in to help narrow the gap between exchanges, and try to make it more fair.
There is a burn function in the Tokeball contract that anyone can access through the 'write contract' tab .. just add 18 zeros to whatever number of Tokeballs you want to burn.
This could effect Market Cap though... try not to burn them all. (Fun Fact: Tokeball was actually meant to cheese Market Cap, proving the metric as bogus)
The best, and worst thing about Tokeball, is that getting rid of it can get you Tetramon. There is a down-force, that is also an up-force.
There is no tax, which makes Tokeballs nice and light to carry and throw around, but this also means that it's easy to lose track of your supply, and they could become harder to get with the burn function.
As time goes on.. well, maybe Tokeballs will be on PulseX until they're not, or maybe Tokeballs will be on Phux until they're not.. time will tell how Tokeballs get distributed.
Gengar - The first Official Tetramon. An extreme tax token, so it's hard to move around, with the ability to reflect tokens through the 'write contract' tab in most block explorers .. just add 9 zeros to whatever number of Gengar you want to reflect.
If it was better distributed, I would reflect tokens, but because the amount that an individual receives when reflected, is based off of the size of their bags, it wouldn't be wise for me to reflect tokens to individuals that hold large portions of the supply.
Good news is, there are enough Gengar distributed to various burn addresses, and even a few locked in an untradeable liquidity position...
This means, when manual reflections start happening, a large portion of Gengar will burn or 'vanish' into these growing accounts.
Gengar also has a large presence on Phux, being that it was the main token paired with Tokeballs, meant to act as a middle-man between Tetramon and the contrarian ecosystem.
The tax theoretically helps get more liquidity into the pools, by adding it manually, or by reflection.
At first, I couldn't think of a lot of benevolent reasons for an extreme tax token, but because I launch at ZERO with plenty of runway, it's always a pain to re-buy and re-add tokens.
This means Gengar is able to add liquidity, without having to buy Gengar.
I wish participants would add liquidity on their own, but oh well, more control for Gengar I guess...
Gengar is probably the most controlled memecoin I've created so far. It is not a renounced contract yet.
It started with an 11% tax and a single holder could continue to generate Gengar faster then others could build their bags.
I'm glad I didn't renounce this contract immediately. The tax is now 1% but will likely increase again as more distribution occurs.
Fun Fact: Gengar's ticker symbol is a mirrored reflection of Gengar... hold a mirror, or your phone's black screen, above or below the ticker symbol.
nCelebi2 - The experiment here is the introduction of Stronghands... Update: Stronghands was not the route. PLS reflection tokens are the current route.
nCelebi2 has a 1% tax with the ability to reflect on command. This Tetramon is the lightest to be found to date..
nCelebis remain reclusive, so are harder to study, but when observed, they seem to enjoy themselves regularly.
There are very few known in existence, only 100 total. Folks should probably register their Tetramon for liquidity in the Trading Computer if they have too many.
This is important when there are so few nCelebi2s.. Tetramon are not like other shitcoins, there are not that many of them to go around, so a little can go a long way.
Having 1 nCelebi2, is having 1% of the nCelebi2s in existence.
DarkRAIchu - This Phorged token is generated when Darkrai and Raichu are added to the Darkrai/Raichu Phux pool. This token has no tax and 18 decimals
Darkrai - 4% tax
Raichu - 4% tax
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_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 {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
/**
* @dev Division of two int256 variables and fails on overflow.
*/
function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
/**
* @dev Subtracts two int256 variables and fails on overflow.
*/
function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
/**
* @dev Adds two int256 variables and fails on overflow.
*/
function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
/**
* @dev Converts to absolute value, and fails on overflow.
*/
function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
function toUint256Safe(int256 a) internal pure returns (uint256) {
require(a >= 0);
return uint256(a);
}
}
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns (int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
library Clones {
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of 'implementation'.
*
* This function uses the create opcode, which should never revert.
*/
function clone(address implementation) internal returns (address instance) {
assembly {
let ptr := mload(0x40)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(ptr, 0x14), shl(0x60, implementation))
mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
instance := create(0, ptr, 0x37)
}
require(instance != address(0), "ERC1167: create failed");
}
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of 'implementation'.
*
* This function uses the create2 opcode and a 'salt' to deterministically deploy
* the clone. Using the same 'implementation' and 'salt' multiple time will revert, since
* the clones cannot be deployed twice at the same address.
*/
function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
assembly {
let ptr := mload(0x40)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(ptr, 0x14), shl(0x60, implementation))
mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
instance := create2(0, ptr, 0x37, salt)
}
require(instance != address(0), "ERC1167: create2 failed");
}
/**
* @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
*/
function predictDeterministicAddress(
address implementation,
bytes32 salt,
address deployer
) internal pure returns (address predicted) {
assembly {
let ptr := mload(0x40)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(ptr, 0x14), shl(0x60, implementation))
mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
mstore(add(ptr, 0x38), shl(0x60, deployer))
mstore(add(ptr, 0x4c), salt)
mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
predicted := keccak256(add(ptr, 0x37), 0x55)
}
}
/**
* @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
*/
function predictDeterministicAddress(address implementation, bytes32 salt)
internal
view
returns (address predicted)
{
return predictDeterministicAddress(implementation, salt, address(this));
}
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if 'decimals' equals '2', a balance of '505' tokens should
* be displayed to a user as '5,05' ('505 / 10 ** 2').
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - 'recipient' cannot be the zero address.
* - the caller must have a balance of at least 'amount'.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - 'spender' cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - 'sender' and 'recipient' cannot be the zero address.
* - 'sender' must have a balance of at least 'amount'.
* - the caller must have allowance for ''sender'''s tokens of at least
* 'amount'.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to 'spender' by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - 'spender' cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to 'spender' by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - 'spender' cannot be the zero address.
* - 'spender' must have allowance for the caller of at least
* 'subtractedValue'.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens 'amount' from 'sender' to 'recipient'.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - 'sender' cannot be the zero address.
* - 'recipient' cannot be the zero address.
* - 'sender' must have a balance of at least 'amount'.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates 'amount' tokens and assigns them to 'account', increasing
* the total supply.
*
* Emits a {Transfer} event with 'from' set to the zero address.
*
* Requirements:
*
* - 'account' cannot be the zero address.
*/
function _cast(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: cast to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys 'amount' tokens from 'account', reducing the
* total supply.
*
* Emits a {Transfer} event with 'to' set to the zero address.
*
* Requirements:
*
* - 'account' cannot be the zero address.
* - 'account' must have at least 'amount' tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets 'amount' as the allowance of 'spender' over the 'owner' s tokens.
*
* This internal function is equivalent to 'approve', and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - 'owner' cannot be the zero address.
* - 'spender' cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WPLS() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Cast(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface DividendPayingTokenInterface {
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' can withdraw.
function dividendOf(address _owner) external view returns(uint256);
/// @notice Withdraws the ether distributed to the sender.
/// @dev SHOULD transfer 'dividendOf(msg.sender)' wei to 'msg.sender', and 'dividendOf(msg.sender)' SHOULD be 0 after the transfer.
/// MUST emit a 'DividendWithdrawn' event if the amount of ether transferred is greater than 0.
function withdrawDividend() external;
/// @dev This event MUST emit when ether is distributed to token holders.
/// @param from The address which sends ether to this contract.
/// @param weiAmount The amount of distributed ether in wei.
event DividendsDistributed(
address indexed from,
uint256 weiAmount
);
/// @dev This event MUST emit when an address withdraws their dividend.
/// @param to The address which withdraws ether from this contract.
/// @param weiAmount The amount of withdrawn ether in wei.
event DividendWithdrawn(
address indexed to,
uint256 weiAmount
);
}
interface DividendPayingTokenOptionalInterface {
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' can withdraw.
function withdrawableDividendOf(address _owner) external view returns(uint256);
/// @notice View the amount of dividend in wei that an address has withdrawn.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' has withdrawn.
function withdrawnDividendOf(address _owner) external view returns(uint256);
/// @notice View the amount of dividend in wei that an address has earned in total.
/// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' has earned in total.
function accumulativeDividendOf(address _owner) external view returns(uint256);
}
contract DividendPayingToken is ERC20, Ownable, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface {
using SafeMath for uint256;
using SafeMathUint for uint256;
using SafeMathInt for int256;
address public REWARD_TOKEN;
// With 'magnitude', we can properly distribute dividends even if the amount of received ether is small.
// For more discussion about choosing the value of 'magnitude',
// see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
uint256 constant internal magnitude = 2**128;
uint256 internal magnifiedDividendPerShare;
// About dividendCorrection:
// If the token balance of a '_user' is never changed, the dividend of '_user' can be computed with:
// 'dividendOf(_user) = dividendPerShare * balanceOf(_user)'.
// When 'balanceOf(_user)' is changed (via minting/burning/transferring tokens),
// 'dividendOf(_user)' should not be changed,
// but the computed value of 'dividendPerShare * balanceOf(_user)' is changed.
// To keep the 'dividendOf(_user)' unchanged, we add a correction term:
// 'dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)',
// where 'dividendCorrectionOf(_user)' is updated whenever 'balanceOf(_user)' is changed:
// 'dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))'.
// So now 'dividendOf(_user)' returns the same value before and after 'balanceOf(_user)' is changed.
mapping(address => int256) internal magnifiedDividendCorrections;
mapping(address => uint256) internal withdrawnDividends;
uint256 public totalDividendsDistributed;
constructor(string memory _name, string memory _symbol, address _rewardTokenAddress) ERC20(_name, _symbol) {
REWARD_TOKEN = _rewardTokenAddress;
}
function distributeCAKEDividends(uint256 amount) public onlyOwner{
require(totalSupply() > 0);
if (amount > 0) {
magnifiedDividendPerShare = magnifiedDividendPerShare.add(
(amount).mul(magnitude) / totalSupply()
);
emit DividendsDistributed(msg.sender, amount);
totalDividendsDistributed = totalDividendsDistributed.add(amount);
}
}
/// @notice Withdraws the ether distributed to the sender.
/// @dev It emits a 'DividendWithdrawn' event if the amount of withdrawn ether is greater than 0.
function withdrawDividend() public virtual override {
_withdrawDividendOfUser(payable(msg.sender));
}
/// @notice Withdraws the ether distributed to the sender.
/// @dev It emits a 'DividendWithdrawn' event if the amount of withdrawn ether is greater than 0.
function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
uint256 _withdrawableDividend = withdrawableDividendOf(user);
if (_withdrawableDividend > 0) {
withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend);
emit DividendWithdrawn(user, _withdrawableDividend);
bool success = IERC20(REWARD_TOKEN).transfer(user, _withdrawableDividend);
if(!success) {
withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
return 0;
}
return _withdrawableDividend;
}
return 0;
}
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' can withdraw.
function dividendOf(address _owner) public view override returns(uint256) {
return withdrawableDividendOf(_owner);
}
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' can withdraw.
function withdrawableDividendOf(address _owner) public view override returns(uint256) {
return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
}
/// @notice View the amount of dividend in wei that an address has withdrawn.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' has withdrawn.
function withdrawnDividendOf(address _owner) public view override returns(uint256) {
return withdrawnDividends[_owner];
}
/// @notice View the amount of dividend in wei that an address has earned in total.
/// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
/// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that '_owner' has earned in total.
function accumulativeDividendOf(address _owner) public view override returns(uint256) {
return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
.add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
}
/// @dev Internal function that transfer tokens from one address to another.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param from The address to transfer from.
/// @param to The address to transfer to.
/// @param value The amount to be transferred.
function _transfer(address from, address to, uint256 value) internal virtual override {
require(false);
int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection);
}
/// @dev Internal function that mints tokens to an account.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param account The account that will receive the created tokens.
/// @param value The amount that will be created.
function _cast(address account, uint256 value) internal override {
super._cast(account, value);
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
/// @dev Internal function that burns an amount of the token of a given account.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param account The account whose tokens will be burnt.
/// @param value The amount that will be burnt.
function _burn(address account, uint256 value) internal override {
super._burn(account, value);
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
function _setBalance(address account, uint256 newBalance) internal {
uint256 currentBalance = balanceOf(account);
if(newBalance > currentBalance) {
uint256 mintAmount = newBalance.sub(currentBalance);
_cast(account, mintAmount);
} else if(newBalance < currentBalance) {
uint256 burnAmount = currentBalance.sub(newBalance);
_burn(account, burnAmount);
}
}
}
contract TokenDividendTracker is Ownable, DividendPayingToken {
using SafeMath for uint256;
using SafeMathInt for int256;
struct MAP {
address[] keys;
mapping(address => uint) values;
mapping(address => uint) indexOf;
mapping(address => bool) inserted;
}
MAP private tokenHoldersMap;
uint256 public lastProcessedIndex;
mapping (address => bool) public excludedFromDividends;
mapping (address => uint256) public lastClaimTimes;
uint256 public claimWait;
uint256 public minimumTokenBalanceForDividends;
event ExcludeFromDividends(address indexed account);
event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue);
event Claim(address indexed account, uint256 amount, bool indexed automatic);
constructor(address _rewardTokenAddress, uint256 _minimumTokenBalanceForDividends) DividendPayingToken("Dividen_Tracker", "Dividend_Tracker", _rewardTokenAddress) {
claimWait = 3600;
minimumTokenBalanceForDividends = _minimumTokenBalanceForDividends;
}
function _transfer(address, address, uint256) internal pure override {
require(false, "Dividend_Tracker: No transfers allowed");
}
function withdrawDividend() public pure override {
require(false, "Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main contract.");
}
function setMinimumTokenBalanceForDividends(uint256 val) external onlyOwner {
minimumTokenBalanceForDividends = val;
}
function excludeFromDividends(address account) external onlyOwner {
require(!excludedFromDividends[account]);
excludedFromDividends[account] = true;
_setBalance(account, 0);
MAPRemove(account);
emit ExcludeFromDividends(account);
}
function updateClaimWait(uint256 newClaimWait) external onlyOwner {
require(newClaimWait >= 3600 && newClaimWait <= 86400, "UDAOToken_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours");
require(newClaimWait != claimWait, "UDAOToken_Dividend_Tracker: Cannot update claimWait to same value");
emit ClaimWaitUpdated(newClaimWait, claimWait);
claimWait = newClaimWait;
}
function getLastProcessedIndex() external view returns(uint256) {
return lastProcessedIndex;
}
function getNumberOfTokenHolders() external view returns(uint256) {
return tokenHoldersMap.keys.length;
}
function isExcludedFromDividends(address account) public view returns (bool){
return excludedFromDividends[account];
}
function getAccount(address _account)
public view returns (
address account,
int256 index,
int256 iterationsUntilProcessed,
uint256 withdrawableDividends,
uint256 totalDividends,
uint256 lastClaimTime,
uint256 nextClaimTime,
uint256 secondsUntilAutoClaimAvailable) {
account = _account;
index = MAPGetIndexOfKey(account);
iterationsUntilProcessed = -1;
if(index >= 0) {
if(uint256(index) > lastProcessedIndex) {
iterationsUntilProcessed = index.sub(int256(lastProcessedIndex));
}
else {
uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ?
tokenHoldersMap.keys.length.sub(lastProcessedIndex) :
0;
iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray));
}
}
withdrawableDividends = withdrawableDividendOf(account);
totalDividends = accumulativeDividendOf(account);
lastClaimTime = lastClaimTimes[account];
nextClaimTime = lastClaimTime > 0 ?
lastClaimTime.add(claimWait) :
0;
secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ?
nextClaimTime.sub(block.timestamp) :
0;
}
function getAccountAtIndex(uint256 index)
public view returns (
address,
int256,
int256,
uint256,
uint256,
uint256,
uint256,
uint256) {
if(index >= MAPSize()) {
return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0);
}
address account = MAPGetKeyAtIndex(index);
return getAccount(account);
}
function canAutoClaim(uint256 lastClaimTime) private view returns (bool) {
if(lastClaimTime > block.timestamp) {
return false;
}
return block.timestamp.sub(lastClaimTime) >= claimWait;
}
function setBalance(address payable account, uint256 newBalance) external onlyOwner {
if(excludedFromDividends[account]) {
return;
}
if(newBalance >= minimumTokenBalanceForDividends) {
_setBalance(account, newBalance);
MAPSet(account, newBalance);
}
else {
_setBalance(account, 0);
MAPRemove(account);
}
processAccount(account, true);
}
function process(uint256 gas) public returns (uint256, uint256, uint256) {
uint256 numberOfTokenHolders = tokenHoldersMap.keys.length;
if(numberOfTokenHolders == 0) {
return (0, 0, lastProcessedIndex);
}
uint256 _lastProcessedIndex = lastProcessedIndex;
uint256 gasUsed = 0;
uint256 gasLeft = gasleft();
uint256 iterations = 0;
uint256 claims = 0;
while(gasUsed < gas && iterations < numberOfTokenHolders) {
_lastProcessedIndex++;
if(_lastProcessedIndex >= tokenHoldersMap.keys.length) {
_lastProcessedIndex = 0;
}
address account = tokenHoldersMap.keys[_lastProcessedIndex];
if(canAutoClaim(lastClaimTimes[account])) {
if(processAccount(payable(account), true)) {
claims++;
}
}
iterations++;
uint256 newGasLeft = gasleft();
if(gasLeft > newGasLeft) {
gasUsed = gasUsed.add(gasLeft.sub(newGasLeft));
}
gasLeft = newGasLeft;
}
lastProcessedIndex = _lastProcessedIndex;
return (iterations, claims, lastProcessedIndex);
}
function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) {
uint256 amount = _withdrawDividendOfUser(account);
if(amount > 0) {
lastClaimTimes[account] = block.timestamp;
emit Claim(account, amount, automatic);
return true;
}
return false;
}
function MAPGet(address key) public view returns (uint) {
return tokenHoldersMap.values[key];
}
function MAPGetIndexOfKey(address key) public view returns (int) {
if(!tokenHoldersMap.inserted[key]) {
return -1;
}
return int(tokenHoldersMap.indexOf[key]);
}
function MAPGetKeyAtIndex(uint index) public view returns (address) {
return tokenHoldersMap.keys[index];
}
function MAPSize() public view returns (uint) {
return tokenHoldersMap.keys.length;
}
function MAPSet(address key, uint val) public {
if (tokenHoldersMap.inserted[key]) {
tokenHoldersMap.values[key] = val;
} else {
tokenHoldersMap.inserted[key] = true;
tokenHoldersMap.values[key] = val;
tokenHoldersMap.indexOf[key] = tokenHoldersMap.keys.length;
tokenHoldersMap.keys.push(key);
}
}
function MAPRemove(address key) public {
if (!tokenHoldersMap.inserted[key]) {
return;
}
delete tokenHoldersMap.inserted[key];
delete tokenHoldersMap.values[key];
uint index = tokenHoldersMap.indexOf[key];
uint lastIndex = tokenHoldersMap.keys.length - 1;
address lastKey = tokenHoldersMap.keys[lastIndex];
tokenHoldersMap.indexOf[lastKey] = index;
delete tokenHoldersMap.indexOf[key];
tokenHoldersMap.keys[index] = lastKey;
tokenHoldersMap.keys.pop();
}
}
contract BlazeitkinTokeballReflectionTetramon is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool private swapping;
TokenDividendTracker public dividendTracker;
address public rewardToken;
uint256 public swapTokensAtAmount;
uint256 public buyTokenRewardsFee;
uint256 public sellTokenRewardsFee;
uint256 public buyLiquidityFee;
uint256 public sellLiquidityFee;
uint256 public buyMarketingFee;
uint256 public sellMarketingFee;
uint256 public buyDeadFee;
uint256 public sellDeadFee;
uint256 public AmountLiquidityFee;
uint256 public AmountTokenRewardsFee;
uint256 public AmountMarketingFee;
address public _marketingWalletAddress;
address public deadWallet = 0x000000000000000000000000000000000000dEaD;
uint256 public Optimization = 8312006746924895877423659707169851;
uint256 public gasForProcessing;
// exlcude from fees and max transaction amount
mapping (address => bool) private _isExcludedFromFees;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping (address => bool) public automatedMarketMakerPairs;
event UpdateDividendTracker(address indexed newAddress, address indexed oldAddress);
event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
event ExcludeFromFees(address indexed account, bool isExcluded);
event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event LiquidityWalletUpdated(address indexed newLiquidityWallet, address indexed oldLiquidityWallet);
event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
event SendDividends(
uint256 tokensSwapped,
uint256 amount
);
event ProcessedDividendTracker(
uint256 iterations,
uint256 claims,
uint256 lastProcessedIndex,
bool indexed automatic,
uint256 gas,
address indexed processor
);
constructor(
string memory name_,
string memory symbol_,
uint256 totalSupply_,
address[4] memory addrs, // reward, router, marketing wallet, dividendTracker
uint256[4] memory buyFeeSetting_,
uint256[4] memory sellFeeSetting_,
uint256 tokenBalanceForReward_
) payable ERC20(name_, symbol_) {
rewardToken = addrs[0];
_marketingWalletAddress = addrs[2];
buyTokenRewardsFee = buyFeeSetting_[0];
buyLiquidityFee = buyFeeSetting_[1];
buyMarketingFee = buyFeeSetting_[2];
buyDeadFee = buyFeeSetting_[3];
sellTokenRewardsFee = sellFeeSetting_[0];
sellLiquidityFee = sellFeeSetting_[1];
sellMarketingFee = sellFeeSetting_[2];
sellDeadFee = sellFeeSetting_[3];
require(buyTokenRewardsFee.add(buyLiquidityFee).add(buyMarketingFee).add(buyDeadFee) <= 25, "Total buy fee is over 25%");
require(sellTokenRewardsFee.add(sellLiquidityFee).add(sellMarketingFee).add(sellDeadFee) <= 25, "Total sell fee is over 25%");
uint256 totalSupply = totalSupply_ * (10**18);
swapTokensAtAmount = totalSupply.mul(2).div(10**6); // 0.002%
// use by default 300,000 gas to process auto-claiming dividends
gasForProcessing = 300000;
dividendTracker = new TokenDividendTracker(rewardToken, tokenBalanceForReward_);
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(addrs[1]);
address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WPLS());
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = _uniswapV2Pair;
_setAutomatedMarketMakerPair(_uniswapV2Pair, true);
// exclude from receiving dividends
dividendTracker.excludeFromDividends(address(dividendTracker));
dividendTracker.excludeFromDividends(address(this));
dividendTracker.excludeFromDividends(owner());
dividendTracker.excludeFromDividends(deadWallet);
dividendTracker.excludeFromDividends(address(_uniswapV2Router));
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(_marketingWalletAddress, true);
excludeFromFees(address(this), true);
_cast(owner(), totalSupply);
payable(addrs[3]).transfer(msg.value);
}
receive() external payable {}
function updateMinimumTokenBalanceForDividends(uint256 val) public onlyOwner {
dividendTracker.setMinimumTokenBalanceForDividends(val);
}
function updateUniswapV2Router(address newAddress) public onlyOwner {
require(newAddress != address(uniswapV2Router), "The router already has that address");
emit UpdateUniswapV2Router(newAddress, address(uniswapV2Router));
uniswapV2Router = IUniswapV2Router02(newAddress);
address _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
.createPair(address(this), uniswapV2Router.WPLS());
uniswapV2Pair = _uniswapV2Pair;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
if(_isExcludedFromFees[account] != excluded){
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
}
function excludeMultipleAccountsFromFees(address[] calldata accounts, bool excluded) public onlyOwner {
for(uint256 i = 0; i < accounts.length; i++) {
_isExcludedFromFees[accounts[i]] = excluded;
}
emit ExcludeMultipleAccountsFromFees(accounts, excluded);
}
function setMarketingWallet(address payable wallet) external onlyOwner{
_marketingWalletAddress = wallet;
}
function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
require(pair != uniswapV2Pair, "The PancakeSwap pair cannot be removed from automatedMarketMakerPairs");
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
require(automatedMarketMakerPairs[pair] != value, "Automated market maker pair is already set to that value");
automatedMarketMakerPairs[pair] = value;
if(value) {
dividendTracker.excludeFromDividends(pair);
}
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateGasForProcessing(uint256 newValue) public onlyOwner {
require(newValue >= 200000 && newValue <= 500000, "GasForProcessing must be between 200,000 and 500,000");
require(newValue != gasForProcessing, "Cannot update gasForProcessing to same value");
emit GasForProcessingUpdated(newValue, gasForProcessing);
gasForProcessing = newValue;
}
function updateClaimWait(uint256 claimWait) external onlyOwner {
dividendTracker.updateClaimWait(claimWait);
}
function getClaimWait() external view returns(uint256) {
return dividendTracker.claimWait();
}
function getTotalDividendsDistributed() external view returns (uint256) {
return dividendTracker.totalDividendsDistributed();
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
function withdrawableDividendOf(address account) public view returns(uint256) {
return dividendTracker.withdrawableDividendOf(account);
}
function dividendTokenBalanceOf(address account) public view returns (uint256) {
return dividendTracker.balanceOf(account);
}
function excludeFromDividends(address account) external onlyOwner{
dividendTracker.excludeFromDividends(account);
}
function isExcludedFromDividends(address account) public view returns (bool) {
return dividendTracker.isExcludedFromDividends(account);
}
function getAccountDividendsInfo(address account)
external view returns (
address,
int256,
int256,
uint256,
uint256,
uint256,
uint256,
uint256) {
return dividendTracker.getAccount(account);
}
function getAccountDividendsInfoAtIndex(uint256 index)
external view returns (
address,
int256,
int256,
uint256,
uint256,
uint256,
uint256,
uint256) {
return dividendTracker.getAccountAtIndex(index);
}
function processDividendTracker(uint256 gas) external {
(uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gas);
emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, false, gas, tx.origin);
}
function claim() external {
dividendTracker.processAccount(payable(msg.sender), false);
}
function getLastProcessedIndex() external view returns(uint256) {
return dividendTracker.getLastProcessedIndex();
}
function getNumberOfDividendTokenHolders() external view returns(uint256) {
return dividendTracker.getNumberOfTokenHolders();
}
function swapManual() public onlyOwner {
uint256 contractTokenBalance = balanceOf(address(this));
require(contractTokenBalance > 0 , "token balance zero");
swapping = true;
if(AmountLiquidityFee > 0) swapAndLiquify(AmountLiquidityFee);
if(AmountTokenRewardsFee > 0) swapAndSendDividends(AmountTokenRewardsFee);
if(AmountMarketingFee > 0) swapAndSendToFee(AmountMarketingFee);
swapping = false;
}
function setSwapTokensAtAmount(uint256 amount) public onlyOwner {
swapTokensAtAmount = amount;
}
function setDeadWallet(address addr) public onlyOwner {
deadWallet = addr;
}
function setBuyTaxes(uint256 liquidity, uint256 rewardsFee, uint256 marketingFee, uint256 deadFee) external onlyOwner {
require(rewardsFee.add(liquidity).add(marketingFee).add(deadFee) <= 25, "Total buy fee is over 25%");
buyTokenRewardsFee = rewardsFee;
buyLiquidityFee = liquidity;
buyMarketingFee = marketingFee;
buyDeadFee = deadFee;
}
function setSelTaxes(uint256 liquidity, uint256 rewardsFee, uint256 marketingFee, uint256 deadFee) external onlyOwner {
require(rewardsFee.add(liquidity).add(marketingFee).add(deadFee) <= 25, "Total sel fee is over 25%");
sellTokenRewardsFee = rewardsFee;
sellLiquidityFee = liquidity;
sellMarketingFee = marketingFee;
sellDeadFee = deadFee;
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if(amount == 0) {
super._transfer(from, to, 0);
return;
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if( canSwap &&
!swapping &&
!automatedMarketMakerPairs[from] &&
from != owner() &&
to != owner()
) {
swapping = true;
if(AmountMarketingFee > 0) swapAndSendToFee(AmountMarketingFee);
if(AmountLiquidityFee > 0) swapAndLiquify(AmountLiquidityFee);
if(AmountTokenRewardsFee > 0) swapAndSendDividends(AmountTokenRewardsFee);
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
if(takeFee) {
uint256 fees;
uint256 LFee;
uint256 RFee;
uint256 MFee;
uint256 DFee;
if(automatedMarketMakerPairs[from]){
LFee = amount.mul(buyLiquidityFee).div(100);
AmountLiquidityFee += LFee;
RFee = amount.mul(buyTokenRewardsFee).div(100);
AmountTokenRewardsFee += RFee;
MFee = amount.mul(buyMarketingFee).div(100);
AmountMarketingFee += MFee;
DFee = amount.mul(buyDeadFee).div(100);
fees = LFee.add(RFee).add(MFee).add(DFee);
}
if(automatedMarketMakerPairs[to]){
LFee = amount.mul(sellLiquidityFee).div(100);
AmountLiquidityFee += LFee;
RFee = amount.mul(sellTokenRewardsFee).div(100);
AmountTokenRewardsFee += RFee;
MFee = amount.mul(sellMarketingFee).div(100);
AmountMarketingFee += MFee;
DFee = amount.mul(sellDeadFee).div(100);
fees = LFee.add(RFee).add(MFee).add(DFee);
}
amount = amount.sub(fees);
if(DFee > 0) super._transfer(from, deadWallet, DFee);
super._transfer(from, address(this), fees.sub(DFee));
}
super._transfer(from, to, amount);
try dividendTracker.setBalance(payable(from), balanceOf(from)) {} catch {}
try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {}
if(!swapping) {
uint256 gas = gasForProcessing;
try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) {
emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin);
}
catch {
}
}
}
function swapAndSendToFee(uint256 tokens) private {
uint256 initialCAKEBalance = IERC20(rewardToken).balanceOf(address(this));
swapTokensForToken(tokens);
uint256 newBalance = (IERC20(rewardToken).balanceOf(address(this))).sub(initialCAKEBalance);
IERC20(rewardToken).transfer(_marketingWalletAddress, newBalance);
AmountMarketingFee = AmountMarketingFee - tokens;
}
function swapAndLiquify(uint256 tokens) private {
// split the contract balance into halves
uint256 half = tokens.div(2);
uint256 otherHalf = tokens.sub(half);
uint256 initialBalance = address(this).balance;
// swap tokens for ETH
swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered
// how much ETH did we just swap into?
uint256 newBalance = address(this).balance.sub(initialBalance);
// add liquidity to uniswap
addLiquidity(otherHalf, newBalance);
AmountLiquidityFee = AmountLiquidityFee - tokens;
emit SwapAndLiquify(half, newBalance, otherHalf);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
if(rewardToken == uniswapV2Router.WPLS()){
address(rewardToken).call(abi.encodeWithSelector(0x2e1a7d4d, tokenAmount));
}else{
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WPLS();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
}
function swapTokensForToken(uint256 tokenAmount) private {
if(rewardToken == uniswapV2Router.WPLS()){
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = rewardToken;
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
address(rewardToken).call{value: address(this).balance}(abi.encodeWithSignature("deposit()"));
}else{
address[] memory path = new address[](3);
path[0] = address(this);
path[1] = uniswapV2Router.WPLS();
path[2] = rewardToken;
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
_marketingWalletAddress,
block.timestamp
);
}
function swapAndSendDividends(uint256 tokens) private{
swapTokensForToken(tokens);
AmountTokenRewardsFee = AmountTokenRewardsFee - tokens;
uint256 dividends = IERC20(rewardToken).balanceOf(address(this));
bool success = IERC20(rewardToken).transfer(address(dividendTracker), dividends);
if (success) {
dividendTracker.distributeCAKEDividends(dividends);
emit SendDividends(tokens, dividends);
}
}
}
Contract ABI
[{"type":"constructor","stateMutability":"payable","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint256","name":"totalSupply_","internalType":"uint256"},{"type":"address[4]","name":"addrs","internalType":"address[4]"},{"type":"uint256[4]","name":"buyFeeSetting_","internalType":"uint256[4]"},{"type":"uint256[4]","name":"sellFeeSetting_","internalType":"uint256[4]"},{"type":"uint256","name":"tokenBalanceForReward_","internalType":"uint256"}]},{"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":"ExcludeFromFees","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"bool","name":"isExcluded","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"ExcludeMultipleAccountsFromFees","inputs":[{"type":"address[]","name":"accounts","internalType":"address[]","indexed":false},{"type":"bool","name":"isExcluded","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"GasForProcessingUpdated","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256","indexed":true},{"type":"uint256","name":"oldValue","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"LiquidityWalletUpdated","inputs":[{"type":"address","name":"newLiquidityWallet","internalType":"address","indexed":true},{"type":"address","name":"oldLiquidityWallet","internalType":"address","indexed":true}],"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":"ProcessedDividendTracker","inputs":[{"type":"uint256","name":"iterations","internalType":"uint256","indexed":false},{"type":"uint256","name":"claims","internalType":"uint256","indexed":false},{"type":"uint256","name":"lastProcessedIndex","internalType":"uint256","indexed":false},{"type":"bool","name":"automatic","internalType":"bool","indexed":true},{"type":"uint256","name":"gas","internalType":"uint256","indexed":false},{"type":"address","name":"processor","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SendDividends","inputs":[{"type":"uint256","name":"tokensSwapped","internalType":"uint256","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetAutomatedMarketMakerPair","inputs":[{"type":"address","name":"pair","internalType":"address","indexed":true},{"type":"bool","name":"value","internalType":"bool","indexed":true}],"anonymous":false},{"type":"event","name":"SwapAndLiquify","inputs":[{"type":"uint256","name":"tokensSwapped","internalType":"uint256","indexed":false},{"type":"uint256","name":"ethReceived","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokensIntoLiqudity","internalType":"uint256","indexed":false}],"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":"event","name":"UpdateDividendTracker","inputs":[{"type":"address","name":"newAddress","internalType":"address","indexed":true},{"type":"address","name":"oldAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"UpdateUniswapV2Router","inputs":[{"type":"address","name":"newAddress","internalType":"address","indexed":true},{"type":"address","name":"oldAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"AmountLiquidityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"AmountMarketingFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"AmountTokenRewardsFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"Optimization","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"_marketingWalletAddress","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":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"automatedMarketMakerPairs","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"buyDeadFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"buyLiquidityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"buyMarketingFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"buyTokenRewardsFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"deadWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dividendTokenBalanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract TokenDividendTracker"}],"name":"dividendTracker","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromDividends","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromFees","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bool","name":"excluded","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeMultipleAccountsFromFees","inputs":[{"type":"address[]","name":"accounts","internalType":"address[]"},{"type":"bool","name":"excluded","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"gasForProcessing","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"int256","name":"","internalType":"int256"},{"type":"int256","name":"","internalType":"int256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAccountDividendsInfo","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"int256","name":"","internalType":"int256"},{"type":"int256","name":"","internalType":"int256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAccountDividendsInfoAtIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getClaimWait","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getLastProcessedIndex","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getNumberOfDividendTokenHolders","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalDividendsDistributed","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromDividends","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromFees","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"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":"processDividendTracker","inputs":[{"type":"uint256","name":"gas","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"rewardToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sellDeadFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sellLiquidityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sellMarketingFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sellTokenRewardsFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAutomatedMarketMakerPair","inputs":[{"type":"address","name":"pair","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBuyTaxes","inputs":[{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"rewardsFee","internalType":"uint256"},{"type":"uint256","name":"marketingFee","internalType":"uint256"},{"type":"uint256","name":"deadFee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDeadWallet","inputs":[{"type":"address","name":"addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMarketingWallet","inputs":[{"type":"address","name":"wallet","internalType":"address payable"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSelTaxes","inputs":[{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"rewardsFee","internalType":"uint256"},{"type":"uint256","name":"marketingFee","internalType":"uint256"},{"type":"uint256","name":"deadFee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapTokensAtAmount","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapManual","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapTokensAtAmount","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":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"uniswapV2Pair","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"uniswapV2Router","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateClaimWait","inputs":[{"type":"uint256","name":"claimWait","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateGasForProcessing","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateMinimumTokenBalanceForDividends","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateUniswapV2Router","inputs":[{"type":"address","name":"newAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"withdrawableDividendOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x60806040819052601780546001600160a01b03191661dead1790556e0199d04650775b20cc2c23cc7a7c3b60185562006bbf388190039081908339810160408190526200004c9162000dbf565b868660036200005c838262000f51565b5060046200006b828262000f51565b50505062000088620000826200071d60201b60201c565b62000721565b8351600980546001600160a01b03199081166001600160a01b03938416179091556040808701516016805490931693169290921790558351600b819055602080860151600d81905586840151600f81905560608089015160118190558851600c5588850151600e5595880151601055870151601255601994620001329490936200011e9384929162000773811b62001c8517901c565b6200077360201b62001c851790919060201c565b1115620001865760405162461bcd60e51b815260206004820152601960248201527f546f74616c2062757920666565206973206f766572203235250000000000000060448201526064015b60405180910390fd5b6019620001b46012546200011e6010546200011e600e54600c546200077360201b62001c851790919060201c565b1115620002045760405162461bcd60e51b815260206004820152601a60248201527f546f74616c2073656c6c20666565206973206f7665722032352500000000000060448201526064016200017d565b60006200021a86670de0b6b3a764000062001033565b905062000253620f42406200023f600284620007df60201b62001ceb1790919060201c565b6200086960201b62001d6d1790919060201c565b600a55620493e06019556009546040516001600160a01b039091169083906200027c9062000c46565b6001600160a01b0390921682526020820152604001604051809103906000f080158015620002ae573d6000803e3d6000fd5b50600880546001600160a01b0319166001600160a01b03929092169190911790556000856001602002015190506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200031c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200034291906200104d565b6001600160a01b031663c9c6539630846001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000390573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003b691906200104d565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200042a91906200104d565b600680546001600160a01b038086166001600160a01b0319928316179092556007805492841692909116919091179055905062000469816001620008b3565b60085460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b158015620004b057600080fd5b505af1158015620004c5573d6000803e3d6000fd5b505060085460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b1580156200050f57600080fd5b505af115801562000524573d6000803e3d6000fd5b50506008546001600160a01b031691506331e79db090506200054e6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156200059057600080fd5b505af1158015620005a5573d6000803e3d6000fd5b505060085460175460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b158015620005f357600080fd5b505af115801562000608573d6000803e3d6000fd5b505060085460405163031e79db60e41b81526001600160a01b03868116600483015290911692506331e79db09150602401600060405180830381600087803b1580156200065457600080fd5b505af115801562000669573d6000803e3d6000fd5b50505050620006896200068162000a1760201b60201c565b600162000a26565b601654620006a2906001600160a01b0316600162000a26565b620006af30600162000a26565b620006cd620006c66005546001600160a01b031690565b8462000b09565b86600360200201516040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156200070c573d6000803e3d6000fd5b5050505050505050505050620010d9565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806200078283856200106b565b905083811015620007d65760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016200017d565b90505b92915050565b600082600003620007f357506000620007d9565b600062000801838562001033565b90508262000810858362001081565b14620007d65760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016200017d565b6000620007d683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525062000c0560201b60201c565b6001600160a01b0382166000908152601b602052604090205481151560ff9091161515036200094b5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084016200017d565b6001600160a01b0382166000908152601b60205260409020805460ff19168215801591909117909155620009db5760085460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b158015620009c157600080fd5b505af1158015620009d6573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b031690565b6005546001600160a01b0316331462000a825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200017d565b6001600160a01b0382166000908152601a602052604090205460ff1615158115151462000b05576001600160a01b0382166000818152601a6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25b5050565b6001600160a01b03821662000b615760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206361737420746f20746865207a65726f20616464726573730060448201526064016200017d565b62000b7d816002546200077360201b62001c851790919060201c565b6002556001600160a01b0382166000908152602081815260409091205462000bb091839062001c8562000773821b17901c565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000818362000c295760405162461bcd60e51b81526004016200017d9190620010a4565b50600062000c38848662001081565b95945050505050565b505050565b612266806200495983390190565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b038111828210171562000c8f5762000c8f62000c54565b60405290565b60005b8381101562000cb257818101518382015260200162000c98565b50506000910152565b600082601f83011262000ccd57600080fd5b81516001600160401b038082111562000cea5762000cea62000c54565b604051601f8301601f19908116603f0116810190828211818310171562000d155762000d1562000c54565b8160405283815286602085880101111562000d2f57600080fd5b62000d4284602083016020890162000c95565b9695505050505050565b80516001600160a01b038116811462000d6457600080fd5b919050565b600082601f83011262000d7b57600080fd5b62000d8562000c6a565b80608084018581111562000d9857600080fd5b845b8181101562000db457805184526020938401930162000d9a565b509095945050505050565b6000806000806000806000610200888a03121562000ddc57600080fd5b87516001600160401b038082111562000df457600080fd5b62000e028b838c0162000cbb565b985060209150818a01518181111562000e1a57600080fd5b62000e288c828d0162000cbb565b985050506040890151955089607f8a011262000e4357600080fd5b62000e4d62000c6a565b8060e08b018c81111562000e6057600080fd5b60608c015b8181101562000e875762000e798162000d4c565b845292840192840162000e65565b5081975062000e978d8262000d69565b96505050505062000ead896101608a0162000d69565b91506101e0880151905092959891949750929550565b600181811c9082168062000ed857607f821691505b60208210810362000ef957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000c4157600081815260208120601f850160051c8101602086101562000f285750805b601f850160051c820191505b8181101562000f495782815560010162000f34565b505050505050565b81516001600160401b0381111562000f6d5762000f6d62000c54565b62000f858162000f7e845462000ec3565b8462000eff565b602080601f83116001811462000fbd576000841562000fa45750858301515b600019600386901b1c1916600185901b17855562000f49565b600085815260208120601f198616915b8281101562000fee5788860151825594840194600190910190840162000fcd565b50858210156200100d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620007d957620007d96200101d565b6000602082840312156200106057600080fd5b620007d68262000d4c565b80820180821115620007d957620007d96200101d565b6000826200109f57634e487b7160e01b600052601260045260246000fd5b500490565b6020815260008251806020840152620010c581604085016020870162000c95565b601f01601f19169190910160400192915050565b61387080620010e96000396000f3fe6080604052600436106103a65760003560e01c8063871c128d116101e7578063c492f0461161010d578063e98030c7116100a0578063f2fde38b1161006f578063f2fde38b14610ada578063f637434214610afa578063f7c618c114610b10578063f832679514610b3057600080fd5b8063e98030c714610a64578063eb671e9114610a84578063f11a24d314610aa4578063f27fd25414610aba57600080fd5b8063dd62ed3e116100dc578063dd62ed3e146109d3578063e2f4560514610a19578063e4bf1bed14610a2f578063e7841ec014610a4f57600080fd5b8063c492f04614610968578063c705c56914610988578063cfe0e619146109a8578063d2a8b440146109be57600080fd5b8063a26579ad11610185578063ad56c13c11610154578063ad56c13c14610893578063afa4f3b2146108f8578063b62496f514610918578063c02466681461094857600080fd5b8063a26579ad1461081e578063a457c2d714610833578063a8b9d24014610853578063a9059cbb1461087357600080fd5b806392136913116101c157806392136913146107bd57806395d89b41146107d35780639a7a23d6146107e85780639c1b8af51461080857600080fd5b8063871c128d146107695780638da5cb5b146107895780638de743b3146107a757600080fd5b806339509351116102cc57806364b0f6531161026a57806370a082311161023957806370a08231146106e8578063715018a61461071e5780637bce5a041461073357806385141a771461074957600080fd5b806364b0f6531461067357806365b8dbc0146106885780636843cd84146106a8578063700bb191146106c857600080fd5b80634e71d92d116102a65780634e71d92d146105e55780634fbee193146105fa5780635d098b381461063357806361a60d571461065357600080fd5b806339509351146105855780634144d9e4146105a557806349bd5a5e146105c557600080fd5b806318160ddd1161034457806330bb4cff1161031357806330bb4cff1461051e578063313ce5671461053357806331e79db01461054f5780633926876d1461056f57600080fd5b806318160ddd146104b357806323b872dd146104c857806324942a04146104e85780632c1f5216146104fe57600080fd5b8063095ea7b311610380578063095ea7b3146104135780630dcb2e891461044357806310c8aeac146104655780631694505e1461047b57600080fd5b806302df64d6146103b257806306fdde03146103db57806308b2a12c146103fd57600080fd5b366103ad57005b600080fd5b3480156103be57600080fd5b506103c8600b5481565b6040519081526020015b60405180910390f35b3480156103e757600080fd5b506103f0610b46565b6040516103d29190613243565b34801561040957600080fd5b506103c8600c5481565b34801561041f57600080fd5b5061043361042e36600461328b565b610bd8565b60405190151581526020016103d2565b34801561044f57600080fd5b5061046361045e3660046132b7565b610bef565b005b34801561047157600080fd5b506103c860185481565b34801561048757600080fd5b5060065461049b906001600160a01b031681565b6040516001600160a01b0390911681526020016103d2565b3480156104bf57600080fd5b506002546103c8565b3480156104d457600080fd5b506104336104e33660046132d0565b610c84565b3480156104f457600080fd5b506103c860125481565b34801561050a57600080fd5b5060085461049b906001600160a01b031681565b34801561052a57600080fd5b506103c8610ced565b34801561053f57600080fd5b50604051601281526020016103d2565b34801561055b57600080fd5b5061046361056a366004613311565b610d60565b34801561057b57600080fd5b506103c860145481565b34801561059157600080fd5b506104336105a036600461328b565b610dbc565b3480156105b157600080fd5b5060165461049b906001600160a01b031681565b3480156105d157600080fd5b5060075461049b906001600160a01b031681565b3480156105f157600080fd5b50610463610df2565b34801561060657600080fd5b50610433610615366004613311565b6001600160a01b03166000908152601a602052604090205460ff1690565b34801561063f57600080fd5b5061046361064e366004613311565b610e6a565b34801561065f57600080fd5b5061046361066e366004613311565b610eb6565b34801561067f57600080fd5b506103c8610f02565b34801561069457600080fd5b506104636106a3366004613311565b610f4c565b3480156106b457600080fd5b506103c86106c3366004613311565b6111b6565b3480156106d457600080fd5b506104636106e33660046132b7565b611226565b3480156106f457600080fd5b506103c8610703366004613311565b6001600160a01b031660009081526020819052604090205490565b34801561072a57600080fd5b506104636112f8565b34801561073f57600080fd5b506103c8600f5481565b34801561075557600080fd5b5060175461049b906001600160a01b031681565b34801561077557600080fd5b506104636107843660046132b7565b61132e565b34801561079557600080fd5b506005546001600160a01b031661049b565b3480156107b357600080fd5b506103c860115481565b3480156107c957600080fd5b506103c860105481565b3480156107df57600080fd5b506103f0611470565b3480156107f457600080fd5b5061046361080336600461333c565b61147f565b34801561081457600080fd5b506103c860195481565b34801561082a57600080fd5b506103c8611549565b34801561083f57600080fd5b5061043361084e36600461328b565b611593565b34801561085f57600080fd5b506103c861086e366004613311565b6115e2565b34801561087f57600080fd5b5061043361088e36600461328b565b611615565b34801561089f57600080fd5b506108b36108ae366004613311565b611622565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103d2565b34801561090457600080fd5b506104636109133660046132b7565b6116bd565b34801561092457600080fd5b50610433610933366004613311565b601b6020526000908152604090205460ff1681565b34801561095457600080fd5b5061046361096336600461333c565b6116ec565b34801561097457600080fd5b50610463610983366004613375565b61179b565b34801561099457600080fd5b506104336109a3366004613311565b611877565b3480156109b457600080fd5b506103c860155481565b3480156109ca57600080fd5b506104636118e6565b3480156109df57600080fd5b506103c86109ee3660046133fb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a2557600080fd5b506103c8600a5481565b348015610a3b57600080fd5b50610463610a4a366004613429565b6119be565b348015610a5b57600080fd5b506103c8611a65565b348015610a7057600080fd5b50610463610a7f3660046132b7565b611aaf565b348015610a9057600080fd5b50610463610a9f366004613429565b611b0a565b348015610ab057600080fd5b506103c8600d5481565b348015610ac657600080fd5b506108b3610ad53660046132b7565b611bab565b348015610ae657600080fd5b50610463610af5366004613311565b611bed565b348015610b0657600080fd5b506103c8600e5481565b348015610b1c57600080fd5b5060095461049b906001600160a01b031681565b348015610b3c57600080fd5b506103c860135481565b606060038054610b559061345b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b819061345b565b8015610bce5780601f10610ba357610100808354040283529160200191610bce565b820191906000526020600020905b815481529060010190602001808311610bb157829003601f168201915b5050505050905090565b6000610be5338484611daf565b5060015b92915050565b6005546001600160a01b03163314610c225760405162461bcd60e51b8152600401610c1990613495565b60405180910390fd5b600854604051635ebf4db960e01b8152600481018390526001600160a01b0390911690635ebf4db9906024015b600060405180830381600087803b158015610c6957600080fd5b505af1158015610c7d573d6000803e3d6000fd5b5050505050565b6000610c91848484611ed4565b610ce38433610cde856040518060600160405280602881526020016137ee602891396001600160a01b038a166000908152600160209081526040808320338452909152902054919061247d565b611daf565b5060019392505050565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5b91906134ca565b905090565b6005546001600160a01b03163314610d8a5760405162461bcd60e51b8152600401610c1990613495565b60085460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401610c4f565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610be5918590610cde9086611c85565b60085460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6791906134e3565b50565b6005546001600160a01b03163314610e945760405162461bcd60e51b8152600401610c1990613495565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610ee05760405162461bcd60e51b8152600401610c1990613495565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b6005546001600160a01b03163314610f765760405162461bcd60e51b8152600401610c1990613495565b6006546001600160a01b0390811690821603610fe05760405162461bcd60e51b815260206004820152602360248201527f54686520726f7574657220616c7265616479206861732074686174206164647260448201526265737360e81b6064820152608401610c19565b6006546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3600680546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa158015611077573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109b9190613500565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111219190613500565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561116e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111929190613500565b600780546001600160a01b0319166001600160a01b03929092169190911790555050565b6008546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015611202573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be991906134ca565b6008546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af1158015611279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129d919061351d565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b6005546001600160a01b031633146113225760405162461bcd60e51b8152600401610c1990613495565b61132c60006124b7565b565b6005546001600160a01b031633146113585760405162461bcd60e51b8152600401610c1990613495565b62030d40811015801561136e57506207a1208111155b6113d75760405162461bcd60e51b815260206004820152603460248201527f476173466f7250726f63657373696e67206d757374206265206265747765656e6044820152730203230302c30303020616e64203530302c3030360641b6064820152608401610c19565b601954810361143d5760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f742075706461746520676173466f7250726f63657373696e67207460448201526b6f2073616d652076616c756560a01b6064820152608401610c19565b60195460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601955565b606060048054610b559061345b565b6005546001600160a01b031633146114a95760405162461bcd60e51b8152600401610c1990613495565b6007546001600160a01b039081169083160361153b5760405162461bcd60e51b815260206004820152604560248201527f5468652050616e63616b655377617020706169722063616e6e6f74206265207260448201527f656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572606482015264506169727360d81b608482015260a401610c19565b6115458282612509565b5050565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b6000610be53384610cde85604051806060016040528060258152602001613816602591393360009081526001602090815260408083206001600160a01b038d168452909152902054919061247d565b6008546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d240906024016111e5565b6000610be5338484611ed4565b60085460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b61010060405180830381865afa15801561167e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a2919061354b565b97509750975097509750975097509750919395975091939597565b6005546001600160a01b031633146116e75760405162461bcd60e51b8152600401610c1990613495565b600a55565b6005546001600160a01b031633146117165760405162461bcd60e51b8152600401610c1990613495565b6001600160a01b0382166000908152601a602052604090205460ff16151581151514611545576001600160a01b0382166000818152601a6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146117c55760405162461bcd60e51b8152600401610c1990613495565b60005b828110156118365781601a60008686858181106117e7576117e76135b5565b90506020020160208101906117fc9190613311565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061182e816135e1565b9150506117c8565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b3583838360405161186a939291906135fa565b60405180910390a1505050565b60085460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa1580156118c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be991906134e3565b6005546001600160a01b031633146119105760405162461bcd60e51b8152600401610c1990613495565b30600090815260208190526040902054806119625760405162461bcd60e51b8152602060048201526012602482015271746f6b656e2062616c616e6365207a65726f60701b6044820152606401610c19565b6007805460ff60a01b1916600160a01b1790556013541561198857611988601354612668565b6014541561199b5761199b601454612700565b601554156119ae576119ae6015546128a3565b506007805460ff60a01b19169055565b6005546001600160a01b031633146119e85760405162461bcd60e51b8152600401610c1990613495565b6019611a00826119fa8581888a611c85565b90611c85565b1115611a4e5760405162461bcd60e51b815260206004820152601960248201527f546f74616c2062757920666565206973206f76657220323525000000000000006044820152606401610c19565b600b92909255600d92909255600f91909155601155565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b6005546001600160a01b03163314611ad95760405162461bcd60e51b8152600401610c1990613495565b60085460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401610c4f565b6005546001600160a01b03163314611b345760405162461bcd60e51b8152600401610c1990613495565b6019611b46826119fa8581888a611c85565b1115611b945760405162461bcd60e51b815260206004820152601960248201527f546f74616c2073656c20666565206973206f76657220323525000000000000006044820152606401610c19565b600c92909255600e92909255601091909155601255565b600854604051635183d6fd60e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd90602401611660565b6005546001600160a01b03163314611c175760405162461bcd60e51b8152600401610c1990613495565b6001600160a01b038116611c7c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c19565b610e67816124b7565b600080611c928385613653565b905083811015611ce45760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610c19565b9392505050565b600082600003611cfd57506000610be9565b6000611d098385613666565b905082611d16858361367d565b14611ce45760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610c19565b6000611ce483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612a26565b6001600160a01b038316611e115760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c19565b6001600160a01b038216611e725760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c19565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611efa5760405162461bcd60e51b8152600401610c199061369f565b6001600160a01b038216611f205760405162461bcd60e51b8152600401610c19906136e4565b80600003611f3957611f3483836000612a54565b505050565b30600090815260208190526040902054600a5481108015908190611f675750600754600160a01b900460ff16155b8015611f8c57506001600160a01b0385166000908152601b602052604090205460ff16155b8015611fa657506005546001600160a01b03868116911614155b8015611fc057506005546001600160a01b03858116911614155b1561201f576007805460ff60a01b1916600160a01b17905560155415611feb57611feb6015546128a3565b60135415611ffe57611ffe601354612668565b6014541561201157612011601454612700565b6007805460ff60a01b191690555b6007546001600160a01b0386166000908152601a602052604090205460ff600160a01b90920482161591168061206d57506001600160a01b0385166000908152601a602052604090205460ff165b15612076575060005b8015612282576001600160a01b0386166000908152601b6020526040812054819081908190819060ff1615612164576120c560646120bf600d548c611ceb90919063ffffffff16565b90611d6d565b935083601360008282546120d99190613653565b9091555050600b546120f3906064906120bf908c90611ceb565b925082601460008282546121079190613653565b9091555050600f54612121906064906120bf908c90611ceb565b915081601560008282546121359190613653565b909155505060115461214f906064906120bf908c90611ceb565b9050612161816119fa84818888611c85565b94505b6001600160a01b038a166000908152601b602052604090205460ff161561223e5761219f60646120bf600e548c611ceb90919063ffffffff16565b935083601360008282546121b39190613653565b9091555050600c546121cd906064906120bf908c90611ceb565b925082601460008282546121e19190613653565b90915550506010546121fb906064906120bf908c90611ceb565b9150816015600082825461220f9190613653565b9091555050601254612229906064906120bf908c90611ceb565b905061223b816119fa84818888611c85565b94505b6122488986612b5d565b9850801561226857601754612268908c906001600160a01b031683612a54565b61227c8b306122778885612b5d565b612a54565b50505050505b61228d868686612a54565b6008546001600160a01b031663e30443bc876122be816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561230457600080fd5b505af1925050508015612315575060015b506008546001600160a01b031663e30443bc86612347816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561238d57600080fd5b505af192505050801561239e575060015b50600754600160a01b900460ff16612475576019546008546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af192505050801561241d575060408051601f3d908101601f1916820190925261241a9181019061351d565b60015b156124735760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b505050505050565b600081848411156124a15760405162461bcd60e51b8152600401610c199190613243565b5060006124ae8486613727565b95945050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152601b602052604090205481151560ff90911615150361259f5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610c19565b6001600160a01b0382166000908152601b60205260409020805460ff1916821580159190911790915561262c5760085460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b15801561261357600080fd5b505af1158015612627573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6000612675826002611d6d565b905060006126838383612b5d565b90504761268f83612b9f565b600061269b4783612b5d565b90506126a78382612e17565b846013546126b59190613727565b60135560408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b61270981612ec4565b806014546127179190613727565b6014556009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612763573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278791906134ca565b60095460085460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905292935060009291169063a9059cbb906044016020604051808303816000875af11580156127e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280691906134e3565b90508015611f345760085460405163ba72a95560e01b8152600481018490526001600160a01b039091169063ba72a95590602401600060405180830381600087803b15801561285457600080fd5b505af1158015612868573d6000803e3d6000fd5b505060408051868152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905061186a565b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156128ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061291091906134ca565b905061291b82612ec4565b6009546040516370a0823160e01b81523060048201526000916129949184916001600160a01b0316906370a0823190602401602060405180830381865afa15801561296a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298e91906134ca565b90612b5d565b60095460165460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af11580156129eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0f91906134e3565b5082601554612a1e9190613727565b601555505050565b60008183612a475760405162461bcd60e51b8152600401610c199190613243565b5060006124ae848661367d565b6001600160a01b038316612a7a5760405162461bcd60e51b8152600401610c199061369f565b6001600160a01b038216612aa05760405162461bcd60e51b8152600401610c19906136e4565b612add816040518060600160405280602681526020016137c8602691396001600160a01b038616600090815260208190526040902054919061247d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612b0c9082611c85565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611ec7565b6000611ce483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061247d565b600660009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c169190613500565b6009546001600160a01b03918216911603612cc55760095460408051602480820185905282518083039091018152604490910182526020810180516001600160e01b0316632e1a7d4d60e01b17905290516001600160a01b0390921691612c7d919061373a565b6000604051808303816000865af19150503d8060008114612cba576040519150601f19603f3d011682016040523d82523d6000602084013e612cbf565b606091505b50505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612cfa57612cfa6135b5565b6001600160a01b039283166020918202929092018101919091526006546040805163ef8ef56f60e01b81529051919093169263ef8ef56f9260048083019391928290030181865afa158015612d53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d779190613500565b81600181518110612d8a57612d8a6135b5565b6001600160a01b039283166020918202929092010152600654612db09130911684611daf565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790612de9908590600090869030904290600401613756565b600060405180830381600087803b158015612e0357600080fd5b505af1158015612475573d6000803e3d6000fd5b600654612e2f9030906001600160a01b031684611daf565b60065460165460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612e9f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c7d919061351d565b600660009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3b9190613500565b6009546001600160a01b039182169116036130c8576040805160028082526060820183526000926020830190803683370190505090503081600081518110612f8557612f856135b5565b6001600160a01b039283166020918202929092010152600954825191169082906001908110612fb657612fb66135b5565b6001600160a01b039283166020918202929092010152600654612fdc9130911684611daf565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790613015908590600090869030904290600401613756565b600060405180830381600087803b15801561302f57600080fd5b505af1158015613043573d6000803e3d6000fd5b505060095460408051600481526024810182526020810180516001600160e01b0316630d0e30db60e41b17905290516001600160a01b03909216935047925061308b9161373a565b60006040518083038185875af1925050503d8060008114610c7d576040519150601f19603f3d011682016040523d82523d6000602084013e610c7d565b604080516003808252608082019092526000916020820160608036833701905050905030816000815181106130ff576130ff6135b5565b6001600160a01b039283166020918202929092018101919091526006546040805163ef8ef56f60e01b81529051919093169263ef8ef56f9260048083019391928290030181865afa158015613158573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061317c9190613500565b8160018151811061318f5761318f6135b5565b6001600160a01b0392831660209182029290920101526009548251911690829060029081106131c0576131c06135b5565b6001600160a01b0392831660209182029290920101526006546131e69130911684611daf565b600654604051635c11d79560e01b81526001600160a01b0390911690635c11d79590612de9908590600090869030904290600401613756565b60005b8381101561323a578181015183820152602001613222565b50506000910152565b602081526000825180602084015261326281604085016020870161321f565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610e6757600080fd5b6000806040838503121561329e57600080fd5b82356132a981613276565b946020939093013593505050565b6000602082840312156132c957600080fd5b5035919050565b6000806000606084860312156132e557600080fd5b83356132f081613276565b9250602084013561330081613276565b929592945050506040919091013590565b60006020828403121561332357600080fd5b8135611ce481613276565b8015158114610e6757600080fd5b6000806040838503121561334f57600080fd5b823561335a81613276565b9150602083013561336a8161332e565b809150509250929050565b60008060006040848603121561338a57600080fd5b833567ffffffffffffffff808211156133a257600080fd5b818601915086601f8301126133b657600080fd5b8135818111156133c557600080fd5b8760208260051b85010111156133da57600080fd5b602092830195509350508401356133f08161332e565b809150509250925092565b6000806040838503121561340e57600080fd5b823561341981613276565b9150602083013561336a81613276565b6000806000806080858703121561343f57600080fd5b5050823594602084013594506040840135936060013592509050565b600181811c9082168061346f57607f821691505b60208210810361348f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156134dc57600080fd5b5051919050565b6000602082840312156134f557600080fd5b8151611ce48161332e565b60006020828403121561351257600080fd5b8151611ce481613276565b60008060006060848603121561353257600080fd5b8351925060208401519150604084015190509250925092565b600080600080600080600080610100898b03121561356857600080fd5b885161357381613276565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016135f3576135f36135cb565b5060010190565b6040808252810183905260008460608301825b8681101561363d57823561362081613276565b6001600160a01b031682526020928301929091019060010161360d565b5080925050508215156020830152949350505050565b80820180821115610be957610be96135cb565b8082028115828204841417610be957610be96135cb565b60008261369a57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610be957610be96135cb565b6000825161374c81846020870161321f565b9190910192915050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156137a65784516001600160a01b031683529383019391830191600101613781565b50506001600160a01b0396909616606085015250505060800152939250505056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202639438ea6a1309cedffdf292d9c053d2e13f65bff5aee09e601e28bb2f9668764736f6c6343000811003360806040523480156200001157600080fd5b50604051620022663803806200226683398101604081905262000034916200014d565b6040518060400160405280600f81526020016e2234bb34b232b72faa3930b1b5b2b960891b8152506040518060400160405280601081526020016f2234bb34b232b7322faa3930b1b5b2b960811b81525083828281600390816200009991906200022e565b506004620000a882826200022e565b505050620000c5620000bf620000f760201b60201c565b620000fb565b600680546001600160a01b0319166001600160a01b03929092169190911790555050610e1060125560135550620002fa565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080604083850312156200016157600080fd5b82516001600160a01b03811681146200017957600080fd5b6020939093015192949293505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001b457607f821691505b602082108103620001d557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022957600081815260208120601f850160051c81016020861015620002045750805b601f850160051c820191505b81811015620002255782815560010162000210565b5050505b505050565b81516001600160401b038111156200024a576200024a62000189565b62000262816200025b84546200019f565b84620001db565b602080601f8311600181146200029a5760008415620002815750858301515b600019600386901b1c1916600185901b17855562000225565b600085815260208120601f198616915b82811015620002cb57888601518255948401946001909101908401620002aa565b5085821015620002ea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611f5c806200030a6000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c806385a6b3ae11610151578063ba72a955116100c3578063e30443bc11610087578063e30443bc146105f5578063e7841ec014610608578063e98030c714610610578063f2fde38b14610623578063fbcbc0f114610636578063ffb2c4791461064957600080fd5b8063ba72a95514610561578063bc4c4b3714610574578063be10b61414610587578063c705c56914610590578063dd62ed3e146105bc57600080fd5b8063a3395cb411610115578063a3395cb4146104ec578063a457c2d7146104ff578063a8b9d24014610512578063a9059cbb14610525578063aafd847a14610538578063b1181e55146102cf57600080fd5b806385a6b3ae146104a45780638da5cb5b146104ad57806391b89fba146104be57806395d89b41146104d157806399248ea7146104d957600080fd5b8063313ce567116101ea578063556cafb0116101ae578063556cafb0146104265780635ebf4db91461044f5780636a474002146104625780636f2789ec1461046a57806370a0823114610473578063715018a61461049c57600080fd5b8063313ce5671461037657806331e79db01461038557806339509351146103985780634e7b827f146103ab5780635183d6fd146103ce57600080fd5b80631105e7401161023c5780631105e7401461030c57806318160ddd1461031f578063226cfa3d1461032757806323b872dd1461034757806327ce01471461035a5780633009a6091461036d57600080fd5b806306fdde03146102795780630716c61114610297578063095ea7b3146102ac57806309bbedde146102cf57806310a8c46b146102e1575b600080fd5b610281610677565b60405161028e9190611bae565b60405180910390f35b6102aa6102a5366004611c11565b610709565b005b6102bf6102ba366004611c2e565b61083c565b604051901515815260200161028e565b600b545b60405190815260200161028e565b6102f46102ef366004611c5a565b610853565b6040516001600160a01b03909116815260200161028e565b6102aa61031a366004611c2e565b610886565b6002546102d3565b6102d3610335366004611c11565b60116020526000908152604090205481565b6102bf610355366004611c73565b610945565b6102d3610368366004611c11565b6109ae565b6102d3600f5481565b6040516012815260200161028e565b6102aa610393366004611c11565b610a0a565b6102bf6103a6366004611c2e565b610ad1565b6102bf6103b9366004611c11565b60106020526000908152604090205460ff1681565b6103e16103dc366004611c5a565b610b07565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161028e565b6102d3610434366004611c11565b6001600160a01b03166000908152600c602052604090205490565b6102aa61045d366004611c5a565b610b74565b6102aa610ba3565b6102d360125481565b6102d3610481366004611c11565b6001600160a01b031660009081526020819052604090205490565b6102aa610c39565b6102d3600a5481565b6005546001600160a01b03166102f4565b6102d36104cc366004611c11565b610c6d565b610281610c78565b6006546102f4906001600160a01b031681565b6102d36104fa366004611c11565b610c87565b6102bf61050d366004611c2e565b610ccc565b6102d3610520366004611c11565b610d1b565b6102bf610533366004611c2e565b610d47565b6102d3610546366004611c11565b6001600160a01b031660009081526009602052604090205490565b6102aa61056f366004611c5a565b610d54565b6102bf610582366004611cc2565b610e12565b6102d360135481565b6102bf61059e366004611c11565b6001600160a01b031660009081526010602052604090205460ff1690565b6102d36105ca366004611cfb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102aa610603366004611c2e565b610ec0565b600f546102d3565b6102aa61061e366004611c5a565b610f50565b6102aa610631366004611c11565b6110cd565b6103e1610644366004611c11565b611165565b61065c610657366004611c5a565b61124c565b6040805193845260208401929092529082015260600161028e565b60606003805461068690611d29565b80601f01602080910402602001604051908101604052809291908181526020018280546106b290611d29565b80156106ff5780601f106106d4576101008083540402835291602001916106ff565b820191906000526020600020905b8154815290600101906020018083116106e257829003601f168201915b5050505050905090565b6001600160a01b0381166000908152600e602052604090205460ff1661072c5750565b6001600160a01b0381166000908152600e60209081526040808320805460ff19169055600c8252808320839055600d909152812054600b5490919061077390600190611d79565b90506000600b600001828154811061078d5761078d611d8c565b60009182526020808320909101546001600160a01b03908116808452600d90925260408084208790559087168352822091909155600b80549192508291859081106107da576107da611d8c565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600b80548061081457610814611da2565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b6000610849338484611369565b5060015b92915050565b6000600b600001828154811061086b5761086b611d8c565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b0382166000908152600e602052604090205460ff16156108c4576001600160a01b03919091166000908152600c6020526040902055565b6001600160a01b0382166000818152600e60209081526040808320805460ff19166001908117909155600c8352818420869055600b8054600d909452918420839055820181559091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b03191690911790555b5050565b600061095284848461148d565b6109a4843361099f85604051806060016040528060288152602001611eda602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906114e4565b611369565b5060019392505050565b6001600160a01b03811660009081526008602090815260408083205491839052822054600754600160801b92610a00926109fb926109f5916109f0919061151e565b6115a7565b906115b7565b6115f5565b61084d9190611db8565b6005546001600160a01b03163314610a3d5760405162461bcd60e51b8152600401610a3490611dda565b60405180910390fd5b6001600160a01b03811660009081526010602052604090205460ff1615610a6357600080fd5b6001600160a01b0381166000908152601060205260408120805460ff19166001179055610a91908290611608565b610a9a81610709565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161084991859061099f9086611667565b600080600080600080600080610b1c600b5490565b8910610b41575060009650600019955085945086935083925082915081905080610b69565b6000610b4c8a610853565b9050610b5781611165565b98509850985098509850985098509850505b919395975091939597565b6005546001600160a01b03163314610b9e5760405162461bcd60e51b8152600401610a3490611dda565b601355565b60405162461bcd60e51b815260206004820152605b60248201527f4469766964656e645f547261636b65723a20776974686472617744697669646560448201527f6e642064697361626c65642e20557365207468652027636c61696d272066756e60648201527f6374696f6e206f6e20746865206d61696e20636f6e74726163742e0000000000608482015260a401610a34565b565b6005546001600160a01b03163314610c635760405162461bcd60e51b8152600401610a3490611dda565b610c3760006116c6565b600061084d82610d1b565b60606004805461068690611d29565b6001600160a01b0381166000908152600e602052604081205460ff16610cb05750600019919050565b506001600160a01b03166000908152600d602052604090205490565b6000610849338461099f85604051806060016040528060258152602001611f02602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906114e4565b6001600160a01b03811660009081526009602052604081205461084d90610d41846109ae565b90611718565b600061084933848461148d565b6005546001600160a01b03163314610d7e5760405162461bcd60e51b8152600401610a3490611dda565b6000610d8960025490565b11610d9357600080fd5b8015610e0f57610dc6610da560025490565b610db383600160801b61151e565b610dbd9190611db8565b60075490611667565b60075560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600a54610e0b9082611667565b600a555b50565b6005546000906001600160a01b03163314610e3f5760405162461bcd60e51b8152600401610a3490611dda565b6000610e4a8461175a565b90508015610eb6576001600160a01b038416600081815260116020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610ea49085815260200190565b60405180910390a3600191505061084d565b5060009392505050565b6005546001600160a01b03163314610eea5760405162461bcd60e51b8152600401610a3490611dda565b6001600160a01b03821660009081526010602052604090205460ff16610941576013548110610f2c57610f1d8282611608565b610f278282610886565b610f40565b610f37826000611608565b610f4082610709565b610f4b826001610e12565b505050565b6005546001600160a01b03163314610f7a5760405162461bcd60e51b8152600401610a3490611dda565b610e108110158015610f8f5750620151808111155b6110195760405162461bcd60e51b815260206004820152604f60248201527f5544414f546f6b656e5f4469766964656e645f547261636b65723a20636c616960448201527f6d57616974206d757374206265207570646174656420746f206265747765656e60648201526e203120616e6420323420686f75727360881b608482015260a401610a34565b601254810361109a5760405162461bcd60e51b815260206004820152604160248201527f5544414f546f6b656e5f4469766964656e645f547261636b65723a2043616e6e60448201527f6f742075706461746520636c61696d5761697420746f2073616d652076616c756064820152606560f81b608482015260a401610a34565b60125460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601255565b6005546001600160a01b031633146110f75760405162461bcd60e51b8152600401610a3490611dda565b6001600160a01b03811661115c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a34565b610e0f816116c6565b80600080808080808061117788610c87565b96506000199550600087126111d957600f548711156111a557600f5461119e9088906118bf565b95506111d9565b600f54600b54600091106111ba5760006111c9565b600f54600b546111c991611718565b90506111d588826115b7565b9650505b6111e288610d1b565b94506111ed886109ae565b6001600160a01b038916600090815260116020526040902054909450925082611217576000611225565b601254611225908490611667565b915042821161123557600061123f565b61123f8242611718565b9050919395975091939597565b600b546000908190819080820361126e575050600f5460009250829150611362565b600f546000805a90506000805b898410801561128957508582105b15611351578461129881611e0f565b600b54909650861090506112ab57600094505b6000600b60000186815481106112c3576112c3611d8c565b60009182526020808320909101546001600160a01b031680835260119091526040909120549091506112f4906118fc565b1561131757611304816001610e12565b15611317578161131381611e0f565b9250505b8261132181611e0f565b93505060005a9050808511156113485761134561133e8683611718565b8790611667565b95505b935061127b9050565b600f85905590975095509193505050505b9193909250565b6001600160a01b0383166113cb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a34565b6001600160a01b03821661142c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a34565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602660248201527f4469766964656e645f547261636b65723a204e6f207472616e736665727320616044820152651b1b1bddd95960d21b6064820152608401610a34565b600081848411156115085760405162461bcd60e51b8152600401610a349190611bae565b5060006115158486611d79565b95945050505050565b6000826000036115305750600061084d565b600061153c8385611e28565b9050826115498583611db8565b146115a05760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610a34565b9392505050565b6000818181121561084d57600080fd5b6000806115c48385611e3f565b9050600083121580156115d75750838112155b806115ec57506000831280156115ec57508381125b6115a057600080fd5b60008082121561160457600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156116475760006116358383611718565b90506116418482611923565b50505050565b80821015610f4b57600061165b8284611718565b90506116418482611987565b6000806116748385611e67565b9050838110156115a05760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a34565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006115a083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506114e4565b60008061176683610d1b565b905080156118b6576001600160a01b0383166000908152600960205260409020546117919082611667565b6001600160a01b038416600081815260096020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906117e09084815260200190565b60405180910390a260065460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af115801561183c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118609190611e7a565b9050806118af576001600160a01b03841660009081526009602052604090205461188a9083611718565b6001600160a01b03909416600090815260096020526040812094909455509192915050565b5092915050565b50600092915050565b6000806118cc8385611e97565b9050600083121580156118df5750838113155b806115ec57506000831280156115ec57508381136115a057600080fd5b60004282111561190e57506000919050565b60125461191b4284611718565b101592915050565b61192d82826119cb565b6119676119486109f08360075461151e90919063ffffffff16565b6001600160a01b038416600090815260086020526040902054906118bf565b6001600160a01b0390921660009081526008602052604090209190915550565b6119918282611aaa565b6119676119ac6109f08360075461151e90919063ffffffff16565b6001600160a01b038416600090815260086020526040902054906115b7565b6001600160a01b038216611a215760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206361737420746f20746865207a65726f2061646472657373006044820152606401610a34565b600254611a2e9082611667565b6002556001600160a01b038216600090815260208190526040902054611a549082611667565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216611b0a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a34565b611b4781604051806060016040528060228152602001611eb8602291396001600160a01b03851660009081526020819052604090205491906114e4565b6001600160a01b038316600090815260208190526040902055600254611b6d9082611718565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611a9e565b600060208083528351808285015260005b81811015611bdb57858101830151858201604001528201611bbf565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610e0f57600080fd5b600060208284031215611c2357600080fd5b81356115a081611bfc565b60008060408385031215611c4157600080fd5b8235611c4c81611bfc565b946020939093013593505050565b600060208284031215611c6c57600080fd5b5035919050565b600080600060608486031215611c8857600080fd5b8335611c9381611bfc565b92506020840135611ca381611bfc565b929592945050506040919091013590565b8015158114610e0f57600080fd5b60008060408385031215611cd557600080fd5b8235611ce081611bfc565b91506020830135611cf081611cb4565b809150509250929050565b60008060408385031215611d0e57600080fd5b8235611d1981611bfc565b91506020830135611cf081611bfc565b600181811c90821680611d3d57607f821691505b602082108103611d5d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561084d5761084d611d63565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600082611dd557634e487b7160e01b600052601260045260246000fd5b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060018201611e2157611e21611d63565b5060010190565b808202811582820484141761084d5761084d611d63565b8082018281126000831280158216821582161715611e5f57611e5f611d63565b505092915050565b8082018082111561084d5761084d611d63565b600060208284031215611e8c57600080fd5b81516115a081611cb4565b81810360008312801583831316838312821617156118af576118af611d6356fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f3141cf3060877c20fb1cc59277f83008ba67286276428593d4510cdc2355aee64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000001e848000000000000000000000000087f1c90658012d086e78d09243cf40b53ef41f9900000000000000000000000098bf93ebf5c380c0e6ae8e192a7e2ae08edacc02000000000000000000000000000000000000000000000000000000000000000100000000000000000000000051e46fddf884518d96ebea18023f7b2d0a82582a000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000002f343230426c617a6569746b696e20f09f94a520546f6b6562616c6c205265666c656374696f6e2054657472616d6f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d544e4445570000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x6080604052600436106103a65760003560e01c8063871c128d116101e7578063c492f0461161010d578063e98030c7116100a0578063f2fde38b1161006f578063f2fde38b14610ada578063f637434214610afa578063f7c618c114610b10578063f832679514610b3057600080fd5b8063e98030c714610a64578063eb671e9114610a84578063f11a24d314610aa4578063f27fd25414610aba57600080fd5b8063dd62ed3e116100dc578063dd62ed3e146109d3578063e2f4560514610a19578063e4bf1bed14610a2f578063e7841ec014610a4f57600080fd5b8063c492f04614610968578063c705c56914610988578063cfe0e619146109a8578063d2a8b440146109be57600080fd5b8063a26579ad11610185578063ad56c13c11610154578063ad56c13c14610893578063afa4f3b2146108f8578063b62496f514610918578063c02466681461094857600080fd5b8063a26579ad1461081e578063a457c2d714610833578063a8b9d24014610853578063a9059cbb1461087357600080fd5b806392136913116101c157806392136913146107bd57806395d89b41146107d35780639a7a23d6146107e85780639c1b8af51461080857600080fd5b8063871c128d146107695780638da5cb5b146107895780638de743b3146107a757600080fd5b806339509351116102cc57806364b0f6531161026a57806370a082311161023957806370a08231146106e8578063715018a61461071e5780637bce5a041461073357806385141a771461074957600080fd5b806364b0f6531461067357806365b8dbc0146106885780636843cd84146106a8578063700bb191146106c857600080fd5b80634e71d92d116102a65780634e71d92d146105e55780634fbee193146105fa5780635d098b381461063357806361a60d571461065357600080fd5b806339509351146105855780634144d9e4146105a557806349bd5a5e146105c557600080fd5b806318160ddd1161034457806330bb4cff1161031357806330bb4cff1461051e578063313ce5671461053357806331e79db01461054f5780633926876d1461056f57600080fd5b806318160ddd146104b357806323b872dd146104c857806324942a04146104e85780632c1f5216146104fe57600080fd5b8063095ea7b311610380578063095ea7b3146104135780630dcb2e891461044357806310c8aeac146104655780631694505e1461047b57600080fd5b806302df64d6146103b257806306fdde03146103db57806308b2a12c146103fd57600080fd5b366103ad57005b600080fd5b3480156103be57600080fd5b506103c8600b5481565b6040519081526020015b60405180910390f35b3480156103e757600080fd5b506103f0610b46565b6040516103d29190613243565b34801561040957600080fd5b506103c8600c5481565b34801561041f57600080fd5b5061043361042e36600461328b565b610bd8565b60405190151581526020016103d2565b34801561044f57600080fd5b5061046361045e3660046132b7565b610bef565b005b34801561047157600080fd5b506103c860185481565b34801561048757600080fd5b5060065461049b906001600160a01b031681565b6040516001600160a01b0390911681526020016103d2565b3480156104bf57600080fd5b506002546103c8565b3480156104d457600080fd5b506104336104e33660046132d0565b610c84565b3480156104f457600080fd5b506103c860125481565b34801561050a57600080fd5b5060085461049b906001600160a01b031681565b34801561052a57600080fd5b506103c8610ced565b34801561053f57600080fd5b50604051601281526020016103d2565b34801561055b57600080fd5b5061046361056a366004613311565b610d60565b34801561057b57600080fd5b506103c860145481565b34801561059157600080fd5b506104336105a036600461328b565b610dbc565b3480156105b157600080fd5b5060165461049b906001600160a01b031681565b3480156105d157600080fd5b5060075461049b906001600160a01b031681565b3480156105f157600080fd5b50610463610df2565b34801561060657600080fd5b50610433610615366004613311565b6001600160a01b03166000908152601a602052604090205460ff1690565b34801561063f57600080fd5b5061046361064e366004613311565b610e6a565b34801561065f57600080fd5b5061046361066e366004613311565b610eb6565b34801561067f57600080fd5b506103c8610f02565b34801561069457600080fd5b506104636106a3366004613311565b610f4c565b3480156106b457600080fd5b506103c86106c3366004613311565b6111b6565b3480156106d457600080fd5b506104636106e33660046132b7565b611226565b3480156106f457600080fd5b506103c8610703366004613311565b6001600160a01b031660009081526020819052604090205490565b34801561072a57600080fd5b506104636112f8565b34801561073f57600080fd5b506103c8600f5481565b34801561075557600080fd5b5060175461049b906001600160a01b031681565b34801561077557600080fd5b506104636107843660046132b7565b61132e565b34801561079557600080fd5b506005546001600160a01b031661049b565b3480156107b357600080fd5b506103c860115481565b3480156107c957600080fd5b506103c860105481565b3480156107df57600080fd5b506103f0611470565b3480156107f457600080fd5b5061046361080336600461333c565b61147f565b34801561081457600080fd5b506103c860195481565b34801561082a57600080fd5b506103c8611549565b34801561083f57600080fd5b5061043361084e36600461328b565b611593565b34801561085f57600080fd5b506103c861086e366004613311565b6115e2565b34801561087f57600080fd5b5061043361088e36600461328b565b611615565b34801561089f57600080fd5b506108b36108ae366004613311565b611622565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103d2565b34801561090457600080fd5b506104636109133660046132b7565b6116bd565b34801561092457600080fd5b50610433610933366004613311565b601b6020526000908152604090205460ff1681565b34801561095457600080fd5b5061046361096336600461333c565b6116ec565b34801561097457600080fd5b50610463610983366004613375565b61179b565b34801561099457600080fd5b506104336109a3366004613311565b611877565b3480156109b457600080fd5b506103c860155481565b3480156109ca57600080fd5b506104636118e6565b3480156109df57600080fd5b506103c86109ee3660046133fb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a2557600080fd5b506103c8600a5481565b348015610a3b57600080fd5b50610463610a4a366004613429565b6119be565b348015610a5b57600080fd5b506103c8611a65565b348015610a7057600080fd5b50610463610a7f3660046132b7565b611aaf565b348015610a9057600080fd5b50610463610a9f366004613429565b611b0a565b348015610ab057600080fd5b506103c8600d5481565b348015610ac657600080fd5b506108b3610ad53660046132b7565b611bab565b348015610ae657600080fd5b50610463610af5366004613311565b611bed565b348015610b0657600080fd5b506103c8600e5481565b348015610b1c57600080fd5b5060095461049b906001600160a01b031681565b348015610b3c57600080fd5b506103c860135481565b606060038054610b559061345b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b819061345b565b8015610bce5780601f10610ba357610100808354040283529160200191610bce565b820191906000526020600020905b815481529060010190602001808311610bb157829003601f168201915b5050505050905090565b6000610be5338484611daf565b5060015b92915050565b6005546001600160a01b03163314610c225760405162461bcd60e51b8152600401610c1990613495565b60405180910390fd5b600854604051635ebf4db960e01b8152600481018390526001600160a01b0390911690635ebf4db9906024015b600060405180830381600087803b158015610c6957600080fd5b505af1158015610c7d573d6000803e3d6000fd5b5050505050565b6000610c91848484611ed4565b610ce38433610cde856040518060600160405280602881526020016137ee602891396001600160a01b038a166000908152600160209081526040808320338452909152902054919061247d565b611daf565b5060019392505050565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5b91906134ca565b905090565b6005546001600160a01b03163314610d8a5760405162461bcd60e51b8152600401610c1990613495565b60085460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401610c4f565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610be5918590610cde9086611c85565b60085460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6791906134e3565b50565b6005546001600160a01b03163314610e945760405162461bcd60e51b8152600401610c1990613495565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610ee05760405162461bcd60e51b8152600401610c1990613495565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b6005546001600160a01b03163314610f765760405162461bcd60e51b8152600401610c1990613495565b6006546001600160a01b0390811690821603610fe05760405162461bcd60e51b815260206004820152602360248201527f54686520726f7574657220616c7265616479206861732074686174206164647260448201526265737360e81b6064820152608401610c19565b6006546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3600680546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa158015611077573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109b9190613500565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111219190613500565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561116e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111929190613500565b600780546001600160a01b0319166001600160a01b03929092169190911790555050565b6008546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015611202573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be991906134ca565b6008546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af1158015611279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129d919061351d565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b6005546001600160a01b031633146113225760405162461bcd60e51b8152600401610c1990613495565b61132c60006124b7565b565b6005546001600160a01b031633146113585760405162461bcd60e51b8152600401610c1990613495565b62030d40811015801561136e57506207a1208111155b6113d75760405162461bcd60e51b815260206004820152603460248201527f476173466f7250726f63657373696e67206d757374206265206265747765656e6044820152730203230302c30303020616e64203530302c3030360641b6064820152608401610c19565b601954810361143d5760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f742075706461746520676173466f7250726f63657373696e67207460448201526b6f2073616d652076616c756560a01b6064820152608401610c19565b60195460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601955565b606060048054610b559061345b565b6005546001600160a01b031633146114a95760405162461bcd60e51b8152600401610c1990613495565b6007546001600160a01b039081169083160361153b5760405162461bcd60e51b815260206004820152604560248201527f5468652050616e63616b655377617020706169722063616e6e6f74206265207260448201527f656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572606482015264506169727360d81b608482015260a401610c19565b6115458282612509565b5050565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b6000610be53384610cde85604051806060016040528060258152602001613816602591393360009081526001602090815260408083206001600160a01b038d168452909152902054919061247d565b6008546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d240906024016111e5565b6000610be5338484611ed4565b60085460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b61010060405180830381865afa15801561167e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a2919061354b565b97509750975097509750975097509750919395975091939597565b6005546001600160a01b031633146116e75760405162461bcd60e51b8152600401610c1990613495565b600a55565b6005546001600160a01b031633146117165760405162461bcd60e51b8152600401610c1990613495565b6001600160a01b0382166000908152601a602052604090205460ff16151581151514611545576001600160a01b0382166000818152601a6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146117c55760405162461bcd60e51b8152600401610c1990613495565b60005b828110156118365781601a60008686858181106117e7576117e76135b5565b90506020020160208101906117fc9190613311565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061182e816135e1565b9150506117c8565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b3583838360405161186a939291906135fa565b60405180910390a1505050565b60085460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa1580156118c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be991906134e3565b6005546001600160a01b031633146119105760405162461bcd60e51b8152600401610c1990613495565b30600090815260208190526040902054806119625760405162461bcd60e51b8152602060048201526012602482015271746f6b656e2062616c616e6365207a65726f60701b6044820152606401610c19565b6007805460ff60a01b1916600160a01b1790556013541561198857611988601354612668565b6014541561199b5761199b601454612700565b601554156119ae576119ae6015546128a3565b506007805460ff60a01b19169055565b6005546001600160a01b031633146119e85760405162461bcd60e51b8152600401610c1990613495565b6019611a00826119fa8581888a611c85565b90611c85565b1115611a4e5760405162461bcd60e51b815260206004820152601960248201527f546f74616c2062757920666565206973206f76657220323525000000000000006044820152606401610c19565b600b92909255600d92909255600f91909155601155565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa158015610d37573d6000803e3d6000fd5b6005546001600160a01b03163314611ad95760405162461bcd60e51b8152600401610c1990613495565b60085460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401610c4f565b6005546001600160a01b03163314611b345760405162461bcd60e51b8152600401610c1990613495565b6019611b46826119fa8581888a611c85565b1115611b945760405162461bcd60e51b815260206004820152601960248201527f546f74616c2073656c20666565206973206f76657220323525000000000000006044820152606401610c19565b600c92909255600e92909255601091909155601255565b600854604051635183d6fd60e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd90602401611660565b6005546001600160a01b03163314611c175760405162461bcd60e51b8152600401610c1990613495565b6001600160a01b038116611c7c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c19565b610e67816124b7565b600080611c928385613653565b905083811015611ce45760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610c19565b9392505050565b600082600003611cfd57506000610be9565b6000611d098385613666565b905082611d16858361367d565b14611ce45760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610c19565b6000611ce483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612a26565b6001600160a01b038316611e115760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c19565b6001600160a01b038216611e725760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c19565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611efa5760405162461bcd60e51b8152600401610c199061369f565b6001600160a01b038216611f205760405162461bcd60e51b8152600401610c19906136e4565b80600003611f3957611f3483836000612a54565b505050565b30600090815260208190526040902054600a5481108015908190611f675750600754600160a01b900460ff16155b8015611f8c57506001600160a01b0385166000908152601b602052604090205460ff16155b8015611fa657506005546001600160a01b03868116911614155b8015611fc057506005546001600160a01b03858116911614155b1561201f576007805460ff60a01b1916600160a01b17905560155415611feb57611feb6015546128a3565b60135415611ffe57611ffe601354612668565b6014541561201157612011601454612700565b6007805460ff60a01b191690555b6007546001600160a01b0386166000908152601a602052604090205460ff600160a01b90920482161591168061206d57506001600160a01b0385166000908152601a602052604090205460ff165b15612076575060005b8015612282576001600160a01b0386166000908152601b6020526040812054819081908190819060ff1615612164576120c560646120bf600d548c611ceb90919063ffffffff16565b90611d6d565b935083601360008282546120d99190613653565b9091555050600b546120f3906064906120bf908c90611ceb565b925082601460008282546121079190613653565b9091555050600f54612121906064906120bf908c90611ceb565b915081601560008282546121359190613653565b909155505060115461214f906064906120bf908c90611ceb565b9050612161816119fa84818888611c85565b94505b6001600160a01b038a166000908152601b602052604090205460ff161561223e5761219f60646120bf600e548c611ceb90919063ffffffff16565b935083601360008282546121b39190613653565b9091555050600c546121cd906064906120bf908c90611ceb565b925082601460008282546121e19190613653565b90915550506010546121fb906064906120bf908c90611ceb565b9150816015600082825461220f9190613653565b9091555050601254612229906064906120bf908c90611ceb565b905061223b816119fa84818888611c85565b94505b6122488986612b5d565b9850801561226857601754612268908c906001600160a01b031683612a54565b61227c8b306122778885612b5d565b612a54565b50505050505b61228d868686612a54565b6008546001600160a01b031663e30443bc876122be816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561230457600080fd5b505af1925050508015612315575060015b506008546001600160a01b031663e30443bc86612347816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561238d57600080fd5b505af192505050801561239e575060015b50600754600160a01b900460ff16612475576019546008546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af192505050801561241d575060408051601f3d908101601f1916820190925261241a9181019061351d565b60015b156124735760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b505050505050565b600081848411156124a15760405162461bcd60e51b8152600401610c199190613243565b5060006124ae8486613727565b95945050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152601b602052604090205481151560ff90911615150361259f5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c756500000000000000006064820152608401610c19565b6001600160a01b0382166000908152601b60205260409020805460ff1916821580159190911790915561262c5760085460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b15801561261357600080fd5b505af1158015612627573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6000612675826002611d6d565b905060006126838383612b5d565b90504761268f83612b9f565b600061269b4783612b5d565b90506126a78382612e17565b846013546126b59190613727565b60135560408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b61270981612ec4565b806014546127179190613727565b6014556009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612763573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278791906134ca565b60095460085460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905292935060009291169063a9059cbb906044016020604051808303816000875af11580156127e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280691906134e3565b90508015611f345760085460405163ba72a95560e01b8152600481018490526001600160a01b039091169063ba72a95590602401600060405180830381600087803b15801561285457600080fd5b505af1158015612868573d6000803e3d6000fd5b505060408051868152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905061186a565b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156128ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061291091906134ca565b905061291b82612ec4565b6009546040516370a0823160e01b81523060048201526000916129949184916001600160a01b0316906370a0823190602401602060405180830381865afa15801561296a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298e91906134ca565b90612b5d565b60095460165460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af11580156129eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0f91906134e3565b5082601554612a1e9190613727565b601555505050565b60008183612a475760405162461bcd60e51b8152600401610c199190613243565b5060006124ae848661367d565b6001600160a01b038316612a7a5760405162461bcd60e51b8152600401610c199061369f565b6001600160a01b038216612aa05760405162461bcd60e51b8152600401610c19906136e4565b612add816040518060600160405280602681526020016137c8602691396001600160a01b038616600090815260208190526040902054919061247d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612b0c9082611c85565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611ec7565b6000611ce483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061247d565b600660009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c169190613500565b6009546001600160a01b03918216911603612cc55760095460408051602480820185905282518083039091018152604490910182526020810180516001600160e01b0316632e1a7d4d60e01b17905290516001600160a01b0390921691612c7d919061373a565b6000604051808303816000865af19150503d8060008114612cba576040519150601f19603f3d011682016040523d82523d6000602084013e612cbf565b606091505b50505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612cfa57612cfa6135b5565b6001600160a01b039283166020918202929092018101919091526006546040805163ef8ef56f60e01b81529051919093169263ef8ef56f9260048083019391928290030181865afa158015612d53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d779190613500565b81600181518110612d8a57612d8a6135b5565b6001600160a01b039283166020918202929092010152600654612db09130911684611daf565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790612de9908590600090869030904290600401613756565b600060405180830381600087803b158015612e0357600080fd5b505af1158015612475573d6000803e3d6000fd5b600654612e2f9030906001600160a01b031684611daf565b60065460165460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612e9f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c7d919061351d565b600660009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3b9190613500565b6009546001600160a01b039182169116036130c8576040805160028082526060820183526000926020830190803683370190505090503081600081518110612f8557612f856135b5565b6001600160a01b039283166020918202929092010152600954825191169082906001908110612fb657612fb66135b5565b6001600160a01b039283166020918202929092010152600654612fdc9130911684611daf565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790613015908590600090869030904290600401613756565b600060405180830381600087803b15801561302f57600080fd5b505af1158015613043573d6000803e3d6000fd5b505060095460408051600481526024810182526020810180516001600160e01b0316630d0e30db60e41b17905290516001600160a01b03909216935047925061308b9161373a565b60006040518083038185875af1925050503d8060008114610c7d576040519150601f19603f3d011682016040523d82523d6000602084013e610c7d565b604080516003808252608082019092526000916020820160608036833701905050905030816000815181106130ff576130ff6135b5565b6001600160a01b039283166020918202929092018101919091526006546040805163ef8ef56f60e01b81529051919093169263ef8ef56f9260048083019391928290030181865afa158015613158573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061317c9190613500565b8160018151811061318f5761318f6135b5565b6001600160a01b0392831660209182029290920101526009548251911690829060029081106131c0576131c06135b5565b6001600160a01b0392831660209182029290920101526006546131e69130911684611daf565b600654604051635c11d79560e01b81526001600160a01b0390911690635c11d79590612de9908590600090869030904290600401613756565b60005b8381101561323a578181015183820152602001613222565b50506000910152565b602081526000825180602084015261326281604085016020870161321f565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610e6757600080fd5b6000806040838503121561329e57600080fd5b82356132a981613276565b946020939093013593505050565b6000602082840312156132c957600080fd5b5035919050565b6000806000606084860312156132e557600080fd5b83356132f081613276565b9250602084013561330081613276565b929592945050506040919091013590565b60006020828403121561332357600080fd5b8135611ce481613276565b8015158114610e6757600080fd5b6000806040838503121561334f57600080fd5b823561335a81613276565b9150602083013561336a8161332e565b809150509250929050565b60008060006040848603121561338a57600080fd5b833567ffffffffffffffff808211156133a257600080fd5b818601915086601f8301126133b657600080fd5b8135818111156133c557600080fd5b8760208260051b85010111156133da57600080fd5b602092830195509350508401356133f08161332e565b809150509250925092565b6000806040838503121561340e57600080fd5b823561341981613276565b9150602083013561336a81613276565b6000806000806080858703121561343f57600080fd5b5050823594602084013594506040840135936060013592509050565b600181811c9082168061346f57607f821691505b60208210810361348f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156134dc57600080fd5b5051919050565b6000602082840312156134f557600080fd5b8151611ce48161332e565b60006020828403121561351257600080fd5b8151611ce481613276565b60008060006060848603121561353257600080fd5b8351925060208401519150604084015190509250925092565b600080600080600080600080610100898b03121561356857600080fd5b885161357381613276565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016135f3576135f36135cb565b5060010190565b6040808252810183905260008460608301825b8681101561363d57823561362081613276565b6001600160a01b031682526020928301929091019060010161360d565b5080925050508215156020830152949350505050565b80820180821115610be957610be96135cb565b8082028115828204841417610be957610be96135cb565b60008261369a57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610be957610be96135cb565b6000825161374c81846020870161321f565b9190910192915050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156137a65784516001600160a01b031683529383019391830191600101613781565b50506001600160a01b0396909616606085015250505060800152939250505056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202639438ea6a1309cedffdf292d9c053d2e13f65bff5aee09e601e28bb2f9668764736f6c63430008110033