ERC-20
Overview
Max Total Supply
0.000048748879528034 daoSTO
Holders
3
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FAANGVault
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT" pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../../libs/BaseRelayRecipient.sol"; import "../../interfaces/IUniswapV2Router02.sol"; interface IStrategy { function deposit(uint _amount, IERC20 _token) external; function getTotalValueInPool() external view returns (uint256); function withdraw(uint256 amount, address token) external; function withdrawAllFunds(IERC20 _token) external; function yield() external ; } contract FAANGVault is ERC20("DAO Vault Stonks", "daoSTO"), Ownable, BaseRelayRecipient{ using SafeERC20 for IERC20; using SafeMath for uint256; IERC20 public constant USDT = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7); IERC20 public constant USDC = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); IERC20 public constant DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F); IUniswapV2Router02 public constant Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); IStrategy public strategy; mapping(address => uint256)public depositedAmount; address public treasuryWallet; address public admin; address public pendingStrategy; address public communityWallet; address public strategist; uint256 public unlockTime; uint256 public constant LOCKTIME = 2 days; uint256 public fee = 20; //20% uint256 usdcPercInVault = 5; //5% uint256 daiPercInVault = 5 ; //5% uint256 usdtPercInVault = 5; //5% uint256[] public networkFeeTier2 = [50000*1e18+1, 100000*1e18]; uint256 public customNetworkFeeTier = 1000000*1e18; uint256[] public networkFeePerc = [100, 75, 50]; uint256 public customNetworkFeePerc = 25; uint256 public profitSharingFeePerc = 2000; bool public canSetPendingStrategy = true; bool public isEmergency; IERC20 tokenWithdrawnInEmergency; event Deposit(address indexed from, address indexed token, uint amount, uint sharesMinted); event Withdraw(address indexed from, address indexed token, uint amount, uint sharesBurned); event migrateFunds(address indexed newStrategy, uint amount); event SetAdmin(address oldAdmin, address newAdmin); event SetTreasuryWallet(address oldTreasury, address newTreasury); event SetPendingStrategy(address newStrategy); event UnlockMigrateFunds(uint unlockTime); event EmergencyWithdraw(address admin); event SetBiconomy(address biconomy); event SetCommunityWallet(address oldCommunityWallet, address newcommunityWallet); event SetStrategistWallet(address oldStrategistWallet, address newStrategistWallet); event SetWithdrawlFee(uint fee); constructor(address _treasuryWallet, address _admin, address _strategy, address _biconomy, address _communityWallet, address _strategist) { admin = _admin; treasuryWallet = _treasuryWallet; strategy = IStrategy(_strategy); trustedForwarder = _biconomy; communityWallet = _communityWallet; strategist = _strategist; DAI.safeApprove(_strategy, type(uint).max); USDC.safeApprove(_strategy, type(uint).max); USDT.safeApprove(_strategy, type(uint).max); DAI.safeApprove(address(Router), type(uint).max); USDC.safeApprove(address(Router), type(uint).max); USDT.safeApprove(address(Router), type(uint).max); } modifier onlyEOA { require(msg.sender == tx.origin, "Only EOA"); _; } modifier onlyAdmin() { require(msg.sender == admin, "Only Admin"); _; } function _msgSender() internal override(Context, BaseRelayRecipient) view returns (address payable) { return BaseRelayRecipient._msgSender(); } function versionRecipient() external pure override returns (string memory) { return "1"; } function setPendingStrategy(address _strategy) external onlyOwner{ require(_strategy != address(0), "Invalid address"); require(canSetPendingStrategy, "Cannot set new strategy"); pendingStrategy = _strategy; emit SetPendingStrategy(_strategy); } function setAmountToKeepInVaultPerc(uint _daiPercentage, uint _usdcPercentage, uint usdtPercentage) external onlyAdmin{ usdcPercInVault = _usdcPercentage; daiPercInVault = _daiPercentage; usdtPercInVault = usdtPercentage; } function setAdmin(address _newAdmin) external onlyOwner{ require(_newAdmin != address(0), "ZERO_ADDRESS"); address oldAdmin = admin; admin = _newAdmin; emit SetAdmin(oldAdmin, _newAdmin); } function setTreasuryWallet(address _newTreasury) external onlyOwner { require(_newTreasury != address(0), "ZERO_ADDRESS"); address oldTreasury = treasuryWallet; treasuryWallet = _newTreasury; emit SetTreasuryWallet(oldTreasury, _newTreasury); } function setCommunityWallet(address _newCommunityWallet) external onlyOwner { require(_newCommunityWallet != address(0), "ZERO_ADDRESS"); address oldCommunityWallet = communityWallet; communityWallet = _newCommunityWallet; emit SetCommunityWallet(oldCommunityWallet, _newCommunityWallet); } function setStrategistWallet(address _strategist) external onlyOwner { require(msg.sender == owner() || msg.sender == strategist, "Only owner or strategist"); require(_strategist != address(0), "ZERO_ADDRESS"); address oldStrategistWallet = strategist; strategist = _strategist; emit SetStrategistWallet(oldStrategistWallet, _strategist); } function setWithdrawalFee(uint _fee) external onlyOwner{ fee = _fee; emit SetWithdrawlFee(_fee); } function setBiconomy(address _biconomy) external onlyOwner { trustedForwarder = _biconomy; emit SetBiconomy(_biconomy); } function deposit(uint256 _amount, IERC20 _token) external { require(msg.sender == tx.origin || isTrustedForwarder(msg.sender), "Only EOA or Biconomy"); require(isEmergency == false, "Cannot call when in emergencyMode"); require(_amount > 0, "Invalid amount"); uint256 shares; address _sender = _msgSender(); if (_token == DAI) { (uint amountAfterFee, uint _fee) = _calcNetworkFee(_amount); shares = totalSupply() == 0 ? amountAfterFee : amountAfterFee.mul(totalSupply()).div(getTotalValueInPool()); DAI.safeTransferFrom(_sender, address(this), _amount); uint _treasuryFee = _fee.mul(2).div(5); // 40% DAI.safeTransfer(treasuryWallet, _treasuryFee); DAI.safeTransfer(communityWallet, _treasuryFee); DAI.safeTransfer(strategist, _fee.sub(_treasuryFee).sub(_treasuryFee)); depositedAmount[_sender] = depositedAmount[_sender].add(amountAfterFee); } else if (_token == USDC) { // uint _amountMagnified = _amount.mul(1e12); (uint amountAfterFee, uint _fee) = _calcNetworkFee(_amount.mul(1e12)); shares = totalSupply() == 0 ? amountAfterFee : amountAfterFee.mul(totalSupply()).div( getTotalValueInPool()); USDC.safeTransferFrom(_sender, address(this), _amount); uint feeReduced = _fee.div(1e12); uint _treasuryFee = feeReduced.mul(2).div(5); // 40% USDC.safeTransfer(treasuryWallet, _treasuryFee); USDC.safeTransfer(communityWallet, _treasuryFee); USDC.safeTransfer(strategist, feeReduced.sub(_treasuryFee).sub(_treasuryFee)); depositedAmount[_sender] = depositedAmount[_sender].add(amountAfterFee); } else if (_token == USDT) { (uint amountAfterFee, uint _fee) = _calcNetworkFee(_amount.mul(1e12)); shares = totalSupply() == 0 ? amountAfterFee : amountAfterFee.mul(totalSupply()).div(getTotalValueInPool()); USDT.safeTransferFrom(_sender, address(this), _amount); uint feeReduced = _fee.div(1e12); uint _treasuryFee = feeReduced.mul(2).div(5); // 40% USDC.safeTransfer(treasuryWallet, _treasuryFee); USDC.safeTransfer(communityWallet, _treasuryFee); USDC.safeTransfer(strategist, feeReduced.sub(_treasuryFee).sub(_treasuryFee)); depositedAmount[_sender] = depositedAmount[_sender].add(amountAfterFee); } else { revert("Invalid deposit Token"); } _mint(_sender, shares); emit Deposit(_sender, address(_token), _amount, shares); } function withdraw(uint256 _shares, IERC20 _token) external onlyEOA { require(_token == DAI || _token == USDC || _token == USDT, "Invalid token"); require(_shares > 0, "Invalid amount"); uint256 _totalShares = balanceOf(msg.sender); require(_totalShares >= _shares, "Insuffient funds"); uint256 amountDeposited = depositedAmount[msg.sender].mul(_shares).div(_totalShares); depositedAmount[msg.sender] = depositedAmount[msg.sender].sub(amountDeposited); uint256 amountToWithdraw = getTotalValueInPool().mul(_shares).div(totalSupply()); uint balanceInContract = _token == DAI ? _token.balanceOf(address(this)) : _token.balanceOf(address(this)).mul(1e12); if(balanceInContract < amountToWithdraw) { if(isEmergency == true && _token != tokenWithdrawnInEmergency) { //value in strategy is zero during emergency //balanceInContract is less means emergencyWithdraw() was called with a different token. //so convert to user's token address[] memory path = new address[](2); path[0] = address(tokenWithdrawnInEmergency); path[1] = address(_token); //using amountToWithdraw as first parameter because, in normal case `amountToWithdraw` is removed from the contract. Router.swapExactTokensForTokens(_token == DAI ? amountToWithdraw.sub(balanceInContract) : amountToWithdraw.sub(balanceInContract).div(1e12), 0, path, address(this), block.timestamp); } if(isEmergency == false) { strategy.withdraw(amountToWithdraw.sub(balanceInContract), address(_token)); } } if (amountToWithdraw > amountDeposited) { uint256 _profit = amountToWithdraw.sub(amountDeposited); uint256 _feeTotal = _profit.mul(fee).div(100); //20% fee amountToWithdraw = amountToWithdraw.sub(_feeTotal); if(_token != DAI) { uint _feeReduced = _feeTotal.div(1e12); uint _fee = _feeReduced.mul(2).div(5); _token.safeTransfer(treasuryWallet, _fee); _token.safeTransfer(communityWallet, _fee); _token.safeTransfer(strategist, _feeReduced.sub(_fee).sub(_fee)); } else { uint _fee = _feeTotal.mul(2).div(5); _token.safeTransfer(treasuryWallet, _fee); _token.safeTransfer(treasuryWallet, _fee); _token.safeTransfer(treasuryWallet, _feeTotal.sub(_fee).sub(_fee)); } } if(_token != DAI) { amountToWithdraw = amountToWithdraw.div(1e12); } _burn(msg.sender, _shares); balanceInContract = _token.balanceOf(address(this)); amountToWithdraw = amountToWithdraw > balanceInContract ? balanceInContract : amountToWithdraw; _token.safeTransfer(msg.sender, amountToWithdraw); emit Withdraw(msg.sender, address(_token), amountToWithdraw, _shares); } /** @notice harvests from farms */ function yield() external onlyAdmin { require(isEmergency == false, "Cannot call when in emergencyMode"); strategy.yield(); } /** @notice Move funds to strategy and add to farms */ function invest() external onlyAdmin { require(isEmergency == false, "Cannot call when in emergencyMode"); uint daiBalance = DAI.balanceOf(address(this)); uint ValueInPool = getTotalValueInPool(); if(daiBalance > 0) { uint daiAmountToKeep = ValueInPool.mul(daiPercInVault).div(100); if(daiBalance > daiAmountToKeep) { strategy.deposit(daiBalance.sub(daiAmountToKeep), DAI); } } uint usdcBalance = USDC.balanceOf(address(this)); if(usdcBalance > 0) { uint usdcAmountToKeep = ValueInPool.mul(usdcPercInVault).div(100).div(1e12); if(usdcBalance > usdcAmountToKeep) { strategy.deposit(usdcBalance.sub(usdcAmountToKeep), USDC); } } uint usdtBalance = USDT.balanceOf(address(this)); if(usdtBalance > 0) { uint usdtAmountToKeep = ValueInPool.mul(usdtPercInVault).div(100).div(1e12); if(usdtBalance > usdtAmountToKeep) { strategy.deposit(usdtBalance.sub(usdtAmountToKeep), USDT); } } } /** @notice This function reinvests the funds withdrawn during emergency to same strategy */ function reInvest() external onlyAdmin { isEmergency = false; uint daiBalance = DAI.balanceOf(address(this)); uint ValueInPool = getTotalValueInPool(); if(daiBalance > 0) { uint daiAmountToKeep = ValueInPool.mul(daiPercInVault).div(100); if(daiBalance > daiAmountToKeep) { strategy.deposit(daiBalance.sub(daiAmountToKeep), DAI); } } uint usdcBalance = USDC.balanceOf(address(this)); if(usdcBalance > 0) { uint usdcAmountToKeep = ValueInPool.mul(usdcPercInVault).div(100).div(1e12); if(usdcBalance > usdcAmountToKeep) { strategy.deposit(usdcBalance.sub(usdcAmountToKeep), USDC); } } uint usdtBalance = USDT.balanceOf(address(this)); if(usdtBalance > 0) { uint usdtAmountToKeep = ValueInPool.mul(usdtPercInVault).div(100).div(1e12); if(usdtBalance > usdtAmountToKeep) { strategy.deposit(usdtBalance.sub(usdtAmountToKeep), USDT); } } } function migrateFund(IERC20 _token) external onlyOwner{ require(unlockTime <= block.timestamp && unlockTime.add(1 days) >= block.timestamp, "Function locked"); require(_token == DAI || _token == USDC || _token == USDT, "Invalid token"); require(isEmergency == false, "Cannot call when in emergencyMode"); uint balanceBefore = _token.balanceOf(address(this)); strategy.withdrawAllFunds(_token); uint balanceAfter = _token.balanceOf(address(this)); strategy = IStrategy(pendingStrategy); DAI.safeApprove(pendingStrategy, type(uint).max); USDC.safeApprove(pendingStrategy, type(uint).max); USDT.safeApprove(pendingStrategy, type(uint).max); //deposit only the withdrawn amount to new strategy strategy.deposit(balanceAfter.sub(balanceBefore), _token); canSetPendingStrategy = true; emit migrateFunds(pendingStrategy, balanceAfter.sub(balanceBefore)); } function unlockMigrateFunds() external onlyOwner{ unlockTime = block.timestamp.add(LOCKTIME); canSetPendingStrategy = false; emit UnlockMigrateFunds(unlockTime); } function emergencyWithdraw(IERC20 _token) external onlyAdmin { require(_token == DAI || _token == USDC || _token == USDT, "Invalid token"); strategy.withdrawAllFunds(_token); isEmergency = true; tokenWithdrawnInEmergency = _token; emit EmergencyWithdraw(admin); } function _calcNetworkFee(uint _amount) internal view returns (uint _amountAfterFee, uint _fee) { uint256 _networkFeePerc; if (_amount < networkFeeTier2[0]) { // Tier 1 _networkFeePerc = networkFeePerc[0]; } else if (_amount <= networkFeeTier2[1]) { // Tier 2 _networkFeePerc = networkFeePerc[1]; } else if (_amount < customNetworkFeeTier) { // Tier 3 _networkFeePerc = networkFeePerc[2]; } else { // Custom Tier _networkFeePerc = customNetworkFeePerc; } _fee = _amount.mul(_networkFeePerc).div(10000); _amountAfterFee = _amount.sub(_fee); } function getTotalValueInPool() public view returns (uint) { return strategy.getTotalValueInPool().add(DAI.balanceOf(address(this))) .add(USDC.balanceOf(address(this)).mul(1e12)) .add(USDT.balanceOf(address(this)).mul(1e12)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.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 guidelines: functions revert instead * of 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 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _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); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` 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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @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 to 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 { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/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 SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier:MIT pragma solidity 0.7.6; import "../interfaces/IRelayRecipient.sol"; /** * A base contract to be inherited by any contract that want to receive relayed transactions * A subclass must use "_msgSender()" instead of "msg.sender" */ abstract contract BaseRelayRecipient is IRelayRecipient { /* * Forwarder singleton we accept calls from */ address public trustedForwarder; /* * require a function to be called through GSN only */ modifier trustedForwarderOnly() { require(msg.sender == address(trustedForwarder), "Function can only be called through the trusted Forwarder"); _; } function isTrustedForwarder(address forwarder) public override view returns(bool) { return forwarder == trustedForwarder; } /** * return the sender of this call. * if the call came through our trusted forwarder, return the original sender. * otherwise, return `msg.sender`. * should be used in the contract anywhere instead of msg.sender */ function _msgSender() internal override virtual view returns (address payable ret) { if (msg.data.length >= 24 && isTrustedForwarder(msg.sender)) { // At this point we know that the sender is a trusted forwarder, // so we trust that the last bytes of msg.data are the verified sender address. // extract sender address from the end of msg.data assembly { ret := shr(96,calldataload(sub(calldatasize(),20))) } } else { return msg.sender; } } }
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.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier:MIT pragma solidity 0.7.6; /** * a contract must implement this interface in order to support relayed transaction. * It is better to inherit the BaseRelayRecipient as its implementation. */ abstract contract IRelayRecipient { /** * return if the forwarder is trusted to forward relayed transactions to us. * the forwarder is required to verify the sender's signature, and verify * the call is not a replay. */ function isTrustedForwarder(address forwarder) public virtual view returns(bool); /** * return the sender of this call. * if the call came through our trusted forwarder, then the real sender is appended as the last 20 bytes * of the msg.data. * otherwise, return `msg.sender` * should be used in the contract anywhere instead of msg.sender */ function _msgSender() internal virtual view returns (address payable); function versionRecipient() external virtual view returns (string memory); }
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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_biconomy","type":"address"},{"internalType":"address","name":"_communityWallet","type":"address"},{"internalType":"address","name":"_strategist","type":"address"}],"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesMinted","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"SetAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"biconomy","type":"address"}],"name":"SetBiconomy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldCommunityWallet","type":"address"},{"indexed":false,"internalType":"address","name":"newcommunityWallet","type":"address"}],"name":"SetCommunityWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newStrategy","type":"address"}],"name":"SetPendingStrategy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldStrategistWallet","type":"address"},{"indexed":false,"internalType":"address","name":"newStrategistWallet","type":"address"}],"name":"SetStrategistWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"SetTreasuryWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"SetWithdrawlFee","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"}],"name":"UnlockMigrateFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesBurned","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newStrategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrateFunds","type":"event"},{"inputs":[],"name":"DAI","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCKTIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"canSetPendingStrategy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customNetworkFeePerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customNetworkFeeTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"_amount","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalValueInPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"invest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isEmergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"migrateFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"networkFeePerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"networkFeeTier2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"profitSharingFeePerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reInvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_daiPercentage","type":"uint256"},{"internalType":"uint256","name":"_usdcPercentage","type":"uint256"},{"internalType":"uint256","name":"usdtPercentage","type":"uint256"}],"name":"setAmountToKeepInVaultPerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_biconomy","type":"address"}],"name":"setBiconomy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newCommunityWallet","type":"address"}],"name":"setCommunityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"setPendingStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategistWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"setTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"contract IStrategy","name":"","type":"address"}],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockMigrateFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"versionRecipient","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yield","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6014600f5560056010819055601181905560125560c0604052690a968163f0a57b400001608090815269152d02c7e14af680000060a0526200004690601390600262000815565b5069d3c21bcecceda10000006014556040805160608101825260648152604b60208201526032918101919091526200008390601590600362000870565b5060196016556107d06017556018805460ff19166001179055348015620000a957600080fd5b5060405162004ce338038062004ce3833981810160405260c0811015620000cf57600080fd5b5080516020808301516040808501516060860151608087015160a09097015183518085018552601081526f44414f205661756c742053746f6e6b7360801b8188019081528551808701909652600686526564616f53544f60d01b978601979097528051979895979396929594919390926200014e9160039190620008b3565b50805162000164906004906020840190620008b3565b50506005805460ff19166012179055506000620001806200039a565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600a80546001600160a01b03199081166001600160a01b0388811691909117909255600980548216898416179055600780548216878416179055600680548216868416179055600c80548216858416179055600d805490911691831691909117905562000267736b175474e89094c44da98b954eedeac495271d0f85600019620003b7602090811b6200349117901c565b6200029673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4885600019620003b7602090811b6200349117901c565b620002c573dac17f958d2ee523a2206206994597c13d831ec785600019620003b7602090811b6200349117901c565b62000308736b175474e89094c44da98b954eedeac495271d0f737a250d5630b4cf539739df2c5dacb4c659f2488d600019620003b7602090811b6200349117901c565b6200034b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48737a250d5630b4cf539739df2c5dacb4c659f2488d600019620003b7602090811b6200349117901c565b6200038e73dac17f958d2ee523a2206206994597c13d831ec7737a250d5630b4cf539739df2c5dacb4c659f2488d600019620003b7602090811b6200349117901c565b5050505050506200094d565b6000620003b1620004db60201b620035db1760201c565b90505b90565b80158062000441575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200041157600080fd5b505afa15801562000426573d6000803e3d6000fd5b505050506040513d60208110156200043d57600080fd5b5051155b6200047e5760405162461bcd60e51b815260040180806020018281038252603681526020018062004cad6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620004d69185916200051316565b505050565b600060183610801590620004f55750620004f533620005cf565b156200050b575060131936013560601c620003b4565b5033620003b4565b60006200056f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620005e360201b6200360d179092919060201c565b805190915015620004d6578080602001905160208110156200059057600080fd5b5051620004d65760405162461bcd60e51b815260040180806020018281038252602a81526020018062004c83602a913960400191505060405180910390fd5b6006546001600160a01b0390811691161490565b6060620005f48484600085620005fe565b90505b9392505050565b606082471015620006415760405162461bcd60e51b815260040180806020018281038252602681526020018062004c5d6026913960400191505060405180910390fd5b6200064c8562000765565b6200069e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310620006de5780518252601f199092019160209182019101620006bd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000742576040519150601f19603f3d011682016040523d82523d6000602084013e62000747565b606091505b5090925090506200075a8282866200076b565b979650505050505050565b3b151590565b606083156200077c575081620005f7565b8251156200078d5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620007d9578181015183820152602001620007bf565b50505050905090810190601f168015620008075780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b8280548282559060005260206000209081019282156200085e579160200282015b828111156200085e57825182906001600160501b031690559160200191906001019062000836565b506200086c92915062000936565b5090565b8280548282559060005260206000209081019282156200085e579160200282015b828111156200085e578251829060ff1690559160200191906001019062000891565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620008eb57600085556200085e565b82601f106200090657805160ff19168380011785556200085e565b828001600101855582156200085e579182015b828111156200085e57825182559160200191906001019062000919565b5b808211156200086c576000815560010162000937565b614300806200095d6000396000f3fe608060405234801561001057600080fd5b506004361061036c5760003560e01c8063715018a6116101d3578063c54e44eb11610104578063e5ec14d4116100a2578063f2fde38b1161007c578063f2fde38b146108ae578063f6d7eade146108d4578063f851a440146108dc578063f99bab24146108e45761036c565b8063e5ec14d414610863578063e8b5e51f14610880578063ec09742d146108885761036c565b8063ce25aa79116100de578063ce25aa791461081d578063dd62ed3e14610825578063ddca3f4314610853578063e0bab4c41461085b5761036c565b8063c54e44eb14610805578063c75748391461080d578063c8ecaf30146108155761036c565b80639367b30e11610171578063a8602fea1161014b578063a8602fea1461078e578063a8c62e76146107b4578063a9059cbb146107bc578063ac1e5025146107e85761036c565b80639367b30e1461075257806395d89b411461075a578063a457c2d7146107625761036c565b8063854ab6df116101ad578063854ab6df1461071457806385d6bb811461071c57806389a30271146107425780638da5cb5b1461074a5761036c565b8063715018a6146106fc57806378fe08d5146107045780637da0a8771461070c5761036c565b806328593984116102ad57806350be99ad1161024b5780636e553f65116102255780636e553f651461065e5780636ff1c9bc1461068a578063704b6c02146106b057806370a08231146106d65761036c565b806350be99ad14610628578063572b6c05146106305780635f9e8f82146106565761036c565b80634626402b116102875780634626402b146105ea578063465fc5d2146105f2578063486ff0cd146105fa5780634a4643f7146106025761036c565b80632859398414610598578063313ce567146105a057806339509351146105be5761036c565b80631a8f0c0a1161031a57806323b872dd116102f457806323b872dd1461052c578063242c8e6914610562578063251c1aa31461056a57806325418772146105725761036c565b80631a8f0c0a146104c55780631fe4a686146104eb578063238b15981461050f5761036c565b80630c2265771161034b5780630c2265771461045c5780630d8b76a81461048557806318160ddd146104ab5761036c565b8062f714ce1461037157806306fdde031461039f578063095ea7b31461041c575b600080fd5b61039d6004803603604081101561038757600080fd5b50803590602001356001600160a01b03166108ec565b005b6103a76111f8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103e15781810151838201526020016103c9565b50505050905090810190601f16801561040e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104486004803603604081101561043257600080fd5b506001600160a01b03813516906020013561128f565b604080519115158252519081900360200190f35b61039d6004803603606081101561047257600080fd5b50803590602081013590604001356112ad565b61039d6004803603602081101561049b57600080fd5b50356001600160a01b031661130a565b6104b36113c0565b60408051918252519081900360200190f35b61039d600480360360208110156104db57600080fd5b50356001600160a01b03166113c6565b6104f361152e565b604080516001600160a01b039092168252519081900360200190f35b6104b36004803603602081101561052557600080fd5b503561153d565b6104486004803603606081101561054257600080fd5b506001600160a01b0381358116916020810135909116906040013561155e565b6104b36115e6565b6104b36115ed565b61039d6004803603602081101561058857600080fd5b50356001600160a01b03166115f3565b61039d611a92565b6105a8611b8f565b6040805160ff9092168252519081900360200190f35b610448600480360360408110156105d457600080fd5b506001600160a01b038135169060200135611b98565b6104f3611be6565b6104f3611bf5565b6103a7611c04565b6104b36004803603602081101561061857600080fd5b50356001600160a01b0316611c3b565b61039d611c4d565b6104486004803603602081101561064657600080fd5b50356001600160a01b0316612087565b61044861209b565b61039d6004803603604081101561067457600080fd5b50803590602001356001600160a01b03166120a9565b61039d600480360360208110156106a057600080fd5b50356001600160a01b03166125dc565b61039d600480360360208110156106c657600080fd5b50356001600160a01b03166127c5565b6104b3600480360360208110156106ec57600080fd5b50356001600160a01b03166128d4565b61039d6128ef565b6104b36129ae565b6104f36129b4565b6104486129c3565b61039d6004803603602081101561073257600080fd5b50356001600160a01b03166129cc565b6104f3612adb565b6104f3612af3565b6104b3612b07565b6103a7612b0d565b6104486004803603604081101561077857600080fd5b506001600160a01b038135169060200135612b6e565b61039d600480360360208110156107a457600080fd5b50356001600160a01b0316612bd6565b6104f3612ce5565b610448600480360360408110156107d257600080fd5b506001600160a01b038135169060200135612cf4565b61039d600480360360208110156107fe57600080fd5b5035612d08565b6104f3612da5565b6104f3612dbd565b6104b3612dcc565b6104b3612fc5565b6104b36004803603604081101561083b57600080fd5b506001600160a01b0381358116916020013516612fcb565b6104b3612ff6565b6104f3612ffc565b6104b36004803603602081101561087957600080fd5b5035613014565b61039d613024565b61039d6004803603602081101561089e57600080fd5b50356001600160a01b031661310c565b61039d600480360360208110156108c457600080fd5b50356001600160a01b031661329d565b6104f36133b8565b6104f36133d0565b61039d6133df565b333214610940576040805162461bcd60e51b815260206004820152600860248201527f4f6e6c7920454f41000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116736b175474e89094c44da98b954eedeac495271d0f148061098757506001600160a01b03811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48145b806109ae57506001600160a01b03811673dac17f958d2ee523a2206206994597c13d831ec7145b6109ef576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b604482015290519081900360640190fd5b60008211610a44576040805162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015290519081900360640190fd5b6000610a4f336128d4565b905082811015610aa6576040805162461bcd60e51b815260206004820152601060248201527f496e7375666669656e742066756e647300000000000000000000000000000000604482015290519081900360640190fd5b33600090815260086020526040812054610acc908390610ac69087613624565b9061367d565b33600090815260086020526040902054909150610ae990826136e4565b33600090815260086020526040812091909155610b19610b076113c0565b610ac687610b13612dcc565b90613624565b905060006001600160a01b038516736b175474e89094c44da98b954eedeac495271d0f14610bce57610bc964e8d4a51000866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b9757600080fd5b505afa158015610bab573d6000803e3d6000fd5b505050506040513d6020811015610bc157600080fd5b505190613624565b610c41565b604080516370a0823160e01b815230600482015290516001600160a01b038716916370a08231916024808301926020929190829003018186803b158015610c1457600080fd5b505afa158015610c28573d6000803e3d6000fd5b505050506040513d6020811015610c3e57600080fd5b50515b905081811015610f565760185460ff6101009091041615156001148015610c7c57506018546001600160a01b03868116620100009092041614155b15610ecd57604080516002808252606082018352600092602083019080368337019050509050601860029054906101000a90046001600160a01b031681600081518110610cc557fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508581600181518110610cf357fe5b6001600160a01b039283166020918202929092010152737a250d5630b4cf539739df2c5dacb4c659f2488d906338ed1739908816736b175474e89094c44da98b954eedeac495271d0f14610d5957610d5464e8d4a51000610ac687876136e4565b610d63565b610d6385856136e4565b60008430426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610dd8578181015183820152602001610dc0565b505050509050019650505050505050600060405180830381600087803b158015610e0157600080fd5b505af1158015610e15573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610e3e57600080fd5b8101908080516040519392919084640100000000821115610e5e57600080fd5b908301906020820185811115610e7357600080fd5b8251866020820283011164010000000082111715610e9057600080fd5b82525081516020918201928201910280838360005b83811015610ebd578181015183820152602001610ea5565b5050505090500160405250505050505b601854610100900460ff16610f56576007546001600160a01b031662f714ce610ef684846136e4565b876040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015610f3d57600080fd5b505af1158015610f51573d6000803e3d6000fd5b505050505b828211156110cf576000610f6a83856136e4565b90506000610f886064610ac6600f548561362490919063ffffffff16565b9050610f9484826136e4565b93506001600160a01b038716736b175474e89094c44da98b954eedeac495271d0f14611052576000610fcb8264e8d4a5100061367d565b90506000610fdf6005610ac6846002613624565b600954909150610ffc906001600160a01b038b8116911683613741565b600c54611016906001600160a01b038b8116911683613741565b600d5461104b906001600160a01b031661103a8361103486826136e4565b906136e4565b6001600160a01b038c169190613741565b50506110cc565b60006110646005610ac6846002613624565b600954909150611081906001600160a01b038a8116911683613741565b60095461109b906001600160a01b038a8116911683613741565b6009546110ca906001600160a01b03166110b98361103486826136e4565b6001600160a01b038b169190613741565b505b50505b6001600160a01b038516736b175474e89094c44da98b954eedeac495271d0f14611105576111028264e8d4a5100061367d565b91505b61110f33876137ac565b604080516370a0823160e01b815230600482015290516001600160a01b038716916370a08231916024808301926020929190829003018186803b15801561115557600080fd5b505afa158015611169573d6000803e3d6000fd5b505050506040513d602081101561117f57600080fd5b505190508082116111905781611192565b805b91506111a86001600160a01b0386163384613741565b604080518381526020810188905281516001600160a01b0388169233927ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567929081900390910190a3505050505050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156112845780601f1061125957610100808354040283529160200191611284565b820191906000526020600020905b81548152906001019060200180831161126757829003601f168201915b505050505090505b90565b60006112a361129c6138a8565b84846138b2565b5060015b92915050565b600a546001600160a01b031633146112f9576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b601091909155601191909155601255565b6113126138a8565b6001600160a01b0316611323612af3565b6001600160a01b03161461136c576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b600680546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fbd83a64c8b36dd6255edf98e81aab9e70343df51463f4a125c5b2ab882bc404e9181900360200190a150565b60025490565b6113ce6138a8565b6001600160a01b03166113df612af3565b6001600160a01b031614611428576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116611483576040805162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60185460ff166114da576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420736574206e6577207374726174656779000000000000000000604482015290519081900360640190fd5b600b80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f2e92d71287661afbffa7b2606ab5cd0c4298416dd6309a764c1684a235ed02179181900360200190a150565b600d546001600160a01b031681565b6015818154811061154d57600080fd5b600091825260209091200154905081565b600061156b84848461399e565b6115db846115776138a8565b6115d685604051806060016040528060288152602001614173602891396001600160a01b038a166000908152600160205260408120906115b56138a8565b6001600160a01b031681526020810191909152604001600020549190613af9565b6138b2565b5060015b9392505050565b6202a30081565b600e5481565b6115fb6138a8565b6001600160a01b031661160c612af3565b6001600160a01b031614611655576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b42600e54111580156116775750600e5442906116749062015180613b90565b10155b6116c8576040805162461bcd60e51b815260206004820152600f60248201527f46756e6374696f6e206c6f636b65640000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116736b175474e89094c44da98b954eedeac495271d0f148061170f57506001600160a01b03811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48145b8061173657506001600160a01b03811673dac17f958d2ee523a2206206994597c13d831ec7145b611777576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b604482015290519081900360640190fd5b601854610100900460ff16156117be5760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d602081101561183757600080fd5b5051600754604080516332dee40b60e01b81526001600160a01b03868116600483015291519394509116916332dee40b9160248082019260009290919082900301818387803b15801561188957600080fd5b505af115801561189d573d6000803e3d6000fd5b505050506000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118f057600080fd5b505afa158015611904573d6000803e3d6000fd5b505050506040513d602081101561191a57600080fd5b5051600b54600780546001600160a01b0319166001600160a01b03909216918217905590915061196290736b175474e89094c44da98b954eedeac495271d0f90600019613491565b600b546119909073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906001600160a01b0316600019613491565b600b546119be9073dac17f958d2ee523a2206206994597c13d831ec7906001600160a01b0316600019613491565b6007546001600160a01b0316636e553f656119d983856136e4565b856040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015611a2057600080fd5b505af1158015611a34573d6000803e3d6000fd5b50506018805460ff191660011790555050600b546001600160a01b03167fa9c117f7b6846ef96df18c788b663977460b17797467b5d2b4af658b32bf993f611a7c83856136e4565b60408051918252519081900360200190a2505050565b600a546001600160a01b03163314611ade576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b601854610100900460ff1615611b255760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663285939846040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611b7557600080fd5b505af1158015611b89573d6000803e3d6000fd5b50505050565b60055460ff1690565b60006112a3611ba56138a8565b846115d68560016000611bb66138a8565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490613b90565b6009546001600160a01b031681565b600b546001600160a01b031681565b60408051808201909152600181527f3100000000000000000000000000000000000000000000000000000000000000602082015290565b60086020526000908152604090205481565b600a546001600160a01b03163314611c99576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b6018805461ff0019169055604080516370a0823160e01b81523060048201529051600091736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015611cf957600080fd5b505afa158015611d0d573d6000803e3d6000fd5b505050506040513d6020811015611d2357600080fd5b505190506000611d31612dcc565b90508115611df0576000611d556064610ac66011548561362490919063ffffffff16565b905080831115611dee576007546001600160a01b0316636e553f65611d7a85846136e4565b736b175474e89094c44da98b954eedeac495271d0f6040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015611dd557600080fd5b505af1158015611de9573d6000803e3d6000fd5b505050505b505b604080516370a0823160e01b8152306004820152905160009173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48916370a0823191602480820192602092909190829003018186803b158015611e4557600080fd5b505afa158015611e59573d6000803e3d6000fd5b505050506040513d6020811015611e6f57600080fd5b505190508015611f39576000611e9e64e8d4a51000610ac66064610ac66010548861362490919063ffffffff16565b905080821115611f37576007546001600160a01b0316636e553f65611ec384846136e4565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015611f1e57600080fd5b505af1158015611f32573d6000803e3d6000fd5b505050505b505b604080516370a0823160e01b8152306004820152905160009173dac17f958d2ee523a2206206994597c13d831ec7916370a0823191602480820192602092909190829003018186803b158015611f8e57600080fd5b505afa158015611fa2573d6000803e3d6000fd5b505050506040513d6020811015611fb857600080fd5b505190508015611b89576000611fe764e8d4a51000610ac66064610ac66012548961362490919063ffffffff16565b905080821115612080576007546001600160a01b0316636e553f6561200c84846136e4565b73dac17f958d2ee523a2206206994597c13d831ec76040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561206757600080fd5b505af115801561207b573d6000803e3d6000fd5b505050505b5050505050565b6006546001600160a01b0390811691161490565b601854610100900460ff1681565b333214806120bb57506120bb33612087565b61210c576040805162461bcd60e51b815260206004820152601460248201527f4f6e6c7920454f41206f72204269636f6e6f6d79000000000000000000000000604482015290519081900360640190fd5b601854610100900460ff16156121535760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b600082116121a8576040805162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015290519081900360640190fd5b6000806121b36138a8565b90506001600160a01b038316736b175474e89094c44da98b954eedeac495271d0f1415612329576000806121e686613bea565b915091506121f26113c0565b1561221957612214612202612dcc565b610ac661220d6113c0565b8590613624565b61221b565b815b935061223d736b175474e89094c44da98b954eedeac495271d0f843089613c9d565b600061224f6005610ac6846002613624565b60095490915061227e90736b175474e89094c44da98b954eedeac495271d0f906001600160a01b031683613741565b600c546122aa90736b175474e89094c44da98b954eedeac495271d0f906001600160a01b031683613741565b600d546122e4906001600160a01b03166122c88361103486826136e4565b736b175474e89094c44da98b954eedeac495271d0f9190613741565b6001600160a01b0384166000908152600860205260409020546123079084613b90565b6001600160a01b03851660009081526008602052604090205550612579915050565b6001600160a01b03831673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4814156124ad576000806123686123638764e8d4a51000613624565b613bea565b915091506123746113c0565b1561238957612384612202612dcc565b61238b565b815b93506123ad73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48843089613c9d565b60006123be8264e8d4a5100061367d565b905060006123d26005610ac6846002613624565b6009549091506124019073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906001600160a01b031683613741565b600c5461242d9073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906001600160a01b031683613741565b600d54612467906001600160a01b031661244b8361103486826136e4565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489190613741565b6001600160a01b03851660009081526008602052604090205461248a9085613b90565b6001600160a01b0386166000908152600860205260409020555061257992505050565b6001600160a01b03831673dac17f958d2ee523a2206206994597c13d831ec7141561252c576000806124e76123638764e8d4a51000613624565b915091506124f36113c0565b1561250857612503612202612dcc565b61250a565b815b93506123ad73dac17f958d2ee523a2206206994597c13d831ec7843089613c9d565b6040805162461bcd60e51b815260206004820152601560248201527f496e76616c6964206465706f73697420546f6b656e0000000000000000000000604482015290519081900360640190fd5b6125838183613d10565b826001600160a01b0316816001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78685604051808381526020018281526020019250505060405180910390a350505050565b600a546001600160a01b03163314612628576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b038116736b175474e89094c44da98b954eedeac495271d0f148061266f57506001600160a01b03811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48145b8061269657506001600160a01b03811673dac17f958d2ee523a2206206994597c13d831ec7145b6126d7576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b604482015290519081900360640190fd5b600754604080516332dee40b60e01b81526001600160a01b038481166004830152915191909216916332dee40b91602480830192600092919082900301818387803b15801561272557600080fd5b505af1158015612739573d6000803e3d6000fd5b5050601880546001600160a01b0380861662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff61ff0019909316610100179290921691909117909155600a546040805191909216815290517f5e7b34819cd91b239220bec92fcfd3c10da2214ba13e4e2b1f6c9cfdbd68a9a29350908190036020019150a150565b6127cd6138a8565b6001600160a01b03166127de612af3565b6001600160a01b031614612827576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116612871576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f848ac24ab84501710d6631faab117b66b79aba7ec6f7778cf3bcff428c1a4efc929181900390910190a15050565b6001600160a01b031660009081526020819052604090205490565b6128f76138a8565b6001600160a01b0316612908612af3565b6001600160a01b031614612951576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36005805474ffffffffffffffffffffffffffffffffffffffff0019169055565b60165481565b6006546001600160a01b031681565b60185460ff1681565b6129d46138a8565b6001600160a01b03166129e5612af3565b6001600160a01b031614612a2e576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116612a78576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600c80546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f7c2cfb870a55cea02043717c09aa9837391f1bc8eedb1dbd1a6c1a3ea5232e0a929181900390910190a15050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b60055461010090046001600160a01b031690565b60175481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156112845780601f1061125957610100808354040283529160200191611284565b60006112a3612b7b6138a8565b846115d6856040518060600160405280602581526020016142a66025913960016000612ba56138a8565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190613af9565b612bde6138a8565b6001600160a01b0316612bef612af3565b6001600160a01b031614612c38576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116612c82576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517febcecb9db04071cf4b4ecc1e2e1e4603e74c9382d6e36c3531f0b62af4c78ed7929181900390910190a15050565b6007546001600160a01b031681565b60006112a3612d016138a8565b848461399e565b612d106138a8565b6001600160a01b0316612d21612af3565b6001600160a01b031614612d6a576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b600f8190556040805182815290517f6c862c95209ac13de6ba58fa7963e5fb78b569dce070efa64c8f0d86d5cc7c249181900360200190a150565b73dac17f958d2ee523a2206206994597c13d831ec781565b600c546001600160a01b031681565b6000612fc0612e3b64e8d4a5100073dac17f958d2ee523a2206206994597c13d831ec76001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b9757600080fd5b612fba612ea864e8d4a5100073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b9757600080fd5b604080516370a0823160e01b81523060048201529051612fba91736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015612efe57600080fd5b505afa158015612f12573d6000803e3d6000fd5b505050506040513d6020811015612f2857600080fd5b5051600754604080517fc8ecaf3000000000000000000000000000000000000000000000000000000000815290516001600160a01b039092169163c8ecaf3091600480820192602092909190829003018186803b158015612f8857600080fd5b505afa158015612f9c573d6000803e3d6000fd5b505050506040513d6020811015612fb257600080fd5b505190613b90565b90613b90565b905090565b60145481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600f5481565b736b175474e89094c44da98b954eedeac495271d0f81565b6013818154811061154d57600080fd5b600a546001600160a01b03163314613070576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b601854610100900460ff16156130b75760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b604080516370a0823160e01b81523060048201529051600091736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015611cf957600080fd5b6131146138a8565b6001600160a01b0316613125612af3565b6001600160a01b03161461316e576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b613176612af3565b6001600160a01b0316336001600160a01b0316148061319f5750600d546001600160a01b031633145b6131f0576040805162461bcd60e51b815260206004820152601860248201527f4f6e6c79206f776e6572206f7220737472617465676973740000000000000000604482015290519081900360640190fd5b6001600160a01b03811661323a576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600d80546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f2535c9dd3f3fd17150d4e30e0c6f7a750497f21431ccbff950ca77042cc77286929181900390910190a15050565b6132a56138a8565b6001600160a01b03166132b6612af3565b6001600160a01b0316146132ff576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b0381166133445760405162461bcd60e51b81526004018080602001828103825260268152602001806140be6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b600a546001600160a01b031681565b6133e76138a8565b6001600160a01b03166133f8612af3565b6001600160a01b031614613441576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b61344e426202a300613b90565b600e8190556018805460ff1916905560408051918252517fff76cf14f454ffa693b9eedc298fb8c0f71d59d16a1df3e1489a8c0a41922efc9181900360200190a1565b8015806135305750604080517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561350257600080fd5b505afa158015613516573d6000803e3d6000fd5b505050506040513d602081101561352c57600080fd5b5051155b61356b5760405162461bcd60e51b81526004018080602001828103825260368152602001806142706036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03167f095ea7b3000000000000000000000000000000000000000000000000000000001790526135d6908490613e00565b505050565b6000601836108015906135f257506135f233612087565b15613606575060131936013560601c61128c565b503361128c565b606061361c8484600085613eb1565b949350505050565b600082613633575060006112a7565b8282028284828161364057fe5b04146115df5760405162461bcd60e51b81526004018080602001828103825260218152602001806141526021913960400191505060405180910390fd5b60008082116136d3576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816136dc57fe5b049392505050565b60008282111561373b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03167fa9059cbb000000000000000000000000000000000000000000000000000000001790526135d6908490613e00565b6001600160a01b0382166137f15760405162461bcd60e51b81526004018080602001828103825260218152602001806141bb6021913960400191505060405180910390fd5b6137fd826000836135d6565b61383a8160405180606001604052806022815260200161409c602291396001600160a01b0385166000908152602081905260409020549190613af9565b6001600160a01b03831660009081526020819052604090205560025461386090826136e4565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000612fc06135db565b6001600160a01b0383166138f75760405162461bcd60e51b81526004018080602001828103825260248152602001806142226024913960400191505060405180910390fd5b6001600160a01b03821661393c5760405162461bcd60e51b81526004018080602001828103825260228152602001806140e46022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166139e35760405162461bcd60e51b81526004018080602001828103825260258152602001806141dc6025913960400191505060405180910390fd5b6001600160a01b038216613a285760405162461bcd60e51b81526004018080602001828103825260238152602001806140796023913960400191505060405180910390fd5b613a338383836135d6565b613a7081604051806060016040528060268152602001614106602691396001600160a01b0386166000908152602081905260409020549190613af9565b6001600160a01b038085166000908152602081905260408082209390935590841681522054613a9f9082613b90565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115613b885760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613b4d578181015183820152602001613b35565b50505050905090810190601f168015613b7a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156115df576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006013600081548110613bfd57fe5b9060005260206000200154841015613c2f576015600081548110613c1d57fe5b90600052602060002001549050613c79565b6013600181548110613c3d57fe5b90600052602060002001548411613c5c576015600181548110613c1d57fe5b601454841015613c74576015600281548110613c1d57fe5b506016545b613c89612710610ac68684613624565b9150613c9584836136e4565b925050915091565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03167f23b872dd00000000000000000000000000000000000000000000000000000000179052611b89908590613e00565b6001600160a01b038216613d6b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b613d77600083836135d6565b600254613d849082613b90565b6002556001600160a01b038216600090815260208190526040902054613daa9082613b90565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000613e55826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661360d9092919063ffffffff16565b8051909150156135d657808060200190516020811015613e7457600080fd5b50516135d65760405162461bcd60e51b815260040180806020018281038252602a815260200180614246602a913960400191505060405180910390fd5b606082471015613ef25760405162461bcd60e51b815260040180806020018281038252602681526020018061412c6026913960400191505060405180910390fd5b613efb8561400c565b613f4c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310613f8a5780518252601f199092019160209182019101613f6b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fec576040519150601f19603f3d011682016040523d82523d6000602084013e613ff1565b606091505b5091509150614001828286614012565b979650505050505050565b3b151590565b606083156140215750816115df565b8251156140315782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315613b4d578181015183820152602001613b3556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737343616e6e6f742063616c6c207768656e20696e20656d657267656e63794d6f646545524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a4ef13455e2e3cc8e365a1989e8b7d13b716fc54853878c77f3dbb0451fc219364736f6c63430007060033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb485920000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b990000000000000000000000007f1cffb0e0a7351a72ef53cb51796221e2bac3a500000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d000000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe934
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061036c5760003560e01c8063715018a6116101d3578063c54e44eb11610104578063e5ec14d4116100a2578063f2fde38b1161007c578063f2fde38b146108ae578063f6d7eade146108d4578063f851a440146108dc578063f99bab24146108e45761036c565b8063e5ec14d414610863578063e8b5e51f14610880578063ec09742d146108885761036c565b8063ce25aa79116100de578063ce25aa791461081d578063dd62ed3e14610825578063ddca3f4314610853578063e0bab4c41461085b5761036c565b8063c54e44eb14610805578063c75748391461080d578063c8ecaf30146108155761036c565b80639367b30e11610171578063a8602fea1161014b578063a8602fea1461078e578063a8c62e76146107b4578063a9059cbb146107bc578063ac1e5025146107e85761036c565b80639367b30e1461075257806395d89b411461075a578063a457c2d7146107625761036c565b8063854ab6df116101ad578063854ab6df1461071457806385d6bb811461071c57806389a30271146107425780638da5cb5b1461074a5761036c565b8063715018a6146106fc57806378fe08d5146107045780637da0a8771461070c5761036c565b806328593984116102ad57806350be99ad1161024b5780636e553f65116102255780636e553f651461065e5780636ff1c9bc1461068a578063704b6c02146106b057806370a08231146106d65761036c565b806350be99ad14610628578063572b6c05146106305780635f9e8f82146106565761036c565b80634626402b116102875780634626402b146105ea578063465fc5d2146105f2578063486ff0cd146105fa5780634a4643f7146106025761036c565b80632859398414610598578063313ce567146105a057806339509351146105be5761036c565b80631a8f0c0a1161031a57806323b872dd116102f457806323b872dd1461052c578063242c8e6914610562578063251c1aa31461056a57806325418772146105725761036c565b80631a8f0c0a146104c55780631fe4a686146104eb578063238b15981461050f5761036c565b80630c2265771161034b5780630c2265771461045c5780630d8b76a81461048557806318160ddd146104ab5761036c565b8062f714ce1461037157806306fdde031461039f578063095ea7b31461041c575b600080fd5b61039d6004803603604081101561038757600080fd5b50803590602001356001600160a01b03166108ec565b005b6103a76111f8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103e15781810151838201526020016103c9565b50505050905090810190601f16801561040e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104486004803603604081101561043257600080fd5b506001600160a01b03813516906020013561128f565b604080519115158252519081900360200190f35b61039d6004803603606081101561047257600080fd5b50803590602081013590604001356112ad565b61039d6004803603602081101561049b57600080fd5b50356001600160a01b031661130a565b6104b36113c0565b60408051918252519081900360200190f35b61039d600480360360208110156104db57600080fd5b50356001600160a01b03166113c6565b6104f361152e565b604080516001600160a01b039092168252519081900360200190f35b6104b36004803603602081101561052557600080fd5b503561153d565b6104486004803603606081101561054257600080fd5b506001600160a01b0381358116916020810135909116906040013561155e565b6104b36115e6565b6104b36115ed565b61039d6004803603602081101561058857600080fd5b50356001600160a01b03166115f3565b61039d611a92565b6105a8611b8f565b6040805160ff9092168252519081900360200190f35b610448600480360360408110156105d457600080fd5b506001600160a01b038135169060200135611b98565b6104f3611be6565b6104f3611bf5565b6103a7611c04565b6104b36004803603602081101561061857600080fd5b50356001600160a01b0316611c3b565b61039d611c4d565b6104486004803603602081101561064657600080fd5b50356001600160a01b0316612087565b61044861209b565b61039d6004803603604081101561067457600080fd5b50803590602001356001600160a01b03166120a9565b61039d600480360360208110156106a057600080fd5b50356001600160a01b03166125dc565b61039d600480360360208110156106c657600080fd5b50356001600160a01b03166127c5565b6104b3600480360360208110156106ec57600080fd5b50356001600160a01b03166128d4565b61039d6128ef565b6104b36129ae565b6104f36129b4565b6104486129c3565b61039d6004803603602081101561073257600080fd5b50356001600160a01b03166129cc565b6104f3612adb565b6104f3612af3565b6104b3612b07565b6103a7612b0d565b6104486004803603604081101561077857600080fd5b506001600160a01b038135169060200135612b6e565b61039d600480360360208110156107a457600080fd5b50356001600160a01b0316612bd6565b6104f3612ce5565b610448600480360360408110156107d257600080fd5b506001600160a01b038135169060200135612cf4565b61039d600480360360208110156107fe57600080fd5b5035612d08565b6104f3612da5565b6104f3612dbd565b6104b3612dcc565b6104b3612fc5565b6104b36004803603604081101561083b57600080fd5b506001600160a01b0381358116916020013516612fcb565b6104b3612ff6565b6104f3612ffc565b6104b36004803603602081101561087957600080fd5b5035613014565b61039d613024565b61039d6004803603602081101561089e57600080fd5b50356001600160a01b031661310c565b61039d600480360360208110156108c457600080fd5b50356001600160a01b031661329d565b6104f36133b8565b6104f36133d0565b61039d6133df565b333214610940576040805162461bcd60e51b815260206004820152600860248201527f4f6e6c7920454f41000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116736b175474e89094c44da98b954eedeac495271d0f148061098757506001600160a01b03811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48145b806109ae57506001600160a01b03811673dac17f958d2ee523a2206206994597c13d831ec7145b6109ef576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b604482015290519081900360640190fd5b60008211610a44576040805162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015290519081900360640190fd5b6000610a4f336128d4565b905082811015610aa6576040805162461bcd60e51b815260206004820152601060248201527f496e7375666669656e742066756e647300000000000000000000000000000000604482015290519081900360640190fd5b33600090815260086020526040812054610acc908390610ac69087613624565b9061367d565b33600090815260086020526040902054909150610ae990826136e4565b33600090815260086020526040812091909155610b19610b076113c0565b610ac687610b13612dcc565b90613624565b905060006001600160a01b038516736b175474e89094c44da98b954eedeac495271d0f14610bce57610bc964e8d4a51000866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b9757600080fd5b505afa158015610bab573d6000803e3d6000fd5b505050506040513d6020811015610bc157600080fd5b505190613624565b610c41565b604080516370a0823160e01b815230600482015290516001600160a01b038716916370a08231916024808301926020929190829003018186803b158015610c1457600080fd5b505afa158015610c28573d6000803e3d6000fd5b505050506040513d6020811015610c3e57600080fd5b50515b905081811015610f565760185460ff6101009091041615156001148015610c7c57506018546001600160a01b03868116620100009092041614155b15610ecd57604080516002808252606082018352600092602083019080368337019050509050601860029054906101000a90046001600160a01b031681600081518110610cc557fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508581600181518110610cf357fe5b6001600160a01b039283166020918202929092010152737a250d5630b4cf539739df2c5dacb4c659f2488d906338ed1739908816736b175474e89094c44da98b954eedeac495271d0f14610d5957610d5464e8d4a51000610ac687876136e4565b610d63565b610d6385856136e4565b60008430426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610dd8578181015183820152602001610dc0565b505050509050019650505050505050600060405180830381600087803b158015610e0157600080fd5b505af1158015610e15573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610e3e57600080fd5b8101908080516040519392919084640100000000821115610e5e57600080fd5b908301906020820185811115610e7357600080fd5b8251866020820283011164010000000082111715610e9057600080fd5b82525081516020918201928201910280838360005b83811015610ebd578181015183820152602001610ea5565b5050505090500160405250505050505b601854610100900460ff16610f56576007546001600160a01b031662f714ce610ef684846136e4565b876040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015610f3d57600080fd5b505af1158015610f51573d6000803e3d6000fd5b505050505b828211156110cf576000610f6a83856136e4565b90506000610f886064610ac6600f548561362490919063ffffffff16565b9050610f9484826136e4565b93506001600160a01b038716736b175474e89094c44da98b954eedeac495271d0f14611052576000610fcb8264e8d4a5100061367d565b90506000610fdf6005610ac6846002613624565b600954909150610ffc906001600160a01b038b8116911683613741565b600c54611016906001600160a01b038b8116911683613741565b600d5461104b906001600160a01b031661103a8361103486826136e4565b906136e4565b6001600160a01b038c169190613741565b50506110cc565b60006110646005610ac6846002613624565b600954909150611081906001600160a01b038a8116911683613741565b60095461109b906001600160a01b038a8116911683613741565b6009546110ca906001600160a01b03166110b98361103486826136e4565b6001600160a01b038b169190613741565b505b50505b6001600160a01b038516736b175474e89094c44da98b954eedeac495271d0f14611105576111028264e8d4a5100061367d565b91505b61110f33876137ac565b604080516370a0823160e01b815230600482015290516001600160a01b038716916370a08231916024808301926020929190829003018186803b15801561115557600080fd5b505afa158015611169573d6000803e3d6000fd5b505050506040513d602081101561117f57600080fd5b505190508082116111905781611192565b805b91506111a86001600160a01b0386163384613741565b604080518381526020810188905281516001600160a01b0388169233927ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567929081900390910190a3505050505050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156112845780601f1061125957610100808354040283529160200191611284565b820191906000526020600020905b81548152906001019060200180831161126757829003601f168201915b505050505090505b90565b60006112a361129c6138a8565b84846138b2565b5060015b92915050565b600a546001600160a01b031633146112f9576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b601091909155601191909155601255565b6113126138a8565b6001600160a01b0316611323612af3565b6001600160a01b03161461136c576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b600680546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fbd83a64c8b36dd6255edf98e81aab9e70343df51463f4a125c5b2ab882bc404e9181900360200190a150565b60025490565b6113ce6138a8565b6001600160a01b03166113df612af3565b6001600160a01b031614611428576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116611483576040805162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60185460ff166114da576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420736574206e6577207374726174656779000000000000000000604482015290519081900360640190fd5b600b80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f2e92d71287661afbffa7b2606ab5cd0c4298416dd6309a764c1684a235ed02179181900360200190a150565b600d546001600160a01b031681565b6015818154811061154d57600080fd5b600091825260209091200154905081565b600061156b84848461399e565b6115db846115776138a8565b6115d685604051806060016040528060288152602001614173602891396001600160a01b038a166000908152600160205260408120906115b56138a8565b6001600160a01b031681526020810191909152604001600020549190613af9565b6138b2565b5060015b9392505050565b6202a30081565b600e5481565b6115fb6138a8565b6001600160a01b031661160c612af3565b6001600160a01b031614611655576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b42600e54111580156116775750600e5442906116749062015180613b90565b10155b6116c8576040805162461bcd60e51b815260206004820152600f60248201527f46756e6374696f6e206c6f636b65640000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116736b175474e89094c44da98b954eedeac495271d0f148061170f57506001600160a01b03811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48145b8061173657506001600160a01b03811673dac17f958d2ee523a2206206994597c13d831ec7145b611777576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b604482015290519081900360640190fd5b601854610100900460ff16156117be5760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d602081101561183757600080fd5b5051600754604080516332dee40b60e01b81526001600160a01b03868116600483015291519394509116916332dee40b9160248082019260009290919082900301818387803b15801561188957600080fd5b505af115801561189d573d6000803e3d6000fd5b505050506000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118f057600080fd5b505afa158015611904573d6000803e3d6000fd5b505050506040513d602081101561191a57600080fd5b5051600b54600780546001600160a01b0319166001600160a01b03909216918217905590915061196290736b175474e89094c44da98b954eedeac495271d0f90600019613491565b600b546119909073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906001600160a01b0316600019613491565b600b546119be9073dac17f958d2ee523a2206206994597c13d831ec7906001600160a01b0316600019613491565b6007546001600160a01b0316636e553f656119d983856136e4565b856040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015611a2057600080fd5b505af1158015611a34573d6000803e3d6000fd5b50506018805460ff191660011790555050600b546001600160a01b03167fa9c117f7b6846ef96df18c788b663977460b17797467b5d2b4af658b32bf993f611a7c83856136e4565b60408051918252519081900360200190a2505050565b600a546001600160a01b03163314611ade576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b601854610100900460ff1615611b255760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663285939846040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611b7557600080fd5b505af1158015611b89573d6000803e3d6000fd5b50505050565b60055460ff1690565b60006112a3611ba56138a8565b846115d68560016000611bb66138a8565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490613b90565b6009546001600160a01b031681565b600b546001600160a01b031681565b60408051808201909152600181527f3100000000000000000000000000000000000000000000000000000000000000602082015290565b60086020526000908152604090205481565b600a546001600160a01b03163314611c99576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b6018805461ff0019169055604080516370a0823160e01b81523060048201529051600091736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015611cf957600080fd5b505afa158015611d0d573d6000803e3d6000fd5b505050506040513d6020811015611d2357600080fd5b505190506000611d31612dcc565b90508115611df0576000611d556064610ac66011548561362490919063ffffffff16565b905080831115611dee576007546001600160a01b0316636e553f65611d7a85846136e4565b736b175474e89094c44da98b954eedeac495271d0f6040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015611dd557600080fd5b505af1158015611de9573d6000803e3d6000fd5b505050505b505b604080516370a0823160e01b8152306004820152905160009173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48916370a0823191602480820192602092909190829003018186803b158015611e4557600080fd5b505afa158015611e59573d6000803e3d6000fd5b505050506040513d6020811015611e6f57600080fd5b505190508015611f39576000611e9e64e8d4a51000610ac66064610ac66010548861362490919063ffffffff16565b905080821115611f37576007546001600160a01b0316636e553f65611ec384846136e4565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015611f1e57600080fd5b505af1158015611f32573d6000803e3d6000fd5b505050505b505b604080516370a0823160e01b8152306004820152905160009173dac17f958d2ee523a2206206994597c13d831ec7916370a0823191602480820192602092909190829003018186803b158015611f8e57600080fd5b505afa158015611fa2573d6000803e3d6000fd5b505050506040513d6020811015611fb857600080fd5b505190508015611b89576000611fe764e8d4a51000610ac66064610ac66012548961362490919063ffffffff16565b905080821115612080576007546001600160a01b0316636e553f6561200c84846136e4565b73dac17f958d2ee523a2206206994597c13d831ec76040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561206757600080fd5b505af115801561207b573d6000803e3d6000fd5b505050505b5050505050565b6006546001600160a01b0390811691161490565b601854610100900460ff1681565b333214806120bb57506120bb33612087565b61210c576040805162461bcd60e51b815260206004820152601460248201527f4f6e6c7920454f41206f72204269636f6e6f6d79000000000000000000000000604482015290519081900360640190fd5b601854610100900460ff16156121535760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b600082116121a8576040805162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015290519081900360640190fd5b6000806121b36138a8565b90506001600160a01b038316736b175474e89094c44da98b954eedeac495271d0f1415612329576000806121e686613bea565b915091506121f26113c0565b1561221957612214612202612dcc565b610ac661220d6113c0565b8590613624565b61221b565b815b935061223d736b175474e89094c44da98b954eedeac495271d0f843089613c9d565b600061224f6005610ac6846002613624565b60095490915061227e90736b175474e89094c44da98b954eedeac495271d0f906001600160a01b031683613741565b600c546122aa90736b175474e89094c44da98b954eedeac495271d0f906001600160a01b031683613741565b600d546122e4906001600160a01b03166122c88361103486826136e4565b736b175474e89094c44da98b954eedeac495271d0f9190613741565b6001600160a01b0384166000908152600860205260409020546123079084613b90565b6001600160a01b03851660009081526008602052604090205550612579915050565b6001600160a01b03831673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4814156124ad576000806123686123638764e8d4a51000613624565b613bea565b915091506123746113c0565b1561238957612384612202612dcc565b61238b565b815b93506123ad73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48843089613c9d565b60006123be8264e8d4a5100061367d565b905060006123d26005610ac6846002613624565b6009549091506124019073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906001600160a01b031683613741565b600c5461242d9073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906001600160a01b031683613741565b600d54612467906001600160a01b031661244b8361103486826136e4565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489190613741565b6001600160a01b03851660009081526008602052604090205461248a9085613b90565b6001600160a01b0386166000908152600860205260409020555061257992505050565b6001600160a01b03831673dac17f958d2ee523a2206206994597c13d831ec7141561252c576000806124e76123638764e8d4a51000613624565b915091506124f36113c0565b1561250857612503612202612dcc565b61250a565b815b93506123ad73dac17f958d2ee523a2206206994597c13d831ec7843089613c9d565b6040805162461bcd60e51b815260206004820152601560248201527f496e76616c6964206465706f73697420546f6b656e0000000000000000000000604482015290519081900360640190fd5b6125838183613d10565b826001600160a01b0316816001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78685604051808381526020018281526020019250505060405180910390a350505050565b600a546001600160a01b03163314612628576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b038116736b175474e89094c44da98b954eedeac495271d0f148061266f57506001600160a01b03811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48145b8061269657506001600160a01b03811673dac17f958d2ee523a2206206994597c13d831ec7145b6126d7576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b604482015290519081900360640190fd5b600754604080516332dee40b60e01b81526001600160a01b038481166004830152915191909216916332dee40b91602480830192600092919082900301818387803b15801561272557600080fd5b505af1158015612739573d6000803e3d6000fd5b5050601880546001600160a01b0380861662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff61ff0019909316610100179290921691909117909155600a546040805191909216815290517f5e7b34819cd91b239220bec92fcfd3c10da2214ba13e4e2b1f6c9cfdbd68a9a29350908190036020019150a150565b6127cd6138a8565b6001600160a01b03166127de612af3565b6001600160a01b031614612827576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116612871576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f848ac24ab84501710d6631faab117b66b79aba7ec6f7778cf3bcff428c1a4efc929181900390910190a15050565b6001600160a01b031660009081526020819052604090205490565b6128f76138a8565b6001600160a01b0316612908612af3565b6001600160a01b031614612951576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36005805474ffffffffffffffffffffffffffffffffffffffff0019169055565b60165481565b6006546001600160a01b031681565b60185460ff1681565b6129d46138a8565b6001600160a01b03166129e5612af3565b6001600160a01b031614612a2e576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116612a78576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600c80546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f7c2cfb870a55cea02043717c09aa9837391f1bc8eedb1dbd1a6c1a3ea5232e0a929181900390910190a15050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b60055461010090046001600160a01b031690565b60175481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156112845780601f1061125957610100808354040283529160200191611284565b60006112a3612b7b6138a8565b846115d6856040518060600160405280602581526020016142a66025913960016000612ba56138a8565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190613af9565b612bde6138a8565b6001600160a01b0316612bef612af3565b6001600160a01b031614612c38576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b038116612c82576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517febcecb9db04071cf4b4ecc1e2e1e4603e74c9382d6e36c3531f0b62af4c78ed7929181900390910190a15050565b6007546001600160a01b031681565b60006112a3612d016138a8565b848461399e565b612d106138a8565b6001600160a01b0316612d21612af3565b6001600160a01b031614612d6a576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b600f8190556040805182815290517f6c862c95209ac13de6ba58fa7963e5fb78b569dce070efa64c8f0d86d5cc7c249181900360200190a150565b73dac17f958d2ee523a2206206994597c13d831ec781565b600c546001600160a01b031681565b6000612fc0612e3b64e8d4a5100073dac17f958d2ee523a2206206994597c13d831ec76001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b9757600080fd5b612fba612ea864e8d4a5100073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b9757600080fd5b604080516370a0823160e01b81523060048201529051612fba91736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015612efe57600080fd5b505afa158015612f12573d6000803e3d6000fd5b505050506040513d6020811015612f2857600080fd5b5051600754604080517fc8ecaf3000000000000000000000000000000000000000000000000000000000815290516001600160a01b039092169163c8ecaf3091600480820192602092909190829003018186803b158015612f8857600080fd5b505afa158015612f9c573d6000803e3d6000fd5b505050506040513d6020811015612fb257600080fd5b505190613b90565b90613b90565b905090565b60145481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600f5481565b736b175474e89094c44da98b954eedeac495271d0f81565b6013818154811061154d57600080fd5b600a546001600160a01b03163314613070576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b601854610100900460ff16156130b75760405162461bcd60e51b81526004018080602001828103825260218152602001806142016021913960400191505060405180910390fd5b604080516370a0823160e01b81523060048201529051600091736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015611cf957600080fd5b6131146138a8565b6001600160a01b0316613125612af3565b6001600160a01b03161461316e576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b613176612af3565b6001600160a01b0316336001600160a01b0316148061319f5750600d546001600160a01b031633145b6131f0576040805162461bcd60e51b815260206004820152601860248201527f4f6e6c79206f776e6572206f7220737472617465676973740000000000000000604482015290519081900360640190fd5b6001600160a01b03811661323a576040805162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015290519081900360640190fd5b600d80546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f2535c9dd3f3fd17150d4e30e0c6f7a750497f21431ccbff950ca77042cc77286929181900390910190a15050565b6132a56138a8565b6001600160a01b03166132b6612af3565b6001600160a01b0316146132ff576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b6001600160a01b0381166133445760405162461bcd60e51b81526004018080602001828103825260268152602001806140be6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b600a546001600160a01b031681565b6133e76138a8565b6001600160a01b03166133f8612af3565b6001600160a01b031614613441576040805162461bcd60e51b8152602060048201819052602482015260008051602061419b833981519152604482015290519081900360640190fd5b61344e426202a300613b90565b600e8190556018805460ff1916905560408051918252517fff76cf14f454ffa693b9eedc298fb8c0f71d59d16a1df3e1489a8c0a41922efc9181900360200190a1565b8015806135305750604080517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561350257600080fd5b505afa158015613516573d6000803e3d6000fd5b505050506040513d602081101561352c57600080fd5b5051155b61356b5760405162461bcd60e51b81526004018080602001828103825260368152602001806142706036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03167f095ea7b3000000000000000000000000000000000000000000000000000000001790526135d6908490613e00565b505050565b6000601836108015906135f257506135f233612087565b15613606575060131936013560601c61128c565b503361128c565b606061361c8484600085613eb1565b949350505050565b600082613633575060006112a7565b8282028284828161364057fe5b04146115df5760405162461bcd60e51b81526004018080602001828103825260218152602001806141526021913960400191505060405180910390fd5b60008082116136d3576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816136dc57fe5b049392505050565b60008282111561373b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03167fa9059cbb000000000000000000000000000000000000000000000000000000001790526135d6908490613e00565b6001600160a01b0382166137f15760405162461bcd60e51b81526004018080602001828103825260218152602001806141bb6021913960400191505060405180910390fd5b6137fd826000836135d6565b61383a8160405180606001604052806022815260200161409c602291396001600160a01b0385166000908152602081905260409020549190613af9565b6001600160a01b03831660009081526020819052604090205560025461386090826136e4565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000612fc06135db565b6001600160a01b0383166138f75760405162461bcd60e51b81526004018080602001828103825260248152602001806142226024913960400191505060405180910390fd5b6001600160a01b03821661393c5760405162461bcd60e51b81526004018080602001828103825260228152602001806140e46022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166139e35760405162461bcd60e51b81526004018080602001828103825260258152602001806141dc6025913960400191505060405180910390fd5b6001600160a01b038216613a285760405162461bcd60e51b81526004018080602001828103825260238152602001806140796023913960400191505060405180910390fd5b613a338383836135d6565b613a7081604051806060016040528060268152602001614106602691396001600160a01b0386166000908152602081905260409020549190613af9565b6001600160a01b038085166000908152602081905260408082209390935590841681522054613a9f9082613b90565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115613b885760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613b4d578181015183820152602001613b35565b50505050905090810190601f168015613b7a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156115df576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006013600081548110613bfd57fe5b9060005260206000200154841015613c2f576015600081548110613c1d57fe5b90600052602060002001549050613c79565b6013600181548110613c3d57fe5b90600052602060002001548411613c5c576015600181548110613c1d57fe5b601454841015613c74576015600281548110613c1d57fe5b506016545b613c89612710610ac68684613624565b9150613c9584836136e4565b925050915091565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03167f23b872dd00000000000000000000000000000000000000000000000000000000179052611b89908590613e00565b6001600160a01b038216613d6b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b613d77600083836135d6565b600254613d849082613b90565b6002556001600160a01b038216600090815260208190526040902054613daa9082613b90565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000613e55826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661360d9092919063ffffffff16565b8051909150156135d657808060200190516020811015613e7457600080fd5b50516135d65760405162461bcd60e51b815260040180806020018281038252602a815260200180614246602a913960400191505060405180910390fd5b606082471015613ef25760405162461bcd60e51b815260040180806020018281038252602681526020018061412c6026913960400191505060405180910390fd5b613efb8561400c565b613f4c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310613f8a5780518252601f199092019160209182019101613f6b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fec576040519150601f19603f3d011682016040523d82523d6000602084013e613ff1565b606091505b5091509150614001828286614012565b979650505050505050565b3b151590565b606083156140215750816115df565b8251156140315782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315613b4d578181015183820152602001613b3556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737343616e6e6f742063616c6c207768656e20696e20656d657267656e63794d6f646545524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a4ef13455e2e3cc8e365a1989e8b7d13b716fc54853878c77f3dbb0451fc219364736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb485920000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b990000000000000000000000007f1cffb0e0a7351a72ef53cb51796221e2bac3a500000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d000000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe934
-----Decoded View---------------
Arg [0] : _treasuryWallet (address): 0x59E83877bD248cBFe392dbB5A8a29959bcb48592
Arg [1] : _admin (address): 0x3f68A3c1023d736D8Be867CA49Cb18c543373B99
Arg [2] : _strategy (address): 0x7f1cffB0E0a7351a72eF53CB51796221E2baC3A5
Arg [3] : _biconomy (address): 0x84a0856b038eaAd1cC7E297cF34A7e72685A8693
Arg [4] : _communityWallet (address): 0xdd6c35aFF646B2fB7d8A8955Ccbe0994409348d0
Arg [5] : _strategist (address): 0x54D003d451c973AD7693F825D5b78Adfc0efe934
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb48592
Arg [1] : 0000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b99
Arg [2] : 0000000000000000000000007f1cffb0e0a7351a72ef53cb51796221e2bac3a5
Arg [3] : 00000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693
Arg [4] : 000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d0
Arg [5] : 00000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe934
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.