Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 8 internal transactions
Advanced mode:
Loading...
Loading
Contract Name:
BrewlabsZapInSushi
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; interface IWETH { function deposit() external payable; } interface IUniswapV2Factory { function getPair(address tokenA, address tokenB) external view returns (address pair); } interface IUniswapV2Router02 { function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns ( uint amountA, uint amountB, uint liquidity ); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); } interface IUniswapV2Pair { function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); } interface IMasterChefV2 { function deposit(uint256 _pid, uint256 _amount) external; function withdraw(uint256 _pid, uint256 _amount) external; function pendingSushi(uint256 _pid, address _user) external view returns (uint256); } library Babylonian { function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } // else z = 0 } } contract BrewlabsZapInSushi is Ownable { using SafeERC20 for IERC20; IUniswapV2Factory private constant sushiswapFactory = IUniswapV2Factory(0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac); IUniswapV2Router02 private constant sushiswapRouter = IUniswapV2Router02(0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F); IUniswapV2Router02 private constant uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); IMasterChefV2 private constant masterChef = IMasterChefV2(0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd); IERC20 private constant sushi = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); address private constant wethTokenAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address private constant brewlabsAddress = 0xe745d88A390e89E6562B29F6aC17ec03804050Ad; address internal constant ETHAddress = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; uint256 private constant deadline = 0xf000000000000000000000000000000000000000000000000000000000000000; uint256 public feeAmount; address payable public feeAddress; struct UserInfo { uint256 amount; uint256 rewardDebt; uint256 totalRewards; } struct PoolInfo { uint256 accCakePerShare; uint256 lastRewardBlock; uint256 totalBoostedShare; uint256 totalRewards; } mapping(uint256 => PoolInfo) public poolInfo; mapping(uint256 => address) public lpToken; mapping(uint256 => mapping(address => UserInfo)) public userInfo; uint256 public constant ACC_CAKE_PRECISION = 1e18; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event UpdateFeeAmount(uint256 indexed oldAmount, uint256 indexed newAmount); event UpdateFeeAddress( address indexed oldAddress, address indexed newAddress ); constructor(uint256 _feeAmount, address payable _feeAddress) { feeAmount = _feeAmount; feeAddress = _feeAddress; } receive() external payable { require(msg.sender != tx.origin, "Do not send ETH directly"); } function updateFeeAmount(uint256 _newAmount) external onlyOwner { require( _newAmount != feeAmount, "Brewlabs: Cannot update to same value" ); uint256 _oldAmount = feeAmount; feeAmount = _newAmount; emit UpdateFeeAmount(_oldAmount, _newAmount); } function updateFeeAddress(address payable _newAddress) external onlyOwner { require( _newAddress != feeAddress, "Brewlabs: Cannot update to same value" ); address _oldAddress = feeAddress; feeAddress = _newAddress; emit UpdateFeeAddress(_oldAddress, _newAddress); } function withdrawTokens(address[] calldata tokens) external onlyOwner { for (uint256 i = 0; i < tokens.length; i++) { if (tokens[i] == ETHAddress) { Address.sendValue(payable(owner()), address(this).balance); } else { IERC20(tokens[i]).safeTransfer( owner(), IERC20(tokens[i]).balanceOf(address(this)) ); } } } function zapIn( address _FromTokenContractAddress, address _pairAddress, uint256 _pid, uint256 _amount, uint256 _minPoolTokens, address _rewardAddress ) external payable { if (isETH(_FromTokenContractAddress)) { require( msg.value >= _amount + feeAmount, "Brewlabs: Eth is not enough" ); } else { require(msg.value >= feeAmount, "Brewlabs: Eth is not enough"); } feeAddress.transfer(feeAmount); uint256 LPBought = _performZapIn( _FromTokenContractAddress, _pairAddress, _amount ); require(LPBought >= _minPoolTokens, "Brewlabs: High Slippage"); if (lpToken[_pid] == address(0)) lpToken[_pid] = _pairAddress; deposit(_pid, LPBought, _rewardAddress); emit Deposit(msg.sender, _pid, LPBought); } function zapOut( uint256 _pid, uint256 _amount, address _reward ) external payable { require(msg.value >= feeAmount, "Brewlabs: Eth is not enough"); feeAddress.transfer(feeAmount); PoolInfo memory pool = updatePool(_pid); UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "Brewlabs: Insufficient for withdraw"); masterChef.withdraw(_pid, _amount); settlePendingCake(msg.sender, _pid, _reward); if (_amount > 0) { user.amount = user.amount - _amount; withdraw(_pid, _amount); } user.rewardDebt = (user.amount * pool.accCakePerShare) / ACC_CAKE_PRECISION; poolInfo[_pid].totalBoostedShare = poolInfo[_pid].totalBoostedShare - _amount; emit Withdraw(msg.sender, _pid, _amount); } function pendingCake(uint256 _pid, address _user) external view returns (uint256) { PoolInfo memory pool = poolInfo[_pid]; UserInfo memory user = userInfo[_pid][_user]; uint256 accCakePerShare = pool.accCakePerShare; uint256 lpSupply = pool.totalBoostedShare; if (block.number > pool.lastRewardBlock && lpSupply != 0) { uint256 cakeReward = masterChef.pendingSushi(_pid, address(this)); accCakePerShare = accCakePerShare + (cakeReward * ACC_CAKE_PRECISION) / lpSupply; } return (user.amount * accCakePerShare) / ACC_CAKE_PRECISION - user.rewardDebt; } function deposit( uint256 _pid, uint256 _amount, address _reward ) internal { PoolInfo memory pool = updatePool(_pid); UserInfo storage user = userInfo[_pid][msg.sender]; if (_amount > 0) _approveToken(lpToken[_pid], address(masterChef), _amount); masterChef.deposit(_pid, _amount); if (user.amount > 0) { settlePendingCake(msg.sender, _pid, _reward); } if (_amount > 0) { user.amount = user.amount + _amount; poolInfo[_pid].totalBoostedShare = poolInfo[_pid].totalBoostedShare + _amount; } user.rewardDebt = (user.amount * pool.accCakePerShare) / ACC_CAKE_PRECISION; } function withdraw(uint256 _pid, uint256 _amount) internal { IUniswapV2Pair pair = IUniswapV2Pair(lpToken[_pid]); address token0 = pair.token0(); address token1 = pair.token1(); _approveToken(lpToken[_pid], address(sushiswapRouter), _amount); if (token0 == wethTokenAddress || token1 == wethTokenAddress) { address _token = token0 == wethTokenAddress ? token1 : token0; (uint256 amountToken, uint256 amountETH) = sushiswapRouter .removeLiquidityETH( _token, _amount, 0, 0, address(this), block.timestamp + 600 ); uint256 amountTrade = _token2ETH(_token, amountToken); payable(msg.sender).transfer(amountETH + amountTrade); } else { (uint256 amountA, uint256 amountB) = sushiswapRouter .removeLiquidity( token0, token1, _amount, 0, 0, address(this), block.timestamp + 600 ); uint256 amountETH0 = _token2ETH(token0, amountA); uint256 amountETH1 = _token2ETH(token1, amountB); payable(msg.sender).transfer(amountETH0 + amountETH1); } } function updatePool(uint256 _pid) internal returns (PoolInfo memory pool) { pool = poolInfo[_pid]; if (block.number > pool.lastRewardBlock) { uint256 lpSupply = pool.totalBoostedShare; if (lpSupply > 0) { uint256 cakeReward = masterChef.pendingSushi( _pid, address(this) ); pool.accCakePerShare = pool.accCakePerShare + ((cakeReward * ACC_CAKE_PRECISION) / lpSupply); } pool.lastRewardBlock = block.number; poolInfo[_pid] = pool; } } function settlePendingCake( address _user, uint256 _pid, address _reward ) internal { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accCake = (user.amount * (pool.accCakePerShare)) / ACC_CAKE_PRECISION; uint256 pending = accCake - user.rewardDebt; user.totalRewards = user.totalRewards + pending; pool.totalRewards = pool.totalRewards + pending; if (_reward == address(sushi)) { sushi.safeTransfer(_user, pending); } else if (_reward == lpToken[_pid]) { // swap cake rewards to eth uint amountETH = _token2ETH(address(sushi), pending); // invest the eth to buy LP uint256 _amount = _performZapIn( ETHAddress, lpToken[_pid], amountETH ); // deposit to masterChef manually _approveToken(lpToken[_pid], address(masterChef), _amount); masterChef.deposit(_pid, _amount); // update user and pool info user.amount = user.amount + _amount; pool.totalBoostedShare = pool.totalBoostedShare + _amount; } else { // swap cake to reward token uint256 beforeAmt = IERC20(_reward).balanceOf(address(this)); _token2Token(address(sushi), _reward, pending); uint256 afterAmt = IERC20(_reward).balanceOf(address(this)); IERC20(_reward).safeTransfer(_user, afterAmt - beforeAmt); } } function _performZapIn( address _FromTokenContractAddress, address _pairAddress, uint256 _amount ) internal returns (uint256) { uint256 intermediateAmt; address intermediateToken; (address _ToUniswapToken0, address _ToUniswapToken1) = _getPairTokens( _pairAddress ); if (isETH(_FromTokenContractAddress)) { IWETH(wethTokenAddress).deposit{value: _amount}(); intermediateToken = wethTokenAddress; intermediateAmt = _amount; } else { IERC20(_FromTokenContractAddress).safeTransferFrom( msg.sender, address(this), _amount ); if ( _ToUniswapToken0 == _FromTokenContractAddress || _ToUniswapToken1 == _FromTokenContractAddress ) { intermediateToken = _FromTokenContractAddress; intermediateAmt = _amount; } else { intermediateToken = wethTokenAddress; intermediateAmt = _token2Token( _FromTokenContractAddress, wethTokenAddress, _amount ); } } (uint256 token0Bought, uint256 token1Bought) = _swapIntermediate( intermediateToken, _ToUniswapToken0, _ToUniswapToken1, intermediateAmt ); return _uniDeposit( _ToUniswapToken0, _ToUniswapToken1, token0Bought, token1Bought ); } function _uniDeposit( address _ToUnipoolToken0, address _ToUnipoolToken1, uint256 token0Bought, uint256 token1Bought ) internal returns (uint256) { _approveToken(_ToUnipoolToken0, address(sushiswapRouter), token0Bought); _approveToken(_ToUnipoolToken1, address(sushiswapRouter), token1Bought); (uint256 amountA, uint256 amountB, uint256 LP) = sushiswapRouter .addLiquidity( _ToUnipoolToken0, _ToUnipoolToken1, token0Bought, token1Bought, 1, 1, address(this), deadline ); if (token0Bought > amountA) { IERC20(_ToUnipoolToken0).safeTransfer( msg.sender, token0Bought - amountA ); } if (token1Bought > amountB) { IERC20(_ToUnipoolToken1).safeTransfer( msg.sender, token1Bought - amountB ); } return LP; } function _swapIntermediate( address _toContractAddress, address _ToUnipoolToken0, address _ToUnipoolToken1, uint256 _amount ) internal returns (uint256 token0Bought, uint256 token1Bought) { IUniswapV2Pair pair = IUniswapV2Pair( sushiswapFactory.getPair(_ToUnipoolToken0, _ToUnipoolToken1) ); (uint256 res0, uint256 res1, ) = pair.getReserves(); if (_toContractAddress == _ToUnipoolToken0) { uint256 amountToSwap = calculateSwapInAmount(res0, _amount); if (amountToSwap <= 0) amountToSwap = _amount / 2; token1Bought = _token2Token( _toContractAddress, _ToUnipoolToken1, amountToSwap ); token0Bought = _amount - amountToSwap; } else if (_toContractAddress == _ToUnipoolToken1) { uint256 amountToSwap = calculateSwapInAmount(res1, _amount); if (amountToSwap <= 0) amountToSwap = _amount / 2; token0Bought = _token2Token( _toContractAddress, _ToUnipoolToken0, amountToSwap ); token1Bought = _amount - amountToSwap; } else { uint256 amountToSwap = _amount / 2; token0Bought = _token2Token( _toContractAddress, _ToUnipoolToken0, amountToSwap ); token1Bought = _token2Token( _toContractAddress, _ToUnipoolToken1, _amount - amountToSwap ); } } function _token2Token( address _FromTokenContractAddress, address _ToTokenContractAddress, uint256 tokens2Trade ) internal returns (uint256 tokenBought) { if (_FromTokenContractAddress == _ToTokenContractAddress) { return tokens2Trade; } if (_ToTokenContractAddress == brewlabsAddress) { _approveToken( _FromTokenContractAddress, address(uniswapRouter), tokens2Trade ); address[] memory path = new address[](3); path[0] = _FromTokenContractAddress; path[1] = wethTokenAddress; path[2] = _ToTokenContractAddress; tokenBought = uniswapRouter.swapExactTokensForTokens( tokens2Trade, 1, path, address(this), deadline )[path.length - 1]; } else { _approveToken( _FromTokenContractAddress, address(sushiswapRouter), tokens2Trade ); address[] memory path = new address[](2); path[0] = _FromTokenContractAddress; path[1] = _ToTokenContractAddress; tokenBought = sushiswapRouter.swapExactTokensForTokens( tokens2Trade, 1, path, address(this), deadline )[path.length - 1]; } } function _token2ETH(address _FromTokenContractAddress, uint256 tokens2Trade) internal returns (uint256 amountETH) { _approveToken( _FromTokenContractAddress, address(sushiswapRouter), tokens2Trade ); address[] memory path = new address[](2); path[0] = _FromTokenContractAddress; path[1] = wethTokenAddress; amountETH = sushiswapRouter.swapExactTokensForETH( tokens2Trade, 1, path, address(this), deadline )[path.length - 1]; } function _approveToken(address token, address spender) internal { IERC20 _token = IERC20(token); if (_token.allowance(address(this), spender) > 0) return; else { _token.safeApprove(spender, type(uint256).max); } } function _approveToken( address token, address spender, uint256 amount ) internal { IERC20(token).safeApprove(spender, 0); IERC20(token).safeApprove(spender, amount); } function _getPairTokens(address _pairAddress) internal view returns (address token0, address token1) { IUniswapV2Pair uniPair = IUniswapV2Pair(_pairAddress); token0 = uniPair.token0(); token1 = uniPair.token1(); } function calculateSwapInAmount(uint256 reserveIn, uint256 userIn) internal pure returns (uint256) { return (Babylonian.sqrt( reserveIn * ((userIn * 3988000) + (reserveIn * 3988009)) ) - (reserveIn * 1997)) / 1994; } function isETH(address token) internal pure returns (bool) { return (token == ETHAddress || token == address(0)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.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 Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_feeAmount","type":"uint256"},{"internalType":"address payable","name":"_feeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","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":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"UpdateFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"oldAmount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"UpdateFeeAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ACC_CAKE_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"accCakePerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"totalBoostedShare","type":"uint256"},{"internalType":"uint256","name":"totalRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newAddress","type":"address"}],"name":"updateFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"updateFeeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"totalRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_FromTokenContractAddress","type":"address"},{"internalType":"address","name":"_pairAddress","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minPoolTokens","type":"uint256"},{"internalType":"address","name":"_rewardAddress","type":"address"}],"name":"zapIn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_reward","type":"address"}],"name":"zapOut","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004bb938038062004bb9833981810160405281019062000037919062000218565b620000576200004b620000a760201b60201c565b620000af60201b60201c565b8160018190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200025f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b6200018d8162000178565b81146200019957600080fd5b50565b600081519050620001ad8162000182565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001e082620001b3565b9050919050565b620001f281620001d3565b8114620001fe57600080fd5b50565b6000815190506200021281620001e7565b92915050565b6000806040838503121562000232576200023162000173565b5b600062000242858286016200019c565b9250506020620002558582860162000201565b9150509250929050565b61494a806200026f6000396000f3fe6080604052600436106100ec5760003560e01c80637398b7ea1161008a5780639c697d94116100595780639c697d94146103675780639ea55bb014610383578063bbcaac38146103ac578063f2fde38b146103d557610161565b80637398b7ea1461029557806378ed5d1f146102c05780638da5cb5b146102fd57806393f1a40b1461032857610161565b80635ecb16cd116100c65780635ecb16cd1461020e57806369e15404146102375780636b97ae3714610262578063715018a61461027e57610161565b80631175a1dd146101665780631526fe27146101a357806341275358146101e357610161565b36610161573273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361015f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101569061341e565b60405180910390fd5b005b600080fd5b34801561017257600080fd5b5061018d600480360381019061018891906134e6565b6103fe565b60405161019a9190613535565b60405180910390f35b3480156101af57600080fd5b506101ca60048036038101906101c59190613550565b6105f1565b6040516101da949392919061357d565b60405180910390f35b3480156101ef57600080fd5b506101f8610621565b60405161020591906135e3565b60405180910390f35b34801561021a57600080fd5b5061023560048036038101906102309190613663565b610647565b005b34801561024357600080fd5b5061024c6107f3565b6040516102599190613535565b60405180910390f35b61027c600480360381019061027791906136b0565b6107f9565b005b34801561028a57600080fd5b50610293610aca565b005b3480156102a157600080fd5b506102aa610ade565b6040516102b79190613535565b60405180910390f35b3480156102cc57600080fd5b506102e760048036038101906102e29190613550565b610aea565b6040516102f49190613712565b60405180910390f35b34801561030957600080fd5b50610312610b1d565b60405161031f9190613712565b60405180910390f35b34801561033457600080fd5b5061034f600480360381019061034a91906134e6565b610b46565b60405161035e9392919061372d565b60405180910390f35b610381600480360381019061037c9190613764565b610b7d565b005b34801561038f57600080fd5b506103aa60048036038101906103a59190613550565b610e00565b005b3480156103b857600080fd5b506103d360048036038101906103ce919061381d565b610e8c565b005b3480156103e157600080fd5b506103fc60048036038101906103f7919061384a565b610fea565b005b60008060036000858152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905060006005600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806060016040529081600082015481526020016001820154815260200160028201548152505090506000826000015190506000836040015190508360200151431180156104ec575060008114155b156105b357600073c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663195426ec89306040518363ffffffff1660e01b8152600401610542929190613877565b602060405180830381865afa15801561055f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058391906138b5565b905081670de0b6b3a76400008261059a9190613911565b6105a49190613982565b836105af91906139b3565b9250505b8260200151670de0b6b3a76400008385600001516105d19190613911565b6105db9190613982565b6105e591906139e7565b94505050505092915050565b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61064f61106d565b60005b828290508110156107ee5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff1683838381811061069b5761069a613a1b565b5b90506020020160208101906106b0919061384a565b73ffffffffffffffffffffffffffffffffffffffff16036106e1576106dc6106d6610b1d565b476110eb565b6107db565b6107da6106ec610b1d565b8484848181106106ff576106fe613a1b565b5b9050602002016020810190610714919061384a565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161074c9190613712565b602060405180830381865afa158015610769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078d91906138b5565b8585858181106107a05761079f613a1b565b5b90506020020160208101906107b5919061384a565b73ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b5b80806107e690613a4a565b915050610652565b505050565b60015481565b60015434101561083e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083590613ade565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f193505050501580156108a8573d6000803e3d6000fd5b5060006108b484611265565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508381600001541015610951576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094890613b70565b60405180910390fd5b73c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663441a3e7086866040518363ffffffff1660e01b81526004016109a0929190613b90565b600060405180830381600087803b1580156109ba57600080fd5b505af11580156109ce573d6000803e3d6000fd5b505050506109dd3386856113f0565b6000841115610a09578381600001546109f691906139e7565b8160000181905550610a08858561189c565b5b670de0b6b3a764000082600001518260000154610a269190613911565b610a309190613982565b8160010181905550836003600087815260200190815260200160002060020154610a5a91906139e7565b6003600087815260200190815260200160002060020181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56886604051610abb9190613535565b60405180910390a35050505050565b610ad261106d565b610adc6000611d32565b565b670de0b6b3a764000081565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6005602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154905083565b610b8686611df6565b15610be05760015483610b9991906139b3565b341015610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290613ade565b60405180910390fd5b610c26565b600154341015610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c90613ade565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f19350505050158015610c90573d6000803e3d6000fd5b506000610c9e878786611e79565b905082811015610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda90613c05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610d9d57856004600087815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b610da885828461203a565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1583604051610def9190613535565b60405180910390a350505050505050565b610e0861106d565b6001548103610e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4390613c97565b60405180910390fd5b600060015490508160018190555081817f42fc0ee30f9b1345acb70fb2449823ad2e6bd461e27507685db66fd8133d517060405160405180910390a35050565b610e9461106d565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b90613c97565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f902851878f378b5ada06366b0ecb192abf50a68836fd2862d2bc551c174a6f8a60405160405180910390a35050565b610ff261106d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105890613d29565b60405180910390fd5b61106a81611d32565b50565b611075612225565b73ffffffffffffffffffffffffffffffffffffffff16611093610b1d565b73ffffffffffffffffffffffffffffffffffffffff16146110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e090613d95565b60405180910390fd5b565b8047101561112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112590613e01565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161115490613e52565b60006040518083038185875af1925050503d8060008114611191576040519150601f19603f3d011682016040523d82523d6000602084013e611196565b606091505b50509050806111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d190613ed9565b60405180910390fd5b505050565b6112608363a9059cbb60e01b84846040516024016111fe929190613ef9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061222d565b505050565b61126d613399565b60036000838152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905080602001514311156113eb5760008160400151905060008111156113a057600073c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663195426ec85306040518363ffffffff1660e01b8152600401611324929190613877565b602060405180830381865afa158015611341573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136591906138b5565b905081670de0b6b3a76400008261137c9190613911565b6113869190613982565b836000015161139591906139b3565b836000018181525050505b43826020018181525050816003600085815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030155905050505b919050565b600060036000848152602001908152602001600020905060006005600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000670de0b6b3a76400008360000154836000015461147a9190613911565b6114849190613982565b9050600082600101548261149891906139e7565b90508083600201546114aa91906139b3565b83600201819055508084600301546114c291906139b3565b8460030181905550736b3595068778dd592e39a122f4f5a5cf09c90fe273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611555576115508782736b3595068778dd592e39a122f4f5a5cf09c90fe273ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b611893565b6004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361173d5760006115db736b3595068778dd592e39a122f4f5a5cf09c90fe2836122f4565b9050600061163173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600460008b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611e79565b9050611685600460008a815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673c2edad668740f1aa35e4d8f227fb8e17dca888cd83612503565b73c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663e2bbb15889836040518363ffffffff1660e01b81526004016116d4929190613b90565b600060405180830381600087803b1580156116ee57600080fd5b505af1158015611702573d6000803e3d6000fd5b5050505080856000015461171691906139b3565b856000018190555080866002015461172e91906139b3565b86600201819055505050611892565b60008573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117789190613712565b602060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b991906138b5565b90506117da736b3595068778dd592e39a122f4f5a5cf09c90fe2878461255f565b5060008673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118169190613712565b602060405180830381865afa158015611833573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185791906138b5565b905061188f89838361186991906139e7565b8973ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b50505b5b50505050505050565b60006004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119459190613f37565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611994573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b89190613f37565b9050611a0c6004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f86612503565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611a99575073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15611c0857600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611aed5782611aef565b815b905060008073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166302751cec84896000803061025842611b3891906139b3565b6040518763ffffffff1660e01b8152600401611b5996959493929190613fa9565b60408051808303816000875af1158015611b77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9b919061400a565b915091506000611bab84846122f4565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc8284611bd391906139b3565b9081150290604051600060405180830381858888f19350505050158015611bfe573d6000803e3d6000fd5b5050505050611d2b565b60008073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff1663baa2abde8585896000803061025842611c5091906139b3565b6040518863ffffffff1660e01b8152600401611c72979695949392919061404a565b60408051808303816000875af1158015611c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb4919061400a565b915091506000611cc485846122f4565b90506000611cd285846122f4565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc8284611cfa91906139b3565b9081150290604051600060405180830381858888f19350505050158015611d25573d6000803e3d6000fd5b50505050505b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611e725750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000806000806000611e8a87612a3a565b91509150611e9788611df6565b15611f305773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0876040518263ffffffff1660e01b81526004016000604051808303818588803b158015611ef857600080fd5b505af1158015611f0c573d6000803e3d6000fd5b505050505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2925085935061200c565b611f5d3330888b73ffffffffffffffffffffffffffffffffffffffff16612b2a909392919063ffffffff16565b8773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611fc257508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15611fd25787925085935061200b565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc292506120088873c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28861255f565b93505b5b60008061201b85858589612bb3565b9150915061202b84848484612e1a565b96505050505050509392505050565b600061204584611265565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008411156120f7576120f66004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673c2edad668740f1aa35e4d8f227fb8e17dca888cd86612503565b5b73c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663e2bbb15886866040518363ffffffff1660e01b8152600401612146929190613b90565b600060405180830381600087803b15801561216057600080fd5b505af1158015612174573d6000803e3d6000fd5b50505050600081600001541115612191576121903386856113f0565b5b60008411156121ef578381600001546121aa91906139b3565b81600001819055508360036000878152602001908152602001600020600201546121d491906139b3565b60036000878152602001908152602001600020600201819055505b670de0b6b3a76400008260000151826000015461220c9190613911565b6122169190613982565b81600101819055505050505050565b600033905090565b600061228f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612fb09092919063ffffffff16565b90506000815111156122ef57808060200190518101906122af91906140f1565b6122ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e590614190565b60405180910390fd5b5b505050565b60006123158373d9e1ce17f2641f24ae83637ab66a2cca9c378b9f84612503565b6000600267ffffffffffffffff811115612332576123316141b0565b5b6040519080825280602002602001820160405280156123605781602001602082028036833780820191505090505b509050838160008151811061237857612377613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106123db576123da613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166318cbafe584600184307ff0000000000000000000000000000000000000000000000000000000000000006040518663ffffffff1660e01b815260040161248b9594939291906142d8565b6000604051808303816000875af11580156124aa573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906124d39190614452565b600182516124e191906139e7565b815181106124f2576124f1613a1b565b5b602002602001015191505092915050565b61252f8260008573ffffffffffffffffffffffffffffffffffffffff16612fc89092919063ffffffff16565b61255a82828573ffffffffffffffffffffffffffffffffffffffff16612fc89092919063ffffffff16565b505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361259c57819050612a33565b73e745d88a390e89e6562b29f6ac17ec03804050ad73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361283e5761260284737a250d5630b4cf539739df2c5dacb4c659f2488d84612503565b6000600367ffffffffffffffff81111561261f5761261e6141b0565b5b60405190808252806020026020018201604052801561264d5781602001602082028036833780820191505090505b509050848160008151811061266557612664613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106126c8576126c7613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838160028151811061271757612716613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff166338ed173984600184307ff0000000000000000000000000000000000000000000000000000000000000006040518663ffffffff1660e01b81526004016127c79594939291906142d8565b6000604051808303816000875af11580156127e6573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061280f9190614452565b6001825161281d91906139e7565b8151811061282e5761282d613a1b565b5b6020026020010151915050612a32565b61285d8473d9e1ce17f2641f24ae83637ab66a2cca9c378b9f84612503565b6000600267ffffffffffffffff81111561287a576128796141b0565b5b6040519080825280602002602001820160405280156128a85781602001602082028036833780820191505090505b50905084816000815181106128c0576128bf613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838160018151811061290f5761290e613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166338ed173984600184307ff0000000000000000000000000000000000000000000000000000000000000006040518663ffffffff1660e01b81526004016129bf9594939291906142d8565b6000604051808303816000875af11580156129de573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612a079190614452565b60018251612a1591906139e7565b81518110612a2657612a25613a1b565b5b60200260200101519150505b5b9392505050565b60008060008390508073ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab19190613f37565b92508073ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612afe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b229190613f37565b915050915091565b612bad846323b872dd60e01b858585604051602401612b4b9392919061449b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061222d565b50505050565b600080600073c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac73ffffffffffffffffffffffffffffffffffffffff1663e6a4390587876040518363ffffffff1660e01b8152600401612c079291906144d2565b602060405180830381865afa158015612c24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c489190613f37565b90506000808273ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015612c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cbc919061457d565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1603612d5b576000612d208388613117565b905060008111612d3a57600287612d379190613982565b90505b612d458a898361255f565b94508087612d5391906139e7565b955050612e0e565b8673ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1603612dd5576000612d9a8288613117565b905060008111612db457600287612db19190613982565b90505b612dbf8a8a8361255f565b95508087612dcd91906139e7565b945050612e0d565b6000600287612de49190613982565b9050612df18a8a8361255f565b9550612e098a89838a612e0491906139e7565b61255f565b9450505b5b50505094509492505050565b6000612e3b8573d9e1ce17f2641f24ae83637ab66a2cca9c378b9f85612503565b612e5a8473d9e1ce17f2641f24ae83637ab66a2cca9c378b9f84612503565b600080600073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff1663e8e3370089898989600180307ff0000000000000000000000000000000000000000000000000000000000000006040518963ffffffff1660e01b8152600401612edb9897969594939291906145d0565b6060604051808303816000875af1158015612efa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f1e919061464e565b92509250925082861115612f6357612f62338488612f3c91906139e7565b8a73ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b5b81851115612fa257612fa1338387612f7b91906139e7565b8973ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b5b809350505050949350505050565b6060612fbf8484600085613181565b90509392505050565b6000811480613052575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161300f9291906144d2565b602060405180830381865afa15801561302c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061305091906138b5565b145b613091576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308890614713565b60405180910390fd5b6131128363095ea7b360e01b84846040516024016130b0929190613ef9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061222d565b505050565b60006107ca6107cd8461312a9190613911565b613165623cda298661313c9190613911565b623cda208661314b9190613911565b61315591906139b3565b866131609190613911565b613295565b61316f91906139e7565b6131799190613982565b905092915050565b6060824710156131c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131bd906147a5565b60405180910390fd5b6131cf8561330f565b61320e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320590614811565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516132379190614897565b60006040518083038185875af1925050503d8060008114613274576040519150601f19603f3d011682016040523d82523d6000602084013e613279565b606091505b5091509150613289828286613332565b92505050949350505050565b600060038211156132fc57819050600060016002846132b49190613982565b6132be91906139b3565b90505b818110156132f65780915060028182856132db9190613982565b6132e591906139b3565b6132ef9190613982565b90506132c1565b5061330a565b6000821461330957600190505b5b919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561334257829050613392565b6000835111156133555782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338991906148f2565b60405180910390fd5b9392505050565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b600082825260208201905092915050565b7f446f206e6f742073656e6420455448206469726563746c790000000000000000600082015250565b60006134086018836133c1565b9150613413826133d2565b602082019050919050565b60006020820190508181036000830152613437816133fb565b9050919050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61346581613452565b811461347057600080fd5b50565b6000813590506134828161345c565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134b382613488565b9050919050565b6134c3816134a8565b81146134ce57600080fd5b50565b6000813590506134e0816134ba565b92915050565b600080604083850312156134fd576134fc613448565b5b600061350b85828601613473565b925050602061351c858286016134d1565b9150509250929050565b61352f81613452565b82525050565b600060208201905061354a6000830184613526565b92915050565b60006020828403121561356657613565613448565b5b600061357484828501613473565b91505092915050565b60006080820190506135926000830187613526565b61359f6020830186613526565b6135ac6040830185613526565b6135b96060830184613526565b95945050505050565b60006135cd82613488565b9050919050565b6135dd816135c2565b82525050565b60006020820190506135f860008301846135d4565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613623576136226135fe565b5b8235905067ffffffffffffffff8111156136405761363f613603565b5b60208301915083602082028301111561365c5761365b613608565b5b9250929050565b6000806020838503121561367a57613679613448565b5b600083013567ffffffffffffffff8111156136985761369761344d565b5b6136a48582860161360d565b92509250509250929050565b6000806000606084860312156136c9576136c8613448565b5b60006136d786828701613473565b93505060206136e886828701613473565b92505060406136f9868287016134d1565b9150509250925092565b61370c816134a8565b82525050565b60006020820190506137276000830184613703565b92915050565b60006060820190506137426000830186613526565b61374f6020830185613526565b61375c6040830184613526565b949350505050565b60008060008060008060c0878903121561378157613780613448565b5b600061378f89828a016134d1565b96505060206137a089828a016134d1565b95505060406137b189828a01613473565b94505060606137c289828a01613473565b93505060806137d389828a01613473565b92505060a06137e489828a016134d1565b9150509295509295509295565b6137fa816135c2565b811461380557600080fd5b50565b600081359050613817816137f1565b92915050565b60006020828403121561383357613832613448565b5b600061384184828501613808565b91505092915050565b6000602082840312156138605761385f613448565b5b600061386e848285016134d1565b91505092915050565b600060408201905061388c6000830185613526565b6138996020830184613703565b9392505050565b6000815190506138af8161345c565b92915050565b6000602082840312156138cb576138ca613448565b5b60006138d9848285016138a0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061391c82613452565b915061392783613452565b925082820261393581613452565b9150828204841483151761394c5761394b6138e2565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061398d82613452565b915061399883613452565b9250826139a8576139a7613953565b5b828204905092915050565b60006139be82613452565b91506139c983613452565b92508282019050808211156139e1576139e06138e2565b5b92915050565b60006139f282613452565b91506139fd83613452565b9250828203905081811115613a1557613a146138e2565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613a5582613452565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613a8757613a866138e2565b5b600182019050919050565b7f427265776c6162733a20457468206973206e6f7420656e6f7567680000000000600082015250565b6000613ac8601b836133c1565b9150613ad382613a92565b602082019050919050565b60006020820190508181036000830152613af781613abb565b9050919050565b7f427265776c6162733a20496e73756666696369656e7420666f7220776974686460008201527f7261770000000000000000000000000000000000000000000000000000000000602082015250565b6000613b5a6023836133c1565b9150613b6582613afe565b604082019050919050565b60006020820190508181036000830152613b8981613b4d565b9050919050565b6000604082019050613ba56000830185613526565b613bb26020830184613526565b9392505050565b7f427265776c6162733a204869676820536c697070616765000000000000000000600082015250565b6000613bef6017836133c1565b9150613bfa82613bb9565b602082019050919050565b60006020820190508181036000830152613c1e81613be2565b9050919050565b7f427265776c6162733a2043616e6e6f742075706461746520746f2073616d652060008201527f76616c7565000000000000000000000000000000000000000000000000000000602082015250565b6000613c816025836133c1565b9150613c8c82613c25565b604082019050919050565b60006020820190508181036000830152613cb081613c74565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613d136026836133c1565b9150613d1e82613cb7565b604082019050919050565b60006020820190508181036000830152613d4281613d06565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d7f6020836133c1565b9150613d8a82613d49565b602082019050919050565b60006020820190508181036000830152613dae81613d72565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613deb601d836133c1565b9150613df682613db5565b602082019050919050565b60006020820190508181036000830152613e1a81613dde565b9050919050565b600081905092915050565b50565b6000613e3c600083613e21565b9150613e4782613e2c565b600082019050919050565b6000613e5d82613e2f565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613ec3603a836133c1565b9150613ece82613e67565b604082019050919050565b60006020820190508181036000830152613ef281613eb6565b9050919050565b6000604082019050613f0e6000830185613703565b613f1b6020830184613526565b9392505050565b600081519050613f31816134ba565b92915050565b600060208284031215613f4d57613f4c613448565b5b6000613f5b84828501613f22565b91505092915050565b6000819050919050565b6000819050919050565b6000613f93613f8e613f8984613f64565b613f6e565b613452565b9050919050565b613fa381613f78565b82525050565b600060c082019050613fbe6000830189613703565b613fcb6020830188613526565b613fd86040830187613f9a565b613fe56060830186613f9a565b613ff26080830185613703565b613fff60a0830184613526565b979650505050505050565b6000806040838503121561402157614020613448565b5b600061402f858286016138a0565b9250506020614040858286016138a0565b9150509250929050565b600060e08201905061405f600083018a613703565b61406c6020830189613703565b6140796040830188613526565b6140866060830187613f9a565b6140936080830186613f9a565b6140a060a0830185613703565b6140ad60c0830184613526565b98975050505050505050565b60008115159050919050565b6140ce816140b9565b81146140d957600080fd5b50565b6000815190506140eb816140c5565b92915050565b60006020828403121561410757614106613448565b5b6000614115848285016140dc565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061417a602a836133c1565b91506141858261411e565b604082019050919050565b600060208201905081810360008301526141a98161416d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000819050919050565b60006142046141ff6141fa846141df565b613f6e565b613452565b9050919050565b614214816141e9565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61424f816134a8565b82525050565b60006142618383614246565b60208301905092915050565b6000602082019050919050565b60006142858261421a565b61428f8185614225565b935061429a83614236565b8060005b838110156142cb5781516142b28882614255565b97506142bd8361426d565b92505060018101905061429e565b5085935050505092915050565b600060a0820190506142ed6000830188613526565b6142fa602083018761420b565b818103604083015261430c818661427a565b905061431b6060830185613703565b6143286080830184613526565b9695505050505050565b6000601f19601f8301169050919050565b61434c82614332565b810181811067ffffffffffffffff8211171561436b5761436a6141b0565b5b80604052505050565b600061437e61343e565b905061438a8282614343565b919050565b600067ffffffffffffffff8211156143aa576143a96141b0565b5b602082029050602081019050919050565b60006143ce6143c98461438f565b614374565b905080838252602082019050602084028301858111156143f1576143f0613608565b5b835b8181101561441a578061440688826138a0565b8452602084019350506020810190506143f3565b5050509392505050565b600082601f830112614439576144386135fe565b5b81516144498482602086016143bb565b91505092915050565b60006020828403121561446857614467613448565b5b600082015167ffffffffffffffff8111156144865761448561344d565b5b61449284828501614424565b91505092915050565b60006060820190506144b06000830186613703565b6144bd6020830185613703565b6144ca6040830184613526565b949350505050565b60006040820190506144e76000830185613703565b6144f46020830184613703565b9392505050565b60006dffffffffffffffffffffffffffff82169050919050565b61451e816144fb565b811461452957600080fd5b50565b60008151905061453b81614515565b92915050565b600063ffffffff82169050919050565b61455a81614541565b811461456557600080fd5b50565b60008151905061457781614551565b92915050565b60008060006060848603121561459657614595613448565b5b60006145a48682870161452c565b93505060206145b58682870161452c565b92505060406145c686828701614568565b9150509250925092565b6000610100820190506145e6600083018b613703565b6145f3602083018a613703565b6146006040830189613526565b61460d6060830188613526565b61461a608083018761420b565b61462760a083018661420b565b61463460c0830185613703565b61464160e0830184613526565b9998505050505050505050565b60008060006060848603121561466757614666613448565b5b6000614675868287016138a0565b9350506020614686868287016138a0565b9250506040614697868287016138a0565b9150509250925092565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b60006146fd6036836133c1565b9150614708826146a1565b604082019050919050565b6000602082019050818103600083015261472c816146f0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061478f6026836133c1565b915061479a82614733565b604082019050919050565b600060208201905081810360008301526147be81614782565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006147fb601d836133c1565b9150614806826147c5565b602082019050919050565b6000602082019050818103600083015261482a816147ee565b9050919050565b600081519050919050565b60005b8381101561485a57808201518184015260208101905061483f565b60008484015250505050565b600061487182614831565b61487b8185613e21565b935061488b81856020860161483c565b80840191505092915050565b60006148a38284614866565b915081905092915050565b600081519050919050565b60006148c4826148ae565b6148ce81856133c1565b93506148de81856020860161483c565b6148e781614332565b840191505092915050565b6000602082019050818103600083015261490c81846148b9565b90509291505056fea2646970667358221220c33c0c0a4dce6a6242075e058912c4d4bad2a276f86619eb503a58667aa000df64736f6c634300081100330000000000000000000000000000000000000000000000000006651728988000000000000000000000000000e1f1dd010bbc2860f81c8f90ea4e38db949bb16f
Deployed Bytecode
0x6080604052600436106100ec5760003560e01c80637398b7ea1161008a5780639c697d94116100595780639c697d94146103675780639ea55bb014610383578063bbcaac38146103ac578063f2fde38b146103d557610161565b80637398b7ea1461029557806378ed5d1f146102c05780638da5cb5b146102fd57806393f1a40b1461032857610161565b80635ecb16cd116100c65780635ecb16cd1461020e57806369e15404146102375780636b97ae3714610262578063715018a61461027e57610161565b80631175a1dd146101665780631526fe27146101a357806341275358146101e357610161565b36610161573273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361015f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101569061341e565b60405180910390fd5b005b600080fd5b34801561017257600080fd5b5061018d600480360381019061018891906134e6565b6103fe565b60405161019a9190613535565b60405180910390f35b3480156101af57600080fd5b506101ca60048036038101906101c59190613550565b6105f1565b6040516101da949392919061357d565b60405180910390f35b3480156101ef57600080fd5b506101f8610621565b60405161020591906135e3565b60405180910390f35b34801561021a57600080fd5b5061023560048036038101906102309190613663565b610647565b005b34801561024357600080fd5b5061024c6107f3565b6040516102599190613535565b60405180910390f35b61027c600480360381019061027791906136b0565b6107f9565b005b34801561028a57600080fd5b50610293610aca565b005b3480156102a157600080fd5b506102aa610ade565b6040516102b79190613535565b60405180910390f35b3480156102cc57600080fd5b506102e760048036038101906102e29190613550565b610aea565b6040516102f49190613712565b60405180910390f35b34801561030957600080fd5b50610312610b1d565b60405161031f9190613712565b60405180910390f35b34801561033457600080fd5b5061034f600480360381019061034a91906134e6565b610b46565b60405161035e9392919061372d565b60405180910390f35b610381600480360381019061037c9190613764565b610b7d565b005b34801561038f57600080fd5b506103aa60048036038101906103a59190613550565b610e00565b005b3480156103b857600080fd5b506103d360048036038101906103ce919061381d565b610e8c565b005b3480156103e157600080fd5b506103fc60048036038101906103f7919061384a565b610fea565b005b60008060036000858152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905060006005600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806060016040529081600082015481526020016001820154815260200160028201548152505090506000826000015190506000836040015190508360200151431180156104ec575060008114155b156105b357600073c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663195426ec89306040518363ffffffff1660e01b8152600401610542929190613877565b602060405180830381865afa15801561055f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058391906138b5565b905081670de0b6b3a76400008261059a9190613911565b6105a49190613982565b836105af91906139b3565b9250505b8260200151670de0b6b3a76400008385600001516105d19190613911565b6105db9190613982565b6105e591906139e7565b94505050505092915050565b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61064f61106d565b60005b828290508110156107ee5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff1683838381811061069b5761069a613a1b565b5b90506020020160208101906106b0919061384a565b73ffffffffffffffffffffffffffffffffffffffff16036106e1576106dc6106d6610b1d565b476110eb565b6107db565b6107da6106ec610b1d565b8484848181106106ff576106fe613a1b565b5b9050602002016020810190610714919061384a565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161074c9190613712565b602060405180830381865afa158015610769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078d91906138b5565b8585858181106107a05761079f613a1b565b5b90506020020160208101906107b5919061384a565b73ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b5b80806107e690613a4a565b915050610652565b505050565b60015481565b60015434101561083e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083590613ade565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f193505050501580156108a8573d6000803e3d6000fd5b5060006108b484611265565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508381600001541015610951576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094890613b70565b60405180910390fd5b73c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663441a3e7086866040518363ffffffff1660e01b81526004016109a0929190613b90565b600060405180830381600087803b1580156109ba57600080fd5b505af11580156109ce573d6000803e3d6000fd5b505050506109dd3386856113f0565b6000841115610a09578381600001546109f691906139e7565b8160000181905550610a08858561189c565b5b670de0b6b3a764000082600001518260000154610a269190613911565b610a309190613982565b8160010181905550836003600087815260200190815260200160002060020154610a5a91906139e7565b6003600087815260200190815260200160002060020181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56886604051610abb9190613535565b60405180910390a35050505050565b610ad261106d565b610adc6000611d32565b565b670de0b6b3a764000081565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6005602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154905083565b610b8686611df6565b15610be05760015483610b9991906139b3565b341015610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290613ade565b60405180910390fd5b610c26565b600154341015610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c90613ade565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f19350505050158015610c90573d6000803e3d6000fd5b506000610c9e878786611e79565b905082811015610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda90613c05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610d9d57856004600087815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b610da885828461203a565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1583604051610def9190613535565b60405180910390a350505050505050565b610e0861106d565b6001548103610e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4390613c97565b60405180910390fd5b600060015490508160018190555081817f42fc0ee30f9b1345acb70fb2449823ad2e6bd461e27507685db66fd8133d517060405160405180910390a35050565b610e9461106d565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b90613c97565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f902851878f378b5ada06366b0ecb192abf50a68836fd2862d2bc551c174a6f8a60405160405180910390a35050565b610ff261106d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105890613d29565b60405180910390fd5b61106a81611d32565b50565b611075612225565b73ffffffffffffffffffffffffffffffffffffffff16611093610b1d565b73ffffffffffffffffffffffffffffffffffffffff16146110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e090613d95565b60405180910390fd5b565b8047101561112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112590613e01565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161115490613e52565b60006040518083038185875af1925050503d8060008114611191576040519150601f19603f3d011682016040523d82523d6000602084013e611196565b606091505b50509050806111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d190613ed9565b60405180910390fd5b505050565b6112608363a9059cbb60e01b84846040516024016111fe929190613ef9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061222d565b505050565b61126d613399565b60036000838152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905080602001514311156113eb5760008160400151905060008111156113a057600073c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663195426ec85306040518363ffffffff1660e01b8152600401611324929190613877565b602060405180830381865afa158015611341573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136591906138b5565b905081670de0b6b3a76400008261137c9190613911565b6113869190613982565b836000015161139591906139b3565b836000018181525050505b43826020018181525050816003600085815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030155905050505b919050565b600060036000848152602001908152602001600020905060006005600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000670de0b6b3a76400008360000154836000015461147a9190613911565b6114849190613982565b9050600082600101548261149891906139e7565b90508083600201546114aa91906139b3565b83600201819055508084600301546114c291906139b3565b8460030181905550736b3595068778dd592e39a122f4f5a5cf09c90fe273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611555576115508782736b3595068778dd592e39a122f4f5a5cf09c90fe273ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b611893565b6004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361173d5760006115db736b3595068778dd592e39a122f4f5a5cf09c90fe2836122f4565b9050600061163173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600460008b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611e79565b9050611685600460008a815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673c2edad668740f1aa35e4d8f227fb8e17dca888cd83612503565b73c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663e2bbb15889836040518363ffffffff1660e01b81526004016116d4929190613b90565b600060405180830381600087803b1580156116ee57600080fd5b505af1158015611702573d6000803e3d6000fd5b5050505080856000015461171691906139b3565b856000018190555080866002015461172e91906139b3565b86600201819055505050611892565b60008573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117789190613712565b602060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b991906138b5565b90506117da736b3595068778dd592e39a122f4f5a5cf09c90fe2878461255f565b5060008673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118169190613712565b602060405180830381865afa158015611833573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185791906138b5565b905061188f89838361186991906139e7565b8973ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b50505b5b50505050505050565b60006004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119459190613f37565b905060008273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611994573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b89190613f37565b9050611a0c6004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f86612503565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611a99575073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15611c0857600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611aed5782611aef565b815b905060008073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166302751cec84896000803061025842611b3891906139b3565b6040518763ffffffff1660e01b8152600401611b5996959493929190613fa9565b60408051808303816000875af1158015611b77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9b919061400a565b915091506000611bab84846122f4565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc8284611bd391906139b3565b9081150290604051600060405180830381858888f19350505050158015611bfe573d6000803e3d6000fd5b5050505050611d2b565b60008073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff1663baa2abde8585896000803061025842611c5091906139b3565b6040518863ffffffff1660e01b8152600401611c72979695949392919061404a565b60408051808303816000875af1158015611c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb4919061400a565b915091506000611cc485846122f4565b90506000611cd285846122f4565b90503373ffffffffffffffffffffffffffffffffffffffff166108fc8284611cfa91906139b3565b9081150290604051600060405180830381858888f19350505050158015611d25573d6000803e3d6000fd5b50505050505b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611e725750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000806000806000611e8a87612a3a565b91509150611e9788611df6565b15611f305773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0876040518263ffffffff1660e01b81526004016000604051808303818588803b158015611ef857600080fd5b505af1158015611f0c573d6000803e3d6000fd5b505050505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2925085935061200c565b611f5d3330888b73ffffffffffffffffffffffffffffffffffffffff16612b2a909392919063ffffffff16565b8773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611fc257508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15611fd25787925085935061200b565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc292506120088873c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28861255f565b93505b5b60008061201b85858589612bb3565b9150915061202b84848484612e1a565b96505050505050509392505050565b600061204584611265565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008411156120f7576120f66004600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673c2edad668740f1aa35e4d8f227fb8e17dca888cd86612503565b5b73c2edad668740f1aa35e4d8f227fb8e17dca888cd73ffffffffffffffffffffffffffffffffffffffff1663e2bbb15886866040518363ffffffff1660e01b8152600401612146929190613b90565b600060405180830381600087803b15801561216057600080fd5b505af1158015612174573d6000803e3d6000fd5b50505050600081600001541115612191576121903386856113f0565b5b60008411156121ef578381600001546121aa91906139b3565b81600001819055508360036000878152602001908152602001600020600201546121d491906139b3565b60036000878152602001908152602001600020600201819055505b670de0b6b3a76400008260000151826000015461220c9190613911565b6122169190613982565b81600101819055505050505050565b600033905090565b600061228f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612fb09092919063ffffffff16565b90506000815111156122ef57808060200190518101906122af91906140f1565b6122ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e590614190565b60405180910390fd5b5b505050565b60006123158373d9e1ce17f2641f24ae83637ab66a2cca9c378b9f84612503565b6000600267ffffffffffffffff811115612332576123316141b0565b5b6040519080825280602002602001820160405280156123605781602001602082028036833780820191505090505b509050838160008151811061237857612377613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106123db576123da613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166318cbafe584600184307ff0000000000000000000000000000000000000000000000000000000000000006040518663ffffffff1660e01b815260040161248b9594939291906142d8565b6000604051808303816000875af11580156124aa573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906124d39190614452565b600182516124e191906139e7565b815181106124f2576124f1613a1b565b5b602002602001015191505092915050565b61252f8260008573ffffffffffffffffffffffffffffffffffffffff16612fc89092919063ffffffff16565b61255a82828573ffffffffffffffffffffffffffffffffffffffff16612fc89092919063ffffffff16565b505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361259c57819050612a33565b73e745d88a390e89e6562b29f6ac17ec03804050ad73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361283e5761260284737a250d5630b4cf539739df2c5dacb4c659f2488d84612503565b6000600367ffffffffffffffff81111561261f5761261e6141b0565b5b60405190808252806020026020018201604052801561264d5781602001602082028036833780820191505090505b509050848160008151811061266557612664613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106126c8576126c7613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838160028151811061271757612716613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff166338ed173984600184307ff0000000000000000000000000000000000000000000000000000000000000006040518663ffffffff1660e01b81526004016127c79594939291906142d8565b6000604051808303816000875af11580156127e6573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061280f9190614452565b6001825161281d91906139e7565b8151811061282e5761282d613a1b565b5b6020026020010151915050612a32565b61285d8473d9e1ce17f2641f24ae83637ab66a2cca9c378b9f84612503565b6000600267ffffffffffffffff81111561287a576128796141b0565b5b6040519080825280602002602001820160405280156128a85781602001602082028036833780820191505090505b50905084816000815181106128c0576128bf613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838160018151811061290f5761290e613a1b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166338ed173984600184307ff0000000000000000000000000000000000000000000000000000000000000006040518663ffffffff1660e01b81526004016129bf9594939291906142d8565b6000604051808303816000875af11580156129de573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612a079190614452565b60018251612a1591906139e7565b81518110612a2657612a25613a1b565b5b60200260200101519150505b5b9392505050565b60008060008390508073ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab19190613f37565b92508073ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612afe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b229190613f37565b915050915091565b612bad846323b872dd60e01b858585604051602401612b4b9392919061449b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061222d565b50505050565b600080600073c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac73ffffffffffffffffffffffffffffffffffffffff1663e6a4390587876040518363ffffffff1660e01b8152600401612c079291906144d2565b602060405180830381865afa158015612c24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c489190613f37565b90506000808273ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015612c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cbc919061457d565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1603612d5b576000612d208388613117565b905060008111612d3a57600287612d379190613982565b90505b612d458a898361255f565b94508087612d5391906139e7565b955050612e0e565b8673ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1603612dd5576000612d9a8288613117565b905060008111612db457600287612db19190613982565b90505b612dbf8a8a8361255f565b95508087612dcd91906139e7565b945050612e0d565b6000600287612de49190613982565b9050612df18a8a8361255f565b9550612e098a89838a612e0491906139e7565b61255f565b9450505b5b50505094509492505050565b6000612e3b8573d9e1ce17f2641f24ae83637ab66a2cca9c378b9f85612503565b612e5a8473d9e1ce17f2641f24ae83637ab66a2cca9c378b9f84612503565b600080600073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff1663e8e3370089898989600180307ff0000000000000000000000000000000000000000000000000000000000000006040518963ffffffff1660e01b8152600401612edb9897969594939291906145d0565b6060604051808303816000875af1158015612efa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f1e919061464e565b92509250925082861115612f6357612f62338488612f3c91906139e7565b8a73ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b5b81851115612fa257612fa1338387612f7b91906139e7565b8973ffffffffffffffffffffffffffffffffffffffff166111df9092919063ffffffff16565b5b809350505050949350505050565b6060612fbf8484600085613181565b90509392505050565b6000811480613052575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161300f9291906144d2565b602060405180830381865afa15801561302c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061305091906138b5565b145b613091576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308890614713565b60405180910390fd5b6131128363095ea7b360e01b84846040516024016130b0929190613ef9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061222d565b505050565b60006107ca6107cd8461312a9190613911565b613165623cda298661313c9190613911565b623cda208661314b9190613911565b61315591906139b3565b866131609190613911565b613295565b61316f91906139e7565b6131799190613982565b905092915050565b6060824710156131c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131bd906147a5565b60405180910390fd5b6131cf8561330f565b61320e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320590614811565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516132379190614897565b60006040518083038185875af1925050503d8060008114613274576040519150601f19603f3d011682016040523d82523d6000602084013e613279565b606091505b5091509150613289828286613332565b92505050949350505050565b600060038211156132fc57819050600060016002846132b49190613982565b6132be91906139b3565b90505b818110156132f65780915060028182856132db9190613982565b6132e591906139b3565b6132ef9190613982565b90506132c1565b5061330a565b6000821461330957600190505b5b919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561334257829050613392565b6000835111156133555782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338991906148f2565b60405180910390fd5b9392505050565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b600082825260208201905092915050565b7f446f206e6f742073656e6420455448206469726563746c790000000000000000600082015250565b60006134086018836133c1565b9150613413826133d2565b602082019050919050565b60006020820190508181036000830152613437816133fb565b9050919050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61346581613452565b811461347057600080fd5b50565b6000813590506134828161345c565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134b382613488565b9050919050565b6134c3816134a8565b81146134ce57600080fd5b50565b6000813590506134e0816134ba565b92915050565b600080604083850312156134fd576134fc613448565b5b600061350b85828601613473565b925050602061351c858286016134d1565b9150509250929050565b61352f81613452565b82525050565b600060208201905061354a6000830184613526565b92915050565b60006020828403121561356657613565613448565b5b600061357484828501613473565b91505092915050565b60006080820190506135926000830187613526565b61359f6020830186613526565b6135ac6040830185613526565b6135b96060830184613526565b95945050505050565b60006135cd82613488565b9050919050565b6135dd816135c2565b82525050565b60006020820190506135f860008301846135d4565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613623576136226135fe565b5b8235905067ffffffffffffffff8111156136405761363f613603565b5b60208301915083602082028301111561365c5761365b613608565b5b9250929050565b6000806020838503121561367a57613679613448565b5b600083013567ffffffffffffffff8111156136985761369761344d565b5b6136a48582860161360d565b92509250509250929050565b6000806000606084860312156136c9576136c8613448565b5b60006136d786828701613473565b93505060206136e886828701613473565b92505060406136f9868287016134d1565b9150509250925092565b61370c816134a8565b82525050565b60006020820190506137276000830184613703565b92915050565b60006060820190506137426000830186613526565b61374f6020830185613526565b61375c6040830184613526565b949350505050565b60008060008060008060c0878903121561378157613780613448565b5b600061378f89828a016134d1565b96505060206137a089828a016134d1565b95505060406137b189828a01613473565b94505060606137c289828a01613473565b93505060806137d389828a01613473565b92505060a06137e489828a016134d1565b9150509295509295509295565b6137fa816135c2565b811461380557600080fd5b50565b600081359050613817816137f1565b92915050565b60006020828403121561383357613832613448565b5b600061384184828501613808565b91505092915050565b6000602082840312156138605761385f613448565b5b600061386e848285016134d1565b91505092915050565b600060408201905061388c6000830185613526565b6138996020830184613703565b9392505050565b6000815190506138af8161345c565b92915050565b6000602082840312156138cb576138ca613448565b5b60006138d9848285016138a0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061391c82613452565b915061392783613452565b925082820261393581613452565b9150828204841483151761394c5761394b6138e2565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061398d82613452565b915061399883613452565b9250826139a8576139a7613953565b5b828204905092915050565b60006139be82613452565b91506139c983613452565b92508282019050808211156139e1576139e06138e2565b5b92915050565b60006139f282613452565b91506139fd83613452565b9250828203905081811115613a1557613a146138e2565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613a5582613452565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613a8757613a866138e2565b5b600182019050919050565b7f427265776c6162733a20457468206973206e6f7420656e6f7567680000000000600082015250565b6000613ac8601b836133c1565b9150613ad382613a92565b602082019050919050565b60006020820190508181036000830152613af781613abb565b9050919050565b7f427265776c6162733a20496e73756666696369656e7420666f7220776974686460008201527f7261770000000000000000000000000000000000000000000000000000000000602082015250565b6000613b5a6023836133c1565b9150613b6582613afe565b604082019050919050565b60006020820190508181036000830152613b8981613b4d565b9050919050565b6000604082019050613ba56000830185613526565b613bb26020830184613526565b9392505050565b7f427265776c6162733a204869676820536c697070616765000000000000000000600082015250565b6000613bef6017836133c1565b9150613bfa82613bb9565b602082019050919050565b60006020820190508181036000830152613c1e81613be2565b9050919050565b7f427265776c6162733a2043616e6e6f742075706461746520746f2073616d652060008201527f76616c7565000000000000000000000000000000000000000000000000000000602082015250565b6000613c816025836133c1565b9150613c8c82613c25565b604082019050919050565b60006020820190508181036000830152613cb081613c74565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613d136026836133c1565b9150613d1e82613cb7565b604082019050919050565b60006020820190508181036000830152613d4281613d06565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d7f6020836133c1565b9150613d8a82613d49565b602082019050919050565b60006020820190508181036000830152613dae81613d72565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613deb601d836133c1565b9150613df682613db5565b602082019050919050565b60006020820190508181036000830152613e1a81613dde565b9050919050565b600081905092915050565b50565b6000613e3c600083613e21565b9150613e4782613e2c565b600082019050919050565b6000613e5d82613e2f565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613ec3603a836133c1565b9150613ece82613e67565b604082019050919050565b60006020820190508181036000830152613ef281613eb6565b9050919050565b6000604082019050613f0e6000830185613703565b613f1b6020830184613526565b9392505050565b600081519050613f31816134ba565b92915050565b600060208284031215613f4d57613f4c613448565b5b6000613f5b84828501613f22565b91505092915050565b6000819050919050565b6000819050919050565b6000613f93613f8e613f8984613f64565b613f6e565b613452565b9050919050565b613fa381613f78565b82525050565b600060c082019050613fbe6000830189613703565b613fcb6020830188613526565b613fd86040830187613f9a565b613fe56060830186613f9a565b613ff26080830185613703565b613fff60a0830184613526565b979650505050505050565b6000806040838503121561402157614020613448565b5b600061402f858286016138a0565b9250506020614040858286016138a0565b9150509250929050565b600060e08201905061405f600083018a613703565b61406c6020830189613703565b6140796040830188613526565b6140866060830187613f9a565b6140936080830186613f9a565b6140a060a0830185613703565b6140ad60c0830184613526565b98975050505050505050565b60008115159050919050565b6140ce816140b9565b81146140d957600080fd5b50565b6000815190506140eb816140c5565b92915050565b60006020828403121561410757614106613448565b5b6000614115848285016140dc565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061417a602a836133c1565b91506141858261411e565b604082019050919050565b600060208201905081810360008301526141a98161416d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000819050919050565b60006142046141ff6141fa846141df565b613f6e565b613452565b9050919050565b614214816141e9565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61424f816134a8565b82525050565b60006142618383614246565b60208301905092915050565b6000602082019050919050565b60006142858261421a565b61428f8185614225565b935061429a83614236565b8060005b838110156142cb5781516142b28882614255565b97506142bd8361426d565b92505060018101905061429e565b5085935050505092915050565b600060a0820190506142ed6000830188613526565b6142fa602083018761420b565b818103604083015261430c818661427a565b905061431b6060830185613703565b6143286080830184613526565b9695505050505050565b6000601f19601f8301169050919050565b61434c82614332565b810181811067ffffffffffffffff8211171561436b5761436a6141b0565b5b80604052505050565b600061437e61343e565b905061438a8282614343565b919050565b600067ffffffffffffffff8211156143aa576143a96141b0565b5b602082029050602081019050919050565b60006143ce6143c98461438f565b614374565b905080838252602082019050602084028301858111156143f1576143f0613608565b5b835b8181101561441a578061440688826138a0565b8452602084019350506020810190506143f3565b5050509392505050565b600082601f830112614439576144386135fe565b5b81516144498482602086016143bb565b91505092915050565b60006020828403121561446857614467613448565b5b600082015167ffffffffffffffff8111156144865761448561344d565b5b61449284828501614424565b91505092915050565b60006060820190506144b06000830186613703565b6144bd6020830185613703565b6144ca6040830184613526565b949350505050565b60006040820190506144e76000830185613703565b6144f46020830184613703565b9392505050565b60006dffffffffffffffffffffffffffff82169050919050565b61451e816144fb565b811461452957600080fd5b50565b60008151905061453b81614515565b92915050565b600063ffffffff82169050919050565b61455a81614541565b811461456557600080fd5b50565b60008151905061457781614551565b92915050565b60008060006060848603121561459657614595613448565b5b60006145a48682870161452c565b93505060206145b58682870161452c565b92505060406145c686828701614568565b9150509250925092565b6000610100820190506145e6600083018b613703565b6145f3602083018a613703565b6146006040830189613526565b61460d6060830188613526565b61461a608083018761420b565b61462760a083018661420b565b61463460c0830185613703565b61464160e0830184613526565b9998505050505050505050565b60008060006060848603121561466757614666613448565b5b6000614675868287016138a0565b9350506020614686868287016138a0565b9250506040614697868287016138a0565b9150509250925092565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b60006146fd6036836133c1565b9150614708826146a1565b604082019050919050565b6000602082019050818103600083015261472c816146f0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061478f6026836133c1565b915061479a82614733565b604082019050919050565b600060208201905081810360008301526147be81614782565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006147fb601d836133c1565b9150614806826147c5565b602082019050919050565b6000602082019050818103600083015261482a816147ee565b9050919050565b600081519050919050565b60005b8381101561485a57808201518184015260208101905061483f565b60008484015250505050565b600061487182614831565b61487b8185613e21565b935061488b81856020860161483c565b80840191505092915050565b60006148a38284614866565b915081905092915050565b600081519050919050565b60006148c4826148ae565b6148ce81856133c1565b93506148de81856020860161483c565b6148e781614332565b840191505092915050565b6000602082019050818103600083015261490c81846148b9565b90509291505056fea2646970667358221220c33c0c0a4dce6a6242075e058912c4d4bad2a276f86619eb503a58667aa000df64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000006651728988000000000000000000000000000e1f1dd010bbc2860f81c8f90ea4e38db949bb16f
-----Decoded View---------------
Arg [0] : _feeAmount (uint256): 1800000000000000
Arg [1] : _feeAddress (address): 0xE1f1dd010BBC2860F81c8F90Ea4E38dB949BB16F
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000006651728988000
Arg [1] : 000000000000000000000000e1f1dd010bbc2860f81c8f90ea4e38db949bb16f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.