Contract Overview
[ Download CSV Export ]
Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x698bceeE246934FbFFDbe222CC4444Ae7585C3cb
Contract Name:
JoeStrategyV3
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/IJoeChef.sol"; import "../interfaces/IPair.sol"; import "../interfaces/IWAVAX.sol"; import "../interfaces/IERC20.sol"; import "../lib/DexLibrary.sol"; /** * @notice Strategy for Trader Joe, which includes optional and variable extra rewards * @dev Fees are paid in WAVAX */ contract JoeStrategyV3 is YakStrategy { using SafeMath for uint; IJoeChef public stakingContract; IPair private swapPairWAVAXJoe; IPair private swapPairExtraToken; IPair private swapPairToken0; IPair private swapPairToken1; IERC20 private poolRewardToken; uint public PID; IWAVAX private constant WAVAX = IWAVAX(0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7); constructor ( string memory _name, address _depositToken, address _poolRewardToken, address _rewardToken, address _stakingContract, address _swapPairWAVAXJoe, address _swapPairToken0, address _swapPairToken1, address _extraTokenSwapPair, uint pid, address _timelock, uint _minTokensToReinvest, uint _adminFeeBips, uint _devFeeBips, uint _reinvestRewardBips ) { name = _name; depositToken = IERC20(_depositToken); rewardToken = IERC20(_rewardToken); poolRewardToken = IERC20(_poolRewardToken); stakingContract = IJoeChef(_stakingContract); devAddr = msg.sender; PID = pid; assignSwapPairSafely(_swapPairWAVAXJoe, _extraTokenSwapPair, _swapPairToken0, _swapPairToken1); 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 _swapPairWAVAXJoe, address _extraTokenSwapPair, address _swapPairToken0, address _swapPairToken1) private { require( DexLibrary.checkSwapPairCompatibility(IPair(_swapPairWAVAXJoe), address(WAVAX), address(poolRewardToken)), "_swapPairWAVAXJoe is not a WAVAX-Joe pair" ); require( _swapPairToken0 == address(0) || DexLibrary.checkSwapPairCompatibility(IPair(_swapPairToken0), address(WAVAX), IPair(address(depositToken)).token0()), "_swapPairToken0 is not a WAVAX+deposit token0" ); require( _swapPairToken1 == address(0) || DexLibrary.checkSwapPairCompatibility(IPair(_swapPairToken1), address(WAVAX), IPair(address(depositToken)).token1()), "_swapPairToken0 is not a WAVAX+deposit token1" ); ( ,address extraRewardToken, , ) = stakingContract.pendingTokens(PID, address(this)); require( _extraTokenSwapPair == address(0) || DexLibrary.checkSwapPairCompatibility(IPair(_extraTokenSwapPair), address(WAVAX), extraRewardToken), "_swapPairWAVAXJoe is not a WAVAX-extra reward pair, check stakingContract.pendingTokens" ); // converts Joe to WAVAX swapPairWAVAXJoe = IPair(_swapPairWAVAXJoe); // converts extra reward to WAVAX swapPairExtraToken = IPair(_extraTokenSwapPair); // converts WAVAX to pair token0 swapPairToken0 = IPair(_swapPairToken0); // converts WAVAX to pair token1 swapPairToken1 = IPair(_swapPairToken1); } 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, "JoeStrategyV3::_deposit"); if (MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST > 0) { uint unclaimedRewards = checkReward(); if (unclaimedRewards > MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST) { (uint poolTokenAmount, address extraRewardTokenAddress, uint extraRewardTokenAmount, uint rewardTokenAmount) = _checkReward(); _reinvest(poolTokenAmount, extraRewardTokenAddress, extraRewardTokenAmount, rewardTokenAmount); } } 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, "JoeStrategyV3::_withdrawDepositTokens"); stakingContract.withdraw(PID, amount); } function reinvest() external override onlyEOA { uint unclaimedRewards = checkReward(); require(unclaimedRewards >= MIN_TOKENS_TO_REINVEST, "JoeStrategyV3::reinvest"); (uint poolTokenAmount, address extraRewardTokenAddress, uint extraRewardTokenAmount, uint rewardTokenAmount) = _checkReward(); _reinvest(poolTokenAmount, extraRewardTokenAddress, extraRewardTokenAmount, rewardTokenAmount); } function _convertRewardIntoWAVAX(uint pendingJoe, address extraRewardToken, uint pendingExtraReward) private returns (uint) { uint convertedAmountWAVAX = 0; if (extraRewardToken == address(poolRewardToken)) { convertedAmountWAVAX = DexLibrary.swap( pendingExtraReward.add(pendingJoe), address(poolRewardToken), address(WAVAX), swapPairWAVAXJoe ); return convertedAmountWAVAX; } convertedAmountWAVAX = DexLibrary.swap( pendingJoe, address(poolRewardToken), address(WAVAX), swapPairWAVAXJoe ); if ( address(swapPairExtraToken) != address(0) && pendingExtraReward > 0 && DexLibrary.checkSwapPairCompatibility(swapPairExtraToken, extraRewardToken, address(WAVAX)) ) { convertedAmountWAVAX = convertedAmountWAVAX.add( DexLibrary.swap(pendingExtraReward, extraRewardToken, address(WAVAX), swapPairExtraToken) ); } return convertedAmountWAVAX; } /** * @notice Reinvest rewards from staking contract to deposit tokens * @dev Reverts if the expected amount of tokens are not returned from `stakingContract` */ function _reinvest(uint _pendingJoe, address _extraRewardToken, uint _pendingExtraToken, uint _pendingWavax) private { stakingContract.deposit(PID, 0); uint amount = _pendingWavax.add( _convertRewardIntoWAVAX(_pendingJoe, _extraRewardToken, _pendingExtraToken) ); uint devFee = amount.mul(DEV_FEE_BIPS).div(BIPS_DIVISOR); if (devFee > 0) { _safeTransfer(address(WAVAX), devAddr, devFee); } uint adminFee = amount.mul(ADMIN_FEE_BIPS).div(BIPS_DIVISOR); if (adminFee > 0) { _safeTransfer(address(WAVAX), owner(), adminFee); } uint reinvestFee = amount.mul(REINVEST_REWARD_BIPS).div(BIPS_DIVISOR); if (reinvestFee > 0) { _safeTransfer(address(WAVAX), msg.sender, reinvestFee); } uint depositTokenAmount = DexLibrary.convertRewardTokensToDepositTokens( amount.sub(devFee).sub(adminFee).sub(reinvestFee), address(WAVAX), address(depositToken), swapPairToken0, swapPairToken1 ); _stakeDepositTokens(depositTokenAmount); totalDeposits = totalDeposits.add(depositTokenAmount); emit Reinvest(totalDeposits, totalSupply); } function _stakeDepositTokens(uint amount) private { require(amount > 0, "JoeStrategyV3::_stakeDepositTokens"); stakingContract.deposit(PID, 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), 'TransferHelper: TRANSFER_FROM_FAILED'); } function setExtraRewardSwapPair(address swapPair) external onlyDev { if (swapPair == address(0)) { swapPairExtraToken = IPair(address(0)); return; } ( ,address extraRewardToken, , ) = stakingContract.pendingTokens(PID, address(this)); require( DexLibrary.checkSwapPairCompatibility(IPair(swapPair), address(WAVAX), extraRewardToken), "_swapPairWAVAXJoe is not a WAVAX-extra reward pair, check stakingContract.pendingTokens" ); swapPairExtraToken = IPair(swapPair); } function _checkReward() private view returns (uint poolTokenAmount, address extraRewardTokenAddress, uint extraRewardTokenAmount, uint rewardTokenAmount) { (uint pendingJoe, address extraRewardToken, , uint pendingExtraToken) = stakingContract.pendingTokens(PID, address(this)); uint poolRewardBalance = poolRewardToken.balanceOf(address(this)); uint extraRewardTokenBalance; if (extraRewardToken != address(0)) { extraRewardTokenBalance = IERC20(extraRewardToken).balanceOf(address(this)); } uint rewardTokenBalance = rewardToken.balanceOf(address(this)); return ( poolRewardBalance.add(pendingJoe), extraRewardToken, extraRewardTokenBalance.add(pendingExtraToken), rewardTokenBalance ); } function checkReward() public override view returns (uint) { (uint poolTokenAmount, address extraRewardTokenAddress, uint extraRewardTokenAmount, uint rewardTokenAmount) = _checkReward(); uint estimatedWAVAX = DexLibrary.estimateConversionThroughPair( poolTokenAmount, address(poolRewardToken), address(WAVAX), swapPairWAVAXJoe ); if ( address(swapPairExtraToken) != address(0) && extraRewardTokenAmount > 0 && DexLibrary.checkSwapPairCompatibility(swapPairExtraToken, extraRewardTokenAddress, address(WAVAX)) ) { estimatedWAVAX.add( DexLibrary.estimateConversionThroughPair( extraRewardTokenAmount, extraRewardTokenAddress, address(WAVAX), swapPairExtraToken ) ); } return rewardTokenAmount.add(estimatedWAVAX); } function estimateDeployedBalance() external override view returns (uint) { (uint amount, ) = stakingContract.userInfo(PID, address(this)); return amount; } /** * @notice Allows exit from Staking Contract without additional logic * @dev Reward tokens are not automatically collected * @dev New deposits will be effectively disabled */ function emergencyWithdraw() external onlyOwner { stakingContract.emergencyWithdraw(PID); totalDeposits = 0; } function rescueDeployedFunds(uint minReturnAmountAccepted, bool disableDeposits) external override onlyOwner { uint balanceBefore = depositToken.balanceOf(address(this)); stakingContract.emergencyWithdraw(PID); uint balanceAfter = depositToken.balanceOf(address(this)); require(balanceAfter.sub(balanceBefore) >= minReturnAmountAccepted, "JoeStrategyV3::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 IJoeChef { function deposit(uint256 _pid, uint256 _amount) external; function withdraw(uint256 _pid, uint256 _amount) external; function emergencyWithdraw(uint256 _pid) external; function pendingTokens(uint256 _pid, address _user) external view returns ( uint256 pendingJoe, address bonusTokenAddress, string memory bonusTokenSymbol, uint256 pendingBonusToken ); function userInfo(uint256 pid, address user) external view returns (uint256 amount, uint256 rewardDebt); function poolInfo(uint256 pid) external view returns ( address lpToken, uint256 accJoePerShare, uint256 lastRewardTimestamp, uint256 allocPoint, address rewarder ); }
// 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; 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); }
// 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; 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; 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; } }
{ "optimizer": { "enabled": true, "runs": 999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"address","name":"_poolRewardToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"address","name":"_swapPairWAVAXJoe","type":"address"},{"internalType":"address","name":"_swapPairToken0","type":"address"},{"internalType":"address","name":"_swapPairToken1","type":"address"},{"internalType":"address","name":"_extraTokenSwapPair","type":"address"},{"internalType":"uint256","name":"pid","type":"uint256"},{"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":"PID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"swapPair","type":"address"}],"name":"setExtraRewardSwapPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"contract IJoeChef","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
60c060405260096080819052685969656c642059616b60b81b60a09081526200002c916000919062001071565b506040805180820190915260038082526216549560ea1b6020909201918252620000599160019162001071565b503480156200006757600080fd5b50604051620058303803806200583083398181016040526101e08110156200008e57600080fd5b8101908080516040519392919084640100000000821115620000af57600080fd5b908301906020820185811115620000c557600080fd5b8251640100000000811182820188101715620000e057600080fd5b82525081516020918201929091019080838360005b838110156200010f578181015183820152602001620000f5565b50505050905090810190601f1680156200013d5780820380516001836020036101000a031916815260200191505b5060409081526020820151908201516060830151608084015160a085015160c086015160e08701516101008801516101208901516101408a01516101608b01516101808c01516101a08d01516101c0909d01519b9e50999c50979a96999598949793969295919490939290916000620001b562000386565b600680546001600160a01b0319166001600160a01b0383169081179091556040519192509060009060008051602062005763833981519152908290a3508e600090805190602001906200020a92919062001071565b508d600a60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b600b60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508c601860006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a601360006101000a8154816001600160a01b0302191690836001600160a01b0316021790555033600c60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555085601981905550620002e98a888b8b6200038a60201b60201c565b620002f3620007e2565b620002fe84620008d5565b62000309836200097f565b620003148262000a6f565b6200031f8162000b4b565b6200032b600162000c27565b620003368562000ced565b604080516000808252602082015281517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef234929181900390910190a15050505050505050505050505050506200110d565b3390565b620003cb8473b31f66aa3c1e785363f0875a1b74e27b85fd66c7601860009054906101000a90046001600160a01b031662000de760201b620026ff1760201c565b620004085760405162461bcd60e51b8152600401808060200182810382526029815260200180620057b06029913960400191505060405180910390fd5b6001600160a01b0382161580620004c35750620004c38273b31f66aa3c1e785363f0875a1b74e27b85fd66c7600a60009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200048357600080fd5b505afa15801562000498573d6000803e3d6000fd5b505050506040513d6020811015620004af57600080fd5b505162000de7602090811b620026ff17901c565b620005005760405162461bcd60e51b815260040180806020018281038252602d81526020018062005783602d913960400191505060405180910390fd5b6001600160a01b03811615806200057b57506200057b8173b31f66aa3c1e785363f0875a1b74e27b85fd66c7600a60009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200048357600080fd5b620005b85760405162461bcd60e51b815260040180806020018281038252602d815260200180620056f0602d913960400191505060405180910390fd5b6013546019546040805160016232bd9d60e01b031981526004810192909252306024830152516000926001600160a01b03169163ffcd42639160448083019286929190829003018186803b1580156200061057600080fd5b505afa15801562000625573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260808110156200064f57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200067b57600080fd5b9083019060208201858111156200069157600080fd5b8251640100000000811182820188101715620006ac57600080fd5b82525081516020918201929091019080838360005b83811015620006db578181015183820152602001620006c1565b50505050905090810190601f168015620007095780820380516001836020036101000a031916815260200191505b50604052509294505050506001600160a01b03851615905080620007545750620007548473b31f66aa3c1e785363f0875a1b74e27b85fd66c78362000de760201b620026ff1760201c565b620007915760405162461bcd60e51b8152600401808060200182810382526057815260200180620057d96057913960600191505060405180910390fd5b50601480546001600160a01b039586166001600160a01b0319918216179091556015805494861694821694909417909355601680549285169284169290921790915560178054919093169116179055565b620007ec62000386565b6001600160a01b0316620007ff62001000565b6001600160a01b0316146200084a576040805162461bcd60e51b8152602060048201819052602482015260008051602062005743833981519152604482015290519081900360640190fd5b600a546013546040805163095ea7b360e01b81526001600160a01b03928316600482015260001960248201529051919092169163095ea7b39160448083019260209291908290030181600087803b158015620008a557600080fd5b505af1158015620008ba573d6000803e3d6000fd5b505050506040513d6020811015620008d157600080fd5b5050565b620008df62000386565b6001600160a01b0316620008f262001000565b6001600160a01b0316146200093d576040805162461bcd60e51b8152602060048201819052602482015260008051602062005743833981519152604482015290519081900360640190fd5b600d54604080519182526020820183905280517f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef8499011009281900390910190a1600d55565b6200098962000386565b6001600160a01b03166200099c62001000565b6001600160a01b031614620009e7576040805162461bcd60e51b8152602060048201819052602482015260008051602062005743833981519152604482015290519081900360640190fd5b61271062000a2160105462000a0d601254856200100f60201b620029081790919060201c565b6200100f60201b620029081790919060201c565b111562000a2d57600080fd5b601154604080519182526020820183905280517f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a9281900390910190a1601155565b62000a7962000386565b6001600160a01b031662000a8c62001000565b6001600160a01b03161462000ad7576040805162461bcd60e51b8152602060048201819052602482015260008051602062005743833981519152604482015290519081900360640190fd5b61271062000afd60105462000a0d601154856200100f60201b620029081790919060201c565b111562000b0957600080fd5b601254604080519182526020820183905280517f2a42303d002f0ba6cfe8259c91d4684443fb0b3de286ba74991175d6517261319281900390910190a1601255565b62000b5562000386565b6001600160a01b031662000b6862001000565b6001600160a01b03161462000bb3576040805162461bcd60e51b8152602060048201819052602482015260008051602062005743833981519152604482015290519081900360640190fd5b61271062000bd960125462000a0d601154856200100f60201b620029081790919060201c565b111562000be557600080fd5b601054604080519182526020820183905280517fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f29281900390910190a1601055565b62000c3162000386565b6001600160a01b031662000c4462001000565b6001600160a01b03161462000c8f576040805162461bcd60e51b8152602060048201819052602482015260008051602062005743833981519152604482015290519081900360640190fd5b600f5460ff161515811515141562000ca657600080fd5b600f805482151560ff19909116811790915560408051918252517f7b014ed3854e7f5cb0218d58b3c6ae7d53a68bb0af2f67bfb029ea42c38a7e859181900360200190a150565b62000cf762000386565b6001600160a01b031662000d0a62001000565b6001600160a01b03161462000d55576040805162461bcd60e51b8152602060048201819052602482015260008051602062005743833981519152604482015290519081900360640190fd5b6001600160a01b03811662000d9c5760405162461bcd60e51b81526004018080602001828103825260268152602001806200571d6026913960400191505060405180910390fd5b6006546040516001600160a01b038084169216906000805160206200576383398151915290600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801562000e2357600080fd5b505afa15801562000e38573d6000803e3d6000fd5b505050506040513d602081101562000e4f57600080fd5b50516001600160a01b038481169116148062000edd5750836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801562000ea057600080fd5b505afa15801562000eb5573d6000803e3d6000fd5b505050506040513d602081101562000ecc57600080fd5b50516001600160a01b038481169116145b801562000fd95750836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801562000f1f57600080fd5b505afa15801562000f34573d6000803e3d6000fd5b505050506040513d602081101562000f4b57600080fd5b50516001600160a01b038381169116148062000fd95750836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801562000f9c57600080fd5b505afa15801562000fb1573d6000803e3d6000fd5b505050506040513d602081101562000fc857600080fd5b50516001600160a01b038381169116145b801562000ff85750816001600160a01b0316836001600160a01b031614155b949350505050565b6006546001600160a01b031690565b6000828201838110156200106a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620010b457805160ff1916838001178555620010e4565b82800160010185558215620010e4579182015b82811115620010e4578251825591602001919060010190620010c7565b50620010f2929150620010f6565b5090565b5b80821115620010f25760008155600101620010f7565b6145d3806200111d6000396000f3fe608060405234801561001057600080fd5b506004361061038e5760003560e01c80638b73e606116101de578063c89039c51161010f578063dd8ce4d6116100ad578063ee99205c1161007c578063ee99205c1461096d578063f2fde38b14610975578063f7c618c11461099b578063fdb5a03e146109a35761038e565b8063dd8ce4d61461090e578063e21ac8251461092b578063eab89a5a14610948578063ed24911d146109655761038e565b8063da09c72c116100e9578063da09c72c146108c8578063db2e21bc146108d0578063dbd9a4d4146108d8578063dd62ed3e146108e05761038e565b8063c89039c514610852578063cff1b6ef1461085a578063d505accf146108775761038e565b8063a9059cbb1161017c578063b6b55f2511610156578063b6b55f251461081d578063b9e57b801461083a578063bd079f5514610842578063c4b24a461461084a5761038e565b8063a9059cbb146107c4578063ac0d31ff146107f0578063b52a321f146108155761038e565b806395d89b41116101b857806395d89b411461077a57806399729ec1146107825780639e4e73181461079f578063a8ae2b7c146107a75761038e565b80638b73e6061461070a5780638da5cb5b146107305780639291d563146107545761038e565b80634bebd1e7116102c3578063789139bc11610261578063818372301161023057806381837230146106935780638432e894146106b05780638980f11f146106d65780638aff733d146107025761038e565b8063789139bc1461062f5780637ae26773146106375780637d882097146106655780637ecebe001461066d5761038e565b80635ea682ea1161029d5780635ea682ea146105f15780635eaec0e4146105f957806370a0823114610601578063715018a6146106275761038e565b80634bebd1e71461058f5780634e77ace5146105b55780634ebb7916146105d45761038e565b80632e1a7d4d11610330578063313ce5671161030a578063313ce5671461050b5780633bdc6e7214610529578063483c2ef0146105315780634a970be7146105575761038e565b80632e1a7d4d146104b85780632f4f21e2146104d757806330adf81f146105035761038e565b80630f23475d1161036c5780630f23475d1461046a57806318160ddd1461047257806320606b701461047a57806323b872dd146104825761038e565b806306fdde03146103935780630767711114610410578063095ea7b31461042a575b600080fd5b61039b6109ab565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d55781810151838201526020016103bd565b50505050905090810190601f1680156104025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610418610a39565b60408051918252519081900360200190f35b6104566004803603604081101561044057600080fd5b506001600160a01b038135169060200135610a3f565b604080519115158252519081900360200190f35b610418610a56565b610418610af7565b610418610afd565b6104566004803603606081101561049857600080fd5b506001600160a01b03813581169160208101359091169060400135610b21565b6104d5600480360360208110156104ce57600080fd5b5035610c05565b005b6104d5600480360360408110156104ed57600080fd5b506001600160a01b038135169060200135610c8d565b610418610c97565b610513610cbb565b6040805160ff9092168252519081900360200190f35b610418610cc0565b6104566004803603602081101561054757600080fd5b50356001600160a01b0316610cc6565b6104d5600480360360a081101561056d57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610cdb565b6104d5600480360360208110156105a557600080fd5b50356001600160a01b0316610d94565b6104d5600480360360208110156105cb57600080fd5b50351515610ed0565b6104d5600480360360208110156105ea57600080fd5b5035610f8f565b61041861106b565b610418611071565b6104186004803603602081101561061757600080fd5b50356001600160a01b0316611077565b6104d5611096565b610418611142565b6104d56004803603604081101561064d57600080fd5b506001600160a01b0381358116916020013516611148565b610418611237565b6104186004803603602081101561068357600080fd5b50356001600160a01b031661123d565b6104d5600480360360208110156106a957600080fd5b503561124f565b6104d5600480360360208110156106c657600080fd5b50356001600160a01b03166112f3565b6104d5600480360360408110156106ec57600080fd5b506001600160a01b03813516906020013561155d565b6104186116b1565b6104d56004803603602081101561072057600080fd5b50356001600160a01b03166116b7565b61073861181e565b604080516001600160a01b039092168252519081900360200190f35b6104d56004803603602081101561076a57600080fd5b50356001600160a01b031661182d565b61039b6118f6565b6104d56004803603602081101561079857600080fd5b5035611950565b610418611a23565b6104d5600480360360208110156107bd57600080fd5b5035611a47565b610456600480360360408110156107da57600080fd5b506001600160a01b038135169060200135611b14565b6104d56004803603604081101561080657600080fd5b50803590602001351515611b21565b610456611d99565b6104d56004803603602081101561083357600080fd5b5035611da2565b610418611dac565b610418611df3565b610418611df9565b610738611eef565b6104d56004803603602081101561087057600080fd5b5035611efe565b6104d5600480360360e081101561088d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611fcb565b6107386120cb565b6104d56120da565b6104d56121ab565b610418600480360360408110156108f657600080fd5b506001600160a01b03813581169160200135166122aa565b6104186004803603602081101561092457600080fd5b50356122d5565b6104d56004803603602081101561094157600080fd5b5035612314565b6104186004803603602081101561095e57600080fd5b50356123b8565b6104186123f8565b610738612505565b6104d56004803603602081101561098b57600080fd5b50356001600160a01b0316612514565b610738612617565b6104d5612626565b6000805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a315780601f10610a0657610100808354040283529160200191610a31565b820191906000526020600020905b815481529060010190602001808311610a1457829003601f168201915b505050505081565b60115481565b6000610a4c338484612962565b5060015b92915050565b601354601954604080517f93f1a40b0000000000000000000000000000000000000000000000000000000081526004810192909252306024830152805160009384936001600160a01b03909116926393f1a40b92604480840193829003018186803b158015610ac457600080fd5b505afa158015610ad8573d6000803e3d6000fd5b505050506040513d6040811015610aee57600080fd5b50519150505b90565b60025481565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6001600160a01b038316600081815260036020908152604080832033808552925282205491929091908214801590610b5b57506000198114155b15610bec576000610b87856040518060600160405280602f815260200161449f602f9139849190612a7a565b6001600160a01b0380891660008181526003602090815260408083209489168084529482529182902085905581518581529151949550929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92592918290030190a3505b610bf7868686612b11565b6001925050505b9392505050565b6000610c10826123b8565b90508015610c8957610c2181612c1e565b600a54610c38906001600160a01b03163383612ce1565b610c423383612da4565b600954610c4f9082612e79565b60095560408051828152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a25b5050565b610c898282612ebb565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60075481565b60086020526000908152604090205460ff1681565b600a54604080517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c4810184905290516001600160a01b039092169163d505accf9160e48082019260009290919082900301818387803b158015610d6b57600080fd5b505af1158015610d7f573d6000803e3d6000fd5b50505050610d8d3386612ebb565b5050505050565b610d9c6130cf565b6001600160a01b0316610dad61181e565b6001600160a01b031614610df6576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526008602052604090205460ff1615610e64576040805162461bcd60e51b815260206004820152601c60248201527f5065726d697373696f6e65643a3a616c6c6f774465706f7369746f7200000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600860205260409020805460ff19166001908117909155600754610e9691612908565b6007556040516001600160a01b038216907fc0a1035c16faf8d1304056d92c00edf028f87e62b8235a938f00af9e3c0312c590600090a250565b610ed86130cf565b6001600160a01b0316610ee961181e565b6001600160a01b031614610f32576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b600f5460ff1615158115151415610f4857600080fd5b600f805482151560ff19909116811790915560408051918252517f7b014ed3854e7f5cb0218d58b3c6ae7d53a68bb0af2f67bfb029ea42c38a7e859181900360200190a150565b610f976130cf565b6001600160a01b0316610fa861181e565b6001600160a01b031614610ff1576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b60008111610ffe57600080fd5b604051339082156108fc029083906000818181858888f1935050505015801561102b573d6000803e3d6000fd5b5060408051600081526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a150565b60125481565b60195481565b6001600160a01b0381166000908152600460205260409020545b919050565b61109e6130cf565b6001600160a01b03166110af61181e565b6001600160a01b0316146110f8576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b600e5481565b6111506130cf565b6001600160a01b031661116161181e565b6001600160a01b0316146111aa576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b816001600160a01b031663095ea7b38260006040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561120257600080fd5b505af1158015611216573d6000803e3d6000fd5b505050506040513d602081101561122c57600080fd5b5051610c8957600080fd5b60095481565b60056020526000908152604090205481565b6112576130cf565b6001600160a01b031661126861181e565b6001600160a01b0316146112b1576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b600d54604080519182526020820183905280517f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef8499011009281900390910190a1600d55565b600c546001600160a01b03163314611352576040805162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79446576000000000000000000000000604482015290519081900360640190fd5b6001600160a01b03811661137557601580546001600160a01b031916905561155a565b601354601954604080517fffcd42630000000000000000000000000000000000000000000000000000000081526004810192909252306024830152516000926001600160a01b03169163ffcd42639160448083019286929190829003018186803b1580156113e257600080fd5b505afa1580156113f6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052608081101561141f57600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561144a57600080fd5b90830190602082018581111561145f57600080fd5b825164010000000081118282018810171561147957600080fd5b82525081516020918201929091019080838360005b838110156114a657818101518382015260200161148e565b50505050905090810190601f1680156114d35780820380516001836020036101000a031916815260200191505b5060405250929450611502935085925073b31f66aa3c1e785363f0875a1b74e27b85fd66c791508490506126ff565b61153d5760405162461bcd60e51b81526004018080602001828103825260578152602001806144ce6057913960600191505060405180910390fd5b50601580546001600160a01b0319166001600160a01b0383161790555b50565b6115656130cf565b6001600160a01b031661157661181e565b6001600160a01b0316146115bf576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b600081116115cc57600080fd5b604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810183905290516001600160a01b0384169163a9059cbb9160448083019260209291908290030181600087803b15801561163457600080fd5b505af1158015611648573d6000803e3d6000fd5b505050506040513d602081101561165e57600080fd5b505161166957600080fd5b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60105481565b6116bf6130cf565b6001600160a01b03166116d061181e565b6001600160a01b031614611719576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b60006007541161175a5760405162461bcd60e51b81526004018080602001828103825260348152602001806142e96034913960400191505060405180910390fd5b6001600160a01b03811660009081526008602052604090205460ff1615156001146117b65760405162461bcd60e51b815260040180806020018281038252602a815260200180614341602a913960400191505060405180910390fd5b6001600160a01b0381166000908152600860205260409020805460ff191690556007546117e4906001612e79565b6007556040516001600160a01b038216907f0e86f6608b536e5339a25b65ff531f5ea91e1313d056ecd4752b35cbd16137d490600090a250565b6006546001600160a01b031690565b600c546001600160a01b0316331461188c576040805162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79446576000000000000000000000000604482015290519081900360640190fd5b600c54604080516001600160a01b039283168152918316602083015280517fa8e91499ed37682f43cffb045fcc7d379a91e8c9a14e6321877ee34dee564c009281900390910190a1600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a315780601f10610a0657610100808354040283529160200191610a31565b6119586130cf565b6001600160a01b031661196961181e565b6001600160a01b0316146119b2576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b6127106119d66010546119d06011548561290890919063ffffffff16565b90612908565b11156119e157600080fd5b601254604080519182526020820183905280517f2a42303d002f0ba6cfe8259c91d4684443fb0b3de286ba74991175d6517261319281900390910190a1601255565b7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc681565b611a4f6130cf565b6001600160a01b0316611a6061181e565b6001600160a01b031614611aa9576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b612710611ac76012546119d06011548561290890919063ffffffff16565b1115611ad257600080fd5b601054604080519182526020820183905280517fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f29281900390910190a1601055565b6000610a4c338484612b11565b611b296130cf565b6001600160a01b0316611b3a61181e565b6001600160a01b031614611b83576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611bce57600080fd5b505afa158015611be2573d6000803e3d6000fd5b505050506040513d6020811015611bf857600080fd5b505160135460195460408051632989754760e11b81526004810192909252519293506001600160a01b0390911691635312ea8e9160248082019260009290919082900301818387803b158015611c4d57600080fd5b505af1158015611c61573d6000803e3d6000fd5b5050600a54604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015611cb257600080fd5b505afa158015611cc6573d6000803e3d6000fd5b505050506040513d6020811015611cdc57600080fd5b5051905083611ceb8284612e79565b1015611d285760405162461bcd60e51b815260040180806020018281038252602281526020018061447d6022913960400191505060405180910390fd5b600981905560025460408051838152602081019290925280517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2349281900390910190a1600f5460ff1615156001148015611d8457506001831515145b15611d9357611d936000610ed0565b50505050565b600f5460ff1681565b61155a3382612ebb565b600080611db7611df9565b9050600d548110611deb57611de3612710611ddd601054846130d390919063ffffffff16565b9061312c565b915050610af4565b600091505090565b600d5481565b6000806000806000611e0961316e565b6018546014549498509296509094509250600091611e4b9187916001600160a01b039182169173b31f66aa3c1e785363f0875a1b74e27b85fd66c7911661348e565b6015549091506001600160a01b031615801590611e685750600083115b8015611e9a5750601554611e9a906001600160a01b03168573b31f66aa3c1e785363f0875a1b74e27b85fd66c76126ff565b15611edb57601554611ed990611ed2908590879073b31f66aa3c1e785363f0875a1b74e27b85fd66c7906001600160a01b031661348e565b8290612908565b505b611ee58282612908565b9550505050505090565b600a546001600160a01b031681565b611f066130cf565b6001600160a01b0316611f1761181e565b6001600160a01b031614611f60576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b612710611f7e6010546119d06012548561290890919063ffffffff16565b1115611f8957600080fd5b601154604080519182526020820183905280517f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a9281900390910190a1601155565b42841015612020576040805162461bcd60e51b815260206004820152600f60248201527f7065726d69743a3a657870697265640000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0380881660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938a1660608401526080830189905260a083019390935260c08083018890528151808403909101815260e0909201905280519101206120b6888286868661355e565b6120c1888888612962565b5050505050505050565b600c546001600160a01b031681565b6120e26130cf565b6001600160a01b03166120f361181e565b6001600160a01b03161461213c576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b60135460195460408051632989754760e11b81526004810192909252516001600160a01b0390921691635312ea8e9160248082019260009290919082900301818387803b15801561218c57600080fd5b505af11580156121a0573d6000803e3d6000fd5b505060006009555050565b6121b36130cf565b6001600160a01b03166121c461181e565b6001600160a01b03161461220d576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b600a54601354604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03928316600482015260001960248201529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561228057600080fd5b505af1158015612294573d6000803e3d6000fd5b505050506040513d6020811015610c8957600080fd5b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b60006122ee6009546002546130d390919063ffffffff16565b6122f9575080611091565b610a50600954611ddd600254856130d390919063ffffffff16565b61231c6130cf565b6001600160a01b031661232d61181e565b6001600160a01b031614612376576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b600e54604080519182526020820183905280517fa5dae50539d56dfe1fb5273d883b0c39bc76750a25d036fc5fbd09ad8fd5f57f9281900390910190a1600e55565b60006123d16009546002546130d390919063ffffffff16565b6123dd57506000611091565b610a50600254611ddd600954856130d390919063ffffffff16565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60001b6000604051808280546001816001161561010002031660029004801561247b5780601f1061245957610100808354040283529182019161247b565b820191906000526020600020905b815481529060010190602001808311612467575b505091505060405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660001b6124b4613696565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b031681526020019550505050505060405160208183030381529060405280519060200120905090565b6013546001600160a01b031681565b61251c6130cf565b6001600160a01b031661252d61181e565b6001600160a01b031614612576576040805162461bcd60e51b815260206004820181905260248201526000805160206143e2833981519152604482015290519081900360640190fd5b6001600160a01b0381166125bb5760405162461bcd60e51b81526004018080602001828103825260268152602001806142956026913960400191505060405180910390fd5b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031681565b32331461267a576040805162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79454f41000000000000000000000000604482015290519081900360640190fd5b6000612684611df9565b9050600d548110156126dd576040805162461bcd60e51b815260206004820152601760248201527f4a6f65537472617465677956333a3a7265696e76657374000000000000000000604482015290519081900360640190fd5b6000806000806126eb61316e565b9350935093509350610d8d8484848461369a565b6000836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561273a57600080fd5b505afa15801561274e573d6000803e3d6000fd5b505050506040513d602081101561276457600080fd5b50516001600160a01b03848116911614806127ee5750836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156127b357600080fd5b505afa1580156127c7573d6000803e3d6000fd5b505050506040513d60208110156127dd57600080fd5b50516001600160a01b038481169116145b80156128e25750836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561282e57600080fd5b505afa158015612842573d6000803e3d6000fd5b505050506040513d602081101561285857600080fd5b50516001600160a01b03838116911614806128e25750836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156128a757600080fd5b505afa1580156128bb573d6000803e3d6000fd5b505050506040513d60208110156128d157600080fd5b50516001600160a01b038381169116145b80156129005750816001600160a01b0316836001600160a01b031614155b949350505050565b600082820183811015610bfe576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0383166129bd576040805162461bcd60e51b815260206004820152601c60248201527f5f617070726f76653a3a6f776e6572207a65726f206164647265737300000000604482015290519081900360640190fd5b6001600160a01b038216612a18576040805162461bcd60e51b815260206004820152601e60248201527f5f617070726f76653a3a7370656e646572207a65726f20616464726573730000604482015290519081900360640190fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60008184841115612b095760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612ace578181015183820152602001612ab6565b50505050905090810190601f168015612afb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216612b565760405162461bcd60e51b81526004018080602001828103825260348152602001806144026034913960400191505060405180910390fd5b612b93816040518060600160405280602e8152602001614570602e91396001600160a01b0386166000908152600460205260409020549190612a7a565b6001600160a01b038085166000908152600460205260408082209390935590841681522054612bc29082612908565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008111612c5d5760405162461bcd60e51b81526004018080602001828103825260258152602001806144586025913960400191505060405180910390fd5b601354601954604080517f441a3e70000000000000000000000000000000000000000000000000000000008152600481019290925260248201849052516001600160a01b039092169163441a3e709160448082019260009290919082900301818387803b158015612ccd57600080fd5b505af1158015610d8d573d6000803e3d6000fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612d3857600080fd5b505af1158015612d4c573d6000803e3d6000fd5b505050506040513d6020811015612d6257600080fd5b5051612d9f5760405162461bcd60e51b815260040180806020018281038252602481526020018061454c6024913960400191505060405180910390fd5b505050565b612de181604051806060016040528060278152602001614525602791396001600160a01b0385166000908152600460205260409020549190612a7a565b60046000846001600160a01b03166001600160a01b0316815260200190815260200160002081905550612e318160405180606001604052806027815260200161436b602791396002549190612a7a565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000610bfe83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612a7a565b60075415612f16573360009081526008602052604090205460ff161515600114612f165760405162461bcd60e51b815260040180806020018281038252602e8152602001806142bb602e913960400191505060405180910390fd5b600f5460ff161515600114612f72576040805162461bcd60e51b815260206004820152601760248201527f4a6f65537472617465677956333a3a5f6465706f736974000000000000000000604482015290519081900360640190fd5b600e5415612fb9576000612f84611df9565b9050600e54811115612fb757600080600080612f9e61316e565b9350935093509350612fb28484848461369a565b505050505b505b600a54604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561302c57600080fd5b505af1158015613040573d6000803e3d6000fd5b505050506040513d602081101561305657600080fd5b505161306157600080fd5b61306a816138b6565b61307c82613077836122d5565b61394c565b6009546130899082612908565b6009556040805182815290516001600160a01b038416917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25050565b3390565b6000826130e257506000610a50565b828202828482816130ef57fe5b0414610bfe5760405162461bcd60e51b81526004018080602001828103825260218152602001806143c16021913960400191505060405180910390fd5b6000610bfe83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506139d7565b601354601954604080517fffcd42630000000000000000000000000000000000000000000000000000000081526004810192909252306024830152516000928392839283928392839283926001600160a01b03169163ffcd42639160448083019286929190829003018186803b1580156131e757600080fd5b505afa1580156131fb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052608081101561322457600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561324f57600080fd5b90830190602082018581111561326457600080fd5b825164010000000081118282018810171561327e57600080fd5b82525081516020918201929091019080838360005b838110156132ab578181015183820152602001613293565b50505050905090810190601f1680156132d85780820380516001836020036101000a031916815260200191505b5060408181526020928301516018546370a0823160e01b84523060048501529151989b509699509597506000966001600160a01b03909616956370a082319550602480830195509293509190829003018186803b15801561333857600080fd5b505afa15801561334c573d6000803e3d6000fd5b505050506040513d602081101561336257600080fd5b5051905060006001600160a01b038416156133ec57604080516370a0823160e01b815230600482015290516001600160a01b038616916370a08231916024808301926020929190829003018186803b1580156133bd57600080fd5b505afa1580156133d1573d6000803e3d6000fd5b505050506040513d60208110156133e757600080fd5b505190505b600b54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561343757600080fd5b505afa15801561344b573d6000803e3d6000fd5b505050506040513d602081101561346157600080fd5b5051905061346f8387612908565b8561347a8487612908565b919b50995097509550505050505090919293565b60008061349b8585613a3c565b509050600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156134da57600080fd5b505afa1580156134ee573d6000803e3d6000fd5b505050506040513d606081101561350457600080fd5b50805160209091015190925090506001600160a01b038381169088161461352757905b61355288836dffffffffffffffffffffffffffff16836dffffffffffffffffffffffffffff16613a6d565b98975050505050505050565b60006135686123f8565b8560405160200180807f190100000000000000000000000000000000000000000000000000000000000081525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018286868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561361c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906136525750866001600160a01b0316816001600160a01b0316145b61368d5760405162461bcd60e51b815260040180806020018281038252602481526020018061431d6024913960400191505060405180910390fd5b50505050505050565b4690565b60135460195460408051631c57762b60e31b8152600481019290925260006024830181905290516001600160a01b039093169263e2bbb15892604480820193929182900301818387803b1580156136f057600080fd5b505af1158015613704573d6000803e3d6000fd5b50505050600061371f613718868686613ab5565b8390612908565b9050600061373e612710611ddd601254856130d390919063ffffffff16565b9050801561377257600c546137729073b31f66aa3c1e785363f0875a1b74e27b85fd66c7906001600160a01b031683612ce1565b600061378f612710611ddd601154866130d390919063ffffffff16565b905080156137bd576137bd73b31f66aa3c1e785363f0875a1b74e27b85fd66c76137b761181e565b83612ce1565b60006137da612710611ddd601054876130d390919063ffffffff16565b905080156138015761380173b31f66aa3c1e785363f0875a1b74e27b85fd66c73383612ce1565b600061385061381c8361381686818a8a612e79565b90612e79565b600a5460165460175473b31f66aa3c1e785363f0875a1b74e27b85fd66c7926001600160a01b039081169281169116613bd8565b905061385b816138b6565b6009546138689082612908565b600981905560025460408051928352602083019190915280517fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2349281900390910190a1505050505050505050565b600081116138f55760405162461bcd60e51b81526004018080602001828103825260228152602001806144366022913960400191505060405180910390fd5b60135460195460408051631c57762b60e31b8152600481019290925260248201849052516001600160a01b039092169163e2bbb1589160448082019260009290919082900301818387803b158015612ccd57600080fd5b6002546139599082612908565b6002556001600160a01b03821660009081526004602052604090205461397f9082612908565b6001600160a01b03831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008183613a265760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612ace578181015183820152602001612ab6565b506000838581613a3257fe5b0495945050505050565b600080826001600160a01b0316846001600160a01b031610613a5f578284613a62565b83835b915091509250929050565b600080613a7c856103e56130d3565b90506000613a8a82856130d3565b90506000613a9e836119d0886103e86130d3565b9050613aaa828261312c565b979650505050505050565b60185460009081906001600160a01b0385811691161415613b1457613b0b613add8487612908565b6018546014546001600160a01b039182169173b31f66aa3c1e785363f0875a1b74e27b85fd66c79116613d59565b9150610bfe9050565b601854601454613b489187916001600160a01b039182169173b31f66aa3c1e785363f0875a1b74e27b85fd66c79116613d59565b6015549091506001600160a01b031615801590613b655750600083115b8015613b975750601554613b97906001600160a01b03168573b31f66aa3c1e785363f0875a1b74e27b85fd66c76126ff565b1561290057601554613bcf90611ed2908590879073b31f66aa3c1e785363f0875a1b74e27b85fd66c7906001600160a01b0316613d59565b95945050505050565b600080613be687600261312c565b905060008111613c275760405162461bcd60e51b815260040180806020018281038252602f815260200180614392602f913960400191505060405180910390fd5b6000856001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015613c6257600080fd5b505afa158015613c76573d6000803e3d6000fd5b505050506040513d6020811015613c8c57600080fd5b50519050816001600160a01b0388811690831614613cb357613cb083898489613d59565b90505b6000876001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015613cee57600080fd5b505afa158015613d02573d6000803e3d6000fd5b505050506040513d6020811015613d1857600080fd5b50519050836001600160a01b038a811690831614613d3f57613d3c858b848a613d59565b90505b613d4a898483613f69565b9b9a5050505050505050505050565b600080613d668585613a3c565b509050600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613da557600080fd5b505afa158015613db9573d6000803e3d6000fd5b505050506040513d6060811015613dcf57600080fd5b50805160209091015190925090506001600160a01b0383811690881614613df257905b600080613e208a856dffffffffffffffffffffffffffff16856dffffffffffffffffffffffffffff16613a6d565b9050886001600160a01b0316856001600160a01b031614613e3d57905b613e4889888c6141b0565b60408051600080825260208201928390527f022c0d9f00000000000000000000000000000000000000000000000000000000835260248201858152604483018590523060648401819052608060848501908152845160a486018190526001600160a01b038e169663022c0d9f968a968a9691949193919260c486019290918190849084905b83811015613ee5578181015183820152602001613ecd565b50505050905090810190601f168015613f125780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015613f3457600080fd5b505af1158015613f48573d6000803e3d6000fd5b50505050818111613f595781613f5b565b805b9a9950505050505050505050565b6000806000856001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613fa757600080fd5b505afa158015613fbb573d6000803e3d6000fd5b505050506040513d6060811015613fd157600080fd5b50805160209091015190925090506000613fff866dffffffffffffffffffffffffffff808616908516614284565b90508481111561403a5784905061403785836dffffffffffffffffffffffffffff16856dffffffffffffffffffffffffffff16614284565b95505b6140a9876001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561407657600080fd5b505afa15801561408a573d6000803e3d6000fd5b505050506040513d60208110156140a057600080fd5b505188886141b0565b614118876001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156140e557600080fd5b505afa1580156140f9573d6000803e3d6000fd5b505050506040513d602081101561410f57600080fd5b505188836141b0565b604080517f6a62784200000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03891691636a6278429160248083019260209291908290030181600087803b15801561417957600080fd5b505af115801561418d573d6000803e3d6000fd5b505050506040513d60208110156141a357600080fd5b5051979650505050505050565b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561420757600080fd5b505af115801561421b573d6000803e3d6000fd5b505050506040513d602081101561423157600080fd5b5051612d9f576040805162461bcd60e51b815260206004820181905260248201527f4465784c6962726172793a3a5452414e534645525f46524f4d5f4641494c4544604482015290519081900360640190fd5b600061290083611ddd86856130d356fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735065726d697373696f6e65643a3a6f6e6c79416c6c6f7765644465706f736974732c206e6f7420616c6c6f7765645065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e6f20616c6c6f776564206465706f7369746f7273417263683a3a76616c69646174655369673a20696e76616c6964207369676e61747572655065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e6f7420616c6c6f7765645f6275726e3a206275726e20616d6f756e74206578636565647320746f74616c20737570706c794465784c6962726172793a3a5f636f6e76657274526577617264546f6b656e73546f4465706f736974546f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f7472616e73666572546f6b656e733a2063616e6e6f74207472616e7366657220746f20746865207a65726f20616464726573734a6f65537472617465677956333a3a5f7374616b654465706f736974546f6b656e734a6f65537472617465677956333a3a5f77697468647261774465706f736974546f6b656e734a6f65537472617465677956333a3a7265736375654465706c6f79656446756e64737472616e7366657246726f6d3a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655f737761705061697257415641584a6f65206973206e6f7420612057415641582d65787472612072657761726420706169722c20636865636b207374616b696e67436f6e74726163742e70656e64696e67546f6b656e735f6275726e3a206275726e20616d6f756e7420657863656564732066726f6d2062616c616e63655472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c45445f7472616e73666572546f6b656e733a207472616e7366657220657863656564732066726f6d2062616c616e6365a2646970667358221220a3c01e219d5202f6dbfcd0fee8720712fa9bb905393daa73a3536b63bc21efec64736f6c634300070300335f7377617050616972546f6b656e30206973206e6f7420612057415641582b6465706f73697420746f6b656e314f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f7377617050616972546f6b656e30206973206e6f7420612057415641582b6465706f73697420746f6b656e305f737761705061697257415641584a6f65206973206e6f7420612057415641582d4a6f6520706169725f737761705061697257415641584a6f65206973206e6f7420612057415641582d65787472612072657761726420706169722c20636865636b207374616b696e67436f6e74726163742e70656e64696e67546f6b656e7300000000000000000000000000000000000000000000000000000000000001e000000000000000000000000087dee1cc9ffd464b79e058ba20387c1984aed86a0000000000000000000000006e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000d6a4f121ca35509af06a0be99093d08462f53052000000000000000000000000454e67025631c065d3cfad6d71e6892f74487a15000000000000000000000000000000000000000000000000000000000000000000000000000000000000000087dee1cc9ffd464b79e058ba20387c1984aed86a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000250000000000000000000000008d36c5c6947adccd25ef49ea1aac2ceacfff0bd700000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000185969656c642059616b3a204a4c5020444149652d415641580000000000000000
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.