ERC-20
Overview
Max Total Supply
12.686243589863282921 YRT
Holders
189
Market
Price
$0.00 @ 0.000000 AVAX
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.015871402764586028 YRTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
UnipoolStrategyV1
Compiler Version
v0.7.3+commit.9bfce1f6
Optimization Enabled:
Yes with 999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "../YakStrategy.sol"; import "../interfaces/IUnipool.sol"; import "../interfaces/IPair.sol"; import "../lib/DexLibrary.sol"; /** * @notice Pool2 strategy for Unipool (based on DexStrategyV6) */ contract UnipoolStrategyV1 is YakStrategy { using SafeMath for uint; IUnipool public stakingContract; IPair private swapPairToken0; IPair private swapPairToken1; constructor ( string memory _name, address _depositToken, address _rewardToken, address _stakingContract, address _swapPairToken0, address _swapPairToken1, address _timelock, uint _minTokensToReinvest, uint _adminFeeBips, uint _devFeeBips, uint _reinvestRewardBips ) { name = _name; depositToken = IERC20(_depositToken); rewardToken = IERC20(_rewardToken); stakingContract = IUnipool(_stakingContract); devAddr = msg.sender; assignSwapPairSafely(_swapPairToken0, _swapPairToken1, _rewardToken); setAllowances(); updateMinTokensToReinvest(_minTokensToReinvest); updateAdminFee(_adminFeeBips); updateDevFee(_devFeeBips); updateReinvestReward(_reinvestRewardBips); updateDepositsEnabled(true); transferOwnership(_timelock); emit Reinvest(0, 0); } /** * @notice Initialization helper for Pair deposit tokens * @dev Checks that selected Pairs are valid for trading reward tokens * @dev Assigns values to swapPairToken0 and swapPairToken1 */ function assignSwapPairSafely(address _swapPairToken0, address _swapPairToken1, address _rewardToken) private { if (_rewardToken != IPair(address(depositToken)).token0() && _rewardToken != IPair(address(depositToken)).token1()) { // deployment checks for non-pool2 require(_swapPairToken0 > address(0), "Swap pair 0 is necessary but not supplied"); require(_swapPairToken1 > address(0), "Swap pair 1 is necessary but not supplied"); swapPairToken0 = IPair(_swapPairToken0); swapPairToken1 = IPair(_swapPairToken1); require(swapPairToken0.token0() == _rewardToken || swapPairToken0.token1() == _rewardToken, "Swap pair supplied does not have the reward token as one of it's pair"); require( swapPairToken0.token0() == IPair(address(depositToken)).token0() || swapPairToken0.token1() == IPair(address(depositToken)).token0(), "Swap pair 0 supplied does not match the pair in question" ); require( swapPairToken1.token0() == IPair(address(depositToken)).token1() || swapPairToken1.token1() == IPair(address(depositToken)).token1(), "Swap pair 1 supplied does not match the pair in question" ); } else if (_rewardToken == IPair(address(depositToken)).token0()) { swapPairToken1 = IPair(address(depositToken)); } else if (_rewardToken == IPair(address(depositToken)).token1()) { swapPairToken0 = IPair(address(depositToken)); } } function setAllowances() public override onlyOwner { depositToken.approve(address(stakingContract), MAX_UINT); } function deposit(uint amount) external override { _deposit(msg.sender, amount); } function depositWithPermit(uint amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external override { depositToken.permit(msg.sender, address(this), amount, deadline, v, r, s); _deposit(msg.sender, amount); } function depositFor(address account, uint amount) external override { _deposit(account, amount); } function _deposit(address account, uint amount) private onlyAllowedDeposits { require(DEPOSITS_ENABLED == true, "UnipoolStrategyV1::_deposit"); if (MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST > 0) { uint unclaimedRewards = checkReward(); if (unclaimedRewards > MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST) { _reinvest(unclaimedRewards); } } require(depositToken.transferFrom(msg.sender, address(this), amount)); _stakeDepositTokens(amount); _mint(account, getSharesForDepositTokens(amount)); totalDeposits = totalDeposits.add(amount); emit Deposit(account, amount); } function withdraw(uint amount) external override { uint depositTokenAmount = getDepositTokensForShares(amount); if (depositTokenAmount > 0) { _withdrawDepositTokens(depositTokenAmount); _safeTransfer(address(depositToken), msg.sender, depositTokenAmount); _burn(msg.sender, amount); totalDeposits = totalDeposits.sub(depositTokenAmount); emit Withdraw(msg.sender, depositTokenAmount); } } function _withdrawDepositTokens(uint amount) private { require(amount > 0, "UnipoolStrategyV1::_withdrawDepositTokens"); stakingContract.withdraw(amount); } function reinvest() external override onlyEOA { uint unclaimedRewards = checkReward(); require(unclaimedRewards >= MIN_TOKENS_TO_REINVEST, "UnipoolStrategyV1::reinvest"); _reinvest(unclaimedRewards); } /** * @notice Reinvest rewards from staking contract to deposit tokens * @dev Reverts if the expected amount of tokens are not returned from `stakingContract` * @param amount deposit tokens to reinvest */ function _reinvest(uint amount) private { stakingContract.claimReward(); uint devFee = amount.mul(DEV_FEE_BIPS).div(BIPS_DIVISOR); if (devFee > 0) { _safeTransfer(address(rewardToken), devAddr, devFee); } uint adminFee = amount.mul(ADMIN_FEE_BIPS).div(BIPS_DIVISOR); if (adminFee > 0) { _safeTransfer(address(rewardToken), owner(), adminFee); } uint reinvestFee = amount.mul(REINVEST_REWARD_BIPS).div(BIPS_DIVISOR); if (reinvestFee > 0) { _safeTransfer(address(rewardToken), msg.sender, reinvestFee); } uint depositTokenAmount = DexLibrary.convertRewardTokensToDepositTokens( amount.sub(devFee).sub(adminFee).sub(reinvestFee), address(rewardToken), address(depositToken), swapPairToken0, swapPairToken1 ); _stakeDepositTokens(depositTokenAmount); totalDeposits = totalDeposits.add(depositTokenAmount); emit Reinvest(totalDeposits, totalSupply); } function _stakeDepositTokens(uint amount) private { require(amount > 0, "UnipoolStrategyV1::_stakeDepositTokens"); stakingContract.stake(amount); } /** * @notice Safely transfer using an anonymosu ERC20 token * @dev Requires token to return true on transfer * @param token address * @param to recipient address * @param value amount */ function _safeTransfer(address token, address to, uint256 value) private { require(IERC20(token).transfer(to, value), 'UnipoolStrategyV1::TRANSFER_FROM_FAILED'); } function checkReward() public override view returns (uint) { return stakingContract.earned(address(this)); } function estimateDeployedBalance() external override view returns (uint) { return stakingContract.balanceOf(address(this)); } function rescueDeployedFunds(uint minReturnAmountAccepted, bool disableDeposits) external override onlyOwner { uint balanceBefore = depositToken.balanceOf(address(this)); stakingContract.withdraw(stakingContract.balanceOf(address(this))); uint balanceAfter = depositToken.balanceOf(address(this)); require(balanceAfter.sub(balanceBefore) >= minReturnAmountAccepted, "UnipoolStrategyV1::rescueDeployedFunds"); totalDeposits = balanceAfter; emit Reinvest(totalDeposits, totalSupply); if (DEPOSITS_ENABLED == true && disableDeposits == true) { updateDepositsEnabled(false); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./lib/SafeMath.sol"; import "./lib/Ownable.sol"; import "./lib/Permissioned.sol"; import "./interfaces/IERC20.sol"; import "./YakERC20.sol"; /** * @notice YakStrategy should be inherited by new strategies */ abstract contract YakStrategy is YakERC20, Ownable, Permissioned { using SafeMath for uint; uint public totalDeposits; IERC20 public depositToken; IERC20 public rewardToken; address public devAddr; uint public MIN_TOKENS_TO_REINVEST; uint public MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST; bool public DEPOSITS_ENABLED; uint public REINVEST_REWARD_BIPS; uint public ADMIN_FEE_BIPS; uint public DEV_FEE_BIPS; uint constant internal BIPS_DIVISOR = 10000; uint constant internal MAX_UINT = uint(-1); event Deposit(address indexed account, uint amount); event Withdraw(address indexed account, uint amount); event Reinvest(uint newTotalDeposits, uint newTotalSupply); event Recovered(address token, uint amount); event UpdateAdminFee(uint oldValue, uint newValue); event UpdateDevFee(uint oldValue, uint newValue); event UpdateReinvestReward(uint oldValue, uint newValue); event UpdateMinTokensToReinvest(uint oldValue, uint newValue); event UpdateMaxTokensToDepositWithoutReinvest(uint oldValue, uint newValue); event UpdateDevAddr(address oldValue, address newValue); event DepositsEnabled(bool newValue); /** * @notice Throws if called by smart contract */ modifier onlyEOA() { require(tx.origin == msg.sender, "YakStrategy::onlyEOA"); _; } /** * @notice Only called by dev */ modifier onlyDev() { require(msg.sender == devAddr, "YakStrategy::onlyDev"); _; } /** * @notice Approve tokens for use in Strategy * @dev Should use modifier `onlyOwner` to avoid griefing */ function setAllowances() public virtual; /** * @notice Revoke token allowance * @param token address * @param spender address */ function revokeAllowance(address token, address spender) external onlyOwner { require(IERC20(token).approve(spender, 0)); } /** * @notice Deposit and deploy deposits tokens to the strategy * @dev Must mint receipt tokens to `msg.sender` * @param amount deposit tokens */ function deposit(uint amount) external virtual; /** * @notice Deposit using Permit * @dev Should revert for tokens without Permit * @param amount Amount of tokens to deposit * @param deadline The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function depositWithPermit(uint amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external virtual; /** * @notice Deposit on behalf of another account * @dev Must mint receipt tokens to `account` * @param account address to receive receipt tokens * @param amount deposit tokens */ function depositFor(address account, uint amount) external virtual; /** * @notice Redeem receipt tokens for deposit tokens * @param amount receipt tokens */ function withdraw(uint amount) external virtual; /** * @notice Reinvest reward tokens into deposit tokens */ function reinvest() external virtual; /** * @notice Estimate reinvest reward * @return reward tokens */ function estimateReinvestReward() external view returns (uint) { uint unclaimedRewards = checkReward(); if (unclaimedRewards >= MIN_TOKENS_TO_REINVEST) { return unclaimedRewards.mul(REINVEST_REWARD_BIPS).div(BIPS_DIVISOR); } return 0; } /** * @notice Reward tokens avialable to strategy, including balance * @return reward tokens */ function checkReward() public virtual view returns (uint); /** * @notice Estimated deposit token balance deployed by strategy, excluding balance * @return deposit tokens */ function estimateDeployedBalance() external virtual view returns (uint); /** * @notice Rescue all available deployed deposit tokens back to Strategy * @param minReturnAmountAccepted min deposit tokens to receive * @param disableDeposits bool */ function rescueDeployedFunds(uint minReturnAmountAccepted, bool disableDeposits) external virtual; /** * @notice Calculate receipt tokens for a given amount of deposit tokens * @dev If contract is empty, use 1:1 ratio * @dev Could return zero shares for very low amounts of deposit tokens * @param amount deposit tokens * @return receipt tokens */ function getSharesForDepositTokens(uint amount) public view returns (uint) { if (totalSupply.mul(totalDeposits) == 0) { return amount; } return amount.mul(totalSupply).div(totalDeposits); } /** * @notice Calculate deposit tokens for a given amount of receipt tokens * @param amount receipt tokens * @return deposit tokens */ function getDepositTokensForShares(uint amount) public view returns (uint) { if (totalSupply.mul(totalDeposits) == 0) { return 0; } return amount.mul(totalDeposits).div(totalSupply); } /** * @notice Update reinvest min threshold * @param newValue threshold */ function updateMinTokensToReinvest(uint newValue) public onlyOwner { emit UpdateMinTokensToReinvest(MIN_TOKENS_TO_REINVEST, newValue); MIN_TOKENS_TO_REINVEST = newValue; } /** * @notice Update reinvest max threshold before a deposit * @param newValue threshold */ function updateMaxTokensToDepositWithoutReinvest(uint newValue) public onlyOwner { emit UpdateMaxTokensToDepositWithoutReinvest(MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST, newValue); MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST = newValue; } /** * @notice Update developer fee * @param newValue fee in BIPS */ function updateDevFee(uint newValue) public onlyOwner { require(newValue.add(ADMIN_FEE_BIPS).add(REINVEST_REWARD_BIPS) <= BIPS_DIVISOR); emit UpdateDevFee(DEV_FEE_BIPS, newValue); DEV_FEE_BIPS = newValue; } /** * @notice Update admin fee * @param newValue fee in BIPS */ function updateAdminFee(uint newValue) public onlyOwner { require(newValue.add(DEV_FEE_BIPS).add(REINVEST_REWARD_BIPS) <= BIPS_DIVISOR); emit UpdateAdminFee(ADMIN_FEE_BIPS, newValue); ADMIN_FEE_BIPS = newValue; } /** * @notice Update reinvest reward * @param newValue fee in BIPS */ function updateReinvestReward(uint newValue) public onlyOwner { require(newValue.add(ADMIN_FEE_BIPS).add(DEV_FEE_BIPS) <= BIPS_DIVISOR); emit UpdateReinvestReward(REINVEST_REWARD_BIPS, newValue); REINVEST_REWARD_BIPS = newValue; } /** * @notice Enable/disable deposits * @param newValue bool */ function updateDepositsEnabled(bool newValue) public onlyOwner { require(DEPOSITS_ENABLED != newValue); DEPOSITS_ENABLED = newValue; emit DepositsEnabled(newValue); } /** * @notice Update devAddr * @param newValue address */ function updateDevAddr(address newValue) public onlyDev { emit UpdateDevAddr(devAddr, newValue); devAddr = newValue; } /** * @notice Recover ERC20 from contract * @param tokenAddress token address * @param tokenAmount amount to recover */ function recoverERC20(address tokenAddress, uint tokenAmount) external onlyOwner { require(tokenAmount > 0); require(IERC20(tokenAddress).transfer(msg.sender, tokenAmount)); emit Recovered(tokenAddress, tokenAmount); } /** * @notice Recover AVAX from contract * @param amount amount */ function recoverAVAX(uint amount) external onlyOwner { require(amount > 0); msg.sender.transfer(amount); emit Recovered(address(0), amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; interface IUnipool { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function earned(address account) external view returns (uint256); function stake(uint256 amount) external; function withdraw(uint256 amount) external; function claimReward() external; function withdrawAndClaim() external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./IERC20.sol"; interface IPair is IERC20 { function token0() external pure returns (address); function token1() external pure returns (address); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function mint(address to) external returns (uint liquidity); function sync() external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./SafeMath.sol"; import "../interfaces/IPair.sol"; import "../interfaces/IWAVAX.sol"; library DexLibrary { using SafeMath for uint; bytes private constant zeroBytes = new bytes(0); IWAVAX private constant WAVAX = IWAVAX(0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7); /** * @notice Swap directly through a Pair * @param amountIn input amount * @param fromToken address * @param toToken address * @param pair Pair used for swap * @return output amount */ function swap(uint amountIn, address fromToken, address toToken, IPair pair) internal returns (uint) { (address token0,) = sortTokens(fromToken, toToken); (uint112 reserve0, uint112 reserve1,) = pair.getReserves(); if (token0 != fromToken) (reserve0, reserve1) = (reserve1, reserve0); uint amountOut1 = 0; uint amountOut2 = getAmountOut(amountIn, reserve0, reserve1); if (token0 != fromToken) (amountOut1, amountOut2) = (amountOut2, amountOut1); safeTransfer(fromToken, address(pair), amountIn); pair.swap(amountOut1, amountOut2, address(this), zeroBytes); return amountOut2 > amountOut1 ? amountOut2 : amountOut1; } function checkSwapPairCompatibility(IPair pair, address tokenA, address tokenB) internal pure returns (bool) { return (tokenA == pair.token0() || tokenA == pair.token1()) && (tokenB == pair.token0() || tokenB == pair.token1()) && tokenA != tokenB; } function estimateConversionThroughPair(uint amountIn, address fromToken, address toToken, IPair swapPair) internal view returns (uint) { (address token0,) = sortTokens(fromToken, toToken); (uint112 reserve0, uint112 reserve1,) = swapPair.getReserves(); if (token0 != fromToken) (reserve0, reserve1) = (reserve1, reserve0); return getAmountOut(amountIn, reserve0, reserve1); } /** * @notice Converts reward tokens to deposit tokens * @dev No price checks enforced * @param amount reward tokens * @return deposit tokens */ function convertRewardTokensToDepositTokens(uint amount, address rewardToken, address depositToken, IPair swapPairToken0, IPair swapPairToken1) internal returns (uint) { uint amountIn = amount.div(2); require(amountIn > 0, "DexLibrary::_convertRewardTokensToDepositTokens"); address token0 = IPair(depositToken).token0(); uint amountOutToken0 = amountIn; if (rewardToken != token0) { amountOutToken0 = DexLibrary.swap(amountIn, rewardToken, token0, swapPairToken0); } address token1 = IPair(depositToken).token1(); uint amountOutToken1 = amountIn; if (rewardToken != token1) { amountOutToken1 = DexLibrary.swap(amountIn, rewardToken, token1, swapPairToken1); } return DexLibrary.addLiquidity(depositToken, amountOutToken0, amountOutToken1); } /** * @notice Add liquidity directly through a Pair * @dev Checks adding the max of each token amount * @param depositToken address * @param maxAmountIn0 amount token0 * @param maxAmountIn1 amount token1 * @return liquidity tokens */ function addLiquidity(address depositToken, uint maxAmountIn0, uint maxAmountIn1) internal returns (uint) { (uint112 reserve0, uint112 reserve1,) = IPair(address(depositToken)).getReserves(); uint amountIn1 = _quoteLiquidityAmountOut(maxAmountIn0, reserve0, reserve1); if (amountIn1 > maxAmountIn1) { amountIn1 = maxAmountIn1; maxAmountIn0 = _quoteLiquidityAmountOut(maxAmountIn1, reserve1, reserve0); } safeTransfer(IPair(depositToken).token0(), depositToken, maxAmountIn0); safeTransfer(IPair(depositToken).token1(), depositToken, amountIn1); return IPair(depositToken).mint(address(this)); } /** * @notice Quote liquidity amount out * @param amountIn input tokens * @param reserve0 size of input asset reserve * @param reserve1 size of output asset reserve * @return liquidity tokens */ function _quoteLiquidityAmountOut(uint amountIn, uint reserve0, uint reserve1) private pure returns (uint) { return amountIn.mul(reserve1).div(reserve0); } /** * @notice Given two tokens, it'll return the tokens in the right order for the tokens pair * @dev TokenA must be different from TokenB, and both shouldn't be address(0), no validations * @param tokenA address * @param tokenB address * @return sorted tokens */ function sortTokens(address tokenA, address tokenB) internal pure returns (address, address) { return tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); } /** * @notice Given an input amount of an asset and pair reserves, returns maximum output amount of the other asset * @dev Assumes swap fee is 0.30% * @param amountIn input asset * @param reserveIn size of input asset reserve * @param reserveOut size of output asset reserve * @return maximum output amount */ function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint) { uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); return numerator.div(denominator); } /** * @notice Safely transfer using an anonymous ERC20 token * @dev Requires token to return true on transfer * @param token address * @param to recipient address * @param value amount */ function safeTransfer(address token, address to, uint256 value) internal { require(IERC20(token).transfer(to, value), "DexLibrary::TRANSFER_FROM_FAILED"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol // Subject to the MIT license. /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the addition of two unsigned integers, reverting with custom message on overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, errorMessage); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on underflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot underflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction underflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot underflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, errorMessage); return c; } /** * @dev Returns the integer division of two unsigned integers. * Reverts on division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. * Reverts with custom message on division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./Ownable.sol"; import "./SafeMath.sol"; abstract contract Permissioned is Ownable { using SafeMath for uint; uint public numberOfAllowedDepositors; mapping(address => bool) public allowedDepositors; event AllowDepositor(address indexed account); event RemoveDepositor(address indexed account); modifier onlyAllowedDeposits() { if (numberOfAllowedDepositors > 0) { require(allowedDepositors[msg.sender] == true, "Permissioned::onlyAllowedDeposits, not allowed"); } _; } /** * @notice Add an allowed depositor * @param depositor address */ function allowDepositor(address depositor) external onlyOwner { require(allowedDepositors[depositor] == false, "Permissioned::allowDepositor"); allowedDepositors[depositor] = true; numberOfAllowedDepositors = numberOfAllowedDepositors.add(1); emit AllowDepositor(depositor); } /** * @notice Remove an allowed depositor * @param depositor address */ function removeDepositor(address depositor) external onlyOwner { require(numberOfAllowedDepositors > 0, "Permissioned::removeDepositor, no allowed depositors"); require(allowedDepositors[depositor] == true, "Permissioned::removeDepositor, not allowed"); allowedDepositors[depositor] = false; numberOfAllowedDepositors = numberOfAllowedDepositors.sub(1); emit RemoveDepositor(depositor); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; interface IERC20 { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; import "./lib/SafeMath.sol"; import "./interfaces/IERC20.sol"; abstract contract YakERC20 { using SafeMath for uint256; string public name = "Yield Yak"; string public symbol = "YRT"; uint8 public constant decimals = 18; uint256 public totalSupply; mapping (address => mapping (address => uint256)) internal allowances; mapping (address => uint256) internal balances; /// @dev keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)") bytes32 public constant DOMAIN_TYPEHASH = 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f; /// @dev keccak256("1"); bytes32 public constant VERSION_HASH = 0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6; /// @dev keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; mapping(address => uint) public nonces; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); constructor() {} /** * @notice Get the number of tokens `spender` is approved to spend on behalf of `account` * @param account The address of the account holding the funds * @param spender The address of the account spending the funds * @return The number of tokens approved */ function allowance(address account, address spender) external view returns (uint) { return allowances[account][spender]; } /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * It is recommended to use increaseAllowance and decreaseAllowance instead * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (2^256-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool) { _approve(msg.sender, spender, amount); return true; } /** * @notice Get the number of tokens held by the `account` * @param account The address of the account to get the balance of * @return The number of tokens held */ function balanceOf(address account) external view returns (uint) { return balances[account]; } /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 amount) external returns (bool) { _transferTokens(msg.sender, dst, amount); return true; } /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom(address src, address dst, uint256 amount) external returns (bool) { address spender = msg.sender; uint256 spenderAllowance = allowances[src][spender]; if (spender != src && spenderAllowance != uint256(-1)) { uint256 newAllowance = spenderAllowance.sub(amount, "transferFrom: transfer amount exceeds allowance"); allowances[src][spender] = newAllowance; emit Approval(src, spender, newAllowance); } _transferTokens(src, dst, amount); return true; } /** * @notice Approval implementation * @param owner The address of the account which owns tokens * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (2^256-1 means infinite) */ function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "_approve::owner zero address"); require(spender != address(0), "_approve::spender zero address"); allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @notice Transfer implementation * @param from The address of the account which owns tokens * @param to The address of the account which is receiving tokens * @param value The number of tokens that are being transferred */ function _transferTokens(address from, address to, uint256 value) internal { require(to != address(0), "_transferTokens: cannot transfer to the zero address"); balances[from] = balances[from].sub(value, "_transferTokens: transfer exceeds from balance"); balances[to] = balances[to].add(value); emit Transfer(from, to, value); } function _mint(address to, uint256 value) internal { totalSupply = totalSupply.add(value); balances[to] = balances[to].add(value); emit Transfer(address(0), to, value); } function _burn(address from, uint256 value) internal { balances[from] = balances[from].sub(value, "_burn: burn amount exceeds from balance"); totalSupply = totalSupply.sub(value, "_burn: burn amount exceeds total supply"); emit Transfer(from, address(0), value); } /** * @notice Triggers an approval from owner to spender * @param owner The address to approve from * @param spender The address to be approved * @param value The number of tokens that are approved (2^256-1 means infinite) * @param deadline The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external { require(deadline >= block.timestamp, "permit::expired"); bytes32 encodeData = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline)); _validateSignedData(owner, encodeData, v, r, s); _approve(owner, spender, value); } /** * @notice Recovers address from signed data and validates the signature * @param signer Address that signed the data * @param encodeData Data signed by the address * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function _validateSignedData(address signer, bytes32 encodeData, uint8 v, bytes32 r, bytes32 s) internal view { bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", getDomainSeparator(), encodeData ) ); address recoveredAddress = ecrecover(digest, v, r, s); // Explicitly disallow authorizations for address(0) as ecrecover returns address(0) on malformed messages require(recoveredAddress != address(0) && recoveredAddress == signer, "Arch::validateSig: invalid signature"); } /** * @notice EIP-712 Domain separator * @return Separator */ function getDomainSeparator() public view returns (bytes32) { return keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name)), VERSION_HASH, _getChainId(), address(this) ) ); } /** * @notice Current id of the chain where this contract is deployed * @return Chain id */ function _getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; interface IWAVAX { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function balanceOf(address owner) external view returns (uint); function withdraw(uint) external; function approve(address to, uint value) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"address","name":"_swapPairToken0","type":"address"},{"internalType":"address","name":"_swapPairToken1","type":"address"},{"internalType":"address","name":"_timelock","type":"address"},{"internalType":"uint256","name":"_minTokensToReinvest","type":"uint256"},{"internalType":"uint256","name":"_adminFeeBips","type":"uint256"},{"internalType":"uint256","name":"_devFeeBips","type":"uint256"},{"internalType":"uint256","name":"_reinvestRewardBips","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AllowDepositor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"DepositsEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTotalDeposits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"Reinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RemoveDepositor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateAdminFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValue","type":"address"},{"indexed":false,"internalType":"address","name":"newValue","type":"address"}],"name":"UpdateDevAddr","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateDevFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateMaxTokensToDepositWithoutReinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateMinTokensToReinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateReinvestReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ADMIN_FEE_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITS_ENABLED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_FEE_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TOKENS_TO_REINVEST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REINVEST_REWARD_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"depositor","type":"address"}],"name":"allowDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedDepositors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"depositWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimateDeployedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimateReinvestReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getDepositTokensForShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getSharesForDepositTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfAllowedDepositors","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverAVAX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"depositor","type":"address"}],"name":"removeDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minReturnAmountAccepted","type":"uint256"},{"internalType":"bool","name":"disableDeposits","type":"bool"}],"name":"rescueDeployedFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"revokeAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setAllowances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"contract IUnipool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateAdminFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newValue","type":"bool"}],"name":"updateDepositsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newValue","type":"address"}],"name":"updateDevAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateMaxTokensToDepositWithoutReinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateMinTokensToReinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateReinvestReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405260096080819052685969656c642059616b60b81b60a09081526200002c91600091906200126e565b506040805180820190915260038082526216549560ea1b602090920191825262000059916001916200126e565b503480156200006757600080fd5b5060405162004ee038038062004ee083398181016040526101608110156200008e57600080fd5b8101908080516040519392919084640100000000821115620000af57600080fd5b908301906020820185811115620000c557600080fd5b8251640100000000811182820188101715620000e057600080fd5b82525081516020918201929091019080838360005b838110156200010f578181015183820152602001620000f5565b50505050905090810190601f1680156200013d5780820380516001836020036101000a031916815260200191505b5060409081526020820151908201516060830151608084015160a085015160c086015160e087015161010088015161012089015161014090990151979a509598509396929591949093929091600062000195620002d6565b600680546001600160a01b0319166001600160a01b0383169081179091556040519192509060009060008051602062004e27833981519152908290a3508a51620001e79060009060208e01906200126e565b50600a80546001600160a01b03808d166001600160a01b031992831617909255600b80548c841690831617905560138054928b1692821692909217909155600c8054909116331790556200023d87878b620002da565b6200024762000bf8565b620002528462000ceb565b6200025d8362000d95565b620002688262000e85565b620002738162000f61565b6200027f60016200103d565b6200028a8562001103565b604080516000808252602082015281517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef234929181900390910190a150505050505050505050506200130a565b3390565b600a60009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200032957600080fd5b505afa1580156200033e573d6000803e3d6000fd5b505050506040513d60208110156200035557600080fd5b50516001600160a01b03828116911614801590620003fb5750600a60009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015620003bd57600080fd5b505afa158015620003d2573d6000803e3d6000fd5b505050506040513d6020811015620003e957600080fd5b50516001600160a01b03828116911614155b1562000a86576001600160a01b038316620004485760405162461bcd60e51b815260040180806020018281038252602981526020018062004dde6029913960400191505060405180910390fd5b6001600160a01b0382166200048f5760405162461bcd60e51b815260040180806020018281038252602981526020018062004e7f6029913960400191505060405180910390fd5b601480546001600160a01b038086166001600160a01b031992831617928390556015805486831693169290921790915560408051630dfe168160e01b815290518483169390921691630dfe168191600480820192602092909190829003018186803b158015620004fe57600080fd5b505afa15801562000513573d6000803e3d6000fd5b505050506040513d60208110156200052a57600080fd5b50516001600160a01b03161480620005bd57506014546040805163d21220a760e01b815290516001600160a01b0380851693169163d21220a7916004808301926020929190829003018186803b1580156200058457600080fd5b505afa15801562000599573d6000803e3d6000fd5b505050506040513d6020811015620005b057600080fd5b50516001600160a01b0316145b620005fa5760405162461bcd60e51b815260040180806020018281038252604581526020018062004d996045913960600191505060405180910390fd5b600a60009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200064957600080fd5b505afa1580156200065e573d6000803e3d6000fd5b505050506040513d60208110156200067557600080fd5b505160145460408051630dfe168160e01b815290516001600160a01b039384169390921691630dfe168191600480820192602092909190829003018186803b158015620006c157600080fd5b505afa158015620006d6573d6000803e3d6000fd5b505050506040513d6020811015620006ed57600080fd5b50516001600160a01b03161480620008005750600a60009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200074f57600080fd5b505afa15801562000764573d6000803e3d6000fd5b505050506040513d60208110156200077b57600080fd5b50516014546040805163d21220a760e01b815290516001600160a01b03938416939092169163d21220a791600480820192602092909190829003018186803b158015620007c757600080fd5b505afa158015620007dc573d6000803e3d6000fd5b505050506040513d6020811015620007f357600080fd5b50516001600160a01b0316145b6200083d5760405162461bcd60e51b815260040180806020018281038252603881526020018062004e476038913960400191505060405180910390fd5b600a60009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200088c57600080fd5b505afa158015620008a1573d6000803e3d6000fd5b505050506040513d6020811015620008b857600080fd5b505160155460408051630dfe168160e01b815290516001600160a01b039384169390921691630dfe168191600480820192602092909190829003018186803b1580156200090457600080fd5b505afa15801562000919573d6000803e3d6000fd5b505050506040513d60208110156200093057600080fd5b50516001600160a01b0316148062000a435750600a60009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200099257600080fd5b505afa158015620009a7573d6000803e3d6000fd5b505050506040513d6020811015620009be57600080fd5b50516015546040805163d21220a760e01b815290516001600160a01b03938416939092169163d21220a791600480820192602092909190829003018186803b15801562000a0a57600080fd5b505afa15801562000a1f573d6000803e3d6000fd5b505050506040513d602081101562000a3657600080fd5b50516001600160a01b0316145b62000a805760405162461bcd60e51b815260040180806020018281038252603881526020018062004ea86038913960400191505060405180910390fd5b62000bf3565b600a60009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801562000ad557600080fd5b505afa15801562000aea573d6000803e3d6000fd5b505050506040513d602081101562000b0157600080fd5b50516001600160a01b038281169116141562000b3f57600a54601580546001600160a01b0319166001600160a01b0390921691909117905562000bf3565b600a60009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801562000b8e57600080fd5b505afa15801562000ba3573d6000803e3d6000fd5b505050506040513d602081101562000bba57600080fd5b50516001600160a01b038281169116141562000bf357600a54601480546001600160a01b0319166001600160a01b039092169190911790555b505050565b62000c02620002d6565b6001600160a01b031662000c15620011fd565b6001600160a01b03161462000c60576040805162461bcd60e51b8152602060048201819052602482015260008051602062004e07833981519152604482015290519081900360640190fd5b600a546013546040805163095ea7b360e01b81526001600160a01b03928316600482015260001960248201529051919092169163095ea7b39160448083019260209291908290030181600087803b15801562000cbb57600080fd5b505af115801562000cd0573d6000803e3d6000fd5b505050506040513d602081101562000ce757600080fd5b5050565b62000cf5620002d6565b6001600160a01b031662000d08620011fd565b6001600160a01b03161462000d53576040805162461bcd60e51b8152602060048201819052602482015260008051602062004e07833981519152604482015290519081900360640190fd5b600d54604080519182526020820183905280517f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef8499011009281900390910190a1600d55565b62000d9f620002d6565b6001600160a01b031662000db2620011fd565b6001600160a01b03161462000dfd576040805162461bcd60e51b8152602060048201819052602482015260008051602062004e07833981519152604482015290519081900360640190fd5b61271062000e3760105462000e23601254856200120c60201b620023431790919060201c565b6200120c60201b620023431790919060201c565b111562000e4357600080fd5b601154604080519182526020820183905280517f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a9281900390910190a1601155565b62000e8f620002d6565b6001600160a01b031662000ea2620011fd565b6001600160a01b03161462000eed576040805162461bcd60e51b8152602060048201819052602482015260008051602062004e07833981519152604482015290519081900360640190fd5b61271062000f1360105462000e23601154856200120c60201b620023431790919060201c565b111562000f1f57600080fd5b601254604080519182526020820183905280517f2a42303d002f0ba6cfe8259c91d4684443fb0b3de286ba74991175d6517261319281900390910190a1601255565b62000f6b620002d6565b6001600160a01b031662000f7e620011fd565b6001600160a01b03161462000fc9576040805162461bcd60e51b8152602060048201819052602482015260008051602062004e07833981519152604482015290519081900360640190fd5b61271062000fef60125462000e23601154856200120c60201b620023431790919060201c565b111562000ffb57600080fd5b601054604080519182526020820183905280517fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f29281900390910190a1601055565b62001047620002d6565b6001600160a01b03166200105a620011fd565b6001600160a01b031614620010a5576040805162461bcd60e51b8152602060048201819052602482015260008051602062004e07833981519152604482015290519081900360640190fd5b600f5460ff1615158115151415620010bc57600080fd5b600f805482151560ff19909116811790915560408051918252517f7b014ed3854e7f5cb0218d58b3c6ae7d53a68bb0af2f67bfb029ea42c38a7e859181900360200190a150565b6200110d620002d6565b6001600160a01b031662001120620011fd565b6001600160a01b0316146200116b576040805162461bcd60e51b8152602060048201819052602482015260008051602062004e07833981519152604482015290519081900360640190fd5b6001600160a01b038116620011b25760405162461bcd60e51b815260040180806020018281038252602681526020018062004d736026913960400191505060405180910390fd5b6006546040516001600160a01b0380841692169060008051602062004e2783398151915290600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031690565b60008282018381101562001267576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620012b157805160ff1916838001178555620012e1565b82800160010185558215620012e1579182015b82811115620012e1578251825591602001919060010190620012c4565b50620012ef929150620012f3565b5090565b5b80821115620012ef5760008155600101620012f4565b613a59806200131a6000396000f3fe608060405234801561001057600080fd5b506004361061036d5760003560e01c80638b73e606116101d3578063c89039c511610104578063e21ac825116100a2578063ee99205c1161007c578063ee99205c14610916578063f2fde38b1461091e578063f7c618c114610944578063fdb5a03e1461094c5761036d565b8063e21ac825146108d4578063eab89a5a146108f1578063ed24911d1461090e5761036d565b8063da09c72c116100de578063da09c72c14610879578063dbd9a4d414610881578063dd62ed3e14610889578063dd8ce4d6146108b75761036d565b8063c89039c514610803578063cff1b6ef1461080b578063d505accf146108285761036d565b8063a9059cbb11610171578063b6b55f251161014b578063b6b55f25146107ce578063b9e57b80146107eb578063bd079f55146107f3578063c4b24a46146107fb5761036d565b8063a9059cbb14610775578063ac0d31ff146107a1578063b52a321f146107c65761036d565b806395d89b41116101ad57806395d89b411461072b57806399729ec1146107335780639e4e731814610750578063a8ae2b7c146107585761036d565b80638b73e606146106bb5780638da5cb5b146106e15780639291d563146107055761036d565b80634a970be7116102ad578063789139bc1161024b5780637ecebe00116102255780637ecebe0014610644578063818372301461066a5780638980f11f146106875780638aff733d146106b35761036d565b8063789139bc146106065780637ae267731461060e5780637d8820971461063c5761036d565b80634ebb7916116102875780634ebb7916146105b35780635ea682ea146105d057806370a08231146105d8578063715018a6146105fe5761036d565b80634a970be7146105365780634bebd1e71461056e5780634e77ace5146105945761036d565b806323b872dd1161031a57806330adf81f116102f457806330adf81f146104e2578063313ce567146104ea5780633bdc6e7214610508578063483c2ef0146105105761036d565b806323b872dd146104615780632e1a7d4d146104975780632f4f21e2146104b65761036d565b80630f23475d1161034b5780630f23475d1461044957806318160ddd1461045157806320606b70146104595761036d565b806306fdde031461037257806307677111146103ef578063095ea7b314610409575b600080fd5b61037a610954565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103b457818101518382015260200161039c565b50505050905090810190601f1680156103e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103f76109e2565b60408051918252519081900360200190f35b6104356004803603604081101561041f57600080fd5b506001600160a01b0381351690602001356109e8565b604080519115158252519081900360200190f35b6103f76109ff565b6103f7610a7c565b6103f7610a82565b6104356004803603606081101561047757600080fd5b506001600160a01b03813581169160208101359091169060400135610aa6565b6104b4600480360360208110156104ad57600080fd5b5035610b88565b005b6104b4600480360360408110156104cc57600080fd5b506001600160a01b038135169060200135610c10565b6103f7610c1a565b6104f2610c3e565b6040805160ff9092168252519081900360200190f35b6103f7610c43565b6104356004803603602081101561052657600080fd5b50356001600160a01b0316610c49565b6104b4600480360360a081101561054c57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610c5e565b6104b46004803603602081101561058457600080fd5b50356001600160a01b0316610d17565b6104b4600480360360208110156105aa57600080fd5b50351515610e53565b6104b4600480360360208110156105c957600080fd5b5035610f12565b6103f7610fee565b6103f7600480360360208110156105ee57600080fd5b50356001600160a01b0316610ff4565b6104b4611013565b6103f76110cc565b6104b46004803603604081101561062457600080fd5b506001600160a01b03813581169160200135166110d2565b6103f76111c1565b6103f76004803603602081101561065a57600080fd5b50356001600160a01b03166111c7565b6104b46004803603602081101561068057600080fd5b50356111d9565b6104b46004803603604081101561069d57600080fd5b506001600160a01b03813516906020013561127d565b6103f76113d1565b6104b4600480360360208110156106d157600080fd5b50356001600160a01b03166113d7565b6106e961153e565b604080516001600160a01b039092168252519081900360200190f35b6104b46004803603602081101561071b57600080fd5b50356001600160a01b031661154d565b61037a611623565b6104b46004803603602081101561074957600080fd5b503561167d565b6103f7611750565b6104b46004803603602081101561076e57600080fd5b5035611774565b6104356004803603604081101561078b57600080fd5b506001600160a01b038135169060200135611841565b6104b4600480360360408110156107b757600080fd5b5080359060200135151561184e565b610435611b4b565b6104b4600480360360208110156107e457600080fd5b5035611b54565b6103f7611b61565b6103f7611ba8565b6103f7611bae565b6106e9611c10565b6104b46004803603602081101561082157600080fd5b5035611c1f565b6104b4600480360360e081101561083e57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611cec565b6106e9611dec565b6104b4611dfb565b6103f76004803603604081101561089f57600080fd5b506001600160a01b0381358116916020013516611efa565b6103f7600480360360208110156108cd57600080fd5b5035611f25565b6104b4600480360360208110156108ea57600080fd5b5035611f64565b6103f76004803603602081101561090757600080fd5b5035612008565b6103f7612048565b6106e9612155565b6104b46004803603602081101561093457600080fd5b50356001600160a01b0316612164565b6106e9612274565b6104b4612283565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109da5780601f106109af576101008083540402835291602001916109da565b820191906000526020600020905b8154815290600101906020018083116109bd57829003601f168201915b505050505081565b60115481565b60006109f53384846123a4565b5060015b92915050565b601354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a4a57600080fd5b505afa158015610a5e573d6000803e3d6000fd5b505050506040513d6020811015610a7457600080fd5b505190505b90565b60025481565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6001600160a01b038316600081815260036020908152604080832033808552925282205491929091908214801590610ae057506000198114155b15610b71576000610b0c856040518060600160405280602f81526020016139a0602f91398491906124bc565b6001600160a01b0380891660008181526003602090815260408083209489168084529482529182902085905581518581529151949550929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92592918290030190a3505b610b7c868686612553565b50600195945050505050565b6000610b9382612008565b90508015610c0c57610ba481612660565b600a54610bbb906001600160a01b03163383612719565b610bc533836127dc565b600954610bd290826128b1565b60095560408051828152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a25b5050565b610c0c82826128f3565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60075481565b60086020526000908152604090205460ff1681565b600a54604080517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c4810184905290516001600160a01b039092169163d505accf9160e48082019260009290919082900301818387803b158015610cee57600080fd5b505af1158015610d02573d6000803e3d6000fd5b50505050610d1033866128f3565b5050505050565b610d1f612ae9565b6001600160a01b0316610d3061153e565b6001600160a01b031614610d79576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526008602052604090205460ff1615610de7576040805162461bcd60e51b815260206004820152601c60248201527f5065726d697373696f6e65643a3a616c6c6f774465706f7369746f7200000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600860205260409020805460ff19166001908117909155600754610e1991612343565b6007556040516001600160a01b038216907fc0a1035c16faf8d1304056d92c00edf028f87e62b8235a938f00af9e3c0312c590600090a250565b610e5b612ae9565b6001600160a01b0316610e6c61153e565b6001600160a01b031614610eb5576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600f5460ff1615158115151415610ecb57600080fd5b600f805482151560ff19909116811790915560408051918252517f7b014ed3854e7f5cb0218d58b3c6ae7d53a68bb0af2f67bfb029ea42c38a7e859181900360200190a150565b610f1a612ae9565b6001600160a01b0316610f2b61153e565b6001600160a01b031614610f74576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b60008111610f8157600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610fae573d6000803e3d6000fd5b5060408051600081526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a150565b60125481565b6001600160a01b0381166000908152600460205260409020545b919050565b61101b612ae9565b6001600160a01b031661102c61153e565b6001600160a01b031614611075576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36006805473ffffffffffffffffffffffffffffffffffffffff19169055565b600e5481565b6110da612ae9565b6001600160a01b03166110eb61153e565b6001600160a01b031614611134576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b816001600160a01b031663095ea7b38260006040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561118c57600080fd5b505af11580156111a0573d6000803e3d6000fd5b505050506040513d60208110156111b657600080fd5b5051610c0c57600080fd5b60095481565b60056020526000908152604090205481565b6111e1612ae9565b6001600160a01b03166111f261153e565b6001600160a01b03161461123b576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600d54604080519182526020820183905280517f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef8499011009281900390910190a1600d55565b611285612ae9565b6001600160a01b031661129661153e565b6001600160a01b0316146112df576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600081116112ec57600080fd5b604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810183905290516001600160a01b0384169163a9059cbb9160448083019260209291908290030181600087803b15801561135457600080fd5b505af1158015611368573d6000803e3d6000fd5b505050506040513d602081101561137e57600080fd5b505161138957600080fd5b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60105481565b6113df612ae9565b6001600160a01b03166113f061153e565b6001600160a01b031614611439576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b60006007541161147a5760405162461bcd60e51b81526004018080602001828103825260348152602001806137dd6034913960400191505060405180910390fd5b6001600160a01b03811660009081526008602052604090205460ff1615156001146114d65760405162461bcd60e51b815260040180806020018281038252602a815260200180613884602a913960400191505060405180910390fd5b6001600160a01b0381166000908152600860205260409020805460ff191690556007546115049060016128b1565b6007556040516001600160a01b038216907f0e86f6608b536e5339a25b65ff531f5ea91e1313d056ecd4752b35cbd16137d490600090a250565b6006546001600160a01b031690565b600c546001600160a01b031633146115ac576040805162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79446576000000000000000000000000604482015290519081900360640190fd5b600c54604080516001600160a01b039283168152918316602083015280517fa8e91499ed37682f43cffb045fcc7d379a91e8c9a14e6321877ee34dee564c009281900390910190a1600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109da5780601f106109af576101008083540402835291602001916109da565b611685612ae9565b6001600160a01b031661169661153e565b6001600160a01b0316146116df576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6127106117036010546116fd6011548561234390919063ffffffff16565b90612343565b111561170e57600080fd5b601254604080519182526020820183905280517f2a42303d002f0ba6cfe8259c91d4684443fb0b3de286ba74991175d6517261319281900390910190a1601255565b7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc681565b61177c612ae9565b6001600160a01b031661178d61153e565b6001600160a01b0316146117d6576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6127106117f46012546116fd6011548561234390919063ffffffff16565b11156117ff57600080fd5b601054604080519182526020820183905280517fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f29281900390910190a1601055565b60006109f5338484612553565b611856612ae9565b6001600160a01b031661186761153e565b6001600160a01b0316146118b0576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156118fb57600080fd5b505afa15801561190f573d6000803e3d6000fd5b505050506040513d602081101561192557600080fd5b5051601354604080516370a0823160e01b815230600482015290519293506001600160a01b0390911691632e1a7d4d9183916370a0823191602480820192602092909190829003018186803b15801561197d57600080fd5b505afa158015611991573d6000803e3d6000fd5b505050506040513d60208110156119a757600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b168152600481019290925251602480830192600092919082900301818387803b1580156119ff57600080fd5b505af1158015611a13573d6000803e3d6000fd5b5050600a54604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015611a6457600080fd5b505afa158015611a78573d6000803e3d6000fd5b505050506040513d6020811015611a8e57600080fd5b5051905083611a9d82846128b1565b1015611ada5760405162461bcd60e51b815260040180806020018281038252602681526020018061385e6026913960400191505060405180910390fd5b600981905560025460408051838152602081019290925280517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2349281900390910190a1600f5460ff1615156001148015611b3657506001831515145b15611b4557611b456000610e53565b50505050565b600f5460ff1681565b611b5e33826128f3565b50565b600080611b6c611bae565b9050600d548110611ba057611b98612710611b9260105484612aed90919063ffffffff16565b90612b46565b915050610a79565b600091505090565b600d5481565b601354604080517e8cc26200000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b031691628cc262916024808301926020929190829003018186803b158015610a4a57600080fd5b600a546001600160a01b031681565b611c27612ae9565b6001600160a01b0316611c3861153e565b6001600160a01b031614611c81576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b612710611c9f6010546116fd6012548561234390919063ffffffff16565b1115611caa57600080fd5b601154604080519182526020820183905280517f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a9281900390910190a1601155565b42841015611d41576040805162461bcd60e51b815260206004820152600f60248201527f7065726d69743a3a657870697265640000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0380881660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938a1660608401526080830189905260a083019390935260c08083018890528151808403909101815260e090920190528051910120611dd78882868686612b88565b611de28888886123a4565b5050505050505050565b600c546001600160a01b031681565b611e03612ae9565b6001600160a01b0316611e1461153e565b6001600160a01b031614611e5d576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600a54601354604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03928316600482015260001960248201529051919092169163095ea7b39160448083019260209291908290030181600087803b158015611ed057600080fd5b505af1158015611ee4573d6000803e3d6000fd5b505050506040513d6020811015610c0c57600080fd5b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000611f3e600954600254612aed90919063ffffffff16565b611f4957508061100e565b6109f9600954611b9260025485612aed90919063ffffffff16565b611f6c612ae9565b6001600160a01b0316611f7d61153e565b6001600160a01b031614611fc6576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600e54604080519182526020820183905280517fa5dae50539d56dfe1fb5273d883b0c39bc76750a25d036fc5fbd09ad8fd5f57f9281900390910190a1600e55565b6000612021600954600254612aed90919063ffffffff16565b61202d5750600061100e565b6109f9600254611b9260095485612aed90919063ffffffff16565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60001b600060405180828054600181600116156101000203166002900480156120cb5780601f106120a95761010080835404028352918201916120cb565b820191906000526020600020905b8154815290600101906020018083116120b7575b505091505060405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660001b612104612cc0565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b031681526020019550505050505060405160208183030381529060405280519060200120905090565b6013546001600160a01b031681565b61216c612ae9565b6001600160a01b031661217d61153e565b6001600160a01b0316146121c6576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6001600160a01b03811661220b5760405162461bcd60e51b81526004018080602001828103825260268152602001806137896026913960400191505060405180910390fd5b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600b546001600160a01b031681565b3233146122d7576040805162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79454f41000000000000000000000000604482015290519081900360640190fd5b60006122e1611bae565b9050600d5481101561233a576040805162461bcd60e51b815260206004820152601b60248201527f556e69706f6f6c537472617465677956313a3a7265696e766573740000000000604482015290519081900360640190fd5b611b5e81612cc4565b60008282018381101561239d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0383166123ff576040805162461bcd60e51b815260206004820152601c60248201527f5f617070726f76653a3a6f776e6572207a65726f206164647265737300000000604482015290519081900360640190fd5b6001600160a01b03821661245a576040805162461bcd60e51b815260206004820152601e60248201527f5f617070726f76653a3a7370656e646572207a65726f20616464726573730000604482015290519081900360640190fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000818484111561254b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125105781810151838201526020016124f8565b50505050905090810190601f16801561253d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166125985760405162461bcd60e51b81526004018080602001828103825260348152602001806139456034913960400191505060405180910390fd5b6125d5816040518060600160405280602e81526020016139f6602e91396001600160a01b03861660009081526004602052604090205491906124bc565b6001600160a01b0380851660009081526004602052604080822093909355908416815220546126049082612343565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000811161269f5760405162461bcd60e51b81526004018080602001828103825260298152602001806138356029913960400191505060405180910390fd5b601354604080517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b15801561270557600080fd5b505af1158015610d10573d6000803e3d6000fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561277057600080fd5b505af1158015612784573d6000803e3d6000fd5b505050506040513d602081101561279a57600080fd5b50516127d75760405162461bcd60e51b81526004018080602001828103825260278152602001806139796027913960400191505060405180910390fd5b505050565b612819816040518060600160405280602781526020016139cf602791396001600160a01b03851660009081526004602052604090205491906124bc565b60046000846001600160a01b03166001600160a01b0316815260200190815260200160002081905550612869816040518060600160405280602781526020016138ae6027913960025491906124bc565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061239d83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f77008152506124bc565b6007541561294e573360009081526008602052604090205460ff16151560011461294e5760405162461bcd60e51b815260040180806020018281038252602e8152602001806137af602e913960400191505060405180910390fd5b600f5460ff1615156001146129aa576040805162461bcd60e51b815260206004820152601b60248201527f556e69706f6f6c537472617465677956313a3a5f6465706f7369740000000000604482015290519081900360640190fd5b600e54156129d35760006129bc611bae565b9050600e548111156129d1576129d181612cc4565b505b600a54604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015612a4657600080fd5b505af1158015612a5a573d6000803e3d6000fd5b505050506040513d6020811015612a7057600080fd5b5051612a7b57600080fd5b612a8481612e90565b612a9682612a9183611f25565b612f35565b600954612aa39082612343565b6009556040805182815290516001600160a01b038416917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25050565b3390565b600082612afc575060006109f9565b82820282848281612b0957fe5b041461239d5760405162461bcd60e51b81526004018080602001828103825260218152602001806139046021913960400191505060405180910390fd5b600061239d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fc0565b6000612b92612048565b8560405160200180807f190100000000000000000000000000000000000000000000000000000000000081525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018286868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015612c46573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590612c7c5750866001600160a01b0316816001600160a01b0316145b612cb75760405162461bcd60e51b81526004018080602001828103825260248152602001806138116024913960400191505060405180910390fd5b50505050505050565b4690565b601360009054906101000a90046001600160a01b03166001600160a01b031663b88a802f6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612d1457600080fd5b505af1158015612d28573d6000803e3d6000fd5b505050506000612d49612710611b9260125485612aed90919063ffffffff16565b90508015612d6e57600b54600c54612d6e916001600160a01b03908116911683612719565b6000612d8b612710611b9260115486612aed90919063ffffffff16565b90508015612db157600b54612db1906001600160a01b0316612dab61153e565b83612719565b6000612dce612710611b9260105487612aed90919063ffffffff16565b90508015612ded57600b54612ded906001600160a01b03163383612719565b6000612e2e612e0883612e0286818a8a6128b1565b906128b1565b600b54600a546014546015546001600160a01b0393841693928316929182169116613025565b9050612e3981612e90565b600954612e469082612343565b600981905560025460408051928352602083019190915280517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2349281900390910190a15050505050565b60008111612ecf5760405162461bcd60e51b81526004018080602001828103825260268152602001806137636026913960400191505060405180910390fd5b601354604080517fa694fc3a0000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b039092169163a694fc3a9160248082019260009290919082900301818387803b15801561270557600080fd5b600254612f429082612343565b6002556001600160a01b038216600090815260046020526040902054612f689082612343565b6001600160a01b03831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818361300f5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156125105781810151838201526020016124f8565b50600083858161301b57fe5b0495945050505050565b600080613033876002612b46565b9050600081116130745760405162461bcd60e51b815260040180806020018281038252602f8152602001806138d5602f913960400191505060405180910390fd5b6000856001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156130af57600080fd5b505afa1580156130c3573d6000803e3d6000fd5b505050506040513d60208110156130d957600080fd5b50519050816001600160a01b0388811690831614613100576130fd838984896131a6565b90505b6000876001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561313b57600080fd5b505afa15801561314f573d6000803e3d6000fd5b505050506040513d602081101561316557600080fd5b50519050836001600160a01b038a81169083161461318c57613189858b848a6131a6565b90505b6131978984836133b6565b9b9a5050505050505050505050565b6000806131b385856135fd565b509050600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156131f257600080fd5b505afa158015613206573d6000803e3d6000fd5b505050506040513d606081101561321c57600080fd5b50805160209091015190925090506001600160a01b038381169088161461323f57905b60008061326d8a856dffffffffffffffffffffffffffff16856dffffffffffffffffffffffffffff1661362e565b9050886001600160a01b0316856001600160a01b03161461328a57905b61329589888c613676565b60408051600080825260208201928390527f022c0d9f00000000000000000000000000000000000000000000000000000000835260248201858152604483018590523060648401819052608060848501908152845160a486018190526001600160a01b038e169663022c0d9f968a968a9691949193919260c486019290918190849084905b8381101561333257818101518382015260200161331a565b50505050905090810190601f16801561335f5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561338157600080fd5b505af1158015613395573d6000803e3d6000fd5b505050508181116133a657816133a8565b805b9a9950505050505050505050565b6000806000856001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156133f457600080fd5b505afa158015613408573d6000803e3d6000fd5b505050506040513d606081101561341e57600080fd5b5080516020909101519092509050600061344c866dffffffffffffffffffffffffffff80861690851661374a565b9050848111156134875784905061348485836dffffffffffffffffffffffffffff16856dffffffffffffffffffffffffffff1661374a565b95505b6134f6876001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156134c357600080fd5b505afa1580156134d7573d6000803e3d6000fd5b505050506040513d60208110156134ed57600080fd5b50518888613676565b613565876001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561353257600080fd5b505afa158015613546573d6000803e3d6000fd5b505050506040513d602081101561355c57600080fd5b50518883613676565b604080517f6a62784200000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03891691636a6278429160248083019260209291908290030181600087803b1580156135c657600080fd5b505af11580156135da573d6000803e3d6000fd5b505050506040513d60208110156135f057600080fd5b5051979650505050505050565b600080826001600160a01b0316846001600160a01b031610613620578284613623565b83835b915091509250929050565b60008061363d856103e5612aed565b9050600061364b8285612aed565b9050600061365f836116fd886103e8612aed565b905061366b8282612b46565b979650505050505050565b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156136cd57600080fd5b505af11580156136e1573d6000803e3d6000fd5b505050506040513d60208110156136f757600080fd5b50516127d7576040805162461bcd60e51b815260206004820181905260248201527f4465784c6962726172793a3a5452414e534645525f46524f4d5f4641494c4544604482015290519081900360640190fd5b600061375a83611b928685612aed565b94935050505056fe556e69706f6f6c537472617465677956313a3a5f7374616b654465706f736974546f6b656e734f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735065726d697373696f6e65643a3a6f6e6c79416c6c6f7765644465706f736974732c206e6f7420616c6c6f7765645065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e6f20616c6c6f776564206465706f7369746f7273417263683a3a76616c69646174655369673a20696e76616c6964207369676e6174757265556e69706f6f6c537472617465677956313a3a5f77697468647261774465706f736974546f6b656e73556e69706f6f6c537472617465677956313a3a7265736375654465706c6f79656446756e64735065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e6f7420616c6c6f7765645f6275726e3a206275726e20616d6f756e74206578636565647320746f74616c20737570706c794465784c6962726172793a3a5f636f6e76657274526577617264546f6b656e73546f4465706f736974546f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f7472616e73666572546f6b656e733a2063616e6e6f74207472616e7366657220746f20746865207a65726f2061646472657373556e69706f6f6c537472617465677956313a3a5452414e534645525f46524f4d5f4641494c45447472616e7366657246726f6d3a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655f6275726e3a206275726e20616d6f756e7420657863656564732066726f6d2062616c616e63655f7472616e73666572546f6b656e733a207472616e7366657220657863656564732066726f6d2062616c616e6365a2646970667358221220e0835086bf2527b22a35ba162cd74f57270f46bafae4ec3aeb675876f2b8f3dc64736f6c634300070300334f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737353776170207061697220737570706c69656420646f6573206e6f742068617665207468652072657761726420746f6b656e206173206f6e65206f66206974277320706169725377617020706169722030206973206e656365737361727920627574206e6f7420737570706c6965644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0537761702070616972203020737570706c69656420646f6573206e6f74206d6174636820746865207061697220696e207175657374696f6e5377617020706169722031206973206e656365737361727920627574206e6f7420737570706c696564537761702070616972203120737570706c69656420646f6573206e6f74206d6174636820746865207061697220696e207175657374696f6e00000000000000000000000000000000000000000000000000000000000001600000000000000000000000004f20e367b10674cb45eb7ede68c33b702e1be655000000000000000000000000094bd7b2d99711a1486fb94d4395801c6d0fddcc000000000000000000000000686fbbef0aa5fc8e976f637db54b3a4f5fb972d10000000000000000000000004f20e367b10674cb45eb7ede68c33b702e1be65500000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d36c5c6947adccd25ef49ea1aac2ceacfff0bd70000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000215969656c642059616b3a20546564647920782050474c2054454444592d4156415800000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061036d5760003560e01c80638b73e606116101d3578063c89039c511610104578063e21ac825116100a2578063ee99205c1161007c578063ee99205c14610916578063f2fde38b1461091e578063f7c618c114610944578063fdb5a03e1461094c5761036d565b8063e21ac825146108d4578063eab89a5a146108f1578063ed24911d1461090e5761036d565b8063da09c72c116100de578063da09c72c14610879578063dbd9a4d414610881578063dd62ed3e14610889578063dd8ce4d6146108b75761036d565b8063c89039c514610803578063cff1b6ef1461080b578063d505accf146108285761036d565b8063a9059cbb11610171578063b6b55f251161014b578063b6b55f25146107ce578063b9e57b80146107eb578063bd079f55146107f3578063c4b24a46146107fb5761036d565b8063a9059cbb14610775578063ac0d31ff146107a1578063b52a321f146107c65761036d565b806395d89b41116101ad57806395d89b411461072b57806399729ec1146107335780639e4e731814610750578063a8ae2b7c146107585761036d565b80638b73e606146106bb5780638da5cb5b146106e15780639291d563146107055761036d565b80634a970be7116102ad578063789139bc1161024b5780637ecebe00116102255780637ecebe0014610644578063818372301461066a5780638980f11f146106875780638aff733d146106b35761036d565b8063789139bc146106065780637ae267731461060e5780637d8820971461063c5761036d565b80634ebb7916116102875780634ebb7916146105b35780635ea682ea146105d057806370a08231146105d8578063715018a6146105fe5761036d565b80634a970be7146105365780634bebd1e71461056e5780634e77ace5146105945761036d565b806323b872dd1161031a57806330adf81f116102f457806330adf81f146104e2578063313ce567146104ea5780633bdc6e7214610508578063483c2ef0146105105761036d565b806323b872dd146104615780632e1a7d4d146104975780632f4f21e2146104b65761036d565b80630f23475d1161034b5780630f23475d1461044957806318160ddd1461045157806320606b70146104595761036d565b806306fdde031461037257806307677111146103ef578063095ea7b314610409575b600080fd5b61037a610954565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103b457818101518382015260200161039c565b50505050905090810190601f1680156103e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103f76109e2565b60408051918252519081900360200190f35b6104356004803603604081101561041f57600080fd5b506001600160a01b0381351690602001356109e8565b604080519115158252519081900360200190f35b6103f76109ff565b6103f7610a7c565b6103f7610a82565b6104356004803603606081101561047757600080fd5b506001600160a01b03813581169160208101359091169060400135610aa6565b6104b4600480360360208110156104ad57600080fd5b5035610b88565b005b6104b4600480360360408110156104cc57600080fd5b506001600160a01b038135169060200135610c10565b6103f7610c1a565b6104f2610c3e565b6040805160ff9092168252519081900360200190f35b6103f7610c43565b6104356004803603602081101561052657600080fd5b50356001600160a01b0316610c49565b6104b4600480360360a081101561054c57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610c5e565b6104b46004803603602081101561058457600080fd5b50356001600160a01b0316610d17565b6104b4600480360360208110156105aa57600080fd5b50351515610e53565b6104b4600480360360208110156105c957600080fd5b5035610f12565b6103f7610fee565b6103f7600480360360208110156105ee57600080fd5b50356001600160a01b0316610ff4565b6104b4611013565b6103f76110cc565b6104b46004803603604081101561062457600080fd5b506001600160a01b03813581169160200135166110d2565b6103f76111c1565b6103f76004803603602081101561065a57600080fd5b50356001600160a01b03166111c7565b6104b46004803603602081101561068057600080fd5b50356111d9565b6104b46004803603604081101561069d57600080fd5b506001600160a01b03813516906020013561127d565b6103f76113d1565b6104b4600480360360208110156106d157600080fd5b50356001600160a01b03166113d7565b6106e961153e565b604080516001600160a01b039092168252519081900360200190f35b6104b46004803603602081101561071b57600080fd5b50356001600160a01b031661154d565b61037a611623565b6104b46004803603602081101561074957600080fd5b503561167d565b6103f7611750565b6104b46004803603602081101561076e57600080fd5b5035611774565b6104356004803603604081101561078b57600080fd5b506001600160a01b038135169060200135611841565b6104b4600480360360408110156107b757600080fd5b5080359060200135151561184e565b610435611b4b565b6104b4600480360360208110156107e457600080fd5b5035611b54565b6103f7611b61565b6103f7611ba8565b6103f7611bae565b6106e9611c10565b6104b46004803603602081101561082157600080fd5b5035611c1f565b6104b4600480360360e081101561083e57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611cec565b6106e9611dec565b6104b4611dfb565b6103f76004803603604081101561089f57600080fd5b506001600160a01b0381358116916020013516611efa565b6103f7600480360360208110156108cd57600080fd5b5035611f25565b6104b4600480360360208110156108ea57600080fd5b5035611f64565b6103f76004803603602081101561090757600080fd5b5035612008565b6103f7612048565b6106e9612155565b6104b46004803603602081101561093457600080fd5b50356001600160a01b0316612164565b6106e9612274565b6104b4612283565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109da5780601f106109af576101008083540402835291602001916109da565b820191906000526020600020905b8154815290600101906020018083116109bd57829003601f168201915b505050505081565b60115481565b60006109f53384846123a4565b5060015b92915050565b601354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a4a57600080fd5b505afa158015610a5e573d6000803e3d6000fd5b505050506040513d6020811015610a7457600080fd5b505190505b90565b60025481565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6001600160a01b038316600081815260036020908152604080832033808552925282205491929091908214801590610ae057506000198114155b15610b71576000610b0c856040518060600160405280602f81526020016139a0602f91398491906124bc565b6001600160a01b0380891660008181526003602090815260408083209489168084529482529182902085905581518581529151949550929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92592918290030190a3505b610b7c868686612553565b50600195945050505050565b6000610b9382612008565b90508015610c0c57610ba481612660565b600a54610bbb906001600160a01b03163383612719565b610bc533836127dc565b600954610bd290826128b1565b60095560408051828152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a25b5050565b610c0c82826128f3565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60075481565b60086020526000908152604090205460ff1681565b600a54604080517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c4810184905290516001600160a01b039092169163d505accf9160e48082019260009290919082900301818387803b158015610cee57600080fd5b505af1158015610d02573d6000803e3d6000fd5b50505050610d1033866128f3565b5050505050565b610d1f612ae9565b6001600160a01b0316610d3061153e565b6001600160a01b031614610d79576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526008602052604090205460ff1615610de7576040805162461bcd60e51b815260206004820152601c60248201527f5065726d697373696f6e65643a3a616c6c6f774465706f7369746f7200000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600860205260409020805460ff19166001908117909155600754610e1991612343565b6007556040516001600160a01b038216907fc0a1035c16faf8d1304056d92c00edf028f87e62b8235a938f00af9e3c0312c590600090a250565b610e5b612ae9565b6001600160a01b0316610e6c61153e565b6001600160a01b031614610eb5576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600f5460ff1615158115151415610ecb57600080fd5b600f805482151560ff19909116811790915560408051918252517f7b014ed3854e7f5cb0218d58b3c6ae7d53a68bb0af2f67bfb029ea42c38a7e859181900360200190a150565b610f1a612ae9565b6001600160a01b0316610f2b61153e565b6001600160a01b031614610f74576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b60008111610f8157600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610fae573d6000803e3d6000fd5b5060408051600081526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a150565b60125481565b6001600160a01b0381166000908152600460205260409020545b919050565b61101b612ae9565b6001600160a01b031661102c61153e565b6001600160a01b031614611075576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36006805473ffffffffffffffffffffffffffffffffffffffff19169055565b600e5481565b6110da612ae9565b6001600160a01b03166110eb61153e565b6001600160a01b031614611134576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b816001600160a01b031663095ea7b38260006040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561118c57600080fd5b505af11580156111a0573d6000803e3d6000fd5b505050506040513d60208110156111b657600080fd5b5051610c0c57600080fd5b60095481565b60056020526000908152604090205481565b6111e1612ae9565b6001600160a01b03166111f261153e565b6001600160a01b03161461123b576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600d54604080519182526020820183905280517f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef8499011009281900390910190a1600d55565b611285612ae9565b6001600160a01b031661129661153e565b6001600160a01b0316146112df576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600081116112ec57600080fd5b604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810183905290516001600160a01b0384169163a9059cbb9160448083019260209291908290030181600087803b15801561135457600080fd5b505af1158015611368573d6000803e3d6000fd5b505050506040513d602081101561137e57600080fd5b505161138957600080fd5b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60105481565b6113df612ae9565b6001600160a01b03166113f061153e565b6001600160a01b031614611439576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b60006007541161147a5760405162461bcd60e51b81526004018080602001828103825260348152602001806137dd6034913960400191505060405180910390fd5b6001600160a01b03811660009081526008602052604090205460ff1615156001146114d65760405162461bcd60e51b815260040180806020018281038252602a815260200180613884602a913960400191505060405180910390fd5b6001600160a01b0381166000908152600860205260409020805460ff191690556007546115049060016128b1565b6007556040516001600160a01b038216907f0e86f6608b536e5339a25b65ff531f5ea91e1313d056ecd4752b35cbd16137d490600090a250565b6006546001600160a01b031690565b600c546001600160a01b031633146115ac576040805162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79446576000000000000000000000000604482015290519081900360640190fd5b600c54604080516001600160a01b039283168152918316602083015280517fa8e91499ed37682f43cffb045fcc7d379a91e8c9a14e6321877ee34dee564c009281900390910190a1600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109da5780601f106109af576101008083540402835291602001916109da565b611685612ae9565b6001600160a01b031661169661153e565b6001600160a01b0316146116df576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6127106117036010546116fd6011548561234390919063ffffffff16565b90612343565b111561170e57600080fd5b601254604080519182526020820183905280517f2a42303d002f0ba6cfe8259c91d4684443fb0b3de286ba74991175d6517261319281900390910190a1601255565b7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc681565b61177c612ae9565b6001600160a01b031661178d61153e565b6001600160a01b0316146117d6576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6127106117f46012546116fd6011548561234390919063ffffffff16565b11156117ff57600080fd5b601054604080519182526020820183905280517fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f29281900390910190a1601055565b60006109f5338484612553565b611856612ae9565b6001600160a01b031661186761153e565b6001600160a01b0316146118b0576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156118fb57600080fd5b505afa15801561190f573d6000803e3d6000fd5b505050506040513d602081101561192557600080fd5b5051601354604080516370a0823160e01b815230600482015290519293506001600160a01b0390911691632e1a7d4d9183916370a0823191602480820192602092909190829003018186803b15801561197d57600080fd5b505afa158015611991573d6000803e3d6000fd5b505050506040513d60208110156119a757600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b168152600481019290925251602480830192600092919082900301818387803b1580156119ff57600080fd5b505af1158015611a13573d6000803e3d6000fd5b5050600a54604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015611a6457600080fd5b505afa158015611a78573d6000803e3d6000fd5b505050506040513d6020811015611a8e57600080fd5b5051905083611a9d82846128b1565b1015611ada5760405162461bcd60e51b815260040180806020018281038252602681526020018061385e6026913960400191505060405180910390fd5b600981905560025460408051838152602081019290925280517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2349281900390910190a1600f5460ff1615156001148015611b3657506001831515145b15611b4557611b456000610e53565b50505050565b600f5460ff1681565b611b5e33826128f3565b50565b600080611b6c611bae565b9050600d548110611ba057611b98612710611b9260105484612aed90919063ffffffff16565b90612b46565b915050610a79565b600091505090565b600d5481565b601354604080517e8cc26200000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b031691628cc262916024808301926020929190829003018186803b158015610a4a57600080fd5b600a546001600160a01b031681565b611c27612ae9565b6001600160a01b0316611c3861153e565b6001600160a01b031614611c81576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b612710611c9f6010546116fd6012548561234390919063ffffffff16565b1115611caa57600080fd5b601154604080519182526020820183905280517f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a9281900390910190a1601155565b42841015611d41576040805162461bcd60e51b815260206004820152600f60248201527f7065726d69743a3a657870697265640000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0380881660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938a1660608401526080830189905260a083019390935260c08083018890528151808403909101815260e090920190528051910120611dd78882868686612b88565b611de28888886123a4565b5050505050505050565b600c546001600160a01b031681565b611e03612ae9565b6001600160a01b0316611e1461153e565b6001600160a01b031614611e5d576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600a54601354604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03928316600482015260001960248201529051919092169163095ea7b39160448083019260209291908290030181600087803b158015611ed057600080fd5b505af1158015611ee4573d6000803e3d6000fd5b505050506040513d6020811015610c0c57600080fd5b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000611f3e600954600254612aed90919063ffffffff16565b611f4957508061100e565b6109f9600954611b9260025485612aed90919063ffffffff16565b611f6c612ae9565b6001600160a01b0316611f7d61153e565b6001600160a01b031614611fc6576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b600e54604080519182526020820183905280517fa5dae50539d56dfe1fb5273d883b0c39bc76750a25d036fc5fbd09ad8fd5f57f9281900390910190a1600e55565b6000612021600954600254612aed90919063ffffffff16565b61202d5750600061100e565b6109f9600254611b9260095485612aed90919063ffffffff16565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60001b600060405180828054600181600116156101000203166002900480156120cb5780601f106120a95761010080835404028352918201916120cb565b820191906000526020600020905b8154815290600101906020018083116120b7575b505091505060405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660001b612104612cc0565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b031681526020019550505050505060405160208183030381529060405280519060200120905090565b6013546001600160a01b031681565b61216c612ae9565b6001600160a01b031661217d61153e565b6001600160a01b0316146121c6576040805162461bcd60e51b81526020600482018190526024820152600080516020613925833981519152604482015290519081900360640190fd5b6001600160a01b03811661220b5760405162461bcd60e51b81526004018080602001828103825260268152602001806137896026913960400191505060405180910390fd5b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600b546001600160a01b031681565b3233146122d7576040805162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79454f41000000000000000000000000604482015290519081900360640190fd5b60006122e1611bae565b9050600d5481101561233a576040805162461bcd60e51b815260206004820152601b60248201527f556e69706f6f6c537472617465677956313a3a7265696e766573740000000000604482015290519081900360640190fd5b611b5e81612cc4565b60008282018381101561239d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0383166123ff576040805162461bcd60e51b815260206004820152601c60248201527f5f617070726f76653a3a6f776e6572207a65726f206164647265737300000000604482015290519081900360640190fd5b6001600160a01b03821661245a576040805162461bcd60e51b815260206004820152601e60248201527f5f617070726f76653a3a7370656e646572207a65726f20616464726573730000604482015290519081900360640190fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000818484111561254b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125105781810151838201526020016124f8565b50505050905090810190601f16801561253d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166125985760405162461bcd60e51b81526004018080602001828103825260348152602001806139456034913960400191505060405180910390fd5b6125d5816040518060600160405280602e81526020016139f6602e91396001600160a01b03861660009081526004602052604090205491906124bc565b6001600160a01b0380851660009081526004602052604080822093909355908416815220546126049082612343565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000811161269f5760405162461bcd60e51b81526004018080602001828103825260298152602001806138356029913960400191505060405180910390fd5b601354604080517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b15801561270557600080fd5b505af1158015610d10573d6000803e3d6000fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561277057600080fd5b505af1158015612784573d6000803e3d6000fd5b505050506040513d602081101561279a57600080fd5b50516127d75760405162461bcd60e51b81526004018080602001828103825260278152602001806139796027913960400191505060405180910390fd5b505050565b612819816040518060600160405280602781526020016139cf602791396001600160a01b03851660009081526004602052604090205491906124bc565b60046000846001600160a01b03166001600160a01b0316815260200190815260200160002081905550612869816040518060600160405280602781526020016138ae6027913960025491906124bc565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061239d83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f77008152506124bc565b6007541561294e573360009081526008602052604090205460ff16151560011461294e5760405162461bcd60e51b815260040180806020018281038252602e8152602001806137af602e913960400191505060405180910390fd5b600f5460ff1615156001146129aa576040805162461bcd60e51b815260206004820152601b60248201527f556e69706f6f6c537472617465677956313a3a5f6465706f7369740000000000604482015290519081900360640190fd5b600e54156129d35760006129bc611bae565b9050600e548111156129d1576129d181612cc4565b505b600a54604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015612a4657600080fd5b505af1158015612a5a573d6000803e3d6000fd5b505050506040513d6020811015612a7057600080fd5b5051612a7b57600080fd5b612a8481612e90565b612a9682612a9183611f25565b612f35565b600954612aa39082612343565b6009556040805182815290516001600160a01b038416917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25050565b3390565b600082612afc575060006109f9565b82820282848281612b0957fe5b041461239d5760405162461bcd60e51b81526004018080602001828103825260218152602001806139046021913960400191505060405180910390fd5b600061239d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fc0565b6000612b92612048565b8560405160200180807f190100000000000000000000000000000000000000000000000000000000000081525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018286868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015612c46573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590612c7c5750866001600160a01b0316816001600160a01b0316145b612cb75760405162461bcd60e51b81526004018080602001828103825260248152602001806138116024913960400191505060405180910390fd5b50505050505050565b4690565b601360009054906101000a90046001600160a01b03166001600160a01b031663b88a802f6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612d1457600080fd5b505af1158015612d28573d6000803e3d6000fd5b505050506000612d49612710611b9260125485612aed90919063ffffffff16565b90508015612d6e57600b54600c54612d6e916001600160a01b03908116911683612719565b6000612d8b612710611b9260115486612aed90919063ffffffff16565b90508015612db157600b54612db1906001600160a01b0316612dab61153e565b83612719565b6000612dce612710611b9260105487612aed90919063ffffffff16565b90508015612ded57600b54612ded906001600160a01b03163383612719565b6000612e2e612e0883612e0286818a8a6128b1565b906128b1565b600b54600a546014546015546001600160a01b0393841693928316929182169116613025565b9050612e3981612e90565b600954612e469082612343565b600981905560025460408051928352602083019190915280517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2349281900390910190a15050505050565b60008111612ecf5760405162461bcd60e51b81526004018080602001828103825260268152602001806137636026913960400191505060405180910390fd5b601354604080517fa694fc3a0000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b039092169163a694fc3a9160248082019260009290919082900301818387803b15801561270557600080fd5b600254612f429082612343565b6002556001600160a01b038216600090815260046020526040902054612f689082612343565b6001600160a01b03831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818361300f5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156125105781810151838201526020016124f8565b50600083858161301b57fe5b0495945050505050565b600080613033876002612b46565b9050600081116130745760405162461bcd60e51b815260040180806020018281038252602f8152602001806138d5602f913960400191505060405180910390fd5b6000856001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156130af57600080fd5b505afa1580156130c3573d6000803e3d6000fd5b505050506040513d60208110156130d957600080fd5b50519050816001600160a01b0388811690831614613100576130fd838984896131a6565b90505b6000876001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561313b57600080fd5b505afa15801561314f573d6000803e3d6000fd5b505050506040513d602081101561316557600080fd5b50519050836001600160a01b038a81169083161461318c57613189858b848a6131a6565b90505b6131978984836133b6565b9b9a5050505050505050505050565b6000806131b385856135fd565b509050600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156131f257600080fd5b505afa158015613206573d6000803e3d6000fd5b505050506040513d606081101561321c57600080fd5b50805160209091015190925090506001600160a01b038381169088161461323f57905b60008061326d8a856dffffffffffffffffffffffffffff16856dffffffffffffffffffffffffffff1661362e565b9050886001600160a01b0316856001600160a01b03161461328a57905b61329589888c613676565b60408051600080825260208201928390527f022c0d9f00000000000000000000000000000000000000000000000000000000835260248201858152604483018590523060648401819052608060848501908152845160a486018190526001600160a01b038e169663022c0d9f968a968a9691949193919260c486019290918190849084905b8381101561333257818101518382015260200161331a565b50505050905090810190601f16801561335f5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561338157600080fd5b505af1158015613395573d6000803e3d6000fd5b505050508181116133a657816133a8565b805b9a9950505050505050505050565b6000806000856001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156133f457600080fd5b505afa158015613408573d6000803e3d6000fd5b505050506040513d606081101561341e57600080fd5b5080516020909101519092509050600061344c866dffffffffffffffffffffffffffff80861690851661374a565b9050848111156134875784905061348485836dffffffffffffffffffffffffffff16856dffffffffffffffffffffffffffff1661374a565b95505b6134f6876001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156134c357600080fd5b505afa1580156134d7573d6000803e3d6000fd5b505050506040513d60208110156134ed57600080fd5b50518888613676565b613565876001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561353257600080fd5b505afa158015613546573d6000803e3d6000fd5b505050506040513d602081101561355c57600080fd5b50518883613676565b604080517f6a62784200000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03891691636a6278429160248083019260209291908290030181600087803b1580156135c657600080fd5b505af11580156135da573d6000803e3d6000fd5b505050506040513d60208110156135f057600080fd5b5051979650505050505050565b600080826001600160a01b0316846001600160a01b031610613620578284613623565b83835b915091509250929050565b60008061363d856103e5612aed565b9050600061364b8285612aed565b9050600061365f836116fd886103e8612aed565b905061366b8282612b46565b979650505050505050565b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156136cd57600080fd5b505af11580156136e1573d6000803e3d6000fd5b505050506040513d60208110156136f757600080fd5b50516127d7576040805162461bcd60e51b815260206004820181905260248201527f4465784c6962726172793a3a5452414e534645525f46524f4d5f4641494c4544604482015290519081900360640190fd5b600061375a83611b928685612aed565b94935050505056fe556e69706f6f6c537472617465677956313a3a5f7374616b654465706f736974546f6b656e734f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735065726d697373696f6e65643a3a6f6e6c79416c6c6f7765644465706f736974732c206e6f7420616c6c6f7765645065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e6f20616c6c6f776564206465706f7369746f7273417263683a3a76616c69646174655369673a20696e76616c6964207369676e6174757265556e69706f6f6c537472617465677956313a3a5f77697468647261774465706f736974546f6b656e73556e69706f6f6c537472617465677956313a3a7265736375654465706c6f79656446756e64735065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e6f7420616c6c6f7765645f6275726e3a206275726e20616d6f756e74206578636565647320746f74616c20737570706c794465784c6962726172793a3a5f636f6e76657274526577617264546f6b656e73546f4465706f736974546f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f7472616e73666572546f6b656e733a2063616e6e6f74207472616e7366657220746f20746865207a65726f2061646472657373556e69706f6f6c537472617465677956313a3a5452414e534645525f46524f4d5f4641494c45447472616e7366657246726f6d3a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655f6275726e3a206275726e20616d6f756e7420657863656564732066726f6d2062616c616e63655f7472616e73666572546f6b656e733a207472616e7366657220657863656564732066726f6d2062616c616e6365a2646970667358221220e0835086bf2527b22a35ba162cd74f57270f46bafae4ec3aeb675876f2b8f3dc64736f6c63430007030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001600000000000000000000000004f20e367b10674cb45eb7ede68c33b702e1be655000000000000000000000000094bd7b2d99711a1486fb94d4395801c6d0fddcc000000000000000000000000686fbbef0aa5fc8e976f637db54b3a4f5fb972d10000000000000000000000004f20e367b10674cb45eb7ede68c33b702e1be65500000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d36c5c6947adccd25ef49ea1aac2ceacfff0bd70000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000215969656c642059616b3a20546564647920782050474c2054454444592d4156415800000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Yield Yak: Teddy x PGL TEDDY-AVAX
Arg [1] : _depositToken (address): 0x4F20E367B10674cB45Eb7ede68c33B702E1Be655
Arg [2] : _rewardToken (address): 0x094bd7B2D99711A1486FB94d4395801C6d0fdDcC
Arg [3] : _stakingContract (address): 0x686FBbef0AA5Fc8E976f637dB54B3a4f5fB972d1
Arg [4] : _swapPairToken0 (address): 0x4F20E367B10674cB45Eb7ede68c33B702E1Be655
Arg [5] : _swapPairToken1 (address): 0x0000000000000000000000000000000000000000
Arg [6] : _timelock (address): 0x8d36C5c6947ADCcd25Ef49Ea1aAC2ceACFff0bD7
Arg [7] : _minTokensToReinvest (uint256): 1000000000000000000
Arg [8] : _adminFeeBips (uint256): 0
Arg [9] : _devFeeBips (uint256): 600
Arg [10] : _reinvestRewardBips (uint256): 200
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 0000000000000000000000004f20e367b10674cb45eb7ede68c33b702e1be655
Arg [2] : 000000000000000000000000094bd7b2d99711a1486fb94d4395801c6d0fddcc
Arg [3] : 000000000000000000000000686fbbef0aa5fc8e976f637db54b3a4f5fb972d1
Arg [4] : 0000000000000000000000004f20e367b10674cb45eb7ede68c33b702e1be655
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000008d36c5c6947adccd25ef49ea1aac2ceacfff0bd7
Arg [7] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [10] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [12] : 5969656c642059616b3a20546564647920782050474c2054454444592d415641
Arg [13] : 5800000000000000000000000000000000000000000000000000000000000000
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.