More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
VoterProxy
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)
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./Interfaces.sol"; import "@openzeppelin/contracts-0.6/math/SafeMath.sol"; import "@openzeppelin/contracts-0.6/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts-0.6/utils/Address.sol"; import "@openzeppelin/contracts-0.6/token/ERC20/SafeERC20.sol"; /** * @title VoterProxy * @author ConvexFinance * @notice VoterProxy whitelisted in the curve SmartWalletWhitelist that * participates in Curve governance. Also handles all deposits since this is * the address that has the voting power. */ contract VoterProxy { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; address public mintr; address public immutable crv; address public immutable crvBpt; address public immutable escrow; address public gaugeController; address public rewardDeposit; address public withdrawer; address public owner; address public operator; address public depositor; mapping (address => bool) private stashPool; mapping (address => bool) private protectedTokens; mapping (bytes32 => bool) private votes; bytes4 constant internal EIP1271_MAGIC_VALUE = 0x1626ba7e; event VoteSet(bytes32 hash, bool valid); /** * @param _mintr CRV minter * @param _crv CRV Token address * @param _crvBpt CRV:ETH 80-20 BPT Token address * @param _escrow Curve Voting escrow contract * @param _gaugeController Curve Gauge Controller * Controls liquidity gauges and the issuance of coins through the gauges */ constructor( address _mintr, address _crv, address _crvBpt, address _escrow, address _gaugeController ) public { mintr = _mintr; crv = _crv; crvBpt = _crvBpt; escrow = _escrow; gaugeController = _gaugeController; owner = msg.sender; protectedTokens[_crv] = true; protectedTokens[_crvBpt] = true; } function getName() external pure returns (string memory) { return "BunniVoterProxy"; } function setOwner(address _owner) external { require(msg.sender == owner, "!auth"); owner = _owner; } /** * @notice Allows dao to set the reward withdrawal address * @param _withdrawer Whitelisted withdrawer * @param _rewardDeposit Distributor address */ function setRewardDeposit(address _withdrawer, address _rewardDeposit) external { require(msg.sender == owner, "!auth"); withdrawer = _withdrawer; rewardDeposit = _rewardDeposit; } /** * @notice Allows dao to set the external system config, should it change in the future * @param _gaugeController External gauge controller address * @param _mintr Token minter address for claiming rewards */ function setSystemConfig(address _gaugeController, address _mintr) external returns (bool) { require(msg.sender == owner, "!auth"); gaugeController = _gaugeController; mintr = _mintr; return true; } /** * @notice Set the operator of the VoterProxy * @param _operator Address of the operator (Booster) */ function setOperator(address _operator) external { require(msg.sender == owner, "!auth"); require(operator == address(0) || IDeposit(operator).isShutdown() == true, "needs shutdown"); operator = _operator; } /** * @notice Set the depositor of the VoterProxy * @param _depositor Address of the depositor (CrvDepositor) */ function setDepositor(address _depositor) external { require(msg.sender == owner, "!auth"); depositor = _depositor; } function setStashAccess(address _stash, bool _status) external returns(bool){ require(msg.sender == operator, "!auth"); if(_stash != address(0)){ stashPool[_stash] = _status; } return true; } /** * @notice Save a vote hash so when snapshot.org asks this contract if * a vote signature is valid we are able to check for a valid hash * and return the appropriate response inline with EIP 1721 * @param _hash Hash of vote signature that was sent to snapshot.org * @param _valid Is the hash valid */ function setVote(bytes32 _hash, bool _valid) external { require(msg.sender == operator, "!auth"); votes[_hash] = _valid; emit VoteSet(_hash, _valid); } /** * @notice Verifies that the hash is valid * @dev Snapshot Hub will call this function when a vote is submitted using * snapshot.js on behalf of this contract. Snapshot Hub will call this * function with the hash and the signature of the vote that was cast. * @param _hash Hash of the message that was sent to Snapshot Hub to cast a vote * @return EIP1271 magic value if the signature is value */ function isValidSignature(bytes32 _hash, bytes memory) public view returns (bytes4) { if(votes[_hash]) { return EIP1271_MAGIC_VALUE; } else { return 0xffffffff; } } /** * @notice Deposit tokens into the Curve Gauge * @dev Only can be called by the operator (Booster) once this contract has been * whitelisted by the Curve DAO * @param _token Deposit LP token address * @param _gauge Gauge contract to deposit to */ function deposit(address _token, address _gauge) external returns(bool){ require(msg.sender == operator, "!auth"); if(protectedTokens[_token] == false){ protectedTokens[_token] = true; } if(protectedTokens[_gauge] == false){ protectedTokens[_gauge] = true; } uint256 balance = IERC20(_token).balanceOf(address(this)); if (balance > 0) { IERC20(_token).safeApprove(_gauge, 0); IERC20(_token).safeApprove(_gauge, balance); ICurveGauge(_gauge).deposit(balance); } return true; } /** * @notice Withdraw ERC20 tokens that have been distributed as extra rewards * @dev Tokens shouldn't end up here if they can help it. However, dao can * set a withdrawer that can process these to some ExtraRewardDistribution. */ function withdraw(IERC20 _asset) external returns (uint256 balance) { require(msg.sender == withdrawer, "!auth"); require(protectedTokens[address(_asset)] == false, "protected"); balance = _asset.balanceOf(address(this)); _asset.safeApprove(rewardDeposit, 0); _asset.safeApprove(rewardDeposit, balance); IRewardDeposit(rewardDeposit).addReward(address(_asset), balance); return balance; } /** * @notice Withdraw LP tokens from a gauge * @dev Only callable by the operator * @param _token LP token address * @param _gauge Gauge for this LP token * @param _amount Amount of LP token to withdraw */ function withdraw(address _token, address _gauge, uint256 _amount) public returns(bool){ require(msg.sender == operator, "!auth"); uint256 _balance = IERC20(_token).balanceOf(address(this)); if (_balance < _amount) { _amount = _withdrawSome(_gauge, _amount.sub(_balance)); _amount = _amount.add(_balance); } IERC20(_token).safeTransfer(msg.sender, _amount); return true; } /** * @notice Withdraw all LP tokens from a gauge * @dev Only callable by the operator * @param _token LP token address * @param _gauge Gauge for this LP token */ function withdrawAll(address _token, address _gauge) external returns(bool){ require(msg.sender == operator, "!auth"); uint256 amount = balanceOfPool(_gauge).add(IERC20(_token).balanceOf(address(this))); withdraw(_token, _gauge, amount); return true; } function _withdrawSome(address _gauge, uint256 _amount) internal returns (uint256) { ICurveGauge(_gauge).withdraw(_amount); return _amount; } /** * @notice Lock CRV in Curve's voting escrow contract * @dev Called by the CrvDepositor contract * @param _value Amount of crv to lock * @param _unlockTime Timestamp to unlock (max is 4 years) */ function createLock(uint256 _value, uint256 _unlockTime) external returns(bool){ require(msg.sender == depositor, "!auth"); IERC20(crvBpt).safeApprove(escrow, 0); IERC20(crvBpt).safeApprove(escrow, _value); ICurveVoteEscrow(escrow).create_lock(_value, _unlockTime); return true; } /** * @notice Called by the CrvDepositor to increase amount of locked curve */ function increaseAmount(uint256 _value) external returns(bool){ require(msg.sender == depositor, "!auth"); IERC20(crvBpt).safeApprove(escrow, 0); IERC20(crvBpt).safeApprove(escrow, _value); ICurveVoteEscrow(escrow).increase_amount(_value); return true; } /** * @notice Called by the CrvDepositor to increase unlocked time of curve * @param _value Timestamp to increase locking to */ function increaseTime(uint256 _value) external returns(bool){ require(msg.sender == depositor, "!auth"); ICurveVoteEscrow(escrow).increase_unlock_time(_value); return true; } /** * @notice Withdraw all CRV from Curve's voting escrow contract * @dev Only callable by CrvDepositor and can only withdraw if lock has expired */ function release() external returns(bool){ require(msg.sender == depositor, "!auth"); ICurveVoteEscrow(escrow).withdraw(); return true; } /** * @notice Vote on CRV DAO for proposal */ function vote(uint256 _voteId, address _votingAddress, bool _support) external returns(bool){ require(msg.sender == operator, "!auth"); IVoting(_votingAddress).vote(_voteId,_support,false); return true; } /** * @notice Vote for a single gauge weight via the controller */ function voteGaugeWeight(address _gauge, uint256 _weight) external returns(bool){ require(msg.sender == operator, "!auth"); //vote IVoting(gaugeController).vote_for_gauge_weights(_gauge, _weight); return true; } /** * @notice Claim CRV from Curve * @dev Claim CRV for LP token staking from the CRV minter contract */ function claimCrv(address _gauge) external returns (uint256){ require(msg.sender == operator, "!auth"); uint256 _balance = 0; try IMinter(mintr).mint(_gauge){ _balance = IERC20(crv).balanceOf(address(this)); IERC20(crv).safeTransfer(operator, _balance); }catch{} return _balance; } /** * @notice Claim extra rewards from gauge * @dev Called by operator (Booster) to claim extra rewards */ function claimRewards(address _gauge) external returns(bool){ require(msg.sender == operator, "!auth"); ICurveGauge(_gauge).claim_rewards(); return true; } /** * @notice Claim fees (3crv) from staking lp tokens * @dev Only callable by the operator Booster * @param _distroContract Fee distribution contract * @param _token LP token to claim fees for */ function claimFees(address _distroContract, address _token) external returns (uint256){ require(msg.sender == operator, "!auth"); IFeeDistributor(_distroContract).claimToken(address(this), _token); uint256 _balance = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransfer(operator, _balance); return _balance; } function balanceOfPool(address _gauge) public view returns (uint256) { return ICurveGauge(_gauge).balanceOf(address(this)); } function execute( address _to, uint256 _value, bytes calldata _data ) external returns (bool, bytes memory) { require(msg.sender == operator,"!auth"); (bool success, bytes memory result) = _to.call{value:_value}(_data); require(success, "!success"); return (success, result); } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface ICurveGauge { function deposit(uint256) external; function balanceOf(address) external view returns (uint256); function withdraw(uint256) external; function claim_rewards() external; function reward_tokens(uint256) external view returns(address);//v2 function rewarded_token() external view returns(address);//v1 function lp_token() external view returns(address); } interface ICurveVoteEscrow { function create_lock(uint256, uint256) external; function increase_amount(uint256) external; function increase_unlock_time(uint256) external; function withdraw() external; function smart_wallet_checker() external view returns (address); function commit_smart_wallet_checker(address) external; function apply_smart_wallet_checker() external; } interface IWalletChecker { function check(address) external view returns (bool); function approveWallet(address) external; function dao() external view returns (address); } interface IVoting{ function vote(uint256, bool, bool) external; //voteId, support, executeIfDecided function getVote(uint256) external view returns(bool,bool,uint64,uint64,uint64,uint64,uint256,uint256,uint256,bytes memory); function vote_for_gauge_weights(address,uint256) external; } interface IMinter{ function mint(address) external; } interface IStaker{ function deposit(address, address) external returns (bool); function withdraw(address) external returns (uint256); function withdraw(address, address, uint256) external returns (bool); function withdrawAll(address, address) external returns (bool); function createLock(uint256, uint256) external returns(bool); function increaseAmount(uint256) external returns(bool); function increaseTime(uint256) external returns(bool); function release() external returns(bool); function claimCrv(address) external returns (uint256); function claimRewards(address) external returns(bool); function claimFees(address,address) external returns (uint256); function setStashAccess(address, bool) external returns (bool); function vote(uint256,address,bool) external returns(bool); function voteGaugeWeight(address,uint256) external returns(bool); function balanceOfPool(address) external view returns (uint256); function operator() external view returns (address); function execute(address _to, uint256 _value, bytes calldata _data) external returns (bool, bytes memory); function setVote(bytes32 hash, bool valid) external; function migrate(address to) external; } interface IRewards{ function stake(address, uint256) external; function stakeFor(address, uint256) external; function withdraw(address, uint256) external; function exit(address) external; function getReward(address) external; function queueNewRewards(uint256) external; function notifyRewardAmount(uint256) external; function addExtraReward(address) external; function extraRewardsLength() external view returns (uint256); function stakingToken() external view returns (address); function rewardToken() external view returns(address); function earned(address account) external view returns (uint256); } interface IStash{ function stashRewards() external returns (bool); function processStash() external returns (bool); function claimRewards() external returns (bool); function initialize(uint256 _pid, address _operator, address _staker, address _gauge, address _rewardFactory) external; function setExtraReward(address) external; } interface IFeeDistributor { function claimToken(address user, address token) external returns (uint256); function claimTokens(address user, address[] calldata tokens) external returns (uint256[] memory); function getTokenTimeCursor(address token) external view returns (uint256); } interface ITokenMinter{ function mint(address,uint256) external; function burn(address,uint256) external; } interface IDeposit{ function isShutdown() external view returns(bool); function balanceOf(address _account) external view returns(uint256); function totalSupply() external view returns(uint256); function poolInfo(uint256) external view returns(address,address,address,address,address, bool); function rewardClaimed(uint256,address,uint256) external; function withdrawTo(uint256,uint256,address) external; function claimRewards(uint256,address) external returns(bool); function rewardArbitrator() external returns(address); function setGaugeRedirect(uint256 _pid) external returns(bool); function owner() external returns(address); function deposit(uint256 _pid, uint256 _amount, bool _stake) external returns(bool); } interface ICrvDeposit{ function deposit(uint256, bool) external; function lockIncentive() external view returns(uint256); } interface IRewardFactory{ function setAccess(address,bool) external; function CreateCrvRewards(uint256,address,address) external returns(address); function CreateTokenRewards(address,address,address) external returns(address); function activeRewardCount(address) external view returns(uint256); function addActiveReward(address,uint256) external returns(bool); function removeActiveReward(address,uint256) external returns(bool); } interface IStashFactory{ function CreateStash(uint256,address,address,uint256) external returns(address); function setImplementation(address, address, address) external; } interface ITokenFactory{ function CreateDepositToken(address) external returns(address); } interface IPools{ function addPool(address _lptoken, address _gauge, uint256 _stashVersion) external returns(bool); function forceAddPool(address _lptoken, address _gauge, uint256 _stashVersion) external returns(bool); function shutdownPool(uint256 _pid) external returns(bool); function poolInfo(uint256) external view returns(address,address,address,address,address,bool); function poolLength() external view returns (uint256); function gaugeMap(address) external view returns(bool); function setPoolManager(address _poolM) external; function shutdownSystem() external; function setUsedAddress(address[] memory) external; } interface IVestedEscrow{ function fund(address[] calldata _recipient, uint256[] calldata _amount) external returns(bool); } interface IRewardDeposit { function addReward(address, uint256) external; } interface ILocker { function lock(address _account, uint256 _amount) external; function checkpointEpoch() external; function epochCount() external view returns (uint256); function balanceAtEpochOf(uint256 _epoch, address _user) external view returns (uint256 amount); function totalSupplyAtEpoch(uint256 _epoch) external view returns (uint256 supply); function queueNewRewards(address _rewardsToken, uint256 reward) external; function getReward(address _account, bool _stake) external; function getReward(address _account) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_mintr","type":"address"},{"internalType":"address","name":"_crv","type":"address"},{"internalType":"address","name":"_crvBpt","type":"address"},{"internalType":"address","name":"_escrow","type":"address"},{"internalType":"address","name":"_gaugeController","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"hash","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"valid","type":"bool"}],"name":"VoteSet","type":"event"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"claimCrv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distroContract","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"claimFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"claimRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"name":"createLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crvBpt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_gauge","type":"address"}],"name":"deposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"escrow","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gaugeController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"increaseAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"increaseTime","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardDeposit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"setDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawer","type":"address"},{"internalType":"address","name":"_rewardDeposit","type":"address"}],"name":"setRewardDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stash","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setStashAccess","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gaugeController","type":"address"},{"internalType":"address","name":"_mintr","type":"address"}],"name":"setSystemConfig","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bool","name":"_valid","type":"bool"}],"name":"setVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_voteId","type":"uint256"},{"internalType":"address","name":"_votingAddress","type":"address"},{"internalType":"bool","name":"_support","type":"bool"}],"name":"vote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"},{"internalType":"uint256","name":"_weight","type":"uint256"}],"name":"voteGaugeWeight","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_gauge","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_gauge","type":"address"}],"name":"withdrawAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e060405234801561001057600080fd5b50604051612542380380612542833981810160405260a081101561003357600080fd5b508051602080830151604080850151606080870151608097880151600080546001600160a01b03998a166001600160a01b03199182161782556001600160601b031988861b8116909b5285851b8b1660a0529383901b90991660c052600180549189169184169190911781556004805490931633179092559386168088526008909552828720805460ff19908116831790915591861680885292872080549092161790559193919216906123fc90610146903980610a0c5280610a615280610a885280610e2e528061131252806116045280611659528061168052806119ef5250806109ea5280610a3f52806113aa52806115e25280611637525080610f645280610fea52806112a452506123fc6000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806399eecb3b1161011a578063d1e61dcb116100ad578063ef5cfb8c1161007c578063ef5cfb8c14610754578063f2c098b71461077a578063f9609f08146107a0578063fa3964b2146107ce578063fce64fa8146107fc57610206565b8063d1e61dcb146106da578063d9caed12146106e2578063e2cdd42a14610718578063e2fdcc171461074c57610206565b8063b52c05fe116100e9578063b52c05fe146105a1578063b61d27f6146105c4578063c7c4ff46146106ca578063cdc18424146106d257610206565b806399eecb3b14610545578063ad25165e1461054d578063b0f6379414610555578063b3ab15fb1461057b57610206565b80632dbfa7351161019d578063570ca7351161016c578063570ca735146104f95780635d7e9bcb146105015780636a4874a11461052d57806386d1a69f146105355780638da5cb5b1461053d57610206565b80632dbfa735146104505780633c9a2a1a146104905780633fe9bc06146104ad57806351cff8d9146104d357610206565b80631626ba7e116101d95780631626ba7e146102b657806317d7de7c146103805780631fbd8974146103fd57806328e279721461042257610206565b806309cae2c81461020b578063116b5e471461024d57806313af40351461027157806315456eba14610299575b600080fd5b6102396004803603604081101561022157600080fd5b506001600160a01b038135811691602001351661082a565b604080519115158252519081900360200190f35b61025561091b565b604080516001600160a01b039092168252519081900360200190f35b6102976004803603602081101561028757600080fd5b50356001600160a01b031661092a565b005b610239600480360360208110156102af57600080fd5b5035610993565b610363600480360360408110156102cc57600080fd5b813591908101906040810160208201356401000000008111156102ee57600080fd5b82018360208201111561030057600080fd5b8035906020019184600183028401116401000000008311171561032257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b0c945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610388610b40565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103c25781810151838201526020016103aa565b50505050905090810190601f1680156103ef5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102976004803603604081101561041357600080fd5b50803590602001351515610b69565b6102976004803603604081101561043857600080fd5b506001600160a01b0381358116916020013516610c0b565b61047e6004803603604081101561046657600080fd5b506001600160a01b0381358116916020013516610c80565b60408051918252519081900360200190f35b610239600480360360208110156104a657600080fd5b5035610de2565b61047e600480360360208110156104c357600080fd5b50356001600160a01b0316610e92565b61047e600480360360208110156104e957600080fd5b50356001600160a01b0316611013565b6102556111d3565b6102396004803603604081101561051757600080fd5b506001600160a01b0381351690602001356111e2565b6102556112a2565b6102396112c6565b61025561138a565b610255611399565b6102556113a8565b61047e6004803603602081101561056b57600080fd5b50356001600160a01b03166113cc565b6102976004803603602081101561059157600080fd5b50356001600160a01b031661144d565b610239600480360360408110156105b757600080fd5b508035906020013561158b565b610649600480360360608110156105da57600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561060a57600080fd5b82018360208201111561061c57600080fd5b8035906020019184600183028401116401000000008311171561063e57600080fd5b5090925090506116ec565b60405180831515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561068e578181015183820152602001610676565b50505050905090810190601f1680156106bb5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6102556117ef565b6102556117fe565b61025561180d565b610239600480360360608110156106f857600080fd5b506001600160a01b0381358116916020810135909116906040013561181c565b6102396004803603606081101561072e57600080fd5b508035906001600160a01b036020820135169060400135151561192c565b6102556119ed565b6102396004803603602081101561076a57600080fd5b50356001600160a01b0316611a11565b6102976004803603602081101561079057600080fd5b50356001600160a01b0316611a96565b610239600480360360408110156107b657600080fd5b506001600160a01b0381358116916020013516611aff565b610239600480360360408110156107e457600080fd5b506001600160a01b0381351690602001351515611ce6565b6102396004803603604081101561081257600080fd5b506001600160a01b0381358116916020013516611d6d565b6005546000906001600160a01b03163314610874576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6000610901846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108c657600080fd5b505afa1580156108da573d6000803e3d6000fd5b505050506040513d60208110156108f057600080fd5b50516108fb856113cc565b90611dea565b905061090e84848361181c565b5060019150505b92915050565b6002546001600160a01b031681565b6004546001600160a01b03163314610971576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6006546000906001600160a01b031633146109dd576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b610a326001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000611e44565b610a866001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084611e44565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634957677c836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610aec57600080fd5b505af1158015610b00573d6000803e3d6000fd5b50600195945050505050565b60008281526009602052604081205460ff1615610b315750630b135d3f60e11b610915565b506001600160e01b0319610915565b60408051808201909152600f81526e42756e6e69566f74657250726f787960881b602082015290565b6005546001600160a01b03163314610bb0576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600082815260096020908152604091829020805460ff191684151590811790915582518581529182015281517fd374c3586ab69926e306cf56b218a9d8626a8138f092b10a810926b2457c4e3f929181900390910190a15050565b6004546001600160a01b03163314610c52576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600380546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055565b6005546000906001600160a01b03163314610cca576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6040805163ca31879d60e01b81523060048201526001600160a01b03848116602483015291519185169163ca31879d916044808201926020929091908290030181600087803b158015610d1c57600080fd5b505af1158015610d30573d6000803e3d6000fd5b505050506040513d6020811015610d4657600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b158015610d9257600080fd5b505afa158015610da6573d6000803e3d6000fd5b505050506040513d6020811015610dbc57600080fd5b5051600554909150610ddb906001600160a01b03858116911683611f5c565b9392505050565b6006546000906001600160a01b03163314610e2c576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eff7a612836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610aec57600080fd5b6005546000906001600160a01b03163314610edc576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60008054604080516335313c2160e11b81526001600160a01b03868116600483015291519190921691636a627842916024808301928692919082900301818387803b158015610f2a57600080fd5b505af1925050508015610f3b575060015b610f4457610915565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015610faa57600080fd5b505afa158015610fbe573d6000803e3d6000fd5b505050506040513d6020811015610fd457600080fd5b5051600554909150610915906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611f5c565b6003546000906001600160a01b0316331461105d576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03821660009081526008602052604090205460ff16156110b7576040805162461bcd60e51b81526020600482015260096024820152681c1c9bdd1958dd195960ba1b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156110fd57600080fd5b505afa158015611111573d6000803e3d6000fd5b505050506040513d602081101561112757600080fd5b5051600254909150611147906001600160a01b0384811691166000611e44565b600254611161906001600160a01b03848116911683611e44565b600254604080516309feb8f560e41b81526001600160a01b0385811660048301526024820185905291519190921691639feb8f5091604480830192600092919082900301818387803b1580156111b657600080fd5b505af11580156111ca573d6000803e3d6000fd5b50505050919050565b6005546001600160a01b031681565b6005546000906001600160a01b0316331461122c576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60015460408051631ae26c6560e31b81526001600160a01b038681166004830152602482018690529151919092169163d713632891604480830192600092919082900301818387803b15801561128157600080fd5b505af1158015611295573d6000803e3d6000fd5b5060019695505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6006546000906001600160a01b03163314611310576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561136b57600080fd5b505af115801561137f573d6000803e3d6000fd5b505050506001905090565b6004546001600160a01b031681565b6001546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561141b57600080fd5b505afa15801561142f573d6000803e3d6000fd5b505050506040513d602081101561144557600080fd5b505192915050565b6004546001600160a01b03163314611494576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6005546001600160a01b031615806115275750600560009054906101000a90046001600160a01b03166001600160a01b031663bf86d6906040518163ffffffff1660e01b815260040160206040518083038186803b1580156114f557600080fd5b505afa158015611509573d6000803e3d6000fd5b505050506040513d602081101561151f57600080fd5b505115156001145b611569576040805162461bcd60e51b815260206004820152600e60248201526d3732b2b2399039b43aba3237bbb760911b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6006546000906001600160a01b031633146115d5576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b61162a6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000611e44565b61167e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000085611e44565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166365fc387384846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561128157600080fd5b6005546000906060906001600160a01b03163314611739576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60006060876001600160a01b0316878787604051808383808284376040519201945060009350909150508083038185875af1925050503d806000811461179b576040519150601f19603f3d011682016040523d82523d6000602084013e6117a0565b606091505b5091509150816117e2576040805162461bcd60e51b8152602060048201526008602482015267217375636365737360c01b604482015290519081900360640190fd5b9097909650945050505050565b6006546001600160a01b031681565b6003546001600160a01b031681565b6000546001600160a01b031681565b6005546000906001600160a01b03163314611866576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6000846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118b557600080fd5b505afa1580156118c9573d6000803e3d6000fd5b505050506040513d60208110156118df57600080fd5b505190508281101561190d576118fe846118f98584611fae565b61200b565b925061190a8382611dea565b92505b6119216001600160a01b0386163385611f5c565b506001949350505050565b6005546000906001600160a01b03163314611976576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60408051636f899de560e11b815260048101869052831515602482015260006044820181905291516001600160a01b0386169263df133bca926064808201939182900301818387803b1580156119cb57600080fd5b505af11580156119df573d6000803e3d6000fd5b506001979650505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6005546000906001600160a01b03163314611a5b576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b816001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610aec57600080fd5b6004546001600160a01b03163314611add576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546000906001600160a01b03163314611b49576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03831660009081526008602052604090205460ff16611b8d576001600160a01b0383166000908152600860205260409020805460ff191660011790555b6001600160a01b03821660009081526008602052604090205460ff16611bd1576001600160a01b0382166000908152600860205260409020805460ff191660011790555b6000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611c2057600080fd5b505afa158015611c34573d6000803e3d6000fd5b505050506040513d6020811015611c4a57600080fd5b505190508015611cdc57611c696001600160a01b038516846000611e44565b611c7d6001600160a01b0385168483611e44565b826001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611cc357600080fd5b505af1158015611cd7573d6000803e3d6000fd5b505050505b5060019392505050565b6005546000906001600160a01b03163314611d30576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03831615611d64576001600160a01b0383166000908152600760205260409020805460ff19168315151790555b50600192915050565b6004546000906001600160a01b03163314611db7576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b50600180546001600160a01b038085166001600160a01b0319928316178355600080549185169190921617905592915050565b600082820183811015610ddb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b801580611eca575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611e9c57600080fd5b505afa158015611eb0573d6000803e3d6000fd5b505050506040513d6020811015611ec657600080fd5b5051155b611f055760405162461bcd60e51b81526004018080602001828103825260368152602001806123916036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611f57908490612072565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611f57908490612072565b600082821115612005576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561205357600080fd5b505af1158015612067573d6000803e3d6000fd5b509395945050505050565b60606120c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121239092919063ffffffff16565b805190915015611f57578080602001905160208110156120e657600080fd5b5051611f575760405162461bcd60e51b815260040180806020018281038252602a815260200180612367602a913960400191505060405180910390fd5b6060612132848460008561213a565b949350505050565b60608247101561217b5760405162461bcd60e51b81526004018080602001828103825260268152602001806123416026913960400191505060405180910390fd5b61218485612296565b6121d5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122145780518252601f1990920191602091820191016121f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612276576040519150601f19603f3d011682016040523d82523d6000602084013e61227b565b606091505b509150915061228b82828661229c565b979650505050505050565b3b151590565b606083156122ab575081610ddb565b8251156122bb5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156123055781810151838201526020016122ed565b50505050905090810190601f1680156123325780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220d5b666716855c2de43afffc73803f02ffe4976e10fda591a1ba14901d87439b564736f6c634300060c0033000000000000000000000000f087521ffca0fa8a43f5c445773ab37c5f574da0000000000000000000000000627fee87d0d9d2c55098a06ac805db8f98b158aa0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c000000000000000000000000f17d23136b4fead139f54fb766c8795faae09660000000000000000000000000901c8aa6a61f74ac95e7f397e22a0ac7c1242218
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c806399eecb3b1161011a578063d1e61dcb116100ad578063ef5cfb8c1161007c578063ef5cfb8c14610754578063f2c098b71461077a578063f9609f08146107a0578063fa3964b2146107ce578063fce64fa8146107fc57610206565b8063d1e61dcb146106da578063d9caed12146106e2578063e2cdd42a14610718578063e2fdcc171461074c57610206565b8063b52c05fe116100e9578063b52c05fe146105a1578063b61d27f6146105c4578063c7c4ff46146106ca578063cdc18424146106d257610206565b806399eecb3b14610545578063ad25165e1461054d578063b0f6379414610555578063b3ab15fb1461057b57610206565b80632dbfa7351161019d578063570ca7351161016c578063570ca735146104f95780635d7e9bcb146105015780636a4874a11461052d57806386d1a69f146105355780638da5cb5b1461053d57610206565b80632dbfa735146104505780633c9a2a1a146104905780633fe9bc06146104ad57806351cff8d9146104d357610206565b80631626ba7e116101d95780631626ba7e146102b657806317d7de7c146103805780631fbd8974146103fd57806328e279721461042257610206565b806309cae2c81461020b578063116b5e471461024d57806313af40351461027157806315456eba14610299575b600080fd5b6102396004803603604081101561022157600080fd5b506001600160a01b038135811691602001351661082a565b604080519115158252519081900360200190f35b61025561091b565b604080516001600160a01b039092168252519081900360200190f35b6102976004803603602081101561028757600080fd5b50356001600160a01b031661092a565b005b610239600480360360208110156102af57600080fd5b5035610993565b610363600480360360408110156102cc57600080fd5b813591908101906040810160208201356401000000008111156102ee57600080fd5b82018360208201111561030057600080fd5b8035906020019184600183028401116401000000008311171561032257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b0c945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610388610b40565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103c25781810151838201526020016103aa565b50505050905090810190601f1680156103ef5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102976004803603604081101561041357600080fd5b50803590602001351515610b69565b6102976004803603604081101561043857600080fd5b506001600160a01b0381358116916020013516610c0b565b61047e6004803603604081101561046657600080fd5b506001600160a01b0381358116916020013516610c80565b60408051918252519081900360200190f35b610239600480360360208110156104a657600080fd5b5035610de2565b61047e600480360360208110156104c357600080fd5b50356001600160a01b0316610e92565b61047e600480360360208110156104e957600080fd5b50356001600160a01b0316611013565b6102556111d3565b6102396004803603604081101561051757600080fd5b506001600160a01b0381351690602001356111e2565b6102556112a2565b6102396112c6565b61025561138a565b610255611399565b6102556113a8565b61047e6004803603602081101561056b57600080fd5b50356001600160a01b03166113cc565b6102976004803603602081101561059157600080fd5b50356001600160a01b031661144d565b610239600480360360408110156105b757600080fd5b508035906020013561158b565b610649600480360360608110156105da57600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561060a57600080fd5b82018360208201111561061c57600080fd5b8035906020019184600183028401116401000000008311171561063e57600080fd5b5090925090506116ec565b60405180831515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561068e578181015183820152602001610676565b50505050905090810190601f1680156106bb5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6102556117ef565b6102556117fe565b61025561180d565b610239600480360360608110156106f857600080fd5b506001600160a01b0381358116916020810135909116906040013561181c565b6102396004803603606081101561072e57600080fd5b508035906001600160a01b036020820135169060400135151561192c565b6102556119ed565b6102396004803603602081101561076a57600080fd5b50356001600160a01b0316611a11565b6102976004803603602081101561079057600080fd5b50356001600160a01b0316611a96565b610239600480360360408110156107b657600080fd5b506001600160a01b0381358116916020013516611aff565b610239600480360360408110156107e457600080fd5b506001600160a01b0381351690602001351515611ce6565b6102396004803603604081101561081257600080fd5b506001600160a01b0381358116916020013516611d6d565b6005546000906001600160a01b03163314610874576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6000610901846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108c657600080fd5b505afa1580156108da573d6000803e3d6000fd5b505050506040513d60208110156108f057600080fd5b50516108fb856113cc565b90611dea565b905061090e84848361181c565b5060019150505b92915050565b6002546001600160a01b031681565b6004546001600160a01b03163314610971576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6006546000906001600160a01b031633146109dd576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b610a326001600160a01b037f0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c167f000000000000000000000000f17d23136b4fead139f54fb766c8795faae096606000611e44565b610a866001600160a01b037f0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c167f000000000000000000000000f17d23136b4fead139f54fb766c8795faae0966084611e44565b7f000000000000000000000000f17d23136b4fead139f54fb766c8795faae096606001600160a01b0316634957677c836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610aec57600080fd5b505af1158015610b00573d6000803e3d6000fd5b50600195945050505050565b60008281526009602052604081205460ff1615610b315750630b135d3f60e11b610915565b506001600160e01b0319610915565b60408051808201909152600f81526e42756e6e69566f74657250726f787960881b602082015290565b6005546001600160a01b03163314610bb0576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600082815260096020908152604091829020805460ff191684151590811790915582518581529182015281517fd374c3586ab69926e306cf56b218a9d8626a8138f092b10a810926b2457c4e3f929181900390910190a15050565b6004546001600160a01b03163314610c52576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600380546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055565b6005546000906001600160a01b03163314610cca576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6040805163ca31879d60e01b81523060048201526001600160a01b03848116602483015291519185169163ca31879d916044808201926020929091908290030181600087803b158015610d1c57600080fd5b505af1158015610d30573d6000803e3d6000fd5b505050506040513d6020811015610d4657600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b158015610d9257600080fd5b505afa158015610da6573d6000803e3d6000fd5b505050506040513d6020811015610dbc57600080fd5b5051600554909150610ddb906001600160a01b03858116911683611f5c565b9392505050565b6006546000906001600160a01b03163314610e2c576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b7f000000000000000000000000f17d23136b4fead139f54fb766c8795faae096606001600160a01b031663eff7a612836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610aec57600080fd5b6005546000906001600160a01b03163314610edc576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60008054604080516335313c2160e11b81526001600160a01b03868116600483015291519190921691636a627842916024808301928692919082900301818387803b158015610f2a57600080fd5b505af1925050508015610f3b575060015b610f4457610915565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000627fee87d0d9d2c55098a06ac805db8f98b158aa16916370a08231916024808301926020929190829003018186803b158015610faa57600080fd5b505afa158015610fbe573d6000803e3d6000fd5b505050506040513d6020811015610fd457600080fd5b5051600554909150610915906001600160a01b037f000000000000000000000000627fee87d0d9d2c55098a06ac805db8f98b158aa8116911683611f5c565b6003546000906001600160a01b0316331461105d576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03821660009081526008602052604090205460ff16156110b7576040805162461bcd60e51b81526020600482015260096024820152681c1c9bdd1958dd195960ba1b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156110fd57600080fd5b505afa158015611111573d6000803e3d6000fd5b505050506040513d602081101561112757600080fd5b5051600254909150611147906001600160a01b0384811691166000611e44565b600254611161906001600160a01b03848116911683611e44565b600254604080516309feb8f560e41b81526001600160a01b0385811660048301526024820185905291519190921691639feb8f5091604480830192600092919082900301818387803b1580156111b657600080fd5b505af11580156111ca573d6000803e3d6000fd5b50505050919050565b6005546001600160a01b031681565b6005546000906001600160a01b0316331461122c576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60015460408051631ae26c6560e31b81526001600160a01b038681166004830152602482018690529151919092169163d713632891604480830192600092919082900301818387803b15801561128157600080fd5b505af1158015611295573d6000803e3d6000fd5b5060019695505050505050565b7f000000000000000000000000627fee87d0d9d2c55098a06ac805db8f98b158aa81565b6006546000906001600160a01b03163314611310576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b7f000000000000000000000000f17d23136b4fead139f54fb766c8795faae096606001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561136b57600080fd5b505af115801561137f573d6000803e3d6000fd5b505050506001905090565b6004546001600160a01b031681565b6001546001600160a01b031681565b7f0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c81565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561141b57600080fd5b505afa15801561142f573d6000803e3d6000fd5b505050506040513d602081101561144557600080fd5b505192915050565b6004546001600160a01b03163314611494576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6005546001600160a01b031615806115275750600560009054906101000a90046001600160a01b03166001600160a01b031663bf86d6906040518163ffffffff1660e01b815260040160206040518083038186803b1580156114f557600080fd5b505afa158015611509573d6000803e3d6000fd5b505050506040513d602081101561151f57600080fd5b505115156001145b611569576040805162461bcd60e51b815260206004820152600e60248201526d3732b2b2399039b43aba3237bbb760911b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6006546000906001600160a01b031633146115d5576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b61162a6001600160a01b037f0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c167f000000000000000000000000f17d23136b4fead139f54fb766c8795faae096606000611e44565b61167e6001600160a01b037f0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c167f000000000000000000000000f17d23136b4fead139f54fb766c8795faae0966085611e44565b7f000000000000000000000000f17d23136b4fead139f54fb766c8795faae096606001600160a01b03166365fc387384846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561128157600080fd5b6005546000906060906001600160a01b03163314611739576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60006060876001600160a01b0316878787604051808383808284376040519201945060009350909150508083038185875af1925050503d806000811461179b576040519150601f19603f3d011682016040523d82523d6000602084013e6117a0565b606091505b5091509150816117e2576040805162461bcd60e51b8152602060048201526008602482015267217375636365737360c01b604482015290519081900360640190fd5b9097909650945050505050565b6006546001600160a01b031681565b6003546001600160a01b031681565b6000546001600160a01b031681565b6005546000906001600160a01b03163314611866576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6000846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118b557600080fd5b505afa1580156118c9573d6000803e3d6000fd5b505050506040513d60208110156118df57600080fd5b505190508281101561190d576118fe846118f98584611fae565b61200b565b925061190a8382611dea565b92505b6119216001600160a01b0386163385611f5c565b506001949350505050565b6005546000906001600160a01b03163314611976576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b60408051636f899de560e11b815260048101869052831515602482015260006044820181905291516001600160a01b0386169263df133bca926064808201939182900301818387803b1580156119cb57600080fd5b505af11580156119df573d6000803e3d6000fd5b506001979650505050505050565b7f000000000000000000000000f17d23136b4fead139f54fb766c8795faae0966081565b6005546000906001600160a01b03163314611a5b576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b816001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610aec57600080fd5b6004546001600160a01b03163314611add576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546000906001600160a01b03163314611b49576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03831660009081526008602052604090205460ff16611b8d576001600160a01b0383166000908152600860205260409020805460ff191660011790555b6001600160a01b03821660009081526008602052604090205460ff16611bd1576001600160a01b0382166000908152600860205260409020805460ff191660011790555b6000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611c2057600080fd5b505afa158015611c34573d6000803e3d6000fd5b505050506040513d6020811015611c4a57600080fd5b505190508015611cdc57611c696001600160a01b038516846000611e44565b611c7d6001600160a01b0385168483611e44565b826001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611cc357600080fd5b505af1158015611cd7573d6000803e3d6000fd5b505050505b5060019392505050565b6005546000906001600160a01b03163314611d30576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03831615611d64576001600160a01b0383166000908152600760205260409020805460ff19168315151790555b50600192915050565b6004546000906001600160a01b03163314611db7576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b50600180546001600160a01b038085166001600160a01b0319928316178355600080549185169190921617905592915050565b600082820183811015610ddb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b801580611eca575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611e9c57600080fd5b505afa158015611eb0573d6000803e3d6000fd5b505050506040513d6020811015611ec657600080fd5b5051155b611f055760405162461bcd60e51b81526004018080602001828103825260368152602001806123916036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611f57908490612072565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611f57908490612072565b600082821115612005576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561205357600080fd5b505af1158015612067573d6000803e3d6000fd5b509395945050505050565b60606120c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121239092919063ffffffff16565b805190915015611f57578080602001905160208110156120e657600080fd5b5051611f575760405162461bcd60e51b815260040180806020018281038252602a815260200180612367602a913960400191505060405180910390fd5b6060612132848460008561213a565b949350505050565b60608247101561217b5760405162461bcd60e51b81526004018080602001828103825260268152602001806123416026913960400191505060405180910390fd5b61218485612296565b6121d5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122145780518252601f1990920191602091820191016121f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612276576040519150601f19603f3d011682016040523d82523d6000602084013e61227b565b606091505b509150915061228b82828661229c565b979650505050505050565b3b151590565b606083156122ab575081610ddb565b8251156122bb5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156123055781810151838201526020016122ed565b50505050905090810190601f1680156123325780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220d5b666716855c2de43afffc73803f02ffe4976e10fda591a1ba14901d87439b564736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f087521ffca0fa8a43f5c445773ab37c5f574da0000000000000000000000000627fee87d0d9d2c55098a06ac805db8f98b158aa0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c000000000000000000000000f17d23136b4fead139f54fb766c8795faae09660000000000000000000000000901c8aa6a61f74ac95e7f397e22a0ac7c1242218
-----Decoded View---------------
Arg [0] : _mintr (address): 0xF087521Ffca0Fa8A43F5C445773aB37C5f574DA0
Arg [1] : _crv (address): 0x627fee87d0D9D2c55098A06ac805Db8F98B158Aa
Arg [2] : _crvBpt (address): 0x9232a548DD9E81BaC65500b5e0d918F8Ba93675C
Arg [3] : _escrow (address): 0xf17d23136B4FeAd139f54fB766c8795faae09660
Arg [4] : _gaugeController (address): 0x901c8aA6A61f74aC95E7f397E22A0Ac7c1242218
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000f087521ffca0fa8a43f5c445773ab37c5f574da0
Arg [1] : 000000000000000000000000627fee87d0d9d2c55098a06ac805db8f98b158aa
Arg [2] : 0000000000000000000000009232a548dd9e81bac65500b5e0d918f8ba93675c
Arg [3] : 000000000000000000000000f17d23136b4fead139f54fb766c8795faae09660
Arg [4] : 000000000000000000000000901c8aa6a61f74ac95e7f397e22a0ac7c1242218
Loading...
Loading
Loading...
Loading
OVERVIEW
VoterProx based on ConvexFinanceMultichain 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.