More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 54 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 21017524 | 71 days ago | IN | 0 ETH | 0.00842407 | ||||
Harvest | 20542137 | 137 days ago | IN | 0 ETH | 0.00549466 | ||||
Harvest | 20388612 | 158 days ago | IN | 0 ETH | 0.00464592 | ||||
Harvest | 20181375 | 187 days ago | IN | 0 ETH | 0.00614317 | ||||
Harvest | 19809090 | 239 days ago | IN | 0 ETH | 0.00619456 | ||||
Harvest | 19451286 | 290 days ago | IN | 0 ETH | 0.03382433 | ||||
Harvest | 18851905 | 374 days ago | IN | 0 ETH | 0.0263051 | ||||
Harvest | 18145286 | 473 days ago | IN | 0 ETH | 0.01240316 | ||||
Harvest | 17618908 | 546 days ago | IN | 0 ETH | 0.01997667 | ||||
Harvest | 16857444 | 654 days ago | IN | 0 ETH | 0.02071897 | ||||
Harvest | 16375042 | 721 days ago | IN | 0 ETH | 0.02013766 | ||||
Harvest | 15975270 | 777 days ago | IN | 0 ETH | 0.01831806 | ||||
Harvest | 15810643 | 800 days ago | IN | 0 ETH | 0.01368226 | ||||
Harvest | 15700667 | 816 days ago | IN | 0 ETH | 0.00763264 | ||||
Harvest | 15651796 | 822 days ago | IN | 0 ETH | 0.0091215 | ||||
Harvest | 15581579 | 832 days ago | IN | 0 ETH | 0.00610611 | ||||
Harvest | 15543500 | 838 days ago | IN | 0 ETH | 0.01229333 | ||||
Harvest | 15468461 | 850 days ago | IN | 0 ETH | 0.006081 | ||||
Harvest | 15421158 | 857 days ago | IN | 0 ETH | 0.00768333 | ||||
Harvest | 15376809 | 864 days ago | IN | 0 ETH | 0.00614666 | ||||
Harvest | 15338146 | 870 days ago | IN | 0 ETH | 0.00609876 | ||||
Harvest | 15293375 | 877 days ago | IN | 0 ETH | 0.00608801 | ||||
Harvest | 15268010 | 881 days ago | IN | 0 ETH | 0.00610237 | ||||
Harvest | 15241139 | 886 days ago | IN | 0 ETH | 0.00912395 | ||||
Harvest | 15208763 | 891 days ago | IN | 0 ETH | 0.00747052 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
StrategyConvexMim3Crv
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.6.7; import "../strategy-convex-farm-base.sol"; interface ICurveZapper { function add_liquidity( address, uint256[4] memory, uint256 ) external returns (uint256); } contract StrategyConvexMim3Crv is StrategyConvexFarmBase { address public lpToken = 0x5a6A4D54456819380173272A5E8E9B9904BdF41B; uint256 public mim3crvPoolId = 40; address public dai = 0x6B175474E89094C44Da98b954EedeAC495271d0F; address public spell = 0x090185f2135308BaD17527004364eBcC2D37e5F6; address public zapper = 0xA79828DF1850E8a3A3064576f380D90aECDD3359; constructor( address _governance, address _strategist, address _controller, address _timelock ) public StrategyConvexFarmBase( lpToken, mim3crvPoolId, _governance, _strategist, _controller, _timelock ) {} function getName() external pure override returns (string memory) { return "StrategyConvexMim3Crv"; } function get_spell_earned() public view returns (uint256) { return IVirtualBalanceRewardPool( IBaseRewardPool(getCrvRewardContract()).extraRewards(0) ).earned(address(this)); } function getHarvestable() public view returns ( uint256, uint256, uint256 ) { return (get_crv_earned(), get_cvx_earned(), get_spell_earned()); } function harvest() public override onlyBenevolent { ( uint256 _crvHarvestable, uint256 _cvxHarvestable, uint256 _spellHarvestable ) = getHarvestable(); if (_crvHarvestable > 0 || _cvxHarvestable > 0 || _spellHarvestable > 0) IBaseRewardPool(getCrvRewardContract()).getReward( address(this), true ); address[] memory path = new address[](3); path[1] = weth; path[2] = dai; uint256 _cvx = IERC20(cvx).balanceOf(address(this)); if (_cvx > 0) { IERC20(cvx).safeApprove(sushiRouter, 0); IERC20(cvx).safeApprove(sushiRouter, _cvx); path[0] = cvx; _swapSushiswapWithPath(path, _cvx); } uint256 _crv = IERC20(crv).balanceOf(address(this)); if (_crv > 0) { IERC20(crv).safeApprove(sushiRouter, 0); IERC20(crv).safeApprove(sushiRouter, _crv); path[0] = crv; _swapSushiswapWithPath(path, _crv); } uint256 _spell = IERC20(spell).balanceOf(address(this)); if (_spell > 0) { IERC20(spell).safeApprove(sushiRouter, 0); IERC20(spell).safeApprove(sushiRouter, _spell); path[0] = spell; _swapSushiswapWithPath(path, _spell); } uint256 _dai = IERC20(dai).balanceOf(address(this)); if (_dai > 0) { IERC20(dai).safeApprove(zapper, 0); IERC20(dai).safeApprove(zapper, _dai); uint256[4] memory amounts = [0, _dai, 0, 0]; ICurveZapper(zapper).add_liquidity(lpToken, amounts, 0); } _distributePerformanceFeesAndDeposit(); } }
pragma solidity ^0.6.7; import "./strategy-base.sol"; import "../interfaces/curve.sol"; import "../interfaces/convex-farm.sol"; abstract contract StrategyConvexFarmBase is StrategyBase { address public convexBooster = 0xF403C135812408BFbE8713b5A23a04b3D48AAE31; uint256 public poolId; address public constant cvx = 0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B; address public constant crv = 0xD533a949740bb3306d119CC777fa900bA034cd52; constructor( address _lp, uint256 _poolId, address _governance, address _strategist, address _controller, address _timelock ) public StrategyBase(_lp, _governance, _strategist, _controller, _timelock) { poolId = _poolId; } function getCrvRewardContract() public view returns (address) { (, , , address crvRewards, , ) = IConvexBooster(convexBooster).poolInfo( poolId ); return crvRewards; } function balanceOfPool() public view override returns (uint256) { return IBaseRewardPool(getCrvRewardContract()).balanceOf(address(this)); } function get_crv_earned() public view returns (uint256) { return IBaseRewardPool(getCrvRewardContract()).earned(address(this)); } function get_cvx_earned() public view returns (uint256) { uint256 crv_earned = get_crv_earned(); uint256 supply = IConvexToken(cvx).totalSupply(); if (supply == 0) { return crv_earned; } uint256 reductionPerCliff = IConvexToken(cvx).reductionPerCliff(); uint256 totalCliffs = IConvexToken(cvx).totalCliffs(); uint256 cliff = supply.div(reductionPerCliff); uint256 maxSupply = IConvexToken(cvx).maxSupply(); if (cliff < totalCliffs) { uint256 reduction = totalCliffs.sub(cliff); uint256 _amount = crv_earned; _amount = _amount.mul(reduction).div(totalCliffs); //supply cap check uint256 amtTillMax = maxSupply.sub(supply); if (_amount > amtTillMax) { _amount = amtTillMax; } return _amount; } return 0; } function deposit() public override { uint256 _want = IERC20(want).balanceOf(address(this)); if (_want > 0) { IERC20(want).safeApprove(convexBooster, 0); IERC20(want).safeApprove(convexBooster, _want); IConvexBooster(convexBooster).deposit(poolId, _want, true); } } function _withdrawSome(uint256 _amount) internal override returns (uint256) { IBaseRewardPool(getCrvRewardContract()).withdrawAndUnwrap( _amount, false ); return _amount; } }
pragma solidity ^0.6.7; import "../lib/erc20.sol"; import "../lib/safe-math.sol"; import "../interfaces/jar.sol"; import "../interfaces/staking-rewards.sol"; import "../interfaces/masterchef.sol"; import "../interfaces/uniswapv2.sol"; import "../interfaces/controller.sol"; // Strategy Contract Basics abstract contract StrategyBase { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; // Perfomance fees - start with 20% uint256 public performanceTreasuryFee = 2000; uint256 public constant performanceTreasuryMax = 10000; uint256 public performanceDevFee = 0; uint256 public constant performanceDevMax = 10000; // Withdrawal fee 0% // - 0% to treasury // - 0% to dev fund uint256 public withdrawalTreasuryFee = 0; uint256 public constant withdrawalTreasuryMax = 100000; uint256 public withdrawalDevFundFee = 0; uint256 public constant withdrawalDevFundMax = 100000; // Tokens address public want; address public constant weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; // User accounts address public governance; address public controller; address public strategist; address public timelock; // Dex address public univ2Router2 = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address public sushiRouter = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; mapping(address => bool) public harvesters; constructor( address _want, address _governance, address _strategist, address _controller, address _timelock ) public { require(_want != address(0)); require(_governance != address(0)); require(_strategist != address(0)); require(_controller != address(0)); require(_timelock != address(0)); want = _want; governance = _governance; strategist = _strategist; controller = _controller; timelock = _timelock; } // **** Modifiers **** // modifier onlyBenevolent { require( harvesters[msg.sender] || msg.sender == governance || msg.sender == strategist ); _; } // **** Views **** // function balanceOfWant() public view returns (uint256) { return IERC20(want).balanceOf(address(this)); } function balanceOfPool() public virtual view returns (uint256); function balanceOf() public view returns (uint256) { return balanceOfWant().add(balanceOfPool()); } function getName() external virtual pure returns (string memory); // **** Setters **** // function whitelistHarvesters(address[] calldata _harvesters) external { require(msg.sender == governance || msg.sender == strategist || harvesters[msg.sender], "not authorized"); for (uint i = 0; i < _harvesters.length; i ++) { harvesters[_harvesters[i]] = true; } } function revokeHarvesters(address[] calldata _harvesters) external { require(msg.sender == governance || msg.sender == strategist, "not authorized"); for (uint i = 0; i < _harvesters.length; i ++) { harvesters[_harvesters[i]] = false; } } function setWithdrawalDevFundFee(uint256 _withdrawalDevFundFee) external { require(msg.sender == timelock, "!timelock"); withdrawalDevFundFee = _withdrawalDevFundFee; } function setWithdrawalTreasuryFee(uint256 _withdrawalTreasuryFee) external { require(msg.sender == timelock, "!timelock"); withdrawalTreasuryFee = _withdrawalTreasuryFee; } function setPerformanceDevFee(uint256 _performanceDevFee) external { require(msg.sender == timelock, "!timelock"); performanceDevFee = _performanceDevFee; } function setPerformanceTreasuryFee(uint256 _performanceTreasuryFee) external { require(msg.sender == timelock, "!timelock"); performanceTreasuryFee = _performanceTreasuryFee; } function setStrategist(address _strategist) external { require(msg.sender == governance, "!governance"); strategist = _strategist; } function setGovernance(address _governance) external { require(msg.sender == governance, "!governance"); governance = _governance; } function setTimelock(address _timelock) external { require(msg.sender == timelock, "!timelock"); timelock = _timelock; } function setController(address _controller) external { require(msg.sender == timelock, "!timelock"); controller = _controller; } // **** State mutations **** // function deposit() public virtual; // Controller only function for creating additional rewards from dust function withdraw(IERC20 _asset) external returns (uint256 balance) { require(msg.sender == controller, "!controller"); require(want != address(_asset), "want"); balance = _asset.balanceOf(address(this)); _asset.safeTransfer(controller, balance); } // Withdraw partial funds, normally used with a jar withdrawal function withdraw(uint256 _amount) external { require(msg.sender == controller, "!controller"); uint256 _balance = IERC20(want).balanceOf(address(this)); if (_balance < _amount) { _amount = _withdrawSome(_amount.sub(_balance)); _amount = _amount.add(_balance); } uint256 _feeDev = _amount.mul(withdrawalDevFundFee).div( withdrawalDevFundMax ); IERC20(want).safeTransfer(IController(controller).devfund(), _feeDev); uint256 _feeTreasury = _amount.mul(withdrawalTreasuryFee).div( withdrawalTreasuryMax ); IERC20(want).safeTransfer( IController(controller).treasury(), _feeTreasury ); address _jar = IController(controller).jars(address(want)); require(_jar != address(0), "!jar"); // additional protection so we don't burn the funds IERC20(want).safeTransfer(_jar, _amount.sub(_feeDev).sub(_feeTreasury)); } // Withdraw funds, used to swap between strategies function withdrawForSwap(uint256 _amount) external returns (uint256 balance) { require(msg.sender == controller, "!controller"); _withdrawSome(_amount); balance = IERC20(want).balanceOf(address(this)); address _jar = IController(controller).jars(address(want)); require(_jar != address(0), "!jar"); IERC20(want).safeTransfer(_jar, balance); } // Withdraw all funds, normally used when migrating strategies function withdrawAll() external returns (uint256 balance) { require(msg.sender == controller, "!controller"); _withdrawAll(); balance = IERC20(want).balanceOf(address(this)); address _jar = IController(controller).jars(address(want)); require(_jar != address(0), "!jar"); // additional protection so we don't burn the funds IERC20(want).safeTransfer(_jar, balance); } function _withdrawAll() internal { _withdrawSome(balanceOfPool()); } function _withdrawSome(uint256 _amount) internal virtual returns (uint256); function harvest() public virtual; // **** Emergency functions **** function execute(address _target, bytes memory _data) public payable returns (bytes memory response) { require(msg.sender == timelock, "!timelock"); require(_target != address(0), "!target"); // call contract in current context assembly { let succeeded := delegatecall( sub(gas(), 5000), _target, add(_data, 0x20), mload(_data), 0, 0 ) let size := returndatasize() response := mload(0x40) mstore( 0x40, add(response, and(add(add(size, 0x20), 0x1f), not(0x1f))) ) mstore(response, size) returndatacopy(add(response, 0x20), 0, size) switch iszero(succeeded) case 1 { // throw if delegatecall failed revert(add(response, 0x20), size) } } } // **** Internal functions **** function _swapUniswap( address _from, address _to, uint256 _amount ) internal { require(_to != address(0)); address[] memory path; if (_from == weth || _to == weth) { path = new address[](2); path[0] = _from; path[1] = _to; } else { path = new address[](3); path[0] = _from; path[1] = weth; path[2] = _to; } UniswapRouterV2(univ2Router2).swapExactTokensForTokens( _amount, 0, path, address(this), now.add(60) ); } function _swapUniswapWithPath( address[] memory path, uint256 _amount ) internal { require(path[1] != address(0)); UniswapRouterV2(univ2Router2).swapExactTokensForTokens( _amount, 0, path, address(this), now.add(60) ); } function _swapSushiswap( address _from, address _to, uint256 _amount ) internal { require(_to != address(0)); address[] memory path; if (_from == weth || _to == weth) { path = new address[](2); path[0] = _from; path[1] = _to; } else { path = new address[](3); path[0] = _from; path[1] = weth; path[2] = _to; } UniswapRouterV2(sushiRouter).swapExactTokensForTokens( _amount, 0, path, address(this), now.add(60) ); } function _swapSushiswapWithPath( address[] memory path, uint256 _amount ) internal { require(path[1] != address(0)); UniswapRouterV2(sushiRouter).swapExactTokensForTokens( _amount, 0, path, address(this), now.add(60) ); } function _distributePerformanceFeesAndDeposit() internal { uint256 _want = IERC20(want).balanceOf(address(this)); if (_want > 0) { // Treasury fees IERC20(want).safeTransfer( IController(controller).treasury(), _want.mul(performanceTreasuryFee).div(performanceTreasuryMax) ); // Performance fee IERC20(want).safeTransfer( IController(controller).devfund(), _want.mul(performanceDevFee).div(performanceDevMax) ); deposit(); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; interface ICurveFi_2 { function get_virtual_price() external view returns (uint256); function add_liquidity(uint256[2] calldata amounts, uint256 min_mint_amount) external; function remove_liquidity_imbalance( uint256[2] calldata amounts, uint256 max_burn_amount ) external; function remove_liquidity(uint256 _amount, uint256[2] calldata amounts) external; function exchange( int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount ) external; function balances(int128) external view returns (uint256); } interface ICurveFi_3 { function get_virtual_price() external view returns (uint256); function add_liquidity(uint256[3] calldata amounts, uint256 min_mint_amount) external; function remove_liquidity_imbalance( uint256[3] calldata amounts, uint256 max_burn_amount ) external; function remove_liquidity(uint256 _amount, uint256[3] calldata amounts) external; function exchange( int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount ) external; function balances(uint256) external view returns (uint256); } interface ICurveFi_4 { function get_virtual_price() external view returns (uint256); function add_liquidity(uint256[4] calldata amounts, uint256 min_mint_amount) external; // stETH pool function add_liquidity( uint256[2] calldata amounts, uint256 min_mint_amount ) external payable; function remove_liquidity_imbalance( uint256[4] calldata amounts, uint256 max_burn_amount ) external; function remove_liquidity(uint256 _amount, uint256[4] calldata amounts) external; function exchange( int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount ) external; function balances(int128) external view returns (uint256); } interface ICurveZap_4 { function add_liquidity( uint256[4] calldata uamounts, uint256 min_mint_amount ) external; function remove_liquidity(uint256 _amount, uint256[4] calldata min_uamounts) external; function remove_liquidity_imbalance( uint256[4] calldata uamounts, uint256 max_burn_amount ) external; function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external returns (uint256); function remove_liquidity_one_coin( uint256 _token_amount, int128 i, uint256 min_uamount ) external; function remove_liquidity_one_coin( uint256 _token_amount, int128 i, uint256 min_uamount, bool donate_dust ) external; function withdraw_donated_dust() external; function coins(int128 arg0) external returns (address); function underlying_coins(int128 arg0) external returns (address); function curve() external returns (address); function token() external returns (address); } interface ICurveZap { function remove_liquidity_one_coin( uint256 _token_amount, int128 i, uint256 min_uamount ) external; } interface ICurveFi_Polygon_3 { function get_virtual_price() external view returns (uint256); function add_liquidity(uint256[3] calldata amounts, uint256 min_mint_amount) external; function add_liquidity(uint256[3] calldata amounts, uint256 min_mint_amount, bool use_underlying) external; function remove_liquidity_imbalance( uint256[3] calldata amounts, uint256 max_burn_amount ) external; function remove_liquidity(uint256 _amount, uint256[3] calldata amounts) external; function exchange( int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount ) external; function balances(uint256) external view returns (uint256); } interface ICurveGauge { function deposit(uint256 _value) external; function deposit(uint256 _value, address addr) external; function balanceOf(address arg0) external view returns (uint256); function withdraw(uint256 _value) external; function withdraw(uint256 _value, bool claim_rewards) external; function claim_rewards() external; function claim_rewards(address addr) external; function claimable_tokens(address addr) external returns (uint256); function claimable_reward(address addr) external view returns (uint256); function claimable_reward(address, address) external view returns (uint256); function integrate_fraction(address arg0) external view returns (uint256); } interface ICurveMintr { function mint(address) external; function minted(address arg0, address arg1) external view returns (uint256); } interface ICurveVotingEscrow { function locked(address arg0) external view returns (int128 amount, uint256 end); function locked__end(address _addr) external view returns (uint256); function create_lock(uint256, uint256) external; function increase_amount(uint256) external; function increase_unlock_time(uint256 _unlock_time) external; function withdraw() external; function smart_wallet_checker() external returns (address); } interface ICurveSmartContractChecker { function wallets(address) external returns (bool); function approveWallet(address _wallet) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; import "../lib/erc20.sol"; interface IConvexBooster { function poolInfo(uint256) external view returns ( address, address, address, address, address, bool ); function deposit( uint256, uint256, bool ) external returns (bool); function depositAll(uint256, bool) external returns (bool); function withdraw(uint256, uint256) external returns (bool); function withdrawAll(uint256) external returns (bool); function rewardClaimed( uint256, address, uint256 ) external returns (bool); } interface IBaseRewardPool { function getReward(address, bool) external returns (bool); function getReward() external returns (bool); function earned(address) external view returns (uint256); function balanceOf(address) external view returns (uint256); function extraRewards(uint256) external view returns (address); function withdrawAndUnwrap(uint256, bool) external returns (bool); function extraRewardsLength() external view returns (uint256); } interface IVirtualBalanceRewardPool { function getReward(address) external; function getReward() external; function balanceOf(address) external view returns (uint256); function earned(address) external view returns (uint256); } interface IConvexToken is IERC20 { function reductionPerCliff() external view returns (uint256); function totalCliffs() external view returns (uint256); function maxSupply() external view returns (uint256); }
// File: contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "./safe-math.sol"; import "./context.sol"; // File: contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/token/ERC20/ERC20.sol /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @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 subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); 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 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) { 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.6.2; import "../lib/erc20.sol"; interface IJar is IERC20 { function token() external view returns (address); function reward() external view returns (address); function claimInsurance() external; // NOTE: Only yDelegatedVault implements this function getRatio() external view returns (uint256); function depositAll() external; function balance() external view returns (uint256); function deposit(uint256) external; function withdrawAll() external; function withdraw(uint256) external; function earn() external; function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; interface IStakingRewards { function balanceOf(address account) external view returns (uint256); function earned(address account) external view returns (uint256); function exit() external; function getReward() external; function getRewardForDuration() external view returns (uint256); function lastTimeRewardApplicable() external view returns (uint256); function lastUpdateTime() external view returns (uint256); function notifyRewardAmount(uint256 reward) external; function periodFinish() external view returns (uint256); function rewardPerToken() external view returns (uint256); function rewardPerTokenStored() external view returns (uint256); function rewardRate() external view returns (uint256); function rewards(address) external view returns (uint256); function rewardsDistribution() external view returns (address); function rewardsDuration() external view returns (uint256); function rewardsToken() external view returns (address); function stake(uint256 amount) external; function deposit(uint256 amount) external; function stakeWithPermit( uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function stakingToken() external view returns (address); function totalSupply() external view returns (uint256); function userRewardPerTokenPaid(address) external view returns (uint256); function withdraw(uint256 amount) external; } interface IStakingRewardsFactory { function deploy(address stakingToken, uint256 rewardAmount) external; function isOwner() external view returns (bool); function notifyRewardAmount(address stakingToken) external; function notifyRewardAmounts() external; function owner() external view returns (address); function renounceOwnership() external; function rewardsToken() external view returns (address); function stakingRewardsGenesis() external view returns (uint256); function stakingRewardsInfoByStakingToken(address) external view returns (address stakingRewards, uint256 rewardAmount); function stakingTokens(uint256) external view returns (address); function transferOwnership(address newOwner) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; interface IMasterchef { function BONUS_MULTIPLIER() external view returns (uint256); function add( uint256 _allocPoint, address _lpToken, bool _withUpdate ) external; function bonusEndBlock() external view returns (uint256); function deposit(uint256 _pid, uint256 _amount) external; function dev(address _devaddr) external; function devFundDivRate() external view returns (uint256); function devaddr() external view returns (address); function emergencyWithdraw(uint256 _pid) external; function getMultiplier(uint256 _from, uint256 _to) external view returns (uint256); function massUpdatePools() external; function owner() external view returns (address); function pendingPickle(uint256 _pid, address _user) external view returns (uint256); function pendingReward(uint256 _pid, address _user) external view returns (uint256); function pending(uint256 _pid, address _user) external view returns (uint256); function pickle() external view returns (address); function picklePerBlock() external view returns (uint256); function poolInfo(uint256) external view returns ( address lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accPicklePerShare ); function poolLength() external view returns (uint256); function renounceOwnership() external; function set( uint256 _pid, uint256 _allocPoint, bool _withUpdate ) external; function setBonusEndBlock(uint256 _bonusEndBlock) external; function setDevFundDivRate(uint256 _devFundDivRate) external; function setPicklePerBlock(uint256 _picklePerBlock) external; function startBlock() external view returns (uint256); function totalAllocPoint() external view returns (uint256); function transferOwnership(address newOwner) external; function updatePool(uint256 _pid) external; function userInfo(uint256, address) external view returns (uint256 amount, uint256 rewardDebt); function withdraw(uint256 _pid, uint256 _amount) external; }
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT pragma solidity ^0.6.2; interface UniswapRouterV2 { function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); } interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; } interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function createPair(address tokenA, address tokenB) external returns (address pair); }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; interface IController { function jars(address) external view returns (address); function rewards() external view returns (address); function devfund() external view returns (address); function treasury() external view returns (address); function balanceOf(address) external view returns (uint256); function withdraw(address, uint256) external; function withdrawReward(address, uint256) external; function earn(address, uint256) external; function strategies(address) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_strategist","type":"address"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_timelock","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"convexBooster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvx","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dai","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bytes","name":"response","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getCrvRewardContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHarvestable","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"get_crv_earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"get_cvx_earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"get_spell_earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"harvesters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mim3crvPoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceDevMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceTreasuryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_harvesters","type":"address[]"}],"name":"revokeHarvesters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceDevFee","type":"uint256"}],"name":"setPerformanceDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceTreasuryFee","type":"uint256"}],"name":"setPerformanceTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_timelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawalDevFundFee","type":"uint256"}],"name":"setWithdrawalDevFundFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawalTreasuryFee","type":"uint256"}],"name":"setWithdrawalTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spell","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"univ2Router2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_harvesters","type":"address[]"}],"name":"whitelistHarvesters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawForSwap","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalDevFundFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalDevFundMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalTreasuryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526107d0600090815560018190556002819055600355600980546001600160a01b0319908116737a250d5630b4cf539739df2c5dacb4c659f2488d17909155600a8054821673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f179055600c8054821673f403c135812408bfbe8713b5a23a04b3d48aae31179055600e80548216735a6a4d54456819380173272a5e8e9b9904bdf41b1790556028600f55601080548216736b175474e89094c44da98b954eedeac495271d0f17905560118054821673090185f2135308bad17527004364ebcc2d37e5f61790556012805490911673a79828df1850e8a3a3064576f380d90aecdd33591790553480156200010957600080fd5b506040516200330138038062003301833981810160405260808110156200012f57600080fd5b50805160208201516040830151606090930151600e54600f54939492936001600160a01b0390911690858585858584848484846200016c57600080fd5b6001600160a01b0384166200018057600080fd5b6001600160a01b0383166200019457600080fd5b6001600160a01b038216620001a857600080fd5b6001600160a01b038116620001bc57600080fd5b600480546001600160a01b039687166001600160a01b031991821617909155600580549587169582169590951790945560078054938616938516939093179092556006805491851691841691909117905560088054919093169116179055505050600d919091555050505050506130c880620002396000396000f3fe6080604052600436106102ff5760003560e01c8063853828b611610190578063b1f55bd4116100dc578063c7b9d53011610095578063ea762b791161006f578063ea762b7914610a53578063f4b9fa7514610a68578063f77c479114610a7d578063fe1f8f7a14610631576102ff565b8063c7b9d530146109f6578063d0e30db014610a29578063d33219b414610a3e576102ff565b8063b1f55bd4146108ca578063b9e3748914610945578063bdacb3031461095a578063c1a3d44c1461098d578063c6223e26146109a2578063c65e3242146109cc576102ff565b8063923c1d6111610149578063a6b614ec11610123578063a6b614ec14610843578063a7a2171214610858578063ab033ea91461086d578063ab73e433146108a0576102ff565b8063923c1d61146107e657806392eefe9b146107fb5780639e9c33d51461082e576102ff565b8063853828b614610736578063879765831461074b57806388993f22146107925780638ccdbb70146107a75780638d444425146107bc57806390e39de5146107d1576102ff565b80633fc8cef31161024f57806359739ec4116102085780636a4874a1116101e25780636a4874a1146106cd5780636d13582c146106e2578063722713f7146106f7578063823785941461070c576102ff565b806359739ec41461068e5780635aa6e675146106a35780635fcbd285146106b8576102ff565b80633fc8cef3146106075780634641257d1461061c578063479119be146106315780634fe809cc1461059e57806351cff8d91461064657806351f3d0b814610679576102ff565b80631f1fcd51116102bc57806326e886c61161029657806326e886c61461059e5780632cdacb50146105b35780632e1a7d4d146105c85780633e0dc34e146105f2576102ff565b80631f1fcd511461052e5780631fe4a6861461055f578063249fb9b414610574576102ff565b80630547104d146103045780630e364fb6146103375780630e56400a146103b457806311588086146103db57806317d7de7c146103f05780631cff79cd1461047a575b600080fd5b34801561031057600080fd5b50610319610a92565b60408051938452602084019290925282820152519081900360600190f35b34801561034357600080fd5b506103b26004803603602081101561035a57600080fd5b810190602081018135600160201b81111561037457600080fd5b82018360208201111561038657600080fd5b803590602001918460208302840111600160201b831117156103a757600080fd5b509092509050610aba565b005b3480156103c057600080fd5b506103c9610b94565b60408051918252519081900360200190f35b3480156103e757600080fd5b506103c9610c86565b3480156103fc57600080fd5b50610405610cdc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561043f578181015183820152602001610427565b50505050905090810190601f16801561046c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104056004803603604081101561049057600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156104ba57600080fd5b8201836020820111156104cc57600080fd5b803590602001918460018302840111600160201b831117156104ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d0b945050505050565b34801561053a57600080fd5b50610543610dee565b604080516001600160a01b039092168252519081900360200190f35b34801561056b57600080fd5b50610543610dfd565b34801561058057600080fd5b506103b26004803603602081101561059757600080fd5b5035610e0c565b3480156105aa57600080fd5b506103c9610e5c565b3480156105bf57600080fd5b50610543610e62565b3480156105d457600080fd5b506103b2600480360360208110156105eb57600080fd5b5035610e71565b3480156105fe57600080fd5b506103c9611184565b34801561061357600080fd5b5061054361118a565b34801561062857600080fd5b506103b26111a2565b34801561063d57600080fd5b506103c961182a565b34801561065257600080fd5b506103c96004803603602081101561066957600080fd5b50356001600160a01b0316611831565b34801561068557600080fd5b506103c9611961565b34801561069a57600080fd5b506103c9611967565b3480156106af57600080fd5b5061054361196d565b3480156106c457600080fd5b5061054361197c565b3480156106d957600080fd5b5061054361198b565b3480156106ee57600080fd5b506105436119a3565b34801561070357600080fd5b506103c96119b2565b34801561071857600080fd5b506103b26004803603602081101561072f57600080fd5b50356119d2565b34801561074257600080fd5b506103c9611a22565b34801561075757600080fd5b5061077e6004803603602081101561076e57600080fd5b50356001600160a01b0316611bd6565b604080519115158252519081900360200190f35b34801561079e57600080fd5b506103c9611beb565b3480156107b357600080fd5b506103c9611bf1565b3480156107c857600080fd5b506103c9611bf7565b3480156107dd57600080fd5b50610543611c4c565b3480156107f257600080fd5b50610543611cd5565b34801561080757600080fd5b506103b26004803603602081101561081e57600080fd5b50356001600160a01b0316611ced565b34801561083a57600080fd5b506103c9611d5a565b34801561084f57600080fd5b506103c9611d60565b34801561086457600080fd5b50610543611fda565b34801561087957600080fd5b506103b26004803603602081101561089057600080fd5b50356001600160a01b0316611fe9565b3480156108ac57600080fd5b506103b2600480360360208110156108c357600080fd5b5035612058565b3480156108d657600080fd5b506103b2600480360360208110156108ed57600080fd5b810190602081018135600160201b81111561090757600080fd5b82018360208201111561091957600080fd5b803590602001918460208302840111600160201b8311171561093a57600080fd5b5090925090506120a8565b34801561095157600080fd5b50610543612163565b34801561096657600080fd5b506103b26004803603602081101561097d57600080fd5b50356001600160a01b0316612172565b34801561099957600080fd5b506103c96121df565b3480156109ae57600080fd5b506103c9600480360360208110156109c557600080fd5b503561222e565b3480156109d857600080fd5b506103b2600480360360208110156109ef57600080fd5b50356123e6565b348015610a0257600080fd5b506103b260048036036020811015610a1957600080fd5b50356001600160a01b0316612436565b348015610a3557600080fd5b506103b26124a5565b348015610a4a57600080fd5b506105436125ef565b348015610a5f57600080fd5b506105436125fe565b348015610a7457600080fd5b5061054361260d565b348015610a8957600080fd5b5061054361261c565b6000806000610a9f611bf7565b610aa7611d60565b610aaf610b94565b925092509250909192565b6005546001600160a01b0316331480610add57506007546001600160a01b031633145b80610af75750336000908152600b602052604090205460ff165b610b39576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60005b81811015610b8f576001600b6000858585818110610b5657fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101610b3c565b505050565b6000610b9e611c4c565b6001600160a01b03166340c3544660006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610be257600080fd5b505afa158015610bf6573d6000803e3d6000fd5b505050506040513d6020811015610c0c57600080fd5b5051604080516246613160e11b815230600482015290516001600160a01b0390921691628cc26291602480820192602092909190829003018186803b158015610c5457600080fd5b505afa158015610c68573d6000803e3d6000fd5b505050506040513d6020811015610c7e57600080fd5b505190505b90565b6000610c90611c4c565b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c5457600080fd5b60408051808201909152601581527429ba3930ba32b3bca1b7b73b32bc26b4b699a1b93b60591b602082015290565b6008546060906001600160a01b03163314610d59576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6001600160a01b038316610d9e576040805162461bcd60e51b8152602060048201526007602482015266085d185c99d95d60ca1b604482015290519081900360640190fd5b600080835160208501866113885a03f43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018114610dde57610de5565b8160208501fd5b50505092915050565b6004546001600160a01b031681565b6007546001600160a01b031681565b6008546001600160a01b03163314610e57576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600055565b61271081565b600c546001600160a01b031681565b6006546001600160a01b03163314610ebe576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610f0d57600080fd5b505afa158015610f21573d6000803e3d6000fd5b505050506040513d6020811015610f3757600080fd5b5051905081811015610f6457610f55610f50838361262b565b612676565b9150610f618282612702565b91505b6000610f88620186a0610f826003548661275c90919063ffffffff16565b906127b5565b905061101a600660009054906101000a90046001600160a01b03166001600160a01b0316638d8f1e676040518163ffffffff1660e01b815260040160206040518083038186803b158015610fdb57600080fd5b505afa158015610fef573d6000803e3d6000fd5b505050506040513d602081101561100557600080fd5b50516004546001600160a01b031690836127f7565b6000611038620186a0610f826002548761275c90919063ffffffff16565b905061108b600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b158015610fdb57600080fd5b6006546004805460408051636535246160e11b81526001600160a01b039283169381019390935251600093919091169163ca6a48c2916024808301926020929190829003018186803b1580156110e057600080fd5b505afa1580156110f4573d6000803e3d6000fd5b505050506040513d602081101561110a57600080fd5b505190506001600160a01b038116611152576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b61117d8161116a84611164898861262b565b9061262b565b6004546001600160a01b031691906127f7565b5050505050565b600d5481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b336000908152600b602052604090205460ff16806111ca57506005546001600160a01b031633145b806111df57506007546001600160a01b031633145b6111e857600080fd5b60008060006111f5610a92565b925092509250600083118061120a5750600082115b806112155750600081115b156112a157611222611c4c565b60408051637050ccd960e01b81523060048201526001602482015290516001600160a01b039290921691637050ccd9916044808201926020929091908290030181600087803b15801561127457600080fd5b505af1158015611288573d6000803e3d6000fd5b505050506040513d602081101561129e57600080fd5b50505b6040805160038082526080820190925260609160208201838036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106112e557fe5b6001600160a01b03928316602091820292909201015260105482519116908290600290811061131057fe5b6001600160a01b03909216602092830291909101820152604080516370a0823160e01b81523060048201529051600092734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b926370a082319260248083019392829003018186803b15801561137757600080fd5b505afa15801561138b573d6000803e3d6000fd5b505050506040513d60208110156113a157600080fd5b50519050801561145057600a546113d890734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906001600160a01b03166000612849565b600a5461140490734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906001600160a01b031683612849565b734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b8260008151811061142657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050611450828261295c565b604080516370a0823160e01b8152306004820152905160009173d533a949740bb3306d119cc777fa900ba034cd52916370a0823191602480820192602092909190829003018186803b1580156114a557600080fd5b505afa1580156114b9573d6000803e3d6000fd5b505050506040513d60208110156114cf57600080fd5b50519050801561157e57600a546115069073d533a949740bb3306d119cc777fa900ba034cd52906001600160a01b03166000612849565b600a546115329073d533a949740bb3306d119cc777fa900ba034cd52906001600160a01b031683612849565b73d533a949740bb3306d119cc777fa900ba034cd528360008151811061155457fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061157e838261295c565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156115c957600080fd5b505afa1580156115dd573d6000803e3d6000fd5b505050506040513d60208110156115f357600080fd5b50519050801561167e57600a5460115461161b916001600160a01b0391821691166000612849565b600a54601154611638916001600160a01b03918216911683612849565b60115484516001600160a01b0390911690859060009061165457fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061167e848261295c565b601054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156116c957600080fd5b505afa1580156116dd573d6000803e3d6000fd5b505050506040513d60208110156116f357600080fd5b5051905080156118185760125460105461171b916001600160a01b0391821691166000612849565b601254601054611738916001600160a01b03918216911683612849565b611740612ff3565b50604080516080808201835260008083526020830185905282840181905260608301819052601254600e54945163384e03db60e01b81526001600160a01b039586166004820181815295969092169463384e03db94929387939092602401908490808383875b838110156117be5781810151838201526020016117a6565b505050509050018281526020019350505050602060405180830381600087803b1580156117ea57600080fd5b505af11580156117fe573d6000803e3d6000fd5b505050506040513d602081101561181457600080fd5b5050505b611820612b16565b5050505050505050565b620186a081565b6006546000906001600160a01b03163314611881576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6004546001600160a01b03838116911614156118cd576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561191357600080fd5b505afa158015611927573d6000803e3d6000fd5b505050506040513d602081101561193d57600080fd5b505160065490915061195c906001600160a01b038481169116836127f7565b919050565b60035481565b60005481565b6005546001600160a01b031681565b600e546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b600a546001600160a01b031681565b60006119cd6119bf610c86565b6119c76121df565b90612702565b905090565b6008546001600160a01b03163314611a1d576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600255565b6006546000906001600160a01b03163314611a72576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611a7a612cb1565b60048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611ac657600080fd5b505afa158015611ada573d6000803e3d6000fd5b505050506040513d6020811015611af057600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b158015611b4957600080fd5b505afa158015611b5d573d6000803e3d6000fd5b505050506040513d6020811015611b7357600080fd5b505190506001600160a01b038116611bbb576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b600454611bd2906001600160a01b031682846127f7565b5090565b600b6020526000908152604090205460ff1681565b60015481565b60025481565b6000611c01611c4c565b6001600160a01b0316628cc262306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c5457600080fd5b600c54600d5460408051631526fe2760e01b815260048101929092525160009283926001600160a01b0390911691631526fe279160248082019260c092909190829003018186803b158015611ca057600080fd5b505afa158015611cb4573d6000803e3d6000fd5b505050506040513d60c0811015611cca57600080fd5b506060015191505090565b734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b6008546001600160a01b03163314611d38576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600f5481565b600080611d6b611bf7565b90506000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611dbc57600080fd5b505afa158015611dd0573d6000803e3d6000fd5b505050506040513d6020811015611de657600080fd5b5051905080611df757509050610c83565b6000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b031663aa74e6226040518163ffffffff1660e01b815260040160206040518083038186803b158015611e4657600080fd5b505afa158015611e5a573d6000803e3d6000fd5b505050506040513d6020811015611e7057600080fd5b505160408051631f96e76f60e01b81529051919250600091734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b91631f96e76f916004808301926020929190829003018186803b158015611ec357600080fd5b505afa158015611ed7573d6000803e3d6000fd5b505050506040513d6020811015611eed57600080fd5b505190506000611efd84846127b5565b90506000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b031663d5abeb016040518163ffffffff1660e01b815260040160206040518083038186803b158015611f4e57600080fd5b505afa158015611f62573d6000803e3d6000fd5b505050506040513d6020811015611f7857600080fd5b5051905082821015611fcd576000611f90848461262b565b905086611fa185610f82838561275c565b90506000611faf848961262b565b905080821115611fbd578091505b509750610c839650505050505050565b6000965050505050505090565b6012546001600160a01b031681565b6005546001600160a01b03163314612036576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146120a3576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600355565b6005546001600160a01b03163314806120cb57506007546001600160a01b031633145b61210d576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60005b81811015610b8f576000600b600085858581811061212a57fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101612110565b6009546001600160a01b031681565b6008546001600160a01b031633146121bd576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610c5457600080fd5b6006546000906001600160a01b0316331461227e576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b61228782612676565b5060048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b1580156122d457600080fd5b505afa1580156122e8573d6000803e3d6000fd5b505050506040513d60208110156122fe57600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b15801561235757600080fd5b505afa15801561236b573d6000803e3d6000fd5b505050506040513d602081101561238157600080fd5b505190506001600160a01b0381166123c9576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b6004546123e0906001600160a01b031682846127f7565b50919050565b6008546001600160a01b03163314612431576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600155565b6005546001600160a01b03163314612483576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156124f457600080fd5b505afa158015612508573d6000803e3d6000fd5b505050506040513d602081101561251e57600080fd5b5051905080156125ec57600c54600454612546916001600160a01b0391821691166000612849565b600c54600454612563916001600160a01b03918216911683612849565b600c54600d54604080516321d0683360e11b815260048101929092526024820184905260016044830152516001600160a01b03909216916343a0d066916064808201926020929091908290030181600087803b1580156125c257600080fd5b505af11580156125d6573d6000803e3d6000fd5b505050506040513d6020811015610b8f57600080fd5b50565b6008546001600160a01b031681565b6011546001600160a01b031681565b6010546001600160a01b031681565b6006546001600160a01b031681565b600061266d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612cbc565b90505b92915050565b6000612680611c4c565b6001600160a01b031663c32e72028360006040518363ffffffff1660e01b815260040180838152602001821515815260200192505050602060405180830381600087803b1580156126d057600080fd5b505af11580156126e4573d6000803e3d6000fd5b505050506040513d60208110156126fa57600080fd5b509192915050565b60008282018381101561266d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008261276b57506000612670565b8282028284828161277857fe5b041461266d5760405162461bcd60e51b81526004018080602001828103825260218152602001806130126021913960400191505060405180910390fd5b600061266d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612d53565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b8f908490612db8565b8015806128cf575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156128a157600080fd5b505afa1580156128b5573d6000803e3d6000fd5b505050506040513d60208110156128cb57600080fd5b5051155b61290a5760405162461bcd60e51b815260040180806020018281038252603681526020018061305d6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610b8f908490612db8565b60006001600160a01b03168260018151811061297457fe5b60200260200101516001600160a01b0316141561299057600080fd5b600a546001600160a01b03166338ed173982600085306129b142603c612702565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015612a21578181015183820152602001612a09565b505050509050019650505050505050600060405180830381600087803b158015612a4a57600080fd5b505af1158015612a5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612a8757600080fd5b8101908080516040519392919084600160201b821115612aa657600080fd5b908301906020820185811115612abb57600080fd5b82518660208202830111600160201b82111715612ad757600080fd5b82525081516020918201928201910280838360005b83811015612b04578181015183820152602001612aec565b50505050905001604052505050505050565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015612b6557600080fd5b505afa158015612b79573d6000803e3d6000fd5b505050506040513d6020811015612b8f57600080fd5b5051905080156125ec57600654604080516361d027b360e01b81529051612c21926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015612bdf57600080fd5b505afa158015612bf3573d6000803e3d6000fd5b505050506040513d6020811015612c0957600080fd5b505160005461116a9061271090610f8290869061275c565b60065460408051638d8f1e6760e01b81529051612ca9926001600160a01b031691638d8f1e67916004808301926020929190829003018186803b158015612c6757600080fd5b505afa158015612c7b573d6000803e3d6000fd5b505050506040513d6020811015612c9157600080fd5b505160015461116a9061271090610f8290869061275c565b6125ec6124a5565b6125ec610f50610c86565b60008184841115612d4b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612d10578181015183820152602001612cf8565b50505050905090810190601f168015612d3d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612da25760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612d10578181015183820152602001612cf8565b506000838581612dae57fe5b0495945050505050565b6060612e0d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612e699092919063ffffffff16565b805190915015610b8f57808060200190516020811015612e2c57600080fd5b5051610b8f5760405162461bcd60e51b815260040180806020018281038252602a815260200180613033602a913960400191505060405180910390fd5b6060612e788484600085612e80565b949350505050565b6060612e8b85612fed565b612edc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612f1b5780518252601f199092019160209182019101612efc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612f7d576040519150601f19603f3d011682016040523d82523d6000602084013e612f82565b606091505b50915091508115612f96579150612e789050565b805115612fa65780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612d10578181015183820152602001612cf8565b3b151590565b6040518060800160405280600490602082028036833750919291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212208f19fb922fce72254ee05adb98275b8cfd9b57c5b4d26badcc4b119936075d3764736f6c634300060c00330000000000000000000000009d074e37d408542fd38be78848e8814afb38db17000000000000000000000000acfe4511ce883c14c4ea40563f176c3c09b4c47c0000000000000000000000006847259b2b3a4c17e7c43c54409810af48ba5210000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d3
Deployed Bytecode
0x6080604052600436106102ff5760003560e01c8063853828b611610190578063b1f55bd4116100dc578063c7b9d53011610095578063ea762b791161006f578063ea762b7914610a53578063f4b9fa7514610a68578063f77c479114610a7d578063fe1f8f7a14610631576102ff565b8063c7b9d530146109f6578063d0e30db014610a29578063d33219b414610a3e576102ff565b8063b1f55bd4146108ca578063b9e3748914610945578063bdacb3031461095a578063c1a3d44c1461098d578063c6223e26146109a2578063c65e3242146109cc576102ff565b8063923c1d6111610149578063a6b614ec11610123578063a6b614ec14610843578063a7a2171214610858578063ab033ea91461086d578063ab73e433146108a0576102ff565b8063923c1d61146107e657806392eefe9b146107fb5780639e9c33d51461082e576102ff565b8063853828b614610736578063879765831461074b57806388993f22146107925780638ccdbb70146107a75780638d444425146107bc57806390e39de5146107d1576102ff565b80633fc8cef31161024f57806359739ec4116102085780636a4874a1116101e25780636a4874a1146106cd5780636d13582c146106e2578063722713f7146106f7578063823785941461070c576102ff565b806359739ec41461068e5780635aa6e675146106a35780635fcbd285146106b8576102ff565b80633fc8cef3146106075780634641257d1461061c578063479119be146106315780634fe809cc1461059e57806351cff8d91461064657806351f3d0b814610679576102ff565b80631f1fcd51116102bc57806326e886c61161029657806326e886c61461059e5780632cdacb50146105b35780632e1a7d4d146105c85780633e0dc34e146105f2576102ff565b80631f1fcd511461052e5780631fe4a6861461055f578063249fb9b414610574576102ff565b80630547104d146103045780630e364fb6146103375780630e56400a146103b457806311588086146103db57806317d7de7c146103f05780631cff79cd1461047a575b600080fd5b34801561031057600080fd5b50610319610a92565b60408051938452602084019290925282820152519081900360600190f35b34801561034357600080fd5b506103b26004803603602081101561035a57600080fd5b810190602081018135600160201b81111561037457600080fd5b82018360208201111561038657600080fd5b803590602001918460208302840111600160201b831117156103a757600080fd5b509092509050610aba565b005b3480156103c057600080fd5b506103c9610b94565b60408051918252519081900360200190f35b3480156103e757600080fd5b506103c9610c86565b3480156103fc57600080fd5b50610405610cdc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561043f578181015183820152602001610427565b50505050905090810190601f16801561046c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104056004803603604081101561049057600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156104ba57600080fd5b8201836020820111156104cc57600080fd5b803590602001918460018302840111600160201b831117156104ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d0b945050505050565b34801561053a57600080fd5b50610543610dee565b604080516001600160a01b039092168252519081900360200190f35b34801561056b57600080fd5b50610543610dfd565b34801561058057600080fd5b506103b26004803603602081101561059757600080fd5b5035610e0c565b3480156105aa57600080fd5b506103c9610e5c565b3480156105bf57600080fd5b50610543610e62565b3480156105d457600080fd5b506103b2600480360360208110156105eb57600080fd5b5035610e71565b3480156105fe57600080fd5b506103c9611184565b34801561061357600080fd5b5061054361118a565b34801561062857600080fd5b506103b26111a2565b34801561063d57600080fd5b506103c961182a565b34801561065257600080fd5b506103c96004803603602081101561066957600080fd5b50356001600160a01b0316611831565b34801561068557600080fd5b506103c9611961565b34801561069a57600080fd5b506103c9611967565b3480156106af57600080fd5b5061054361196d565b3480156106c457600080fd5b5061054361197c565b3480156106d957600080fd5b5061054361198b565b3480156106ee57600080fd5b506105436119a3565b34801561070357600080fd5b506103c96119b2565b34801561071857600080fd5b506103b26004803603602081101561072f57600080fd5b50356119d2565b34801561074257600080fd5b506103c9611a22565b34801561075757600080fd5b5061077e6004803603602081101561076e57600080fd5b50356001600160a01b0316611bd6565b604080519115158252519081900360200190f35b34801561079e57600080fd5b506103c9611beb565b3480156107b357600080fd5b506103c9611bf1565b3480156107c857600080fd5b506103c9611bf7565b3480156107dd57600080fd5b50610543611c4c565b3480156107f257600080fd5b50610543611cd5565b34801561080757600080fd5b506103b26004803603602081101561081e57600080fd5b50356001600160a01b0316611ced565b34801561083a57600080fd5b506103c9611d5a565b34801561084f57600080fd5b506103c9611d60565b34801561086457600080fd5b50610543611fda565b34801561087957600080fd5b506103b26004803603602081101561089057600080fd5b50356001600160a01b0316611fe9565b3480156108ac57600080fd5b506103b2600480360360208110156108c357600080fd5b5035612058565b3480156108d657600080fd5b506103b2600480360360208110156108ed57600080fd5b810190602081018135600160201b81111561090757600080fd5b82018360208201111561091957600080fd5b803590602001918460208302840111600160201b8311171561093a57600080fd5b5090925090506120a8565b34801561095157600080fd5b50610543612163565b34801561096657600080fd5b506103b26004803603602081101561097d57600080fd5b50356001600160a01b0316612172565b34801561099957600080fd5b506103c96121df565b3480156109ae57600080fd5b506103c9600480360360208110156109c557600080fd5b503561222e565b3480156109d857600080fd5b506103b2600480360360208110156109ef57600080fd5b50356123e6565b348015610a0257600080fd5b506103b260048036036020811015610a1957600080fd5b50356001600160a01b0316612436565b348015610a3557600080fd5b506103b26124a5565b348015610a4a57600080fd5b506105436125ef565b348015610a5f57600080fd5b506105436125fe565b348015610a7457600080fd5b5061054361260d565b348015610a8957600080fd5b5061054361261c565b6000806000610a9f611bf7565b610aa7611d60565b610aaf610b94565b925092509250909192565b6005546001600160a01b0316331480610add57506007546001600160a01b031633145b80610af75750336000908152600b602052604090205460ff165b610b39576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60005b81811015610b8f576001600b6000858585818110610b5657fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101610b3c565b505050565b6000610b9e611c4c565b6001600160a01b03166340c3544660006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610be257600080fd5b505afa158015610bf6573d6000803e3d6000fd5b505050506040513d6020811015610c0c57600080fd5b5051604080516246613160e11b815230600482015290516001600160a01b0390921691628cc26291602480820192602092909190829003018186803b158015610c5457600080fd5b505afa158015610c68573d6000803e3d6000fd5b505050506040513d6020811015610c7e57600080fd5b505190505b90565b6000610c90611c4c565b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c5457600080fd5b60408051808201909152601581527429ba3930ba32b3bca1b7b73b32bc26b4b699a1b93b60591b602082015290565b6008546060906001600160a01b03163314610d59576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6001600160a01b038316610d9e576040805162461bcd60e51b8152602060048201526007602482015266085d185c99d95d60ca1b604482015290519081900360640190fd5b600080835160208501866113885a03f43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018114610dde57610de5565b8160208501fd5b50505092915050565b6004546001600160a01b031681565b6007546001600160a01b031681565b6008546001600160a01b03163314610e57576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600055565b61271081565b600c546001600160a01b031681565b6006546001600160a01b03163314610ebe576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610f0d57600080fd5b505afa158015610f21573d6000803e3d6000fd5b505050506040513d6020811015610f3757600080fd5b5051905081811015610f6457610f55610f50838361262b565b612676565b9150610f618282612702565b91505b6000610f88620186a0610f826003548661275c90919063ffffffff16565b906127b5565b905061101a600660009054906101000a90046001600160a01b03166001600160a01b0316638d8f1e676040518163ffffffff1660e01b815260040160206040518083038186803b158015610fdb57600080fd5b505afa158015610fef573d6000803e3d6000fd5b505050506040513d602081101561100557600080fd5b50516004546001600160a01b031690836127f7565b6000611038620186a0610f826002548761275c90919063ffffffff16565b905061108b600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b158015610fdb57600080fd5b6006546004805460408051636535246160e11b81526001600160a01b039283169381019390935251600093919091169163ca6a48c2916024808301926020929190829003018186803b1580156110e057600080fd5b505afa1580156110f4573d6000803e3d6000fd5b505050506040513d602081101561110a57600080fd5b505190506001600160a01b038116611152576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b61117d8161116a84611164898861262b565b9061262b565b6004546001600160a01b031691906127f7565b5050505050565b600d5481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b336000908152600b602052604090205460ff16806111ca57506005546001600160a01b031633145b806111df57506007546001600160a01b031633145b6111e857600080fd5b60008060006111f5610a92565b925092509250600083118061120a5750600082115b806112155750600081115b156112a157611222611c4c565b60408051637050ccd960e01b81523060048201526001602482015290516001600160a01b039290921691637050ccd9916044808201926020929091908290030181600087803b15801561127457600080fd5b505af1158015611288573d6000803e3d6000fd5b505050506040513d602081101561129e57600080fd5b50505b6040805160038082526080820190925260609160208201838036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106112e557fe5b6001600160a01b03928316602091820292909201015260105482519116908290600290811061131057fe5b6001600160a01b03909216602092830291909101820152604080516370a0823160e01b81523060048201529051600092734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b926370a082319260248083019392829003018186803b15801561137757600080fd5b505afa15801561138b573d6000803e3d6000fd5b505050506040513d60208110156113a157600080fd5b50519050801561145057600a546113d890734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906001600160a01b03166000612849565b600a5461140490734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906001600160a01b031683612849565b734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b8260008151811061142657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050611450828261295c565b604080516370a0823160e01b8152306004820152905160009173d533a949740bb3306d119cc777fa900ba034cd52916370a0823191602480820192602092909190829003018186803b1580156114a557600080fd5b505afa1580156114b9573d6000803e3d6000fd5b505050506040513d60208110156114cf57600080fd5b50519050801561157e57600a546115069073d533a949740bb3306d119cc777fa900ba034cd52906001600160a01b03166000612849565b600a546115329073d533a949740bb3306d119cc777fa900ba034cd52906001600160a01b031683612849565b73d533a949740bb3306d119cc777fa900ba034cd528360008151811061155457fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061157e838261295c565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156115c957600080fd5b505afa1580156115dd573d6000803e3d6000fd5b505050506040513d60208110156115f357600080fd5b50519050801561167e57600a5460115461161b916001600160a01b0391821691166000612849565b600a54601154611638916001600160a01b03918216911683612849565b60115484516001600160a01b0390911690859060009061165457fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061167e848261295c565b601054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156116c957600080fd5b505afa1580156116dd573d6000803e3d6000fd5b505050506040513d60208110156116f357600080fd5b5051905080156118185760125460105461171b916001600160a01b0391821691166000612849565b601254601054611738916001600160a01b03918216911683612849565b611740612ff3565b50604080516080808201835260008083526020830185905282840181905260608301819052601254600e54945163384e03db60e01b81526001600160a01b039586166004820181815295969092169463384e03db94929387939092602401908490808383875b838110156117be5781810151838201526020016117a6565b505050509050018281526020019350505050602060405180830381600087803b1580156117ea57600080fd5b505af11580156117fe573d6000803e3d6000fd5b505050506040513d602081101561181457600080fd5b5050505b611820612b16565b5050505050505050565b620186a081565b6006546000906001600160a01b03163314611881576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6004546001600160a01b03838116911614156118cd576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561191357600080fd5b505afa158015611927573d6000803e3d6000fd5b505050506040513d602081101561193d57600080fd5b505160065490915061195c906001600160a01b038481169116836127f7565b919050565b60035481565b60005481565b6005546001600160a01b031681565b600e546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b600a546001600160a01b031681565b60006119cd6119bf610c86565b6119c76121df565b90612702565b905090565b6008546001600160a01b03163314611a1d576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600255565b6006546000906001600160a01b03163314611a72576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611a7a612cb1565b60048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611ac657600080fd5b505afa158015611ada573d6000803e3d6000fd5b505050506040513d6020811015611af057600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b158015611b4957600080fd5b505afa158015611b5d573d6000803e3d6000fd5b505050506040513d6020811015611b7357600080fd5b505190506001600160a01b038116611bbb576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b600454611bd2906001600160a01b031682846127f7565b5090565b600b6020526000908152604090205460ff1681565b60015481565b60025481565b6000611c01611c4c565b6001600160a01b0316628cc262306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c5457600080fd5b600c54600d5460408051631526fe2760e01b815260048101929092525160009283926001600160a01b0390911691631526fe279160248082019260c092909190829003018186803b158015611ca057600080fd5b505afa158015611cb4573d6000803e3d6000fd5b505050506040513d60c0811015611cca57600080fd5b506060015191505090565b734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b6008546001600160a01b03163314611d38576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600f5481565b600080611d6b611bf7565b90506000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611dbc57600080fd5b505afa158015611dd0573d6000803e3d6000fd5b505050506040513d6020811015611de657600080fd5b5051905080611df757509050610c83565b6000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b031663aa74e6226040518163ffffffff1660e01b815260040160206040518083038186803b158015611e4657600080fd5b505afa158015611e5a573d6000803e3d6000fd5b505050506040513d6020811015611e7057600080fd5b505160408051631f96e76f60e01b81529051919250600091734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b91631f96e76f916004808301926020929190829003018186803b158015611ec357600080fd5b505afa158015611ed7573d6000803e3d6000fd5b505050506040513d6020811015611eed57600080fd5b505190506000611efd84846127b5565b90506000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b031663d5abeb016040518163ffffffff1660e01b815260040160206040518083038186803b158015611f4e57600080fd5b505afa158015611f62573d6000803e3d6000fd5b505050506040513d6020811015611f7857600080fd5b5051905082821015611fcd576000611f90848461262b565b905086611fa185610f82838561275c565b90506000611faf848961262b565b905080821115611fbd578091505b509750610c839650505050505050565b6000965050505050505090565b6012546001600160a01b031681565b6005546001600160a01b03163314612036576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146120a3576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600355565b6005546001600160a01b03163314806120cb57506007546001600160a01b031633145b61210d576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60005b81811015610b8f576000600b600085858581811061212a57fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101612110565b6009546001600160a01b031681565b6008546001600160a01b031633146121bd576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610c5457600080fd5b6006546000906001600160a01b0316331461227e576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b61228782612676565b5060048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b1580156122d457600080fd5b505afa1580156122e8573d6000803e3d6000fd5b505050506040513d60208110156122fe57600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b15801561235757600080fd5b505afa15801561236b573d6000803e3d6000fd5b505050506040513d602081101561238157600080fd5b505190506001600160a01b0381166123c9576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b6004546123e0906001600160a01b031682846127f7565b50919050565b6008546001600160a01b03163314612431576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600155565b6005546001600160a01b03163314612483576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156124f457600080fd5b505afa158015612508573d6000803e3d6000fd5b505050506040513d602081101561251e57600080fd5b5051905080156125ec57600c54600454612546916001600160a01b0391821691166000612849565b600c54600454612563916001600160a01b03918216911683612849565b600c54600d54604080516321d0683360e11b815260048101929092526024820184905260016044830152516001600160a01b03909216916343a0d066916064808201926020929091908290030181600087803b1580156125c257600080fd5b505af11580156125d6573d6000803e3d6000fd5b505050506040513d6020811015610b8f57600080fd5b50565b6008546001600160a01b031681565b6011546001600160a01b031681565b6010546001600160a01b031681565b6006546001600160a01b031681565b600061266d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612cbc565b90505b92915050565b6000612680611c4c565b6001600160a01b031663c32e72028360006040518363ffffffff1660e01b815260040180838152602001821515815260200192505050602060405180830381600087803b1580156126d057600080fd5b505af11580156126e4573d6000803e3d6000fd5b505050506040513d60208110156126fa57600080fd5b509192915050565b60008282018381101561266d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008261276b57506000612670565b8282028284828161277857fe5b041461266d5760405162461bcd60e51b81526004018080602001828103825260218152602001806130126021913960400191505060405180910390fd5b600061266d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612d53565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b8f908490612db8565b8015806128cf575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156128a157600080fd5b505afa1580156128b5573d6000803e3d6000fd5b505050506040513d60208110156128cb57600080fd5b5051155b61290a5760405162461bcd60e51b815260040180806020018281038252603681526020018061305d6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610b8f908490612db8565b60006001600160a01b03168260018151811061297457fe5b60200260200101516001600160a01b0316141561299057600080fd5b600a546001600160a01b03166338ed173982600085306129b142603c612702565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015612a21578181015183820152602001612a09565b505050509050019650505050505050600060405180830381600087803b158015612a4a57600080fd5b505af1158015612a5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612a8757600080fd5b8101908080516040519392919084600160201b821115612aa657600080fd5b908301906020820185811115612abb57600080fd5b82518660208202830111600160201b82111715612ad757600080fd5b82525081516020918201928201910280838360005b83811015612b04578181015183820152602001612aec565b50505050905001604052505050505050565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015612b6557600080fd5b505afa158015612b79573d6000803e3d6000fd5b505050506040513d6020811015612b8f57600080fd5b5051905080156125ec57600654604080516361d027b360e01b81529051612c21926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015612bdf57600080fd5b505afa158015612bf3573d6000803e3d6000fd5b505050506040513d6020811015612c0957600080fd5b505160005461116a9061271090610f8290869061275c565b60065460408051638d8f1e6760e01b81529051612ca9926001600160a01b031691638d8f1e67916004808301926020929190829003018186803b158015612c6757600080fd5b505afa158015612c7b573d6000803e3d6000fd5b505050506040513d6020811015612c9157600080fd5b505160015461116a9061271090610f8290869061275c565b6125ec6124a5565b6125ec610f50610c86565b60008184841115612d4b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612d10578181015183820152602001612cf8565b50505050905090810190601f168015612d3d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612da25760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612d10578181015183820152602001612cf8565b506000838581612dae57fe5b0495945050505050565b6060612e0d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612e699092919063ffffffff16565b805190915015610b8f57808060200190516020811015612e2c57600080fd5b5051610b8f5760405162461bcd60e51b815260040180806020018281038252602a815260200180613033602a913960400191505060405180910390fd5b6060612e788484600085612e80565b949350505050565b6060612e8b85612fed565b612edc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612f1b5780518252601f199092019160209182019101612efc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612f7d576040519150601f19603f3d011682016040523d82523d6000602084013e612f82565b606091505b50915091508115612f96579150612e789050565b805115612fa65780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612d10578181015183820152602001612cf8565b3b151590565b6040518060800160405280600490602082028036833750919291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212208f19fb922fce72254ee05adb98275b8cfd9b57c5b4d26badcc4b119936075d3764736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009d074e37d408542fd38be78848e8814afb38db17000000000000000000000000acfe4511ce883c14c4ea40563f176c3c09b4c47c0000000000000000000000006847259b2b3a4c17e7c43c54409810af48ba5210000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d3
-----Decoded View---------------
Arg [0] : _governance (address): 0x9d074E37d408542FD38be78848e8814AFB38db17
Arg [1] : _strategist (address): 0xaCfE4511CE883C14c4eA40563F176C3C09b4c47C
Arg [2] : _controller (address): 0x6847259b2B3A4c17e7c43C54409810aF48bA5210
Arg [3] : _timelock (address): 0xD92c7fAa0Ca0e6AE4918f3a83d9832d9CAEAA0d3
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000009d074e37d408542fd38be78848e8814afb38db17
Arg [1] : 000000000000000000000000acfe4511ce883c14c4ea40563f176c3c09b4c47c
Arg [2] : 0000000000000000000000006847259b2b3a4c17e7c43c54409810af48ba5210
Arg [3] : 000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.