ERC-20
Overview
Max Total Supply
1.663755661505645224 daoCDV
Holders
28
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.026422259268326526 daoCDVValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CitadelVault
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../../libs/BaseRelayRecipient.sol"; interface ICitadelStrategy { function getCurrentPool() external view returns (uint256); function invest(uint256 _amount) external; function yield() external; function withdraw(uint256 _amount) external; function reimburse() external; function setAdmin(address _admin) external; function setStrategist(address _strategist) external; function emergencyWithdraw() external; function reinvest() external; } interface IRouter { function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint[] memory amounts); function getAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint[] memory amounts); } interface ICurveSwap { function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy) external; } interface IChainlink { function latestAnswer() external view returns (int256); } contract CitadelVault is ERC20("DAO Vault Citadel", "daoCDV"), Ownable, BaseRelayRecipient { using SafeERC20 for IERC20; using SafeMath for uint256; struct Token { IERC20 token; uint256 decimals; uint256 percKeepInVault; } IERC20 private constant WETH = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); ICitadelStrategy public strategy; IRouter private constant router = IRouter(0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F); ICurveSwap private constant c3pool = ICurveSwap(0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7); uint256 private constant DENOMINATOR = 10000; address public pendingStrategy; bool public canSetPendingStrategy; uint256 public unlockTime; uint256 public constant LOCKTIME = 2 days; // Calculation for fees 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; uint256 private _fees; // 18 decimals // Address to collect fees address public treasuryWallet; address public communityWallet; address public admin; address public strategist; mapping(address => uint256) public _balanceOfDeposit; // Record deposit amount (USD in 18 decimals) mapping(uint256 => Token) private Tokens; event Deposit(address indexed tokenDeposit, address caller, uint256 amtDeposit, uint256 sharesMint); event Withdraw(address indexed tokenWithdraw, address caller, uint256 amtWithdraw, uint256 sharesBurn); event TransferredOutFees(uint256 fees); event ETHToInvest(uint256 _balanceOfWETH); event SetNetworkFeeTier2(uint256[] oldNetworkFeeTier2, uint256[] newNetworkFeeTier2); event SetNetworkFeePerc(uint256[] oldNetworkFeePerc, uint256[] newNetworkFeePerc); event SetCustomNetworkFeeTier(uint256 indexed oldCustomNetworkFeeTier, uint256 indexed newCustomNetworkFeeTier); event SetCustomNetworkFeePerc(uint256 oldCustomNetworkFeePerc, uint256 newCustomNetworkFeePerc); event SetProfitSharingFeePerc(uint256 indexed oldProfileSharingFeePerc, uint256 indexed newProfileSharingFeePerc); event MigrateFunds(address indexed fromStrategy, address indexed toStrategy, uint256 amount); modifier onlyAdmin { require(msg.sender == address(admin), "Only admin"); _; } constructor( address _strategy, address _treasuryWallet, address _communityWallet, address _admin, address _strategist, address _biconomy ) { strategy = ICitadelStrategy(_strategy); treasuryWallet = _treasuryWallet; communityWallet = _communityWallet; admin = _admin; strategist = _strategist; trustedForwarder = _biconomy; IERC20 USDT = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7); IERC20 USDC = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); IERC20 DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F); Tokens[0] = Token(USDT, 6, 200); Tokens[1] = Token(USDC, 6, 200); Tokens[2] = Token(DAI, 18, 200); WETH.safeApprove(_strategy, type(uint256).max); WETH.safeApprove(address(router), type(uint256).max); USDT.safeApprove(address(router), type(uint256).max); USDT.safeApprove(address(c3pool), type(uint256).max); USDC.safeApprove(address(router), type(uint256).max); USDC.safeApprove(address(c3pool), type(uint256).max); DAI.safeApprove(address(router), type(uint256).max); DAI.safeApprove(address(c3pool), type(uint256).max); canSetPendingStrategy = true; } /// @notice Function that required for inherict BaseRelayRecipient function _msgSender() internal override(Context, BaseRelayRecipient) view returns (address payable) { return BaseRelayRecipient._msgSender(); } /// @notice Function that required for inherict BaseRelayRecipient function versionRecipient() external pure override returns (string memory) { return "1"; } /// @notice Function to deposit stablecoins /// @param _amount Amount to deposit /// @param _tokenIndex Type of stablecoin to deposit function deposit(uint256 _amount, uint256 _tokenIndex) external { require(msg.sender == tx.origin || isTrustedForwarder(msg.sender), "Only EOA or Biconomy"); require(_amount > 0, "Amount must > 0"); uint256 _ETHPrice = _determineETHPrice(_tokenIndex); uint256 _pool = getAllPoolInETH(_ETHPrice); address _sender = _msgSender(); Tokens[_tokenIndex].token.safeTransferFrom(_sender, address(this), _amount); uint256 _amtDeposit = _amount; // For event purpose if (Tokens[_tokenIndex].decimals == 6) { _amount = _amount.mul(1e12); } // Calculate network 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; } uint256 _fee = _amount.mul(_networkFeePerc).div(DENOMINATOR); _fees = _fees.add(_fee); _amount = _amount.sub(_fee); _balanceOfDeposit[_sender] = _balanceOfDeposit[_sender].add(_amount); uint256 _amountInETH = _amount.mul(_ETHPrice).div(1e18); uint256 _shares = totalSupply() == 0 ? _amountInETH : _amountInETH.mul(totalSupply()).div(_pool); _mint(_sender, _shares); emit Deposit(address(Tokens[_tokenIndex].token), _sender, _amtDeposit, _shares); } /// @notice Function to withdraw /// @param _shares Amount of shares to withdraw (from LP token, 18 decimals) /// @param _tokenIndex Type of stablecoin to withdraw function withdraw(uint256 _shares, uint256 _tokenIndex) external { require(msg.sender == tx.origin, "Only EOA"); require(_shares > 0, "Shares must > 0"); uint256 _totalShares = balanceOf(msg.sender); require(_totalShares >= _shares, "Insufficient balance to withdraw"); // Calculate deposit amount uint256 _depositAmt = _balanceOfDeposit[msg.sender].mul(_shares).div(_totalShares); // Subtract deposit amount _balanceOfDeposit[msg.sender] = _balanceOfDeposit[msg.sender].sub(_depositAmt); // Calculate withdraw amount uint256 _ETHPrice = _determineETHPrice(_tokenIndex); uint256 _withdrawAmt = getAllPoolInETH(_ETHPrice).mul(_shares).div(totalSupply()); _burn(msg.sender, _shares); uint256 _withdrawAmtInUSD = _withdrawAmt.mul(_getPriceFromChainlink(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419)).div(1e8); // ETH/USD Token memory _token = Tokens[_tokenIndex]; uint256 _balanceOfToken = _token.token.balanceOf(address(this)); // Change _balanceOfToken to 18 decimals same as _withdrawAmtInUSD if (_token.decimals == 6) { _balanceOfToken = _balanceOfToken.mul(1e12); } if (_withdrawAmtInUSD > _balanceOfToken) { // Not enough stablecoin in vault, need to get from strategy strategy.withdraw(_withdrawAmt); uint256[] memory _amounts = _swapExactTokensForTokens(WETH.balanceOf(address(this)), address(WETH), address(_token.token)); // Change withdraw amount to 18 decimals if not DAI (for calculate profit sharing fee) _withdrawAmtInUSD = _token.decimals == 6 ? _amounts[1].mul(1e12) : _amounts[1]; } // Calculate profit sharing fee if (_withdrawAmtInUSD > _depositAmt) { uint256 _profit = _withdrawAmtInUSD.sub(_depositAmt); uint256 _fee = _profit.mul(profitSharingFeePerc).div(DENOMINATOR); _withdrawAmtInUSD = _withdrawAmtInUSD.sub(_fee); _fees = _fees.add(_fee); } // Change back withdraw amount to 6 decimals if not DAI if (_token.decimals == 6) { _withdrawAmtInUSD = _withdrawAmtInUSD.div(1e12); } _token.token.safeTransfer(msg.sender, _withdrawAmtInUSD); emit Withdraw(address(Tokens[_tokenIndex].token), msg.sender, _withdrawAmtInUSD, _shares); } /// @notice Function to invest funds into strategy function invest() external onlyAdmin { Token memory _USDT = Tokens[0]; Token memory _USDC = Tokens[1]; Token memory _DAI = Tokens[2]; // Transfer out network fees _fees = _fees.div(1e12); // Convert to USDT decimals if (_fees != 0 && _USDT.token.balanceOf(address(this)) > _fees) { uint256 _treasuryFee = _fees.mul(2).div(5); // 40% _USDT.token.safeTransfer(treasuryWallet, _treasuryFee); // 40% _USDT.token.safeTransfer(communityWallet, _treasuryFee); // 40% _USDT.token.safeTransfer(strategist, _fees.sub(_treasuryFee).sub(_treasuryFee)); // 20% emit TransferredOutFees(_fees); _fees = 0; } uint256 _poolInUSD = getAllPoolInUSD().sub(_fees); // Calculation for keep portion of stablecoins and swap remainder to WETH uint256 _toKeepUSDT = _poolInUSD.mul(_USDT.percKeepInVault).div(DENOMINATOR); uint256 _toKeepUSDC = _poolInUSD.mul(_USDC.percKeepInVault).div(DENOMINATOR); uint256 _toKeepDAI = _poolInUSD.mul(_DAI.percKeepInVault).div(DENOMINATOR); _invest(_USDT.token, _toKeepUSDT); _invest(_USDC.token, _toKeepUSDC); _toKeepDAI = _toKeepDAI.mul(1e12); // Follow decimals of DAI _invest(_DAI.token, _toKeepDAI); // Invest all swapped WETH to strategy uint256 _balanceOfWETH = WETH.balanceOf(address(this)); if (_balanceOfWETH > 0) { strategy.invest(_balanceOfWETH); emit ETHToInvest(_balanceOfWETH); } } /// @notice Function to swap stablecoin to WETH /// @param _token Stablecoin to swap /// @param _toKeepAmt Amount to keep in vault (decimals follow stablecoins) function _invest(IERC20 _token, uint256 _toKeepAmt) private { uint256 _balanceOfToken = _token.balanceOf(address(this)); if (_balanceOfToken > _toKeepAmt) { _swapExactTokensForTokens(_balanceOfToken.sub(_toKeepAmt), address(_token), address(WETH)); } } /// @notice Function to yield farms reward in strategy function yield() external onlyAdmin { strategy.yield(); } /// @notice Function to swap stablecoin within vault with Curve /// @notice Amount to swap == amount to keep in vault of _tokenTo stablecoin /// @param _tokenFrom Type of stablecoin to be swapped /// @param _tokenTo Type of stablecoin to be received /// @param _amount Amount to be swapped (follow stablecoins decimals) function swapTokenWithinVault(uint256 _tokenFrom, uint256 _tokenTo, uint256 _amount) external onlyAdmin { require(Tokens[_tokenFrom].token.balanceOf(address(this)) > _amount, "Insufficient amount to swap"); int128 i = _determineCurveIndex(_tokenFrom); int128 j = _determineCurveIndex(_tokenTo); c3pool.exchange(i, j, _amount, 0); } /// @notice Function to determine Curve index for swapTokenWithinVault() /// @param _tokenIndex Index of stablecoin /// @return stablecoin index use in Curve function _determineCurveIndex(uint256 _tokenIndex) private pure returns (int128) { if (_tokenIndex == 0) { return 2; } else if (_tokenIndex == 1) { return 1; } else { return 0; } } /// @notice Function to reimburse keep Tokens from strategy /// @notice This function remove liquidity from all strategy farm and will cost massive gas fee. Only call when needed. function reimburseTokenFromStrategy() external onlyAdmin { strategy.reimburse(); } /// @notice Function to withdraw all farms and swap to WETH in strategy function emergencyWithdraw() external onlyAdmin { strategy.emergencyWithdraw(); } /// @notice Function to reinvest all WETH back to farms in strategy function reinvest() external onlyAdmin { strategy.reinvest(); } /// @notice Function to swap between tokens with Uniswap /// @param _amountIn Amount to swap /// @param _fromToken Token to be swapped /// @param _toToken Token to be received /// @return _amounts Array that contain amount swapped function _swapExactTokensForTokens(uint256 _amountIn, address _fromToken, address _toToken) private returns (uint256[] memory _amounts) { address[] memory _path = new address[](2); _path[0] = _fromToken; _path[1] = _toToken; uint256[] memory _amountsOut = router.getAmountsOut(_amountIn, _path); if (_amountsOut[1] > 0) { _amounts = router.swapExactTokensForTokens(_amountIn, 0, _path, address(this), block.timestamp); } else { // Not enough amount to swap uint256[] memory _zeroReturn = new uint256[](2); _zeroReturn[0] = 0; _zeroReturn[1] = 0; return _zeroReturn; } } /// @notice Function to set new network fee for deposit amount tier 2 /// @param _networkFeeTier2 Array that contains minimum and maximum amount of tier 2 (18 decimals) function setNetworkFeeTier2(uint256[] calldata _networkFeeTier2) external onlyOwner { require(_networkFeeTier2[0] != 0, "Minimun amount cannot be 0"); require(_networkFeeTier2[1] > _networkFeeTier2[0], "Maximun amount must greater than minimun amount"); /** * Network fees have three tier, but it is sufficient to have minimun and maximun amount of tier 2 * Tier 1: deposit amount < minimun amount of tier 2 * Tier 2: minimun amount of tier 2 <= deposit amount <= maximun amount of tier 2 * Tier 3: amount > maximun amount of tier 2 */ uint256[] memory oldNetworkFeeTier2 = networkFeeTier2; networkFeeTier2 = _networkFeeTier2; emit SetNetworkFeeTier2(oldNetworkFeeTier2, _networkFeeTier2); } /// @notice Function to set new custom network fee tier /// @param _customNetworkFeeTier Amount of new custom network fee tier (18 decimals) function setCustomNetworkFeeTier(uint256 _customNetworkFeeTier) external onlyOwner { require(_customNetworkFeeTier > networkFeeTier2[1], "Custom network fee tier must greater than tier 2"); uint256 oldCustomNetworkFeeTier = customNetworkFeeTier; customNetworkFeeTier = _customNetworkFeeTier; emit SetCustomNetworkFeeTier(oldCustomNetworkFeeTier, _customNetworkFeeTier); } /// @notice Function to set new network fee percentage /// @param _networkFeePerc Array that contains new network fee percentage for tier 1, tier 2 and tier 3 function setNetworkFeePerc(uint256[] calldata _networkFeePerc) external onlyOwner { require( _networkFeePerc[0] < 3000 && _networkFeePerc[1] < 3000 && _networkFeePerc[2] < 3000, "Network fee percentage cannot be more than 30%" ); /** * _networkFeePerc content a array of 3 element, representing network fee of tier 1, tier 2 and tier 3 * For example networkFeePerc is [100, 75, 50] * which mean network fee for Tier 1 = 1%, Tier 2 = 0.75% and Tier 3 = 0.5% */ uint256[] memory oldNetworkFeePerc = networkFeePerc; networkFeePerc = _networkFeePerc; emit SetNetworkFeePerc(oldNetworkFeePerc, _networkFeePerc); } /// @notice Function to set new custom network fee percentage /// @param _percentage Percentage of new custom network fee function setCustomNetworkFeePerc(uint256 _percentage) public onlyOwner { require(_percentage < networkFeePerc[2], "Custom network fee percentage cannot be more than tier 2"); uint256 oldCustomNetworkFeePerc = customNetworkFeePerc; customNetworkFeePerc = _percentage; emit SetCustomNetworkFeePerc(oldCustomNetworkFeePerc, _percentage); } /// @notice Function to set new profit sharing fee percentage /// @param _percentage Percentage of new profit sharing fee function setProfitSharingFeePerc(uint256 _percentage) external onlyOwner { require(_percentage < 3000, "Profile sharing fee percentage cannot be more than 30%"); uint256 oldProfitSharingFeePerc = profitSharingFeePerc; profitSharingFeePerc = _percentage; emit SetProfitSharingFeePerc(oldProfitSharingFeePerc, _percentage); } /// @notice Function to set new treasury wallet address /// @param _treasuryWallet Address of new treasury wallet function setTreasuryWallet(address _treasuryWallet) external onlyOwner { treasuryWallet = _treasuryWallet; } /// @notice Function to set new community wallet address /// @param _communityWallet Address of new community wallet function setCommunityWallet(address _communityWallet) external onlyOwner { communityWallet = _communityWallet; } /// @notice Function to set new admin address /// @param _admin Address of new admin function setAdmin(address _admin) external onlyOwner { admin = _admin; strategy.setAdmin(_admin); } /// @notice Function to set new strategist address /// @param _strategist Address of new strategist function setStrategist(address _strategist) external { require(msg.sender == strategist || msg.sender == owner(), "Not authorized"); strategist = _strategist; strategy.setStrategist(_strategist); } /// @notice Function to set pending strategy address /// @param _pendingStrategy Address of pending strategy function setPendingStrategy(address _pendingStrategy) external onlyOwner { require(canSetPendingStrategy, "Cannot set pending strategy now"); pendingStrategy = _pendingStrategy; } /// @notice Function to set new trusted forwarder address (Biconomy) /// @param _biconomy Address of new trusted forwarder function setBiconomy(address _biconomy) external onlyOwner { trustedForwarder = _biconomy; } /// @notice Function to set percentage of stablecoins that keep in vault /// @param _percentages Array with new percentages of stablecoins that keep in vault function setPercTokenKeepInVault(uint256[] memory _percentages) external onlyAdmin { Tokens[0].percKeepInVault = _percentages[0]; Tokens[1].percKeepInVault = _percentages[1]; Tokens[2].percKeepInVault = _percentages[2]; } /// @notice Function to unlock migrate funds function function unlockMigrateFunds() external onlyOwner { unlockTime = block.timestamp.add(LOCKTIME); canSetPendingStrategy = false; } /// @notice Function to migrate all funds from old strategy contract to new strategy contract function migrateFunds() external onlyOwner { require(unlockTime <= block.timestamp && unlockTime.add(1 days) >= block.timestamp, "Function locked"); require(WETH.balanceOf(address(strategy)) > 0, "No balance to migrate"); require(pendingStrategy != address(0), "No pendingStrategy"); uint256 _amount = WETH.balanceOf(address(strategy)); WETH.safeTransferFrom(address(strategy), pendingStrategy, _amount); // Set new strategy address oldStrategy = address(strategy); strategy = ICitadelStrategy(pendingStrategy); pendingStrategy = address(0); canSetPendingStrategy = true; // Approve new strategy WETH.safeApprove(address(strategy), type(uint256).max); WETH.safeApprove(oldStrategy, 0); unlockTime = 0; // Lock back this function emit MigrateFunds(oldStrategy, address(strategy), _amount); } /// @notice Function to get all pool amount(vault+strategy) in USD (use USDT/ETH as price feed) /// @return All pool in USD (6 decimals follow USDT) function getAllPoolInUSD() public view returns (uint256) { uint256 _currentETHprice = _getPriceFromChainlink(0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46); // USDT/ETH uint256 _currentUSDprice = _getPriceFromChainlink(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419); // ETH/USD return getAllPoolInETH(_currentETHprice).mul(_currentUSDprice).div(1e20); } /// @notice Same as getAllPoolInETH() above with parameter /// @param _price ETH price from ChainLink (USDT/ETH) /// @return All pool in ETH (18 decimals) function getAllPoolInETH(uint256 _price) public view returns (uint256) { uint256 _vaultPoolInETH = _getVaultPoolInUSD().mul(_price); return strategy.getCurrentPool().add(_vaultPoolInETH); } /// @notice Function to get exact USD amount of pool in vault /// @return Exact USD amount of pool in vault (no decimals) function _getVaultPoolInUSD() private view returns (uint256) { uint256 _vaultPoolInUSD = (Tokens[0].token.balanceOf(address(this)).mul(1e12)) .add(Tokens[1].token.balanceOf(address(this)).mul(1e12)) .add(Tokens[2].token.balanceOf(address(this))) .sub(_fees); // In very rare case that fees > vault pool, above calculation will raise error // Use getReimburseTokenAmount() to get some stablecoin from strategy return _vaultPoolInUSD.div(1e18); } /// @notice Function to get price from ChainLink contract /// @param _priceFeedProxy Address of ChainLink contract that provide price /// @return Price (8 decimals for USD, 18 decimals for ETH) function _getPriceFromChainlink(address _priceFeedProxy) private view returns (uint256) { IChainlink _pricefeed = IChainlink(_priceFeedProxy); int256 _price = _pricefeed.latestAnswer(); return uint256(_price); } /// @notice Function to determine ETH price based on stablecoin /// @param _tokenIndex Type of stablecoin to determine /// @return Price of ETH (18 decimals) function _determineETHPrice(uint256 _tokenIndex) private view returns (uint256) { address _priceFeedContract; if (address(Tokens[_tokenIndex].token) == 0xdAC17F958D2ee523a2206206994597C13D831ec7) { // USDT _priceFeedContract = 0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46; // USDT/ETH } else if (address(Tokens[_tokenIndex].token) == 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) { // USDC _priceFeedContract = 0x986b5E1e1755e3C2440e960477f25201B0a8bbD4; // USDC/ETH } else { // DAI _priceFeedContract = 0x773616E4d11A78F511299002da57A0a94577F1f4; // DAI/ETH } return _getPriceFromChainlink(_priceFeedContract); } /// @notice Function to get amount need to fill up minimum amount keep in vault /// @param _tokenIndex Type of stablecoin requested /// @return Amount to reimburse (USDT, USDC 6 decimals, DAI 18 decimals) function getReimburseTokenAmount(uint256 _tokenIndex) public view returns (uint256) { Token memory _token = Tokens[_tokenIndex]; uint256 _toKeepAmt = getAllPoolInUSD().mul(_token.percKeepInVault).div(DENOMINATOR); if (_token.decimals == 18) { _toKeepAmt = _toKeepAmt.mul(1e12); } uint256 _balanceOfToken = _token.token.balanceOf(address(this)); if (_balanceOfToken < _toKeepAmt) { return _toKeepAmt.sub(_balanceOfToken); } return 0; // amount keep in vault is full } }
// 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; /** * @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.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 "../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; } } }
// 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.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.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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "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":"_strategy","type":"address"},{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_communityWallet","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_strategist","type":"address"},{"internalType":"address","name":"_biconomy","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":"tokenDeposit","type":"address"},{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amtDeposit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesMint","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_balanceOfWETH","type":"uint256"}],"name":"ETHToInvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromStrategy","type":"address"},{"indexed":true,"internalType":"address","name":"toStrategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MigrateFunds","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":"uint256","name":"oldCustomNetworkFeePerc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCustomNetworkFeePerc","type":"uint256"}],"name":"SetCustomNetworkFeePerc","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"oldCustomNetworkFeeTier","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newCustomNetworkFeeTier","type":"uint256"}],"name":"SetCustomNetworkFeeTier","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"oldNetworkFeePerc","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"newNetworkFeePerc","type":"uint256[]"}],"name":"SetNetworkFeePerc","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"oldNetworkFeeTier2","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"newNetworkFeeTier2","type":"uint256[]"}],"name":"SetNetworkFeeTier2","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"oldProfileSharingFeePerc","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newProfileSharingFeePerc","type":"uint256"}],"name":"SetProfitSharingFeePerc","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":"fees","type":"uint256"}],"name":"TransferredOutFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenWithdraw","type":"address"},{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amtWithdraw","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesBurn","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"LOCKTIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_balanceOfDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_tokenIndex","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"getAllPoolInETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllPoolInUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"}],"name":"getReimburseTokenAmount","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":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrateFunds","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":"reimburseTokenFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_biconomy","type":"address"}],"name":"setBiconomy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_communityWallet","type":"address"}],"name":"setCommunityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setCustomNetworkFeePerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_customNetworkFeeTier","type":"uint256"}],"name":"setCustomNetworkFeeTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_networkFeePerc","type":"uint256[]"}],"name":"setNetworkFeePerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_networkFeeTier2","type":"uint256[]"}],"name":"setNetworkFeeTier2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingStrategy","type":"address"}],"name":"setPendingStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_percentages","type":"uint256[]"}],"name":"setPercTokenKeepInVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setProfitSharingFeePerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"}],"name":"setTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"contract ICitadelStrategy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenFrom","type":"uint256"},{"internalType":"uint256","name":"_tokenTo","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"swapTokenWithinVault","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_tokenIndex","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yield","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052690a968163f0a57b400001608090815269152d02c7e14af680000060a0526200003290600a90600262000a91565b5069d3c21bcecceda1000000600b556040805160608101825260648152604b60208201526032918101919091526200006f90600c90600362000aec565b506019600d556107d0600e553480156200008857600080fd5b506040516200562d3803806200562d833981810160405260c0811015620000ae57600080fd5b5080516020808301516040808501516060860151608087015160a090970151835180850185526011815270111053c815985d5b1d0810da5d1859195b607a1b818801908152855180870190965260068652653230b7a1a22b60d11b978601979097528051979895979396929594919390926200012e916003919062000b2f565b5080516200014490600490602084019062000b2f565b50506005805460ff191660121790555060006200016062000616565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600780546001600160a01b03199081166001600160a01b0389811691909117909255601080548216888416179055601180548216878416179055601280548216868416178155601380548316868516179055600680548316858516178155604080516060808201835273dac17f958d2ee523a2206206994597c13d831ec7808352602080840186815260c88587018181526000808052601580865297517fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed80548e16918f1691909117905592517fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aee55517fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aef558651808601885273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48808252818501998a528189018381526001855288865291517f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d80548e16918f1691909117905598517f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818e55517f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818f5586519485018752736b175474e89094c44da98b954eedeac495271d0f808652858401998a52968501908152600290915293815291517f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b805490981698169790971790955592517f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0c5591517f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0d55916200044e9073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2908b906000199062000633811b6200334617901c565b6200049173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273d9e1ce17f2641f24ae83637ab66a2cca9c378b9f60001962000633602090811b6200334617901c565b620004cc73d9e1ce17f2641f24ae83637ab66a2cca9c378b9f600019856001600160a01b03166200063360201b62003346179092919060201c565b6200050773bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019856001600160a01b03166200063360201b62003346179092919060201c565b6200054273d9e1ce17f2641f24ae83637ab66a2cca9c378b9f600019846001600160a01b03166200063360201b62003346179092919060201c565b6200057d73bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019846001600160a01b03166200063360201b62003346179092919060201c565b620005b873d9e1ce17f2641f24ae83637ab66a2cca9c378b9f600019836001600160a01b03166200063360201b62003346179092919060201c565b620005f373bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019836001600160a01b03166200063360201b62003346179092919060201c565b50506008805460ff60a01b1916600160a01b1790555062000bc995505050505050565b60006200062d6200075760201b6200345e1760201c565b90505b90565b801580620006bd575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200068d57600080fd5b505afa158015620006a2573d6000803e3d6000fd5b505050506040513d6020811015620006b957600080fd5b5051155b620006fa5760405162461bcd60e51b8152600401808060200182810382526036815260200180620055f76036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620007529185916200078f16565b505050565b60006018361080159062000771575062000771336200084b565b1562000787575060131936013560601c62000630565b503362000630565b6000620007eb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200085f60201b62003490179092919060201c565b80519091501562000752578080602001905160208110156200080c57600080fd5b5051620007525760405162461bcd60e51b815260040180806020018281038252602a815260200180620055cd602a913960400191505060405180910390fd5b6006546001600160a01b0390811691161490565b60606200087084846000856200087a565b90505b9392505050565b606082471015620008bd5760405162461bcd60e51b8152600401808060200182810382526026815260200180620055a76026913960400191505060405180910390fd5b620008c885620009e1565b6200091a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106200095a5780518252601f19909201916020918201910162000939565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114620009be576040519150601f19603f3d011682016040523d82523d6000602084013e620009c3565b606091505b509092509050620009d6828286620009e7565b979650505050505050565b3b151590565b60608315620009f857508162000873565b82511562000a095782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000a5557818101518382015260200162000a3b565b50505050905090810190601f16801562000a835780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b82805482825590600052602060002090810192821562000ada579160200282015b8281111562000ada57825182906001600160501b031690559160200191906001019062000ab2565b5062000ae892915062000bb2565b5090565b82805482825590600052602060002090810192821562000ada579160200282015b8281111562000ada578251829060ff1690559160200191906001019062000b0d565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000b67576000855562000ada565b82601f1062000b8257805160ff191683800117855562000ada565b8280016001018555821562000ada579182015b8281111562000ada57825182559160200191906001019062000b95565b5b8082111562000ae8576000815560010162000bb3565b6149ce8062000bd96000396000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c8063854ab6df116101de578063bd244af41161010f578063dd62ed3e116100ad578063f2fde38b1161007c578063f2fde38b14610a40578063f851a44014610a66578063f99bab2414610a6e578063fdb5a03e14610a7657610383565b8063dd62ed3e146109ca578063e2bbb158146109f8578063e5ec14d414610a1b578063e8b5e51f14610a3857610383565b8063c7b9d530116100e9578063c7b9d530146108f3578063ce25aa7914610919578063d0427eb714610921578063db2e21bc146109c257610383565b8063bd244af4146108c6578063c17b1071146108ce578063c7574839146108eb57610383565b8063a250d69d1161017c578063a8602fea11610156578063a8602fea1461084f578063a8c62e7614610875578063a9059cbb1461087d578063b1cfdc8b146108a957610383565b8063a250d69d146107e0578063a457c2d714610806578063a6478c1f1461083257610383565b80638da5cb5b116101b85780638da5cb5b146107c05780639367b30e146107c85780639580c4bc146107d057806395d89b41146107d857610383565b8063854ab6df1461077557806385d6bb811461077d5780638ce418f9146107a357610383565b806334100fc4116102b857806358acff8f11610256578063715018a611610230578063715018a6146106ef578063737ea0ad146106f757806378fe08d5146107655780637da0a8771461076d57610383565b806358acff8f1461067a578063704b6c02146106a357806370a08231146106c957610383565b80634626402b116102925780634626402b1461063c578063465fc5d214610644578063486ff0cd1461064c578063572b6c051461065457610383565b806334100fc41461057f57806339509351146105ed578063441a3e701461061957610383565b80631fe4a68611610325578063242c8e69116102ff578063242c8e6914610549578063251c1aa3146105515780632859398414610559578063313ce5671461056157610383565b80631fe4a686146104d2578063238b1598146104f657806323b872dd1461051357610383565b8063095ea7b311610361578063095ea7b31461043e5780630d8b76a81461047e57806318160ddd146104a45780631a8f0c0a146104ac57610383565b8063014f51231461038857806304130ef21461039257806306fdde03146103c1575b600080fd5b610390610a7e565b005b6103af600480360360208110156103a857600080fd5b5035610b34565b60408051918252519081900360200190f35b6103c9610c54565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104035781810151838201526020016103eb565b50505050905090810190601f1680156104305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61046a6004803603604081101561045457600080fd5b506001600160a01b038135169060200135610ceb565b604080519115158252519081900360200190f35b6103906004803603602081101561049457600080fd5b50356001600160a01b0316610d09565b6103af610d8d565b610390600480360360208110156104c257600080fd5b50356001600160a01b0316610d93565b6104da610e75565b604080516001600160a01b039092168252519081900360200190f35b6103af6004803603602081101561050c57600080fd5b5035610e84565b61046a6004803603606081101561052957600080fd5b506001600160a01b03813581169160208101359091169060400135610ea5565b6103af610f2d565b6103af610f34565b610390610f3a565b610569610fd6565b6040805160ff9092168252519081900360200190f35b6103906004803603602081101561059557600080fd5b810190602081018135600160201b8111156105af57600080fd5b8201836020820111156105c157600080fd5b803590602001918460208302840111600160201b831117156105e257600080fd5b509092509050610fdf565b61046a6004803603604081101561060357600080fd5b506001600160a01b038135169060200135611223565b6103906004803603604081101561062f57600080fd5b5080359060200135611271565b6104da611725565b6104da611734565b6103c9611743565b61046a6004803603602081101561066a57600080fd5b50356001600160a01b031661175e565b6103906004803603606081101561069057600080fd5b5080359060208101359060400135611772565b610390600480360360208110156106b957600080fd5b50356001600160a01b0316611938565b6103af600480360360208110156106df57600080fd5b50356001600160a01b0316611a18565b610390611a33565b6103906004803603602081101561070d57600080fd5b810190602081018135600160201b81111561072757600080fd5b82018360208201111561073957600080fd5b803590602001918460208302840111600160201b8311171561075a57600080fd5b509092509050611ae5565b6103af611ca8565b6104da611cae565b61046a611cbd565b6103906004803603602081101561079357600080fd5b50356001600160a01b0316611ccd565b610390600480360360208110156107b957600080fd5b5035611d51565b6104da611e50565b6103af611e64565b610390611e6a565b6103c96121ee565b6103af600480360360208110156107f657600080fd5b50356001600160a01b031661224f565b61046a6004803603604081101561081c57600080fd5b506001600160a01b038135169060200135612261565b6103906004803603602081101561084857600080fd5b50356122c9565b6103906004803603602081101561086557600080fd5b50356001600160a01b03166123a4565b6104da612428565b61046a6004803603604081101561089357600080fd5b506001600160a01b038135169060200135612437565b6103af600480360360208110156108bf57600080fd5b503561244b565b6103af6124e0565b610390600480360360208110156108e457600080fd5b5035612544565b6104da612635565b6103906004803603602081101561090957600080fd5b50356001600160a01b0316612644565b6103af61271a565b6103906004803603602081101561093757600080fd5b810190602081018135600160201b81111561095157600080fd5b82018360208201111561096357600080fd5b803590602001918460208302840111600160201b8311171561098457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612720945050505050565b610390612841565b6103af600480360360408110156109e057600080fd5b506001600160a01b03813581169160200135166128dd565b61039060048036036040811015610a0e57600080fd5b5080359060200135612908565b6103af60048036036020811015610a3157600080fd5b5035612bd2565b610390612be2565b61039060048036036020811015610a5657600080fd5b50356001600160a01b031661310c565b6104da61321a565b610390613229565b6103906132aa565b6012546001600160a01b03163314610aca576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663d3927c156040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b505af1158015610b2e573d6000803e3d6000fd5b50505050565b6000818152601560209081526040808320815160608101835281546001600160a01b03168152600182015493810193909352600201549082018190528290610b929061271090610b8c90610b866124e0565b906134a7565b90613500565b9050816020015160121415610bb357610bb08164e8d4a510006134a7565b90505b8151604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610bfd57600080fd5b505afa158015610c11573d6000803e3d6000fd5b505050506040513d6020811015610c2757600080fd5b5051905081811015610c4757610c3d8282613567565b9350505050610c4f565b600093505050505b919050565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ce05780601f10610cb557610100808354040283529160200191610ce0565b820191906000526020600020905b815481529060010190602001808311610cc357829003601f168201915b505050505090505b90565b6000610cff610cf86135c4565b84846135d3565b5060015b92915050565b610d116135c4565b6001600160a01b0316610d22611e50565b6001600160a01b031614610d6b576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60025490565b610d9b6135c4565b6001600160a01b0316610dac611e50565b6001600160a01b031614610df5576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600854600160a01b900460ff16610e53576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207365742070656e64696e67207374726174656779206e6f7700604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b031681565b600c8181548110610e9457600080fd5b600091825260209091200154905081565b6000610eb28484846136bf565b610f2284610ebe6135c4565b610f1d8560405180606001604052806028815260200161482a602891396001600160a01b038a16600090815260016020526040812090610efc6135c4565b6001600160a01b03168152602081019190915260400160002054919061381a565b6135d3565b5060015b9392505050565b6202a30081565b60095481565b6012546001600160a01b03163314610f86576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663285939846040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b60055460ff1690565b610fe76135c4565b6001600160a01b0316610ff8611e50565b6001600160a01b031614611041576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b8181600081811061104e57fe5b90506020020135600014156110aa576040805162461bcd60e51b815260206004820152601a60248201527f4d696e696d756e20616d6f756e742063616e6e6f742062652030000000000000604482015290519081900360640190fd5b818160008181106110b757fe5b90506020020135828260018181106110cb57fe5b905060200201351161110e5760405162461bcd60e51b815260040180806020018281038252602f8152602001806147aa602f913960400191505060405180910390fd5b6000600a80548060200260200160405190810160405280929190818152602001828054801561115c57602002820191906000526020600020905b815481526020019060010190808311611148575b505050505090508282600a919061117492919061460c565b507f27a98e39e1429b018e9a49265f33c203cb4819c6ce1ab3fcb70815f9d738c15b818484604051808060200180602001838103835286818151815260200191508051906020019060200280838360005b838110156111dd5781810151838201526020016111c5565b505050509050018381038252858582818152602001925060200280828437600083820152604051601f909101601f191690920182900397509095505050505050a1505050565b6000610cff6112306135c4565b84610f1d85600160006112416135c4565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906138b1565b3332146112b0576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600082116112f7576040805162461bcd60e51b815260206004820152600f60248201526e0536861726573206d757374203e203608c1b604482015290519081900360640190fd5b600061130233611a18565b905082811015611359576040805162461bcd60e51b815260206004820181905260248201527f496e73756666696369656e742062616c616e636520746f207769746864726177604482015290519081900360640190fd5b33600090815260146020526040812054611379908390610b8c90876134a7565b336000908152601460205260409020549091506113969082613567565b336000908152601460205260408120919091556113b28461390b565b905060006113ce6113c1610d8d565b610b8c88610b868661244b565b90506113da33876139c9565b600061140b6305f5e100610b8c611404735f4ec3df9cbd43714fe2740f5e3616155c5b8419613ac5565b85906134a7565b6000878152601560209081526040808320815160608101835281546001600160a01b03168082526001830154828601526002909201548184015282516370a0823160e01b815230600482015292519596509490926370a082319260248082019391829003018186803b15801561148057600080fd5b505afa158015611494573d6000803e3d6000fd5b505050506040513d60208110156114aa57600080fd5b50516020830151909150600614156114ce576114cb8164e8d4a510006134a7565b90505b808311156116345760075460408051632e1a7d4d60e01b81526004810187905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b15801561152357600080fd5b505af1158015611537573d6000803e3d6000fd5b5050604080516370a0823160e01b81523060048201529051600093506115dc925073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b15801561159357600080fd5b505afa1580156115a7573d6000803e3d6000fd5b505050506040513d60208110156115bd57600080fd5b5051845173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290613b3a565b9050826020015160061461160457806001815181106115f757fe5b6020026020010151611630565b61163064e8d4a510008260018151811061161a57fe5b60200260200101516134a790919063ffffffff16565b9350505b858311156116895760006116488488613567565b90506000611667612710610b8c600e54856134a790919063ffffffff16565b90506116738582613567565b600f5490955061168390826138b1565b600f5550505b8160200151600614156116a8576116a58364e8d4a51000613500565b92505b81516116be906001600160a01b03163385613f27565b6000888152601560209081526040918290205482513381529182018690528183018c905291516001600160a01b03909216917ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb5679181900360600190a2505050505050505050565b6010546001600160a01b031681565b6008546001600160a01b031681565b6040805180820190915260018152603160f81b602082015290565b6006546001600160a01b0390811691161490565b6012546001600160a01b031633146117be576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000838152601560209081526040918290205482516370a0823160e01b8152306004820152925184936001600160a01b03909216926370a082319260248082019391829003018186803b15801561181457600080fd5b505afa158015611828573d6000803e3d6000fd5b505050506040513d602081101561183e57600080fd5b505111611892576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420616d6f756e7420746f20737761700000000000604482015290519081900360640190fd5b600061189d84613f79565b905060006118aa84613f79565b60408051630f7c084960e21b8152600f85810b600483015283900b602482015260448101869052600060648201819052915192935073bebc44782c7db0a1a60cb6fe97d0b483032ff1c792633df021249260848084019391929182900301818387803b15801561191957600080fd5b505af115801561192d573d6000803e3d6000fd5b505050505050505050565b6119406135c4565b6001600160a01b0316611951611e50565b6001600160a01b03161461199a576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b601280546001600160a01b0319166001600160a01b0383811691821790925560075460408051633825b60160e11b815260048101939093525192169163704b6c029160248082019260009290919082900301818387803b1580156119fd57600080fd5b505af1158015611a11573d6000803e3d6000fd5b5050505050565b6001600160a01b031660009081526020819052604090205490565b611a3b6135c4565b6001600160a01b0316611a4c611e50565b6001600160a01b031614611a95576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b611aed6135c4565b6001600160a01b0316611afe611e50565b6001600160a01b031614611b47576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b610bb882826000818110611b5757fe5b90506020020135108015611b7f5750610bb882826001818110611b7657fe5b90506020020135105b8015611b9f5750610bb882826002818110611b9657fe5b90506020020135105b611bda5760405162461bcd60e51b815260040180806020018281038252602e815260200180614756602e913960400191505060405180910390fd5b6000600c805480602002602001604051908101604052809291908181526020018280548015611c2857602002820191906000526020600020905b815481526020019060010190808311611c14575b505050505090508282600c9190611c4092919061460c565b507f3227c0eb87cc3f1cd6f5dbf94481c11a412dc6a3fcbaef0a10671bfe878d46a581848460405180806020018060200183810383528681815181526020019150805190602001906020028083836000838110156111dd5781810151838201526020016111c5565b600d5481565b6006546001600160a01b031681565b600854600160a01b900460ff1681565b611cd56135c4565b6001600160a01b0316611ce6611e50565b6001600160a01b031614611d2f576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b611d596135c4565b6001600160a01b0316611d6a611e50565b6001600160a01b031614611db3576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600c600281548110611dc157fe5b90600052602060002001548110611e095760405162461bcd60e51b81526004018080602001828103825260388152602001806148936038913960400191505060405180910390fd5b600d805490829055604080518281526020810184905281517f88956a36dde8b18c54b71bdb817c8ac920184c2365db87fb7b44c5aecaf738ad929181900390910190a15050565b60055461010090046001600160a01b031690565b600e5481565b611e726135c4565b6001600160a01b0316611e83611e50565b6001600160a01b031614611ecc576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b4260095411158015611eee57506009544290611eeb90620151806138b1565b10155b611f31576040805162461bcd60e51b815260206004820152600f60248201526e119d5b98dd1a5bdb881b1bd8dad959608a1b604482015290519081900360640190fd5b600754604080516370a0823160e01b81526001600160a01b0390921660048301525160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b158015611f9257600080fd5b505afa158015611fa6573d6000803e3d6000fd5b505050506040513d6020811015611fbc57600080fd5b505111612008576040805162461bcd60e51b81526020600482015260156024820152744e6f2062616c616e636520746f206d69677261746560581b604482015290519081900360640190fd5b6008546001600160a01b031661205a576040805162461bcd60e51b81526020600482015260126024820152714e6f2070656e64696e67537472617465677960701b604482015290519081900360640190fd5b600754604080516370a0823160e01b81526001600160a01b0390921660048301525160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b1580156120bb57600080fd5b505afa1580156120cf573d6000803e3d6000fd5b505050506040513d60208110156120e557600080fd5b505160075460085491925061211d9173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916001600160a01b03908116911684613fa1565b60078054600880546001600160a01b031983166001600160a01b0382811691909117948590556001600160a81b0319909116600160a01b179091559081169161217f9173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29116600019613346565b61219f73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2826000613346565b60006009556007546040805184815290516001600160a01b03928316928416917f77e495c0e82622b2e795fb14f2a956e1dd14664ea8dbc629c12f4859b416aaea919081900360200190a35050565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ce05780601f10610cb557610100808354040283529160200191610ce0565b60146020526000908152604090205481565b6000610cff61226e6135c4565b84610f1d8560405180606001604052806025815260200161497460259139600160006122986135c4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061381a565b6122d16135c4565b6001600160a01b03166122e2611e50565b6001600160a01b03161461232b576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b610bb8811061236b5760405162461bcd60e51b81526004018080602001828103825260368152602001806146b26036913960400191505060405180910390fd5b600e805490829055604051829082907f4c98cf9b88d370c1f7909301995611f647088f4c05d29cb98073fb4e20dcb14790600090a35050565b6123ac6135c4565b6001600160a01b03166123bd611e50565b6001600160a01b031614612406576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031681565b6000610cff6124446135c4565b84846136bf565b60008061245a83610b86613ffb565b9050610f2681600760009054906101000a90046001600160a01b03166001600160a01b0316631a595f656040518163ffffffff1660e01b815260040160206040518083038186803b1580156124ae57600080fd5b505afa1580156124c2573d6000803e3d6000fd5b505050506040513d60208110156124d857600080fd5b5051906138b1565b60008061250073ee9f2375b4bdf6387aa8265dd4fb8f16512a1d46613ac5565b90506000612521735f4ec3df9cbd43714fe2740f5e3616155c5b8419613ac5565b905061253d68056bc75e2d63100000610b8c83610b868661244b565b9250505090565b61254c6135c4565b6001600160a01b031661255d611e50565b6001600160a01b0316146125a6576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600a6001815481106125b457fe5b906000526020600020015481116125fc5760405162461bcd60e51b81526004018080602001828103825260308152602001806147d96030913960400191505060405180910390fd5b600b805490829055604051829082907fef2a4c2ea48c640ebf60d3ed1b6c41747f60e3c5bf7b290e4ad0d156839b643390600090a35050565b6011546001600160a01b031681565b6013546001600160a01b03163314806126755750612660611e50565b6001600160a01b0316336001600160a01b0316145b6126b7576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601380546001600160a01b0319166001600160a01b0383811691821790925560075460408051630c7b9d5360e41b815260048101939093525192169163c7b9d5309160248082019260009290919082900301818387803b1580156119fd57600080fd5b600b5481565b6012546001600160a01b0316331461276c576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b8060008151811061277957fe5b6020908102919091018101516000805260159091527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aef558051819060019081106127bf57fe5b602090810291909101810151600160005260159091527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818f5580518190600290811061280657fe5b602090810291909101810151600260005260159091527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0d5550565b6012546001600160a01b0316331461288d576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663db2e21bc6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3332148061291a575061291a3361175e565b612962576040805162461bcd60e51b81526020600482015260146024820152734f6e6c7920454f41206f72204269636f6e6f6d7960601b604482015290519081900360640190fd5b600082116129a9576040805162461bcd60e51b815260206004820152600f60248201526e0416d6f756e74206d757374203e203608c1b604482015290519081900360640190fd5b60006129b48261390b565b905060006129c18261244b565b905060006129cd6135c4565b6000858152601560205260409020549091506129f4906001600160a01b0316823088613fa1565b600084815260156020526040902060010154859060061415612a2257612a1f8664e8d4a510006134a7565b95505b6000600a600081548110612a3257fe5b9060005260206000200154871015612a6457600c600081548110612a5257fe5b90600052602060002001549050612aae565b600a600181548110612a7257fe5b90600052602060002001548711612a9157600c600181548110612a5257fe5b600b54871015612aa957600c600281548110612a5257fe5b50600d545b6000612ac0612710610b8c8a856134a7565b600f54909150612ad090826138b1565b600f55612add8882613567565b6001600160a01b038516600090815260146020526040902054909850612b0390896138b1565b6001600160a01b038516600090815260146020526040812091909155612b35670de0b6b3a7640000610b8c8b8a6134a7565b90506000612b41610d8d565b15612b5a57612b5587610b8c611404610d8d565b612b5c565b815b9050612b6886826141f7565b6000898152601560209081526040918290205482516001600160a01b038a8116825292810189905280840185905292519116917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7919081900360600190a250505050505050505050565b600a8181548110610e9457600080fd5b6012546001600160a01b03163314612c2e576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b60408051606080820183527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed546001600160a01b0390811683527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aee546020848101919091527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aef5484860152845180840186527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d54831681527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818e54818301527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818f5481870152600260005260158252855193840186527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b5490921683527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0c54908301527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0d5493820193909352600f54919291612dcd9064e8d4a51000613500565b600f81905515801590612e5d5750600f5483600001516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612e2f57600080fd5b505afa158015612e43573d6000803e3d6000fd5b505050506040513d6020811015612e5957600080fd5b5051115b15612f32576000612e7f6005610b8c6002600f546134a790919063ffffffff16565b6010548551919250612e9e916001600160a01b03908116911683613f27565b6011548451612eba916001600160a01b03918216911683613f27565b601354600f54612ef6916001600160a01b031690612ee4908490612ede9082613567565b90613567565b86516001600160a01b03169190613f27565b600f5460408051918252517fac666b559266a78134e451d448294dee5b26768856cdc24f37cd43c218ec790a9181900360200190a1506000600f555b6000612f42600f54612ede6124e0565b90506000612f63612710610b8c8760400151856134a790919063ffffffff16565b90506000612f84612710610b8c8760400151866134a790919063ffffffff16565b90506000612fa5612710610b8c8760400151876134a790919063ffffffff16565b9050612fb58760000151846142e7565b8551612fc190836142e7565b612fd08164e8d4a510006134a7565b9050612fe08560000151826142e7565b604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b15801561303557600080fd5b505afa158015613049573d6000803e3d6000fd5b505050506040513d602081101561305f57600080fd5b50519050801561310257600754604080516255f9e960e71b81526004810184905290516001600160a01b0390921691632afcf4809160248082019260009290919082900301818387803b1580156130b557600080fd5b505af11580156130c9573d6000803e3d6000fd5b50506040805184815290517fcf1340fdef77efc3d2c88bbe924ef48a000f661f5399684f1cb9b6cfcc2c900e9350908190036020019150a15b5050505050505050565b6131146135c4565b6001600160a01b0316613125611e50565b6001600160a01b03161461316e576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b6001600160a01b0381166131b35760405162461bcd60e51b81526004018080602001828103825260268152602001806146e86026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6012546001600160a01b031681565b6132316135c4565b6001600160a01b0316613242611e50565b6001600160a01b03161461328b576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b613298426202a3006138b1565b6009556008805460ff60a01b19169055565b6012546001600160a01b031633146132f6576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663fdb5a03e6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b8015806133cc575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561339e57600080fd5b505afa1580156133b2573d6000803e3d6000fd5b505050506040513d60208110156133c857600080fd5b5051155b6134075760405162461bcd60e51b815260040180806020018281038252603681526020018061493e6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052613459908490614394565b505050565b60006018361080159061347557506134753361175e565b15613489575060131936013560601c610ce8565b5033610ce8565b606061349f8484600085614445565b949350505050565b6000826134b657506000610d03565b828202828482816134c357fe5b0414610f265760405162461bcd60e51b81526004018080602001828103825260218152602001806148096021913960400191505060405180910390fd5b6000808211613556576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161355f57fe5b049392505050565b6000828211156135be576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006135ce61345e565b905090565b6001600160a01b0383166136185760405162461bcd60e51b81526004018080602001828103825260248152602001806148f06024913960400191505060405180910390fd5b6001600160a01b03821661365d5760405162461bcd60e51b815260040180806020018281038252602281526020018061470e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166137045760405162461bcd60e51b81526004018080602001828103825260258152602001806148cb6025913960400191505060405180910390fd5b6001600160a01b0382166137495760405162461bcd60e51b815260040180806020018281038252602381526020018061466d6023913960400191505060405180910390fd5b613754838383613459565b61379181604051806060016040528060268152602001614730602691396001600160a01b038616600090815260208190526040902054919061381a565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546137c090826138b1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156138a95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561386e578181015183820152602001613856565b50505050905090810190601f16801561389b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f26576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008181526015602052604081205481906001600160a01b031673dac17f958d2ee523a2206206994597c13d831ec7141561395b575073ee9f2375b4bdf6387aa8265dd4fb8f16512a1d466139c0565b6000838152601560205260409020546001600160a01b031673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4814156139a9575073986b5e1e1755e3c2440e960477f25201b0a8bbd46139c0565b5073773616e4d11a78f511299002da57a0a94577f1f45b610f2681613ac5565b6001600160a01b038216613a0e5760405162461bcd60e51b81526004018080602001828103825260218152602001806148726021913960400191505060405180910390fd5b613a1a82600083613459565b613a5781604051806060016040528060228152602001614690602291396001600160a01b038516600090815260208190526040902054919061381a565b6001600160a01b038316600090815260208190526040902055600254613a7d9082613567565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000808290506000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b158015613b0657600080fd5b505afa158015613b1a573d6000803e3d6000fd5b505050506040513d6020811015613b3057600080fd5b5051949350505050565b604080516002808252606080830184529260009291906020830190803683370190505090508381600081518110613b6d57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110613b9b57fe5b6001600160a01b039092166020928302919091018201526040805163d06ca61f60e01b8152600481018881526024820192835284516044830152845160009473d9e1ce17f2641f24ae83637ab66a2cca9c378b9f9463d06ca61f948c948994909360649092019185810191028083838c5b83811015613c24578181015183820152602001613c0c565b50505050905001935050505060006040518083038186803b158015613c4857600080fd5b505afa158015613c5c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613c8557600080fd5b8101908080516040519392919084600160201b821115613ca457600080fd5b908301906020820185811115613cb957600080fd5b82518660208202830111600160201b82111715613cd557600080fd5b82525081516020918201928201910280838360005b83811015613d02578181015183820152602001613cea565b505050509050016040525050509050600081600181518110613d2057fe5b60200260200101511115613ebe5773d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b03166338ed17398760008530426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015613dc7578181015183820152602001613daf565b505050509050019650505050505050600060405180830381600087803b158015613df057600080fd5b505af1158015613e04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613e2d57600080fd5b8101908080516040519392919084600160201b821115613e4c57600080fd5b908301906020820185811115613e6157600080fd5b82518660208202830111600160201b82111715613e7d57600080fd5b82525081516020918201928201910280838360005b83811015613eaa578181015183820152602001613e92565b505050509050016040525050509250613f1e565b604080516002808252606082018352600092602083019080368337019050509050600081600081518110613eee57fe5b602002602001018181525050600081600181518110613f0957fe5b60209081029190910101529250610f26915050565b50509392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613459908490614394565b600081613f8857506002610c4f565b8160011415613f9957506001610c4f565b506000610c4f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b2e908590614394565b600f5460026000908152601560209081527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b54604080516370a0823160e01b81523060048201529051939485946141dd949193612ede936001600160a01b03909116926370a0823192602480840193829003018186803b15801561407e57600080fd5b505afa158015614092573d6000803e3d6000fd5b505050506040513d60208110156140a857600080fd5b50516001600052601560209081527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d54604080516370a0823160e01b815230600482015290516141d79361415e9364e8d4a51000936001600160a01b03909116926370a0823192602480840193919291829003018186803b15801561412c57600080fd5b505afa158015614140573d6000803e3d6000fd5b505050506040513d602081101561415657600080fd5b5051906134a7565b60008052601560209081527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed54604080516370a0823160e01b815230600482015290516141d79364e8d4a51000936001600160a01b0316926370a082319260248083019392829003018186803b15801561412c57600080fd5b906138b1565b90506141f181670de0b6b3a7640000613500565b91505090565b6001600160a01b038216614252576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61425e60008383613459565b60025461426b90826138b1565b6002556001600160a01b03821660009081526020819052604090205461429190826138b1565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561433657600080fd5b505afa15801561434a573d6000803e3d6000fd5b505050506040513d602081101561436057600080fd5b505190508181111561345957610b2e6143798284613567565b8473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2613b3a565b60006143e9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134909092919063ffffffff16565b8051909150156134595780806020019051602081101561440857600080fd5b50516134595760405162461bcd60e51b815260040180806020018281038252602a815260200180614914602a913960400191505060405180910390fd5b6060824710156144865760405162461bcd60e51b81526004018080602001828103825260268152602001806147846026913960400191505060405180910390fd5b61448f856145a0565b6144e0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061451e5780518252601f1990920191602091820191016144ff565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614580576040519150601f19603f3d011682016040523d82523d6000602084013e614585565b606091505b50915091506145958282866145a6565b979650505050505050565b3b151590565b606083156145b5575081610f26565b8251156145c55782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561386e578181015183820152602001613856565b828054828255906000526020600020908101928215614647579160200282015b8281111561464757823582559160200191906001019061462c565b50614653929150614657565b5090565b5b80821115614653576000815560010161465856fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636550726f66696c652073686172696e67206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e203330254f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e20333025416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d6178696d756e20616d6f756e74206d7573742067726561746572207468616e206d696e696d756e20616d6f756e74437573746f6d206e6574776f726b206665652074696572206d7573742067726561746572207468616e20746965722032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f2061646472657373437573746f6d206e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e2074696572203245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205c30f8cf0e21a1fb2ef8f194b960fbf33c34217892a4ba070e5e99679cf55c0b64736f6c63430007060033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000000008a00046ab28051a952e64a886cd8961ca90a59bd00000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb48592000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d00000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b9900000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe93400000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103835760003560e01c8063854ab6df116101de578063bd244af41161010f578063dd62ed3e116100ad578063f2fde38b1161007c578063f2fde38b14610a40578063f851a44014610a66578063f99bab2414610a6e578063fdb5a03e14610a7657610383565b8063dd62ed3e146109ca578063e2bbb158146109f8578063e5ec14d414610a1b578063e8b5e51f14610a3857610383565b8063c7b9d530116100e9578063c7b9d530146108f3578063ce25aa7914610919578063d0427eb714610921578063db2e21bc146109c257610383565b8063bd244af4146108c6578063c17b1071146108ce578063c7574839146108eb57610383565b8063a250d69d1161017c578063a8602fea11610156578063a8602fea1461084f578063a8c62e7614610875578063a9059cbb1461087d578063b1cfdc8b146108a957610383565b8063a250d69d146107e0578063a457c2d714610806578063a6478c1f1461083257610383565b80638da5cb5b116101b85780638da5cb5b146107c05780639367b30e146107c85780639580c4bc146107d057806395d89b41146107d857610383565b8063854ab6df1461077557806385d6bb811461077d5780638ce418f9146107a357610383565b806334100fc4116102b857806358acff8f11610256578063715018a611610230578063715018a6146106ef578063737ea0ad146106f757806378fe08d5146107655780637da0a8771461076d57610383565b806358acff8f1461067a578063704b6c02146106a357806370a08231146106c957610383565b80634626402b116102925780634626402b1461063c578063465fc5d214610644578063486ff0cd1461064c578063572b6c051461065457610383565b806334100fc41461057f57806339509351146105ed578063441a3e701461061957610383565b80631fe4a68611610325578063242c8e69116102ff578063242c8e6914610549578063251c1aa3146105515780632859398414610559578063313ce5671461056157610383565b80631fe4a686146104d2578063238b1598146104f657806323b872dd1461051357610383565b8063095ea7b311610361578063095ea7b31461043e5780630d8b76a81461047e57806318160ddd146104a45780631a8f0c0a146104ac57610383565b8063014f51231461038857806304130ef21461039257806306fdde03146103c1575b600080fd5b610390610a7e565b005b6103af600480360360208110156103a857600080fd5b5035610b34565b60408051918252519081900360200190f35b6103c9610c54565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104035781810151838201526020016103eb565b50505050905090810190601f1680156104305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61046a6004803603604081101561045457600080fd5b506001600160a01b038135169060200135610ceb565b604080519115158252519081900360200190f35b6103906004803603602081101561049457600080fd5b50356001600160a01b0316610d09565b6103af610d8d565b610390600480360360208110156104c257600080fd5b50356001600160a01b0316610d93565b6104da610e75565b604080516001600160a01b039092168252519081900360200190f35b6103af6004803603602081101561050c57600080fd5b5035610e84565b61046a6004803603606081101561052957600080fd5b506001600160a01b03813581169160208101359091169060400135610ea5565b6103af610f2d565b6103af610f34565b610390610f3a565b610569610fd6565b6040805160ff9092168252519081900360200190f35b6103906004803603602081101561059557600080fd5b810190602081018135600160201b8111156105af57600080fd5b8201836020820111156105c157600080fd5b803590602001918460208302840111600160201b831117156105e257600080fd5b509092509050610fdf565b61046a6004803603604081101561060357600080fd5b506001600160a01b038135169060200135611223565b6103906004803603604081101561062f57600080fd5b5080359060200135611271565b6104da611725565b6104da611734565b6103c9611743565b61046a6004803603602081101561066a57600080fd5b50356001600160a01b031661175e565b6103906004803603606081101561069057600080fd5b5080359060208101359060400135611772565b610390600480360360208110156106b957600080fd5b50356001600160a01b0316611938565b6103af600480360360208110156106df57600080fd5b50356001600160a01b0316611a18565b610390611a33565b6103906004803603602081101561070d57600080fd5b810190602081018135600160201b81111561072757600080fd5b82018360208201111561073957600080fd5b803590602001918460208302840111600160201b8311171561075a57600080fd5b509092509050611ae5565b6103af611ca8565b6104da611cae565b61046a611cbd565b6103906004803603602081101561079357600080fd5b50356001600160a01b0316611ccd565b610390600480360360208110156107b957600080fd5b5035611d51565b6104da611e50565b6103af611e64565b610390611e6a565b6103c96121ee565b6103af600480360360208110156107f657600080fd5b50356001600160a01b031661224f565b61046a6004803603604081101561081c57600080fd5b506001600160a01b038135169060200135612261565b6103906004803603602081101561084857600080fd5b50356122c9565b6103906004803603602081101561086557600080fd5b50356001600160a01b03166123a4565b6104da612428565b61046a6004803603604081101561089357600080fd5b506001600160a01b038135169060200135612437565b6103af600480360360208110156108bf57600080fd5b503561244b565b6103af6124e0565b610390600480360360208110156108e457600080fd5b5035612544565b6104da612635565b6103906004803603602081101561090957600080fd5b50356001600160a01b0316612644565b6103af61271a565b6103906004803603602081101561093757600080fd5b810190602081018135600160201b81111561095157600080fd5b82018360208201111561096357600080fd5b803590602001918460208302840111600160201b8311171561098457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612720945050505050565b610390612841565b6103af600480360360408110156109e057600080fd5b506001600160a01b03813581169160200135166128dd565b61039060048036036040811015610a0e57600080fd5b5080359060200135612908565b6103af60048036036020811015610a3157600080fd5b5035612bd2565b610390612be2565b61039060048036036020811015610a5657600080fd5b50356001600160a01b031661310c565b6104da61321a565b610390613229565b6103906132aa565b6012546001600160a01b03163314610aca576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663d3927c156040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b505af1158015610b2e573d6000803e3d6000fd5b50505050565b6000818152601560209081526040808320815160608101835281546001600160a01b03168152600182015493810193909352600201549082018190528290610b929061271090610b8c90610b866124e0565b906134a7565b90613500565b9050816020015160121415610bb357610bb08164e8d4a510006134a7565b90505b8151604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610bfd57600080fd5b505afa158015610c11573d6000803e3d6000fd5b505050506040513d6020811015610c2757600080fd5b5051905081811015610c4757610c3d8282613567565b9350505050610c4f565b600093505050505b919050565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ce05780601f10610cb557610100808354040283529160200191610ce0565b820191906000526020600020905b815481529060010190602001808311610cc357829003601f168201915b505050505090505b90565b6000610cff610cf86135c4565b84846135d3565b5060015b92915050565b610d116135c4565b6001600160a01b0316610d22611e50565b6001600160a01b031614610d6b576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60025490565b610d9b6135c4565b6001600160a01b0316610dac611e50565b6001600160a01b031614610df5576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600854600160a01b900460ff16610e53576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207365742070656e64696e67207374726174656779206e6f7700604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b031681565b600c8181548110610e9457600080fd5b600091825260209091200154905081565b6000610eb28484846136bf565b610f2284610ebe6135c4565b610f1d8560405180606001604052806028815260200161482a602891396001600160a01b038a16600090815260016020526040812090610efc6135c4565b6001600160a01b03168152602081019190915260400160002054919061381a565b6135d3565b5060015b9392505050565b6202a30081565b60095481565b6012546001600160a01b03163314610f86576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663285939846040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b60055460ff1690565b610fe76135c4565b6001600160a01b0316610ff8611e50565b6001600160a01b031614611041576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b8181600081811061104e57fe5b90506020020135600014156110aa576040805162461bcd60e51b815260206004820152601a60248201527f4d696e696d756e20616d6f756e742063616e6e6f742062652030000000000000604482015290519081900360640190fd5b818160008181106110b757fe5b90506020020135828260018181106110cb57fe5b905060200201351161110e5760405162461bcd60e51b815260040180806020018281038252602f8152602001806147aa602f913960400191505060405180910390fd5b6000600a80548060200260200160405190810160405280929190818152602001828054801561115c57602002820191906000526020600020905b815481526020019060010190808311611148575b505050505090508282600a919061117492919061460c565b507f27a98e39e1429b018e9a49265f33c203cb4819c6ce1ab3fcb70815f9d738c15b818484604051808060200180602001838103835286818151815260200191508051906020019060200280838360005b838110156111dd5781810151838201526020016111c5565b505050509050018381038252858582818152602001925060200280828437600083820152604051601f909101601f191690920182900397509095505050505050a1505050565b6000610cff6112306135c4565b84610f1d85600160006112416135c4565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906138b1565b3332146112b0576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600082116112f7576040805162461bcd60e51b815260206004820152600f60248201526e0536861726573206d757374203e203608c1b604482015290519081900360640190fd5b600061130233611a18565b905082811015611359576040805162461bcd60e51b815260206004820181905260248201527f496e73756666696369656e742062616c616e636520746f207769746864726177604482015290519081900360640190fd5b33600090815260146020526040812054611379908390610b8c90876134a7565b336000908152601460205260409020549091506113969082613567565b336000908152601460205260408120919091556113b28461390b565b905060006113ce6113c1610d8d565b610b8c88610b868661244b565b90506113da33876139c9565b600061140b6305f5e100610b8c611404735f4ec3df9cbd43714fe2740f5e3616155c5b8419613ac5565b85906134a7565b6000878152601560209081526040808320815160608101835281546001600160a01b03168082526001830154828601526002909201548184015282516370a0823160e01b815230600482015292519596509490926370a082319260248082019391829003018186803b15801561148057600080fd5b505afa158015611494573d6000803e3d6000fd5b505050506040513d60208110156114aa57600080fd5b50516020830151909150600614156114ce576114cb8164e8d4a510006134a7565b90505b808311156116345760075460408051632e1a7d4d60e01b81526004810187905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b15801561152357600080fd5b505af1158015611537573d6000803e3d6000fd5b5050604080516370a0823160e01b81523060048201529051600093506115dc925073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b15801561159357600080fd5b505afa1580156115a7573d6000803e3d6000fd5b505050506040513d60208110156115bd57600080fd5b5051845173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290613b3a565b9050826020015160061461160457806001815181106115f757fe5b6020026020010151611630565b61163064e8d4a510008260018151811061161a57fe5b60200260200101516134a790919063ffffffff16565b9350505b858311156116895760006116488488613567565b90506000611667612710610b8c600e54856134a790919063ffffffff16565b90506116738582613567565b600f5490955061168390826138b1565b600f5550505b8160200151600614156116a8576116a58364e8d4a51000613500565b92505b81516116be906001600160a01b03163385613f27565b6000888152601560209081526040918290205482513381529182018690528183018c905291516001600160a01b03909216917ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb5679181900360600190a2505050505050505050565b6010546001600160a01b031681565b6008546001600160a01b031681565b6040805180820190915260018152603160f81b602082015290565b6006546001600160a01b0390811691161490565b6012546001600160a01b031633146117be576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000838152601560209081526040918290205482516370a0823160e01b8152306004820152925184936001600160a01b03909216926370a082319260248082019391829003018186803b15801561181457600080fd5b505afa158015611828573d6000803e3d6000fd5b505050506040513d602081101561183e57600080fd5b505111611892576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420616d6f756e7420746f20737761700000000000604482015290519081900360640190fd5b600061189d84613f79565b905060006118aa84613f79565b60408051630f7c084960e21b8152600f85810b600483015283900b602482015260448101869052600060648201819052915192935073bebc44782c7db0a1a60cb6fe97d0b483032ff1c792633df021249260848084019391929182900301818387803b15801561191957600080fd5b505af115801561192d573d6000803e3d6000fd5b505050505050505050565b6119406135c4565b6001600160a01b0316611951611e50565b6001600160a01b03161461199a576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b601280546001600160a01b0319166001600160a01b0383811691821790925560075460408051633825b60160e11b815260048101939093525192169163704b6c029160248082019260009290919082900301818387803b1580156119fd57600080fd5b505af1158015611a11573d6000803e3d6000fd5b5050505050565b6001600160a01b031660009081526020819052604090205490565b611a3b6135c4565b6001600160a01b0316611a4c611e50565b6001600160a01b031614611a95576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b611aed6135c4565b6001600160a01b0316611afe611e50565b6001600160a01b031614611b47576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b610bb882826000818110611b5757fe5b90506020020135108015611b7f5750610bb882826001818110611b7657fe5b90506020020135105b8015611b9f5750610bb882826002818110611b9657fe5b90506020020135105b611bda5760405162461bcd60e51b815260040180806020018281038252602e815260200180614756602e913960400191505060405180910390fd5b6000600c805480602002602001604051908101604052809291908181526020018280548015611c2857602002820191906000526020600020905b815481526020019060010190808311611c14575b505050505090508282600c9190611c4092919061460c565b507f3227c0eb87cc3f1cd6f5dbf94481c11a412dc6a3fcbaef0a10671bfe878d46a581848460405180806020018060200183810383528681815181526020019150805190602001906020028083836000838110156111dd5781810151838201526020016111c5565b600d5481565b6006546001600160a01b031681565b600854600160a01b900460ff1681565b611cd56135c4565b6001600160a01b0316611ce6611e50565b6001600160a01b031614611d2f576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b611d596135c4565b6001600160a01b0316611d6a611e50565b6001600160a01b031614611db3576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600c600281548110611dc157fe5b90600052602060002001548110611e095760405162461bcd60e51b81526004018080602001828103825260388152602001806148936038913960400191505060405180910390fd5b600d805490829055604080518281526020810184905281517f88956a36dde8b18c54b71bdb817c8ac920184c2365db87fb7b44c5aecaf738ad929181900390910190a15050565b60055461010090046001600160a01b031690565b600e5481565b611e726135c4565b6001600160a01b0316611e83611e50565b6001600160a01b031614611ecc576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b4260095411158015611eee57506009544290611eeb90620151806138b1565b10155b611f31576040805162461bcd60e51b815260206004820152600f60248201526e119d5b98dd1a5bdb881b1bd8dad959608a1b604482015290519081900360640190fd5b600754604080516370a0823160e01b81526001600160a01b0390921660048301525160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b158015611f9257600080fd5b505afa158015611fa6573d6000803e3d6000fd5b505050506040513d6020811015611fbc57600080fd5b505111612008576040805162461bcd60e51b81526020600482015260156024820152744e6f2062616c616e636520746f206d69677261746560581b604482015290519081900360640190fd5b6008546001600160a01b031661205a576040805162461bcd60e51b81526020600482015260126024820152714e6f2070656e64696e67537472617465677960701b604482015290519081900360640190fd5b600754604080516370a0823160e01b81526001600160a01b0390921660048301525160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b1580156120bb57600080fd5b505afa1580156120cf573d6000803e3d6000fd5b505050506040513d60208110156120e557600080fd5b505160075460085491925061211d9173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916001600160a01b03908116911684613fa1565b60078054600880546001600160a01b031983166001600160a01b0382811691909117948590556001600160a81b0319909116600160a01b179091559081169161217f9173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29116600019613346565b61219f73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2826000613346565b60006009556007546040805184815290516001600160a01b03928316928416917f77e495c0e82622b2e795fb14f2a956e1dd14664ea8dbc629c12f4859b416aaea919081900360200190a35050565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ce05780601f10610cb557610100808354040283529160200191610ce0565b60146020526000908152604090205481565b6000610cff61226e6135c4565b84610f1d8560405180606001604052806025815260200161497460259139600160006122986135c4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061381a565b6122d16135c4565b6001600160a01b03166122e2611e50565b6001600160a01b03161461232b576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b610bb8811061236b5760405162461bcd60e51b81526004018080602001828103825260368152602001806146b26036913960400191505060405180910390fd5b600e805490829055604051829082907f4c98cf9b88d370c1f7909301995611f647088f4c05d29cb98073fb4e20dcb14790600090a35050565b6123ac6135c4565b6001600160a01b03166123bd611e50565b6001600160a01b031614612406576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031681565b6000610cff6124446135c4565b84846136bf565b60008061245a83610b86613ffb565b9050610f2681600760009054906101000a90046001600160a01b03166001600160a01b0316631a595f656040518163ffffffff1660e01b815260040160206040518083038186803b1580156124ae57600080fd5b505afa1580156124c2573d6000803e3d6000fd5b505050506040513d60208110156124d857600080fd5b5051906138b1565b60008061250073ee9f2375b4bdf6387aa8265dd4fb8f16512a1d46613ac5565b90506000612521735f4ec3df9cbd43714fe2740f5e3616155c5b8419613ac5565b905061253d68056bc75e2d63100000610b8c83610b868661244b565b9250505090565b61254c6135c4565b6001600160a01b031661255d611e50565b6001600160a01b0316146125a6576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b600a6001815481106125b457fe5b906000526020600020015481116125fc5760405162461bcd60e51b81526004018080602001828103825260308152602001806147d96030913960400191505060405180910390fd5b600b805490829055604051829082907fef2a4c2ea48c640ebf60d3ed1b6c41747f60e3c5bf7b290e4ad0d156839b643390600090a35050565b6011546001600160a01b031681565b6013546001600160a01b03163314806126755750612660611e50565b6001600160a01b0316336001600160a01b0316145b6126b7576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601380546001600160a01b0319166001600160a01b0383811691821790925560075460408051630c7b9d5360e41b815260048101939093525192169163c7b9d5309160248082019260009290919082900301818387803b1580156119fd57600080fd5b600b5481565b6012546001600160a01b0316331461276c576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b8060008151811061277957fe5b6020908102919091018101516000805260159091527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aef558051819060019081106127bf57fe5b602090810291909101810151600160005260159091527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818f5580518190600290811061280657fe5b602090810291909101810151600260005260159091527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0d5550565b6012546001600160a01b0316331461288d576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663db2e21bc6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3332148061291a575061291a3361175e565b612962576040805162461bcd60e51b81526020600482015260146024820152734f6e6c7920454f41206f72204269636f6e6f6d7960601b604482015290519081900360640190fd5b600082116129a9576040805162461bcd60e51b815260206004820152600f60248201526e0416d6f756e74206d757374203e203608c1b604482015290519081900360640190fd5b60006129b48261390b565b905060006129c18261244b565b905060006129cd6135c4565b6000858152601560205260409020549091506129f4906001600160a01b0316823088613fa1565b600084815260156020526040902060010154859060061415612a2257612a1f8664e8d4a510006134a7565b95505b6000600a600081548110612a3257fe5b9060005260206000200154871015612a6457600c600081548110612a5257fe5b90600052602060002001549050612aae565b600a600181548110612a7257fe5b90600052602060002001548711612a9157600c600181548110612a5257fe5b600b54871015612aa957600c600281548110612a5257fe5b50600d545b6000612ac0612710610b8c8a856134a7565b600f54909150612ad090826138b1565b600f55612add8882613567565b6001600160a01b038516600090815260146020526040902054909850612b0390896138b1565b6001600160a01b038516600090815260146020526040812091909155612b35670de0b6b3a7640000610b8c8b8a6134a7565b90506000612b41610d8d565b15612b5a57612b5587610b8c611404610d8d565b612b5c565b815b9050612b6886826141f7565b6000898152601560209081526040918290205482516001600160a01b038a8116825292810189905280840185905292519116917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7919081900360600190a250505050505050505050565b600a8181548110610e9457600080fd5b6012546001600160a01b03163314612c2e576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b60408051606080820183527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed546001600160a01b0390811683527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aee546020848101919091527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aef5484860152845180840186527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d54831681527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818e54818301527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818f5481870152600260005260158252855193840186527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b5490921683527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0c54908301527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0d5493820193909352600f54919291612dcd9064e8d4a51000613500565b600f81905515801590612e5d5750600f5483600001516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612e2f57600080fd5b505afa158015612e43573d6000803e3d6000fd5b505050506040513d6020811015612e5957600080fd5b5051115b15612f32576000612e7f6005610b8c6002600f546134a790919063ffffffff16565b6010548551919250612e9e916001600160a01b03908116911683613f27565b6011548451612eba916001600160a01b03918216911683613f27565b601354600f54612ef6916001600160a01b031690612ee4908490612ede9082613567565b90613567565b86516001600160a01b03169190613f27565b600f5460408051918252517fac666b559266a78134e451d448294dee5b26768856cdc24f37cd43c218ec790a9181900360200190a1506000600f555b6000612f42600f54612ede6124e0565b90506000612f63612710610b8c8760400151856134a790919063ffffffff16565b90506000612f84612710610b8c8760400151866134a790919063ffffffff16565b90506000612fa5612710610b8c8760400151876134a790919063ffffffff16565b9050612fb58760000151846142e7565b8551612fc190836142e7565b612fd08164e8d4a510006134a7565b9050612fe08560000151826142e7565b604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b15801561303557600080fd5b505afa158015613049573d6000803e3d6000fd5b505050506040513d602081101561305f57600080fd5b50519050801561310257600754604080516255f9e960e71b81526004810184905290516001600160a01b0390921691632afcf4809160248082019260009290919082900301818387803b1580156130b557600080fd5b505af11580156130c9573d6000803e3d6000fd5b50506040805184815290517fcf1340fdef77efc3d2c88bbe924ef48a000f661f5399684f1cb9b6cfcc2c900e9350908190036020019150a15b5050505050505050565b6131146135c4565b6001600160a01b0316613125611e50565b6001600160a01b03161461316e576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b6001600160a01b0381166131b35760405162461bcd60e51b81526004018080602001828103825260268152602001806146e86026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6012546001600160a01b031681565b6132316135c4565b6001600160a01b0316613242611e50565b6001600160a01b03161461328b576040805162461bcd60e51b81526020600482018190526024820152600080516020614852833981519152604482015290519081900360640190fd5b613298426202a3006138b1565b6009556008805460ff60a01b19169055565b6012546001600160a01b031633146132f6576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663fdb5a03e6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b1a57600080fd5b8015806133cc575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561339e57600080fd5b505afa1580156133b2573d6000803e3d6000fd5b505050506040513d60208110156133c857600080fd5b5051155b6134075760405162461bcd60e51b815260040180806020018281038252603681526020018061493e6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052613459908490614394565b505050565b60006018361080159061347557506134753361175e565b15613489575060131936013560601c610ce8565b5033610ce8565b606061349f8484600085614445565b949350505050565b6000826134b657506000610d03565b828202828482816134c357fe5b0414610f265760405162461bcd60e51b81526004018080602001828103825260218152602001806148096021913960400191505060405180910390fd5b6000808211613556576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161355f57fe5b049392505050565b6000828211156135be576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006135ce61345e565b905090565b6001600160a01b0383166136185760405162461bcd60e51b81526004018080602001828103825260248152602001806148f06024913960400191505060405180910390fd5b6001600160a01b03821661365d5760405162461bcd60e51b815260040180806020018281038252602281526020018061470e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166137045760405162461bcd60e51b81526004018080602001828103825260258152602001806148cb6025913960400191505060405180910390fd5b6001600160a01b0382166137495760405162461bcd60e51b815260040180806020018281038252602381526020018061466d6023913960400191505060405180910390fd5b613754838383613459565b61379181604051806060016040528060268152602001614730602691396001600160a01b038616600090815260208190526040902054919061381a565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546137c090826138b1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156138a95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561386e578181015183820152602001613856565b50505050905090810190601f16801561389b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f26576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008181526015602052604081205481906001600160a01b031673dac17f958d2ee523a2206206994597c13d831ec7141561395b575073ee9f2375b4bdf6387aa8265dd4fb8f16512a1d466139c0565b6000838152601560205260409020546001600160a01b031673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4814156139a9575073986b5e1e1755e3c2440e960477f25201b0a8bbd46139c0565b5073773616e4d11a78f511299002da57a0a94577f1f45b610f2681613ac5565b6001600160a01b038216613a0e5760405162461bcd60e51b81526004018080602001828103825260218152602001806148726021913960400191505060405180910390fd5b613a1a82600083613459565b613a5781604051806060016040528060228152602001614690602291396001600160a01b038516600090815260208190526040902054919061381a565b6001600160a01b038316600090815260208190526040902055600254613a7d9082613567565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000808290506000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b158015613b0657600080fd5b505afa158015613b1a573d6000803e3d6000fd5b505050506040513d6020811015613b3057600080fd5b5051949350505050565b604080516002808252606080830184529260009291906020830190803683370190505090508381600081518110613b6d57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110613b9b57fe5b6001600160a01b039092166020928302919091018201526040805163d06ca61f60e01b8152600481018881526024820192835284516044830152845160009473d9e1ce17f2641f24ae83637ab66a2cca9c378b9f9463d06ca61f948c948994909360649092019185810191028083838c5b83811015613c24578181015183820152602001613c0c565b50505050905001935050505060006040518083038186803b158015613c4857600080fd5b505afa158015613c5c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613c8557600080fd5b8101908080516040519392919084600160201b821115613ca457600080fd5b908301906020820185811115613cb957600080fd5b82518660208202830111600160201b82111715613cd557600080fd5b82525081516020918201928201910280838360005b83811015613d02578181015183820152602001613cea565b505050509050016040525050509050600081600181518110613d2057fe5b60200260200101511115613ebe5773d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b03166338ed17398760008530426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015613dc7578181015183820152602001613daf565b505050509050019650505050505050600060405180830381600087803b158015613df057600080fd5b505af1158015613e04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613e2d57600080fd5b8101908080516040519392919084600160201b821115613e4c57600080fd5b908301906020820185811115613e6157600080fd5b82518660208202830111600160201b82111715613e7d57600080fd5b82525081516020918201928201910280838360005b83811015613eaa578181015183820152602001613e92565b505050509050016040525050509250613f1e565b604080516002808252606082018352600092602083019080368337019050509050600081600081518110613eee57fe5b602002602001018181525050600081600181518110613f0957fe5b60209081029190910101529250610f26915050565b50509392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613459908490614394565b600081613f8857506002610c4f565b8160011415613f9957506001610c4f565b506000610c4f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b2e908590614394565b600f5460026000908152601560209081527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b54604080516370a0823160e01b81523060048201529051939485946141dd949193612ede936001600160a01b03909116926370a0823192602480840193829003018186803b15801561407e57600080fd5b505afa158015614092573d6000803e3d6000fd5b505050506040513d60208110156140a857600080fd5b50516001600052601560209081527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d54604080516370a0823160e01b815230600482015290516141d79361415e9364e8d4a51000936001600160a01b03909116926370a0823192602480840193919291829003018186803b15801561412c57600080fd5b505afa158015614140573d6000803e3d6000fd5b505050506040513d602081101561415657600080fd5b5051906134a7565b60008052601560209081527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed54604080516370a0823160e01b815230600482015290516141d79364e8d4a51000936001600160a01b0316926370a082319260248083019392829003018186803b15801561412c57600080fd5b906138b1565b90506141f181670de0b6b3a7640000613500565b91505090565b6001600160a01b038216614252576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61425e60008383613459565b60025461426b90826138b1565b6002556001600160a01b03821660009081526020819052604090205461429190826138b1565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561433657600080fd5b505afa15801561434a573d6000803e3d6000fd5b505050506040513d602081101561436057600080fd5b505190508181111561345957610b2e6143798284613567565b8473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2613b3a565b60006143e9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134909092919063ffffffff16565b8051909150156134595780806020019051602081101561440857600080fd5b50516134595760405162461bcd60e51b815260040180806020018281038252602a815260200180614914602a913960400191505060405180910390fd5b6060824710156144865760405162461bcd60e51b81526004018080602001828103825260268152602001806147846026913960400191505060405180910390fd5b61448f856145a0565b6144e0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061451e5780518252601f1990920191602091820191016144ff565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614580576040519150601f19603f3d011682016040523d82523d6000602084013e614585565b606091505b50915091506145958282866145a6565b979650505050505050565b3b151590565b606083156145b5575081610f26565b8251156145c55782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561386e578181015183820152602001613856565b828054828255906000526020600020908101928215614647579160200282015b8281111561464757823582559160200191906001019061462c565b50614653929150614657565b5090565b5b80821115614653576000815560010161465856fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636550726f66696c652073686172696e67206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e203330254f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e20333025416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d6178696d756e20616d6f756e74206d7573742067726561746572207468616e206d696e696d756e20616d6f756e74437573746f6d206e6574776f726b206665652074696572206d7573742067726561746572207468616e20746965722032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f2061646472657373437573746f6d206e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e2074696572203245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205c30f8cf0e21a1fb2ef8f194b960fbf33c34217892a4ba070e5e99679cf55c0b64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008a00046ab28051a952e64a886cd8961ca90a59bd00000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb48592000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d00000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b9900000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe93400000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693
-----Decoded View---------------
Arg [0] : _strategy (address): 0x8a00046Ab28051a952e64a886cd8961ca90A59Bd
Arg [1] : _treasuryWallet (address): 0x59E83877bD248cBFe392dbB5A8a29959bcb48592
Arg [2] : _communityWallet (address): 0xdd6c35aFF646B2fB7d8A8955Ccbe0994409348d0
Arg [3] : _admin (address): 0x3f68A3c1023d736D8Be867CA49Cb18c543373B99
Arg [4] : _strategist (address): 0x54D003d451c973AD7693F825D5b78Adfc0efe934
Arg [5] : _biconomy (address): 0x84a0856b038eaAd1cC7E297cF34A7e72685A8693
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000008a00046ab28051a952e64a886cd8961ca90a59bd
Arg [1] : 00000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb48592
Arg [2] : 000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d0
Arg [3] : 0000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b99
Arg [4] : 00000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe934
Arg [5] : 00000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693
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.