- We're indexing this chain right now. Some of the counts may be inaccurate.

Contract Address Details

0x9d20efbF921eb0df602Db44931Bd0eBfEfd5ebEA

Token
Hocus Pocus Finance v2b (HOC)
Creator
0xdf9109–823265 at 0x4b7c24–170b30
Balance
40,031.96667541295741516 Pulse
Tokens
Fetching tokens...
Transactions
50 Transactions
Transfers
1,173 Transfers
Gas Used
2,330,969
Last Balance Update
21710492
Contract name:
HocusPocusFinance_v2b




Optimization enabled
true
Compiler version
v0.8.7+commit.e28d00a7




Optimization runs
200
EVM Version
london




Verified at
2022-09-01 15:37:19.602502Z

Contract source code

// File: contracts/HocusPocusFinance_v2b.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
abstract contract Context {
function _msgSender() internal view returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the token name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the bep token owner.
*/
function getOwner() external view returns (address);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount)
external
returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address _owner, address spender)
external
view
returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(
address(this).balance >= amount,
"Address: insufficient balance"
);
(bool success, ) = recipient.call{value: amount}("");
require(
success,
"Address: unable to send value, recipient may have reverted"
);
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return
functionCallWithValue(
target,
data,
value,
"Address: low-level call with value failed"
);
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(
data
);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data)
internal
view
returns (bytes memory)
{
return
functionStaticCall(
target,
data,
"Address: low-level static call failed"
);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return
functionDelegateCall(
target,
data,
"Address: low-level delegate call failed"
);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address lpPair,
uint256
);
function getPair(address tokenA, address tokenB)
external
view
returns (address lpPair);
function createPair(address tokenA, address tokenB)
external
returns (address lpPair);
}
interface IUniswapV2Pair {
function factory() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function token0() external view returns (address);
function token1() external view returns (address);
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WPLS() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function getAmountsIn(uint256 amountOut, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
}
////////CONTRACT//IMPLEMENTATION/////////
contract HocusPocusFinance_v2b is Context, IERC20 {
// Ownership moved to in-contract for customizability.
using Address for address;
address private _owner;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
mapping(address => bool) lpPairs;
uint256 private timeSinceLastPair = 0;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedFromLimits;
string private constant _name = "Hocus Pocus Finance v2b";
string private constant _symbol = "HOC";
uint8 private constant _decimals = 4;
uint256 constant _totalSupply = 5_555_000_000_000 * (10**_decimals);
uint256 private constant _tTotal = _totalSupply;
uint256 private constant MAX = ~uint256(0);
uint256 private _rTotal = (MAX - (MAX % _tTotal));
struct Fees {
uint16 reflect;
uint16 burn;
uint16 liquidity;
uint16 treasury;
uint16 team;
uint16 charity;
uint16 totalSwap;
}
struct Ratios {
uint16 liquidity;
uint16 total;
}
Fees public _buyTaxes =
Fees({
reflect: 0,
burn: 0,
liquidity: 0,
treasury: 0,
charity: 100,
team: 0,
totalSwap: 0
});
Fees public _sellTaxes =
Fees({
reflect: 200,
burn: 50,
liquidity: 200,
treasury: 350,
charity: 0,
team: 200,
totalSwap: 200
});
Ratios public _ratios = Ratios({liquidity: 200, total: 200});
uint256 constant masterTaxDivisor = 10000;
IUniswapV2Router02 public dexRouter;
address public lpPair;
address public constant DEAD = 0x000000000000000000000000000000000000dEaD;
address public constant charityWallet =
0x4bdA64c2e135E9c4F813a7CF6241821a0e8a7d8D;
address public constant teamWallet =
0xDc6085035e331d7289126fDD27bAFD84feC5DC67;
address public constant treasuryWallet =
0x4CA0483A4234bcad8fa64010B71086B344001aF3;
bool inSwap;
uint256 public contractSwapTimer = 0 seconds;
uint256 private lastSwap;
uint256 public constant swapThreshold = (_tTotal * 5) / 10000;
uint256 public constant swapAmount = (_tTotal * 10) / 10000;
uint256 private _maxTxAmount = (_tTotal * 200) / 10000;
event BalanceUpdate(address indexed addr, uint256 value);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
event AutoLiquify(uint256 amountCurrency, uint256 amountTokens);
modifier lockTheSwap() {
inSwap = true;
_;
inSwap = false;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Caller =/= owner.");
_;
}
constructor() payable {
_rOwned[msg.sender] = _rTotal;
// Set the owner.
_owner = msg.sender;
if (block.chainid == 941) {
dexRouter = IUniswapV2Router02(
0xb4A7633D8932de086c9264D5eb39a8399d7C0E3A
);
contractSwapTimer = 10 seconds;
} else {
revert();
}
lpPair = IUniswapV2Factory(dexRouter.factory()).createPair(
dexRouter.WPLS(),
address(this)
);
lpPairs[lpPair] = true;
_approve(msg.sender, address(dexRouter), type(uint256).max);
_approve(address(this), address(dexRouter), type(uint256).max);
_isExcludedFromLimits[owner()] = true;
_isExcludedFromFees[owner()] = true;
_isExcludedFromFees[address(this)] = true;
_isExcludedFromFees[DEAD] = true;
emit Transfer(address(0), _msgSender(), _tTotal);
}
receive() external payable {}
// Ownable removed as a lib and added here to allow for custom transfers and renouncements.
// This allows for removal of ownership privileges from the owner once renounced or transferred.
function owner() public view returns (address) {
return _owner;
}
function _isContract(address addr) private view returns (bool) {
uint size;
assembly { size := extcodesize(addr) }
return size > 0;
}
// Add liquidity pools to Hocus Pocus Protocol
function _checkIfAddressIfUniswapV2HOCPool(address addr) public view returns (bool) {
if(!_isContract(addr))
return false;
address hocAddress = address(this);
try IUniswapV2Pair(addr).token0() returns (address token0) {
if(token0 == hocAddress)
return true;
}
catch {
return false;
}
try IUniswapV2Pair(addr).token1() returns (address token1) {
if(token1 == hocAddress)
return true;
}
catch {
}
return false;
}
function deleteHocPoolKey() external virtual onlyOwner {
setExcludedFromFees(_owner, false);
_owner = address(0);
emit OwnershipTransferred(_owner, address(0));
}
function totalSupply() external pure override returns (uint256) {
if (_tTotal == 0) {
revert();
}
return _tTotal;
}
function decimals() external pure override returns (uint8) {
return _decimals;
}
function symbol() external pure override returns (string memory) {
return _symbol;
}
function name() external pure override returns (string memory) {
return _name;
}
function getOwner() external view override returns (address) {
return owner();
}
function allowance(address holder, address spender)
external
view
override
returns (uint256)
{
return _allowances[holder][spender];
}
function balanceOf(address account) public view override returns (uint256) {
return tokenFromReflection(_rOwned[account]);
}
function transfer(address recipient, uint256 amount)
external
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
function approve(address spender, uint256 amount)
external
override
returns (bool)
{
_approve(_msgSender(), spender, amount);
return true;
}
function _approve(
address sender,
address spender,
uint256 amount
) private {
require(sender != address(0), "ERC20: Sender is not zero Address");
require(spender != address(0), "ERC20: Spender is not zero Address");
_allowances[sender][spender] = amount;
emit Approval(sender, spender, amount);
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) external override returns (bool) {
if (_allowances[sender][msg.sender] != type(uint256).max) {
_allowances[sender][msg.sender] -= amount;
}
return _transfer(sender, recipient, amount);
}
function getCirculatingSupply() external view returns (uint256) {
return (_tTotal - (balanceOf(DEAD) + balanceOf(address(0))));
}
function tokenFromReflection(uint256 rAmount)
public
view
returns (uint256)
{
require(
rAmount <= _rTotal,
"Amount must be less than total reflections"
);
uint256 currentRate = _getRate();
return rAmount / currentRate;
}
function isExcludedFromLimits(address account) external view returns (bool) {
return _isExcludedFromLimits[account];
}
function isExcludedFromFees(address account) external view returns (bool) {
return _isExcludedFromFees[account];
}
function setExcludedFromFees(address account, bool enabled)
private
{
_isExcludedFromFees[account] = enabled;
}
function getMaxTX() external view returns (uint256) {
return _maxTxAmount / (10**_decimals);
}
function _transfer(
address from,
address to,
uint256 amount
) internal returns (bool) {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
if (lpPairs[from] || lpPairs[to]) {
if (!_isExcludedFromLimits[from] && !_isExcludedFromLimits[to]) {
require(
amount <= _maxTxAmount,
"Transfer amount exceeds the maxTxAmount."
);
}
}
bool takeFee = true;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
if (lpPairs[to]) {
if (!inSwap) {
if (lastSwap + contractSwapTimer < block.timestamp) {
uint256 contractTokenBalance = balanceOf(address(this));
if (contractTokenBalance >= swapThreshold) {
if (contractTokenBalance >= swapAmount) {
contractTokenBalance = swapAmount;
}
contractSwap(contractTokenBalance);
lastSwap = block.timestamp;
}
}
}
}
return _finalizeTransfer(from, to, amount, takeFee);
}
function contractSwap(uint256 contractTokenBalance) private lockTheSwap {
Ratios memory ratios = _ratios;
if (ratios.total == 0) {
return;
}
if (
_allowances[address(this)][address(dexRouter)] != type(uint256).max
) {
_allowances[address(this)][address(dexRouter)] = type(uint256).max;
}
uint256 toLiquify = ((contractTokenBalance * ratios.liquidity) /
ratios.total) / 2;
uint256 swapAmt = contractTokenBalance - toLiquify;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = dexRouter.WPLS();
dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
swapAmt,
0,
path,
address(this),
block.timestamp
);
uint256 amtBalance = address(this).balance;
uint256 liquidityBalance = (amtBalance * toLiquify) / swapAmt;
if (toLiquify > 0) {
dexRouter.addLiquidityETH{value: liquidityBalance}(
address(this),
toLiquify,
0,
0,
DEAD,
block.timestamp
);
emit AutoLiquify(liquidityBalance, toLiquify);
}
}
struct ExtraValues {
uint256 tTransferAmount;
uint256 tFee;
uint256 tSwap;
uint256 tBurn;
uint256 tCharity;
uint256 tTeam;
uint256 tTreasury;
uint256 rTransferAmount;
uint256 rAmount;
uint256 rFee;
uint256 currentRate;
}
function _finalizeTransfer(
address from,
address to,
uint256 tAmount,
bool takeFee
) private returns (bool) {
ExtraValues memory values = _getValues(from, to, tAmount, takeFee);
_rOwned[from] = _rOwned[from] - values.rAmount;
_rOwned[to] = _rOwned[to] + values.rTransferAmount;
if (values.rFee > 0 || values.tFee > 0) {
_rTotal -= values.rFee;
}
emit Transfer(from, to, values.tTransferAmount);
emit BalanceUpdate(from, balanceOf(from));
emit BalanceUpdate(to, balanceOf(to));
return true;
}
function _getValues(
address from,
address to,
uint256 tAmount,
bool takeFee
) private returns (ExtraValues memory) {
ExtraValues memory values;
values.currentRate = _getRate();
values.rAmount = tAmount * values.currentRate;
if (takeFee) {
uint256 currentReflect;
uint256 currentSwap;
uint256 currentBurn;
uint256 currentCharity;
uint256 currentTeam;
uint256 currentTreasury;
uint256 divisor = masterTaxDivisor;
if (_checkIfAddressIfUniswapV2HOCPool(to)) {
currentReflect = _sellTaxes.reflect;
currentBurn = _sellTaxes.burn;
currentCharity = _sellTaxes.charity;
currentTeam = _sellTaxes.team;
currentTreasury = _sellTaxes.treasury;
currentSwap = _sellTaxes.totalSwap;
} else if (_checkIfAddressIfUniswapV2HOCPool(from)) {
currentReflect = _buyTaxes.reflect;
currentBurn = _buyTaxes.burn;
currentCharity = _buyTaxes.charity;
currentTeam = _buyTaxes.team;
currentTreasury = _buyTaxes.treasury;
currentSwap = _buyTaxes.totalSwap;
}
values.tFee = (tAmount * currentReflect) / divisor;
values.tSwap = (tAmount * currentSwap) / divisor;
values.tBurn = (tAmount * currentBurn) / divisor;
values.tCharity = (tAmount * currentCharity) / divisor;
values.tTeam = (tAmount * currentTeam) / divisor;
values.tTreasury = (tAmount * currentTreasury) / divisor;
values.tTransferAmount =
tAmount -
(values.tFee +
values.tSwap +
values.tBurn +
values.tCharity +
values.tTeam +
values.tTreasury);
values.rFee = values.tFee * values.currentRate;
} else {
values.tFee = 0;
values.tSwap = 0;
values.tBurn = 0;
values.tCharity = 0;
values.tTeam = 0;
values.tTreasury = 0;
values.tTransferAmount = tAmount;
values.rFee = 0;
}
if (values.tSwap > 0) {
_rOwned[address(this)] += values.tSwap * values.currentRate;
emit Transfer(from, address(this), values.tSwap);
}
if (values.tBurn > 0) {
_rOwned[DEAD] += values.tBurn * values.currentRate;
emit Transfer(from, DEAD, values.tBurn);
}
if (values.tCharity > 0) {
_rOwned[charityWallet] += values.tCharity * values.currentRate;
emit Transfer(from, charityWallet, values.tCharity);
}
if (values.tTeam > 0) {
_rOwned[teamWallet] += values.tTeam * values.currentRate;
emit Transfer(from, teamWallet, values.tTeam);
}
if (values.tTreasury > 0) {
_rOwned[treasuryWallet] += values.tTreasury * values.currentRate;
emit Transfer(from, treasuryWallet, values.tTreasury);
}
values.rTransferAmount =
values.rAmount -
(values.rFee +
(values.tSwap * values.currentRate) +
(values.tBurn * values.currentRate) +
(values.tCharity * values.currentRate) +
(values.tTeam * values.currentRate) +
(values.tTreasury * values.currentRate));
return values;
}
function _getRate() internal view returns (uint256) {
uint256 rSupply = _rTotal;
uint256 tSupply = _tTotal;
if (rSupply < _rTotal / _tTotal) return _rTotal / _tTotal;
return rSupply / tSupply;
}
}

Contract ABI

[{"type":"constructor","stateMutability":"payable","inputs":[]},{"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":"AutoLiquify","inputs":[{"type":"uint256","name":"amountCurrency","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountTokens","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BalanceUpdate","inputs":[{"type":"address","name":"addr","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"DEAD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"reflect","internalType":"uint16"},{"type":"uint16","name":"burn","internalType":"uint16"},{"type":"uint16","name":"liquidity","internalType":"uint16"},{"type":"uint16","name":"treasury","internalType":"uint16"},{"type":"uint16","name":"team","internalType":"uint16"},{"type":"uint16","name":"charity","internalType":"uint16"},{"type":"uint16","name":"totalSwap","internalType":"uint16"}],"name":"_buyTaxes","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_checkIfAddressIfUniswapV2HOCPool","inputs":[{"type":"address","name":"addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"liquidity","internalType":"uint16"},{"type":"uint16","name":"total","internalType":"uint16"}],"name":"_ratios","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"reflect","internalType":"uint16"},{"type":"uint16","name":"burn","internalType":"uint16"},{"type":"uint16","name":"liquidity","internalType":"uint16"},{"type":"uint16","name":"treasury","internalType":"uint16"},{"type":"uint16","name":"team","internalType":"uint16"},{"type":"uint16","name":"charity","internalType":"uint16"},{"type":"uint16","name":"totalSwap","internalType":"uint16"}],"name":"_sellTaxes","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"holder","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":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"charityWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"contractSwapTimer","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteHocPoolKey","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"dexRouter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCirculatingSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMaxTX","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getOwner","inputs":[]},{"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":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromLimits","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"lpPair","inputs":[]},{"type":"function","stateMutability":"pure","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":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapThreshold","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"teamWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenFromReflection","inputs":[{"type":"uint256","name":"rAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","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":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"treasuryWallet","inputs":[]},{"type":"receive","stateMutability":"payable"}]
            

Contract Creation Code

0x608060405260006004556004600a620000199190620006ca565b6200002b9065050d5fcd3e006200078b565b6200003990600019620007c7565b6200004790600019620007ad565b6008556040805160e080820183526000808352602080840182905283850182905260608085018390526080808601849052606460a08088019190915260c0968701859052600980546a64000000000000000000006001600160701b0319918216179091558851968701895260c8808852603288870152878a0181905261015e94880194909452918601839052850184905293909401849052600a80549093166cc8000000c8015e00c8003200c817835584518086019095528385529390930191909152600b805463ffffffff191662c800c8179055600e91909155612710906200013490600490620006ca565b620001469065050d5fcd3e006200078b565b620001539060c86200078b565b6200015f91906200066a565b6010556008543360008181526001602052604081209290925581546001600160a01b0319161790556103ad461415620001c357600c80546001600160a01b03191673b4a7633d8932de086c9264d5eb39a8399d7c0e3a179055600a600e55620001c8565b600080fd5b600c60009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200021757600080fd5b505afa1580156200022c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000252919062000638565b6001600160a01b031663c9c65396600c60009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b815260040160206040518083038186803b158015620002af57600080fd5b505afa158015620002c4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002ea919062000638565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381600087803b1580156200033257600080fd5b505af115801562000347573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200036d919062000638565b600d80546001600160a01b0319166001600160a01b039283169081179091556000908152600360205260409020805460ff19166001179055600c54620003b9913391166000196200050e565b600c54620003d59030906001600160a01b03166000196200050e565b600160076000620003ee6000546001600160a01b031690565b6001600160a01b0316815260208101919091526040016000908120805460ff191692151592909217909155600190600690620004326000546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff199586161790553081526006909252812080548316600190811790915561dead9091527f1aecba4ebe7a4e0673e4891b2b092b2228e4322380b579fb494fad3da8586e228054909216179055620004ab3390565b6001600160a01b031660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef620004e56004600a620006ca565b620004f79065050d5fcd3e006200078b565b60405190815260200160405180910390a36200080a565b6001600160a01b038316620005745760405162461bcd60e51b815260206004820152602160248201527f45524332303a2053656e646572206973206e6f74207a65726f204164647265736044820152607360f81b60648201526084015b60405180910390fd5b6001600160a01b038216620005d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a205370656e646572206973206e6f74207a65726f204164647265604482015261737360f01b60648201526084016200056b565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000602082840312156200064b57600080fd5b81516001600160a01b03811681146200066357600080fd5b9392505050565b6000826200067c576200067c620007f4565b500490565b600181815b80851115620006c2578160001904821115620006a657620006a6620007de565b80851615620006b457918102915b93841c939080029062000686565b509250929050565b60006200066360ff841683600082620006e65750600162000785565b81620006f55750600062000785565b81600181146200070e5760028114620007195762000739565b600191505062000785565b60ff8411156200072d576200072d620007de565b50506001821b62000785565b5060208310610133831016604e8410600b84101617156200075e575081810a62000785565b6200076a838362000681565b8060001904821115620007815762000781620007de565b0290505b92915050565b6000816000190483118215151615620007a857620007a8620007de565b500290565b600082821015620007c257620007c2620007de565b500390565b600082620007d957620007d9620007f4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b611fc4806200081a6000396000f3fe6080604052600436106101d15760003560e01c806351d61537116100f7578063893d20e811610095578063c6831cd811610064578063c6831cd8146105ea578063cf84770614610643578063dd62ed3e14610683578063e4fcfd18146106c957600080fd5b8063893d20e8146105805780638da5cb5b1461058057806395d89b411461059e578063a9059cbb146105ca57600080fd5b80636ebd0078116100d15780636ebd00781461048657806370a082311461049b5780637b208769146104bb5780637b45d431146104e357600080fd5b806351d615371461040557806359927044146104255780635cce86cd1461044d57600080fd5b806328d225d41161016f578063313ce5671161013e578063313ce56714610368578063452ed4f1146103845780634626402b146103a45780634fbee193146103cc57600080fd5b806328d225d4146103075780632b112e491461031e5780632d838119146103335780632e8fa8211461035357600080fd5b80630758d924116101ab5780630758d92414610282578063095ea7b3146102a257806318160ddd146102d257806323b872dd146102e757600080fd5b806303fd2a45146101dd5780630445b6671461021057806306fdde031461023357600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101f361dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561021c57600080fd5b506102256106df565b604051908152602001610207565b34801561023f57600080fd5b5060408051808201909152601781527f486f63757320506f6375732046696e616e63652076326200000000000000000060208201525b6040516102079190611d06565b34801561028e57600080fd5b50600c546101f3906001600160a01b031681565b3480156102ae57600080fd5b506102c26102bd366004611c93565b610716565b6040519015158152602001610207565b3480156102de57600080fd5b5061022561072d565b3480156102f357600080fd5b506102c2610302366004611c52565b610775565b34801561031357600080fd5b5061031c6107ed565b005b34801561032a57600080fd5b50610225610899565b34801561033f57600080fd5b5061022561034e366004611cbf565b6108e0565b34801561035f57600080fd5b50610225610964565b34801561037457600080fd5b5060405160048152602001610207565b34801561039057600080fd5b50600d546101f3906001600160a01b031681565b3480156103b057600080fd5b506101f3734ca0483a4234bcad8fa64010b71086b344001af381565b3480156103d857600080fd5b506102c26103e7366004611bdf565b6001600160a01b031660009081526006602052604090205460ff1690565b34801561041157600080fd5b506102c2610420366004611bdf565b61098e565b34801561043157600080fd5b506101f373dc6085035e331d7289126fdd27bafd84fec5dc6781565b34801561045957600080fd5b506102c2610468366004611bdf565b6001600160a01b031660009081526007602052604090205460ff1690565b34801561049257600080fd5b50610225610adf565b3480156104a757600080fd5b506102256104b6366004611bdf565b610afa565b3480156104c757600080fd5b506101f3734bda64c2e135e9c4f813a7cf6241821a0e8a7d8d81565b3480156104ef57600080fd5b5060095461053c9061ffff808216916201000081048216916401000000008204811691600160301b8104821691600160401b8204811691600160501b8104821691600160601b9091041687565b6040805161ffff9889168152968816602088015294871694860194909452918516606085015284166080840152831660a083015290911660c082015260e001610207565b34801561058c57600080fd5b506000546001600160a01b03166101f3565b3480156105aa57600080fd5b50604080518082019091526003815262484f4360e81b6020820152610275565b3480156105d657600080fd5b506102c26105e5366004611c93565b610b1c565b3480156105f657600080fd5b50600a5461053c9061ffff808216916201000081048216916401000000008204811691600160301b8104821691600160401b8204811691600160501b8104821691600160601b9091041687565b34801561064f57600080fd5b50600b546106689061ffff808216916201000090041682565b6040805161ffff938416815292909116602083015201610207565b34801561068f57600080fd5b5061022561069e366004611c19565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b3480156106d557600080fd5b50610225600e5481565b6127106106ee6004600a611e49565b6106fe9065050d5fcd3e00611ef4565b610709906005611ef4565b6107139190611de4565b81565b6000610723338484610b33565b5060015b92915050565b600061073b6004600a611e49565b61074b9065050d5fcd3e00611ef4565b61075457600080fd5b6107606004600a611e49565b6107709065050d5fcd3e00611ef4565b905090565b6001600160a01b0383166000908152600560209081526040808320338452909152812054600019146107da576001600160a01b0384166000908152600560209081526040808320338452909152812080548492906107d4908490611f13565b90915550505b6107e5848484610c55565b949350505050565b6000546001600160a01b031633146108405760405162461bcd60e51b815260206004820152601160248201527021b0b63632b9101e979e9037bbb732b91760791b60448201526064015b60405180910390fd5b600080546001600160a01b0316815260066020526040808220805460ff1916905581546001600160a01b03191682555181907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3565b60006108a56000610afa565b6108b061dead610afa565b6108ba9190611dcc565b6108c66004600a611e49565b6108d69065050d5fcd3e00611ef4565b6107709190611f13565b60006008548211156109475760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610837565b6000610951610fde565b905061095d8184611de4565b9392505050565b6127106109736004600a611e49565b6109839065050d5fcd3e00611ef4565b61070990600a611ef4565b6000813b61099e57506000919050565b6000309050826001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156109dc57600080fd5b505afa925050508015610a0c575060408051601f3d908101601f19168201909252610a0991810190611bfc565b60015b610a195750600092915050565b816001600160a01b0316816001600160a01b03161415610a3d575060019392505050565b50826001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610a7757600080fd5b505afa925050508015610aa7575060408051601f3d908101601f19168201909252610aa491810190611bfc565b60015b610ab057610ad6565b816001600160a01b0316816001600160a01b03161415610ad4575060019392505050565b505b50600092915050565b6000610aed6004600a611e49565b6010546107709190611de4565b6001600160a01b038116600090815260016020526040812054610727906108e0565b6000610b29338484610c55565b5060019392505050565b6001600160a01b038316610b935760405162461bcd60e51b815260206004820152602160248201527f45524332303a2053656e646572206973206e6f74207a65726f204164647265736044820152607360f81b6064820152608401610837565b6001600160a01b038216610bf45760405162461bcd60e51b815260206004820152602260248201527f45524332303a205370656e646572206973206e6f74207a65726f204164647265604482015261737360f01b6064820152608401610837565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006001600160a01b038416610cbb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610837565b6001600160a01b038316610d1d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610837565b60008211610d7f5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610837565b6001600160a01b03841660009081526003602052604090205460ff1680610dbe57506001600160a01b03831660009081526003602052604090205460ff165b15610e6d576001600160a01b03841660009081526007602052604090205460ff16158015610e0557506001600160a01b03831660009081526007602052604090205460ff16155b15610e6d57601054821115610e6d5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610837565b6001600160a01b03841660009081526006602052604090205460019060ff1680610eaf57506001600160a01b03841660009081526006602052604090205460ff165b15610eb8575060005b6001600160a01b03841660009081526003602052604090205460ff1615610fc957600d54600160a01b900460ff16610fc95742600e54600f54610efb9190611dcc565b1015610fc9576000610f0c30610afa565b9050612710610f1d6004600a611e49565b610f2d9065050d5fcd3e00611ef4565b610f38906005611ef4565b610f429190611de4565b8110610fc757612710610f576004600a611e49565b610f679065050d5fcd3e00611ef4565b610f7290600a611ef4565b610f7c9190611de4565b8110610fb957612710610f916004600a611e49565b610fa19065050d5fcd3e00611ef4565b610fac90600a611ef4565b610fb69190611de4565b90505b610fc28161106d565b42600f555b505b610fd5858585846113b4565b95945050505050565b60085460009081610ff16004600a611e49565b6110019065050d5fcd3e00611ef4565b905061100f6004600a611e49565b61101f9065050d5fcd3e00611ef4565b60085461102c9190611de4565b8210156110635761103f6004600a611e49565b61104f9065050d5fcd3e00611ef4565b60085461105c9190611de4565b9250505090565b61105c8183611de4565b600d805460ff60a01b1916600160a01b17905560408051808201909152600b5461ffff80821683526201000090910416602082018190526110ae57506113a4565b306000908152600560209081526040808320600c546001600160a01b031684529091529020546000191461110757306000908152600560209081526040808320600c546001600160a01b03168452909152902060001990555b60006002826020015161ffff16836000015161ffff16856111289190611ef4565b6111329190611de4565b61113c9190611de4565b9050600061114a8285611f13565b6040805160028082526060820183529293506000929091602083019080368337019050509050308160008151811061118457611184611f40565b6001600160a01b03928316602091820292909201810191909152600c546040805163ef8ef56f60e01b81529051919093169263ef8ef56f926004808301939192829003018186803b1580156111d857600080fd5b505afa1580156111ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112109190611bfc565b8160018151811061122357611223611f40565b6001600160a01b039283166020918202929092010152600c5460405163791ac94760e01b815291169063791ac94790611269908590600090869030904290600401611d5b565b600060405180830381600087803b15801561128357600080fd5b505af1158015611297573d6000803e3d6000fd5b50479250600091508490506112ac8684611ef4565b6112b69190611de4565b9050841561139d57600c5460405163f305d71960e01b815230600482015260248101879052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b15801561132757600080fd5b505af115801561133b573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906113609190611cd8565b505060408051838152602081018890527f424db2872186fa7e7afa7a5e902ed3b49a2ef19c2f5431e672462495dd6b450692500160405180910390a15b5050505050505b50600d805460ff60a01b19169055565b6000806113c38686868661154c565b6101008101516001600160a01b0388166000908152600160205260409020549192506113ee91611f13565b6001600160a01b038088166000908152600160205260408082209390935560e0840151918816815291909120546114259190611dcc565b6001600160a01b038616600090815260016020526040902055610120810151151580611455575060008160200151115b1561147757806101200151600860008282546114719190611f13565b90915550505b846001600160a01b0316866001600160a01b0316600080516020611f6f83398151915283600001516040516114ae91815260200190565b60405180910390a3856001600160a01b03167f163aa6d2d8e5248ce93dbd22509af93e5f27f8e0edc15c9e26f2867c593e08706114ea88610afa565b60405190815260200160405180910390a2846001600160a01b03167f163aa6d2d8e5248ce93dbd22509af93e5f27f8e0edc15c9e26f2867c593e087061152f87610afa565b60405190815260200160405180910390a250600195945050505050565b611554611b85565b61155c611b85565b611564610fde565b61014082018190526115769085611ef4565b610100820152821561174d57600080808080806127106115958c61098e565b156115e057600a5461ffff8082169850600160601b82048116975062010000820481169650600160501b820481169550600160401b820481169450600160301b909104169150611630565b6115e98d61098e565b156116305760095461ffff8082169850600160601b82048116975062010000820481169650600160501b820481169550600160401b820481169450600160301b9091041691505b8061163b888d611ef4565b6116459190611de4565b602089015280611655878d611ef4565b61165f9190611de4565b60408901528061166f868d611ef4565b6116799190611de4565b606089015280611689858d611ef4565b6116939190611de4565b6080890152806116a3848d611ef4565b6116ad9190611de4565b60a0890152806116bd838d611ef4565b6116c79190611de4565b60c0890181905260a089015160808a015160608b015160408c015160208d01516116f19190611dcc565b6116fb9190611dcc565b6117059190611dcc565b61170f9190611dcc565b6117199190611dcc565b611723908c611f13565b8852610140880151602089015161173a9190611ef4565b6101208901525061178395505050505050565b60006020820181905260408201819052606082018190526080820181905260a0820181905260c082018190528482526101208201525b6040810151156117fa5780610140015181604001516117a29190611ef4565b30600090815260016020526040812080549091906117c1908490611dcc565b9091555050604081810151905190815230906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b6060810151156118925780610140015181606001516118199190611ef4565b61dead600090815260016020527fb34209a263f6c38fe55f099e9e70f9d67e93982480ff3234a5e0108028ad164d8054909190611857908490611dcc565b9091555050606081015160405190815261dead906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b60808101511561194e5780610140015181608001516118b19190611ef4565b734bda64c2e135e9c4f813a7cf6241821a0e8a7d8d600090815260016020527f58e9ebd5d97a5d53c5880a5ac94c68273c969527b75f9c83db0bb0ef043d3d678054909190611901908490611dcc565b90915550506080810151604051908152734bda64c2e135e9c4f813a7cf6241821a0e8a7d8d906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b60a081015115611a0a578061014001518160a0015161196d9190611ef4565b73dc6085035e331d7289126fdd27bafd84fec5dc67600090815260016020527f0e4a30bfb4d59a85826a91dabf9d55c84a9b02869ee60967801a6fdcf61a37e580549091906119bd908490611dcc565b909155505060a081015160405190815273dc6085035e331d7289126fdd27bafd84fec5dc67906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b60c081015115611ac6578061014001518160c00151611a299190611ef4565b734ca0483a4234bcad8fa64010b71086b344001af3600090815260016020527f21c9d57c6d3b6dc7833381a8859003a120721a73a6f75cbe13ad0365c49f8d658054909190611a79908490611dcc565b909155505060c0810151604051908152734ca0483a4234bcad8fa64010b71086b344001af3906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b8061014001518160c00151611adb9190611ef4565b8161014001518260a00151611af09190611ef4565b8261014001518360800151611b059190611ef4565b8361014001518460600151611b1a9190611ef4565b8461014001518560400151611b2f9190611ef4565b856101200151611b3f9190611dcc565b611b499190611dcc565b611b539190611dcc565b611b5d9190611dcc565b611b679190611dcc565b816101000151611b779190611f13565b60e082015295945050505050565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600060208284031215611bf157600080fd5b813561095d81611f56565b600060208284031215611c0e57600080fd5b815161095d81611f56565b60008060408385031215611c2c57600080fd5b8235611c3781611f56565b91506020830135611c4781611f56565b809150509250929050565b600080600060608486031215611c6757600080fd5b8335611c7281611f56565b92506020840135611c8281611f56565b929592945050506040919091013590565b60008060408385031215611ca657600080fd5b8235611cb181611f56565b946020939093013593505050565b600060208284031215611cd157600080fd5b5035919050565b600080600060608486031215611ced57600080fd5b8351925060208401519150604084015190509250925092565b600060208083528351808285015260005b81811015611d3357858101830151858201604001528201611d17565b81811115611d45576000604083870101525b50601f01601f1916929092016040019392505050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611dab5784516001600160a01b031683529383019391830191600101611d86565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115611ddf57611ddf611f2a565b500190565b600082611e0157634e487b7160e01b600052601260045260246000fd5b500490565b600181815b80851115611e41578160001904821115611e2757611e27611f2a565b80851615611e3457918102915b93841c9390800290611e0b565b509250929050565b600061095d60ff841683600082611e6257506001610727565b81611e6f57506000610727565b8160018114611e855760028114611e8f57611eab565b6001915050610727565b60ff841115611ea057611ea0611f2a565b50506001821b610727565b5060208310610133831016604e8410600b8410161715611ece575081810a610727565b611ed88383611e06565b8060001904821115611eec57611eec611f2a565b029392505050565b6000816000190483118215151615611f0e57611f0e611f2a565b500290565b600082821015611f2557611f25611f2a565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114611f6b57600080fd5b5056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205675b59f9ddcbda61dfc077aa56d14ba955a55772e0b86794cb5c04e1e0df21e64736f6c63430008070033

Deployed ByteCode

0x6080604052600436106101d15760003560e01c806351d61537116100f7578063893d20e811610095578063c6831cd811610064578063c6831cd8146105ea578063cf84770614610643578063dd62ed3e14610683578063e4fcfd18146106c957600080fd5b8063893d20e8146105805780638da5cb5b1461058057806395d89b411461059e578063a9059cbb146105ca57600080fd5b80636ebd0078116100d15780636ebd00781461048657806370a082311461049b5780637b208769146104bb5780637b45d431146104e357600080fd5b806351d615371461040557806359927044146104255780635cce86cd1461044d57600080fd5b806328d225d41161016f578063313ce5671161013e578063313ce56714610368578063452ed4f1146103845780634626402b146103a45780634fbee193146103cc57600080fd5b806328d225d4146103075780632b112e491461031e5780632d838119146103335780632e8fa8211461035357600080fd5b80630758d924116101ab5780630758d92414610282578063095ea7b3146102a257806318160ddd146102d257806323b872dd146102e757600080fd5b806303fd2a45146101dd5780630445b6671461021057806306fdde031461023357600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101f361dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561021c57600080fd5b506102256106df565b604051908152602001610207565b34801561023f57600080fd5b5060408051808201909152601781527f486f63757320506f6375732046696e616e63652076326200000000000000000060208201525b6040516102079190611d06565b34801561028e57600080fd5b50600c546101f3906001600160a01b031681565b3480156102ae57600080fd5b506102c26102bd366004611c93565b610716565b6040519015158152602001610207565b3480156102de57600080fd5b5061022561072d565b3480156102f357600080fd5b506102c2610302366004611c52565b610775565b34801561031357600080fd5b5061031c6107ed565b005b34801561032a57600080fd5b50610225610899565b34801561033f57600080fd5b5061022561034e366004611cbf565b6108e0565b34801561035f57600080fd5b50610225610964565b34801561037457600080fd5b5060405160048152602001610207565b34801561039057600080fd5b50600d546101f3906001600160a01b031681565b3480156103b057600080fd5b506101f3734ca0483a4234bcad8fa64010b71086b344001af381565b3480156103d857600080fd5b506102c26103e7366004611bdf565b6001600160a01b031660009081526006602052604090205460ff1690565b34801561041157600080fd5b506102c2610420366004611bdf565b61098e565b34801561043157600080fd5b506101f373dc6085035e331d7289126fdd27bafd84fec5dc6781565b34801561045957600080fd5b506102c2610468366004611bdf565b6001600160a01b031660009081526007602052604090205460ff1690565b34801561049257600080fd5b50610225610adf565b3480156104a757600080fd5b506102256104b6366004611bdf565b610afa565b3480156104c757600080fd5b506101f3734bda64c2e135e9c4f813a7cf6241821a0e8a7d8d81565b3480156104ef57600080fd5b5060095461053c9061ffff808216916201000081048216916401000000008204811691600160301b8104821691600160401b8204811691600160501b8104821691600160601b9091041687565b6040805161ffff9889168152968816602088015294871694860194909452918516606085015284166080840152831660a083015290911660c082015260e001610207565b34801561058c57600080fd5b506000546001600160a01b03166101f3565b3480156105aa57600080fd5b50604080518082019091526003815262484f4360e81b6020820152610275565b3480156105d657600080fd5b506102c26105e5366004611c93565b610b1c565b3480156105f657600080fd5b50600a5461053c9061ffff808216916201000081048216916401000000008204811691600160301b8104821691600160401b8204811691600160501b8104821691600160601b9091041687565b34801561064f57600080fd5b50600b546106689061ffff808216916201000090041682565b6040805161ffff938416815292909116602083015201610207565b34801561068f57600080fd5b5061022561069e366004611c19565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b3480156106d557600080fd5b50610225600e5481565b6127106106ee6004600a611e49565b6106fe9065050d5fcd3e00611ef4565b610709906005611ef4565b6107139190611de4565b81565b6000610723338484610b33565b5060015b92915050565b600061073b6004600a611e49565b61074b9065050d5fcd3e00611ef4565b61075457600080fd5b6107606004600a611e49565b6107709065050d5fcd3e00611ef4565b905090565b6001600160a01b0383166000908152600560209081526040808320338452909152812054600019146107da576001600160a01b0384166000908152600560209081526040808320338452909152812080548492906107d4908490611f13565b90915550505b6107e5848484610c55565b949350505050565b6000546001600160a01b031633146108405760405162461bcd60e51b815260206004820152601160248201527021b0b63632b9101e979e9037bbb732b91760791b60448201526064015b60405180910390fd5b600080546001600160a01b0316815260066020526040808220805460ff1916905581546001600160a01b03191682555181907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3565b60006108a56000610afa565b6108b061dead610afa565b6108ba9190611dcc565b6108c66004600a611e49565b6108d69065050d5fcd3e00611ef4565b6107709190611f13565b60006008548211156109475760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610837565b6000610951610fde565b905061095d8184611de4565b9392505050565b6127106109736004600a611e49565b6109839065050d5fcd3e00611ef4565b61070990600a611ef4565b6000813b61099e57506000919050565b6000309050826001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156109dc57600080fd5b505afa925050508015610a0c575060408051601f3d908101601f19168201909252610a0991810190611bfc565b60015b610a195750600092915050565b816001600160a01b0316816001600160a01b03161415610a3d575060019392505050565b50826001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015610a7757600080fd5b505afa925050508015610aa7575060408051601f3d908101601f19168201909252610aa491810190611bfc565b60015b610ab057610ad6565b816001600160a01b0316816001600160a01b03161415610ad4575060019392505050565b505b50600092915050565b6000610aed6004600a611e49565b6010546107709190611de4565b6001600160a01b038116600090815260016020526040812054610727906108e0565b6000610b29338484610c55565b5060019392505050565b6001600160a01b038316610b935760405162461bcd60e51b815260206004820152602160248201527f45524332303a2053656e646572206973206e6f74207a65726f204164647265736044820152607360f81b6064820152608401610837565b6001600160a01b038216610bf45760405162461bcd60e51b815260206004820152602260248201527f45524332303a205370656e646572206973206e6f74207a65726f204164647265604482015261737360f01b6064820152608401610837565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006001600160a01b038416610cbb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610837565b6001600160a01b038316610d1d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610837565b60008211610d7f5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610837565b6001600160a01b03841660009081526003602052604090205460ff1680610dbe57506001600160a01b03831660009081526003602052604090205460ff165b15610e6d576001600160a01b03841660009081526007602052604090205460ff16158015610e0557506001600160a01b03831660009081526007602052604090205460ff16155b15610e6d57601054821115610e6d5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610837565b6001600160a01b03841660009081526006602052604090205460019060ff1680610eaf57506001600160a01b03841660009081526006602052604090205460ff165b15610eb8575060005b6001600160a01b03841660009081526003602052604090205460ff1615610fc957600d54600160a01b900460ff16610fc95742600e54600f54610efb9190611dcc565b1015610fc9576000610f0c30610afa565b9050612710610f1d6004600a611e49565b610f2d9065050d5fcd3e00611ef4565b610f38906005611ef4565b610f429190611de4565b8110610fc757612710610f576004600a611e49565b610f679065050d5fcd3e00611ef4565b610f7290600a611ef4565b610f7c9190611de4565b8110610fb957612710610f916004600a611e49565b610fa19065050d5fcd3e00611ef4565b610fac90600a611ef4565b610fb69190611de4565b90505b610fc28161106d565b42600f555b505b610fd5858585846113b4565b95945050505050565b60085460009081610ff16004600a611e49565b6110019065050d5fcd3e00611ef4565b905061100f6004600a611e49565b61101f9065050d5fcd3e00611ef4565b60085461102c9190611de4565b8210156110635761103f6004600a611e49565b61104f9065050d5fcd3e00611ef4565b60085461105c9190611de4565b9250505090565b61105c8183611de4565b600d805460ff60a01b1916600160a01b17905560408051808201909152600b5461ffff80821683526201000090910416602082018190526110ae57506113a4565b306000908152600560209081526040808320600c546001600160a01b031684529091529020546000191461110757306000908152600560209081526040808320600c546001600160a01b03168452909152902060001990555b60006002826020015161ffff16836000015161ffff16856111289190611ef4565b6111329190611de4565b61113c9190611de4565b9050600061114a8285611f13565b6040805160028082526060820183529293506000929091602083019080368337019050509050308160008151811061118457611184611f40565b6001600160a01b03928316602091820292909201810191909152600c546040805163ef8ef56f60e01b81529051919093169263ef8ef56f926004808301939192829003018186803b1580156111d857600080fd5b505afa1580156111ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112109190611bfc565b8160018151811061122357611223611f40565b6001600160a01b039283166020918202929092010152600c5460405163791ac94760e01b815291169063791ac94790611269908590600090869030904290600401611d5b565b600060405180830381600087803b15801561128357600080fd5b505af1158015611297573d6000803e3d6000fd5b50479250600091508490506112ac8684611ef4565b6112b69190611de4565b9050841561139d57600c5460405163f305d71960e01b815230600482015260248101879052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b15801561132757600080fd5b505af115801561133b573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906113609190611cd8565b505060408051838152602081018890527f424db2872186fa7e7afa7a5e902ed3b49a2ef19c2f5431e672462495dd6b450692500160405180910390a15b5050505050505b50600d805460ff60a01b19169055565b6000806113c38686868661154c565b6101008101516001600160a01b0388166000908152600160205260409020549192506113ee91611f13565b6001600160a01b038088166000908152600160205260408082209390935560e0840151918816815291909120546114259190611dcc565b6001600160a01b038616600090815260016020526040902055610120810151151580611455575060008160200151115b1561147757806101200151600860008282546114719190611f13565b90915550505b846001600160a01b0316866001600160a01b0316600080516020611f6f83398151915283600001516040516114ae91815260200190565b60405180910390a3856001600160a01b03167f163aa6d2d8e5248ce93dbd22509af93e5f27f8e0edc15c9e26f2867c593e08706114ea88610afa565b60405190815260200160405180910390a2846001600160a01b03167f163aa6d2d8e5248ce93dbd22509af93e5f27f8e0edc15c9e26f2867c593e087061152f87610afa565b60405190815260200160405180910390a250600195945050505050565b611554611b85565b61155c611b85565b611564610fde565b61014082018190526115769085611ef4565b610100820152821561174d57600080808080806127106115958c61098e565b156115e057600a5461ffff8082169850600160601b82048116975062010000820481169650600160501b820481169550600160401b820481169450600160301b909104169150611630565b6115e98d61098e565b156116305760095461ffff8082169850600160601b82048116975062010000820481169650600160501b820481169550600160401b820481169450600160301b9091041691505b8061163b888d611ef4565b6116459190611de4565b602089015280611655878d611ef4565b61165f9190611de4565b60408901528061166f868d611ef4565b6116799190611de4565b606089015280611689858d611ef4565b6116939190611de4565b6080890152806116a3848d611ef4565b6116ad9190611de4565b60a0890152806116bd838d611ef4565b6116c79190611de4565b60c0890181905260a089015160808a015160608b015160408c015160208d01516116f19190611dcc565b6116fb9190611dcc565b6117059190611dcc565b61170f9190611dcc565b6117199190611dcc565b611723908c611f13565b8852610140880151602089015161173a9190611ef4565b6101208901525061178395505050505050565b60006020820181905260408201819052606082018190526080820181905260a0820181905260c082018190528482526101208201525b6040810151156117fa5780610140015181604001516117a29190611ef4565b30600090815260016020526040812080549091906117c1908490611dcc565b9091555050604081810151905190815230906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b6060810151156118925780610140015181606001516118199190611ef4565b61dead600090815260016020527fb34209a263f6c38fe55f099e9e70f9d67e93982480ff3234a5e0108028ad164d8054909190611857908490611dcc565b9091555050606081015160405190815261dead906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b60808101511561194e5780610140015181608001516118b19190611ef4565b734bda64c2e135e9c4f813a7cf6241821a0e8a7d8d600090815260016020527f58e9ebd5d97a5d53c5880a5ac94c68273c969527b75f9c83db0bb0ef043d3d678054909190611901908490611dcc565b90915550506080810151604051908152734bda64c2e135e9c4f813a7cf6241821a0e8a7d8d906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b60a081015115611a0a578061014001518160a0015161196d9190611ef4565b73dc6085035e331d7289126fdd27bafd84fec5dc67600090815260016020527f0e4a30bfb4d59a85826a91dabf9d55c84a9b02869ee60967801a6fdcf61a37e580549091906119bd908490611dcc565b909155505060a081015160405190815273dc6085035e331d7289126fdd27bafd84fec5dc67906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b60c081015115611ac6578061014001518160c00151611a299190611ef4565b734ca0483a4234bcad8fa64010b71086b344001af3600090815260016020527f21c9d57c6d3b6dc7833381a8859003a120721a73a6f75cbe13ad0365c49f8d658054909190611a79908490611dcc565b909155505060c0810151604051908152734ca0483a4234bcad8fa64010b71086b344001af3906001600160a01b03881690600080516020611f6f8339815191529060200160405180910390a35b8061014001518160c00151611adb9190611ef4565b8161014001518260a00151611af09190611ef4565b8261014001518360800151611b059190611ef4565b8361014001518460600151611b1a9190611ef4565b8461014001518560400151611b2f9190611ef4565b856101200151611b3f9190611dcc565b611b499190611dcc565b611b539190611dcc565b611b5d9190611dcc565b611b679190611dcc565b816101000151611b779190611f13565b60e082015295945050505050565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600060208284031215611bf157600080fd5b813561095d81611f56565b600060208284031215611c0e57600080fd5b815161095d81611f56565b60008060408385031215611c2c57600080fd5b8235611c3781611f56565b91506020830135611c4781611f56565b809150509250929050565b600080600060608486031215611c6757600080fd5b8335611c7281611f56565b92506020840135611c8281611f56565b929592945050506040919091013590565b60008060408385031215611ca657600080fd5b8235611cb181611f56565b946020939093013593505050565b600060208284031215611cd157600080fd5b5035919050565b600080600060608486031215611ced57600080fd5b8351925060208401519150604084015190509250925092565b600060208083528351808285015260005b81811015611d3357858101830151858201604001528201611d17565b81811115611d45576000604083870101525b50601f01601f1916929092016040019392505050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611dab5784516001600160a01b031683529383019391830191600101611d86565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115611ddf57611ddf611f2a565b500190565b600082611e0157634e487b7160e01b600052601260045260246000fd5b500490565b600181815b80851115611e41578160001904821115611e2757611e27611f2a565b80851615611e3457918102915b93841c9390800290611e0b565b509250929050565b600061095d60ff841683600082611e6257506001610727565b81611e6f57506000610727565b8160018114611e855760028114611e8f57611eab565b6001915050610727565b60ff841115611ea057611ea0611f2a565b50506001821b610727565b5060208310610133831016604e8410600b8410161715611ece575081810a610727565b611ed88383611e06565b8060001904821115611eec57611eec611f2a565b029392505050565b6000816000190483118215151615611f0e57611f0e611f2a565b500290565b600082821015611f2557611f25611f2a565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114611f6b57600080fd5b5056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205675b59f9ddcbda61dfc077aa56d14ba955a55772e0b86794cb5c04e1e0df21e64736f6c63430008070033