Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 297 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create Vault | 21686269 | 24 hrs ago | IN | 0 ETH | 0.00266599 | ||||
Create Vault | 21681992 | 38 hrs ago | IN | 0 ETH | 0.00527807 | ||||
Create Vault | 21675270 | 2 days ago | IN | 0 ETH | 0.00547375 | ||||
Create Vault | 21667964 | 3 days ago | IN | 0 ETH | 0.01267609 | ||||
Claim Fees | 21645129 | 6 days ago | IN | 0 ETH | 0.01802304 | ||||
Create Vault | 21601702 | 12 days ago | IN | 0 ETH | 0.0010908 | ||||
Create Vault | 21600036 | 13 days ago | IN | 0 ETH | 0.00122905 | ||||
Claim Fees | 21594985 | 13 days ago | IN | 0 ETH | 0.00982967 | ||||
Create Vault | 21569803 | 17 days ago | IN | 0 ETH | 0.00263112 | ||||
Create Vault | 21546558 | 20 days ago | IN | 0 ETH | 0.00598989 | ||||
Claim Fees | 21544846 | 20 days ago | IN | 0 ETH | 0.01208093 | ||||
Create Vault | 21542749 | 21 days ago | IN | 0 ETH | 0.00251251 | ||||
Create Vault | 21529005 | 22 days ago | IN | 0 ETH | 0.00220281 | ||||
Create Vault | 21522655 | 23 days ago | IN | 0 ETH | 0.00397193 | ||||
Create Vault | 21520432 | 24 days ago | IN | 0 ETH | 0.00193703 | ||||
Create Vault | 21510639 | 25 days ago | IN | 0 ETH | 0.00302132 | ||||
Create Vault | 21499978 | 27 days ago | IN | 0 ETH | 0.00205806 | ||||
Claim Fees | 21494630 | 27 days ago | IN | 0 ETH | 0.00903912 | ||||
Create Vault | 21492151 | 28 days ago | IN | 0 ETH | 0.00157288 | ||||
Create Vault | 21490903 | 28 days ago | IN | 0 ETH | 0.00194031 | ||||
Create Vault | 21489169 | 28 days ago | IN | 0 ETH | 0.00357233 | ||||
Create Vault | 21486656 | 28 days ago | IN | 0 ETH | 0.00336858 | ||||
Create Vault | 21475713 | 30 days ago | IN | 0 ETH | 0.00206692 | ||||
Create Vault | 21467597 | 31 days ago | IN | 0 ETH | 0.00633525 | ||||
Create Vault | 21463231 | 32 days ago | IN | 0 ETH | 0.00211594 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Booster
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "./interfaces/IStaker.sol"; import "./interfaces/IPoolRegistry.sol"; import "./interfaces/IProxyVault.sol"; import "./interfaces/IProxyOwner.sol"; import "./interfaces/IFeeDeposit.sol"; import "./interfaces/IFeeRegistry.sol"; import "./interfaces/IFeeReceiver.sol"; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; /* Main interface for the whitelisted proxy contract. **This contract is meant to be able to be replaced for upgrade purposes. use IVoterProxy.operator() to always reference the current booster */ contract Booster{ using SafeERC20 for IERC20; address public constant fxs = address(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0); address public immutable proxy; address public immutable poolRegistry; address public immutable feeRegistry; address public owner; address public pendingOwner; address public poolManager; address public rewardManager; address public voteDelegate; address public feeBridge; address public vefxsFeeDistro; address public vefxsFeeToken; bool public isShutdown; address public feeQueue; mapping(address=>address) public proxyOwners; constructor(address _proxy, address _poolReg, address _feeReg) { proxy = _proxy; poolRegistry = _poolReg; feeRegistry = _feeReg; isShutdown = false; owner = msg.sender; rewardManager = msg.sender; poolManager = msg.sender; voteDelegate = msg.sender; //TODO: consider moving to a module so dont have to set everything again if upgraded feeQueue = address(0x6f94FE4DadD7a6f4CE67E607Bab531A9D1717624); emit FeeQueueChanged(address(0x6f94FE4DadD7a6f4CE67E607Bab531A9D1717624)); vefxsFeeDistro = address(0xc6764e58b36e26b08Fd1d2AeD4538c02171fA872); vefxsFeeToken = address(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0); feeBridge = address(0xd430246142084eC68F7Ab090Cbd9252a1D1410e9); //set our proxy as its own owner proxyOwners[_proxy] = _proxy; //temple proxyOwners[address(0xC0223fB0562555Bec938de5363D63EDd65102283)] = address(0x4A136F836961860E599d9BF6e03BBb4BcD0E39dd); } /////// Owner Section ///////// modifier onlyOwner() { require(owner == msg.sender, "!auth"); _; } modifier onlyPoolManager() { require(poolManager == msg.sender, "!auth"); _; } //set pending owner function setPendingOwner(address _po) external onlyOwner{ pendingOwner = _po; emit SetPendingOwner(_po); } function _proxyCall(address _to, bytes memory _data) internal{ (bool success,) = IStaker(proxy).execute(_to,uint256(0),_data); require(success, "Proxy Call Fail"); } //claim ownership function acceptPendingOwner() external { require(pendingOwner != address(0) && msg.sender == pendingOwner, "!p_owner"); owner = pendingOwner; pendingOwner = address(0); emit OwnerChanged(owner); } //set fee queue, a contract fees are moved to when claiming function setFeeQueue(address _queue) external onlyOwner{ feeQueue = _queue; emit FeeQueueChanged(_queue); } function addProxyOwner(address _proxy, address _owner) external onlyOwner{ proxyOwners[_proxy] = _owner; emit ProxyOwnerSet(_proxy, _owner); } //set a reward manager address that controls extra reward contracts for each pool function setRewardManager(address _rmanager) external onlyOwner{ rewardManager = _rmanager; emit RewardManagerChanged(_rmanager); } //set pool manager function setPoolManager(address _pmanager) external onlyOwner{ poolManager = _pmanager; emit PoolManagerChanged(_pmanager); } //shutdown this contract. function shutdownSystem() external onlyOwner{ //This version of booster does not require any special steps before shutting down //and can just immediately be set. isShutdown = true; emit Shutdown(); } //claim operator roles for certain systems for direct access function claimOperatorRoles() external onlyOwner{ require(!isShutdown,"shutdown"); //claim operator role of pool registry bytes memory data = abi.encodeWithSelector(bytes4(keccak256("setOperator(address)")), address(this)); _proxyCall(poolRegistry,data); } //set fees on user vaults function setPoolFees(uint256 _cvxfxs, uint256 _cvx, uint256 _platform, address _feeBridge) external onlyOwner{ require(!isShutdown,"shutdown"); //set fees bytes memory data = abi.encodeWithSelector(bytes4(keccak256("setFees(uint256,uint256,uint256)")), _cvxfxs, _cvx, _platform); _proxyCall(feeRegistry,data); //set where fees are bridged feeBridge = _feeBridge; } function setVefxsFeeInfo(address _distro, address _token) external onlyOwner{ vefxsFeeDistro = _distro; vefxsFeeToken = _token; emit VefxFeeInfoSet(_distro, _token); } //set fee deposit address for all user vaults function setPoolFeeDeposit(address _deposit) external onlyOwner{ require(!isShutdown,"shutdown"); bytes memory data = abi.encodeWithSelector(bytes4(keccak256("setDepositAddress(address)")), _deposit); _proxyCall(feeRegistry,data); } //add pool on registry function addPool(address _implementation, address _stakingAddress, address _stakingToken) external onlyPoolManager{ IPoolRegistry(poolRegistry).addPool(_implementation, _stakingAddress, _stakingToken); } //set a new reward pool implementation for future pools function setPoolRewardImplementation(address _impl) external onlyPoolManager{ IPoolRegistry(poolRegistry).setRewardImplementation(_impl); } //deactivate a pool function deactivatePool(uint256 _pid) external onlyPoolManager{ IPoolRegistry(poolRegistry).deactivatePool(_pid); } //set extra reward contracts to be active when pools are created function setRewardActiveOnCreation(bool _active) external onlyPoolManager{ IPoolRegistry(poolRegistry).setRewardActiveOnCreation(_active); } //vote for gauge weights function voteGaugeWeight(address _controller, address[] calldata _gauge, uint256[] calldata _weight) external onlyOwner{ for(uint256 i = 0; i < _gauge.length; ){ bytes memory data = abi.encodeWithSelector(bytes4(keccak256("vote_for_gauge_weights(address,uint256)")), _gauge[i], _weight[i]); _proxyCall(_controller,data); unchecked{ ++i; } } } //set snapshot voting delegate function setDelegate(address _delegateContract, address _delegate, bytes32 _space) external onlyOwner{ bytes memory data = abi.encodeWithSelector(bytes4(keccak256("setDelegate(bytes32,address)")), _space, _delegate); _proxyCall(_delegateContract,data); emit DelegateSet(_delegate); } //set on chain governance voting delegate function setOnChainDelegate(address _delegateContract, address _delegate) external onlyOwner{ bytes memory data = abi.encodeWithSelector(bytes4(keccak256("delegate(address)")), _delegate); _proxyCall(_delegateContract,data); voteDelegate = _delegate; emit OnChainDelegateSet(_delegate); } function castVote(address _votingContract, uint256 _proposalId, bool _support) external{ require(msg.sender == voteDelegate, "!voteDelegate"); bytes memory data = abi.encodeWithSelector(bytes4(keccak256("castVote(uint256,uint8)")), _proposalId, _support?uint8(1):uint8(0)); _proxyCall(_votingContract,data); } //recover tokens on this contract function recoverERC20(address _tokenAddress, uint256 _tokenAmount, address _withdrawTo) external onlyOwner{ IERC20(_tokenAddress).safeTransfer(_withdrawTo, _tokenAmount); emit Recovered(_tokenAddress, _tokenAmount); } //manually set vefxs proxy for a given vault function setVeFXSProxy(address _vault, address _newproxy) external{ require(!isShutdown,"shutdown"); //get owner of vault address vaultOwner = IProxyVault(_vault).owner(); //require vault owner or convex admin to call require(vaultOwner == msg.sender || owner == msg.sender, "!auth" ); //require new proxy to be known require(proxyOwners[_newproxy] != address(0),"!proxy"); //call checkpoint to checkpoint rewards with current boost bytes memory data = abi.encodeWithSelector(bytes4(keccak256("checkpointRewards()"))); _proxyCall(_vault,data); //get current proxy address currentProxy = IProxyVault(_vault).usingProxy(); //tell current proxy admin to remove if(currentProxy == proxy){ //proxy is currently convex, call internal data = abi.encodeWithSelector(bytes4(keccak256("proxyToggleStaker(address)")), _vault); _proxyCall(IProxyVault(_vault).stakingAddress(),data); }else{ //get proxy owner from list IProxyOwner(proxyOwners[currentProxy]).proxyToggleStaker(_vault); } //tell next proxy admin to add if(_newproxy == proxy){ //new proxy is convex, call internal data = abi.encodeWithSelector(bytes4(keccak256("proxyToggleStaker(address)")), _vault); _proxyCall(IProxyVault(_vault).stakingAddress(),data); }else{ //get proxy owner from list IProxyOwner(proxyOwners[_newproxy]).proxyToggleStaker(_vault); } //set proxy on vault data = abi.encodeWithSelector(bytes4(keccak256("setVeFXSProxy(address)")), _newproxy); _proxyCall(_vault,data); //call get rewards to checkpoint with new boosted weight //should be a bit cheaper than call above since there should be no token transfers in second call data = abi.encodeWithSelector(bytes4(keccak256("checkpointRewards()"))); _proxyCall(_vault,data); } //recover tokens on the proxy function recoverERC20FromProxy(address _tokenAddress, uint256 _tokenAmount, address _withdrawTo) external onlyOwner{ bytes memory data = abi.encodeWithSelector(bytes4(keccak256("transfer(address,uint256)")), _withdrawTo, _tokenAmount); _proxyCall(_tokenAddress,data); emit Recovered(_tokenAddress, _tokenAmount); } //////// End Owner Section /////////// function createVault(uint256 _pid) external returns (address){ //create minimal proxy vault for specified pool (address vault, address stakeAddress, address stakeToken, address rewards) = IPoolRegistry(poolRegistry).addUserVault(_pid, msg.sender); //make voterProxy call proxyToggleStaker(vault) on the pool's stakingAddress to set it as a proxied child bytes memory data = abi.encodeWithSelector(bytes4(keccak256("proxyToggleStaker(address)")), vault); _proxyCall(stakeAddress,data); //call proxy initialize IProxyVault(vault).initialize(msg.sender, stakeAddress, stakeToken, rewards); //set vault vefxs proxy data = abi.encodeWithSelector(bytes4(keccak256("setVeFXSProxy(address)")), proxy); _proxyCall(vault,data); return vault; } //claim fees - if set, move to a fee queue that rewards can pull from function claimFees() external { //claim vefxs rewards uint256 bal; if(feeQueue != address(0)){ bal = IStaker(proxy).claimFees(vefxsFeeDistro, vefxsFeeToken, feeQueue); IFeeReceiver(feeQueue).processFees(); }else{ bal = IStaker(proxy).claimFees(vefxsFeeDistro, vefxsFeeToken, address(this)); } emit FeesClaimed(bal); //process boost rewards IFeeDeposit(IFeeRegistry(feeRegistry).feeDeposit()).distribute(); //bridge rewards IFeeReceiver(feeBridge).processFees(); } //call vefxs checkpoint function checkpointFeeRewards() external { IStaker(proxy).checkpointFeeRewards(vefxsFeeDistro); } /* ========== EVENTS ========== */ event SetPendingOwner(address indexed _address); event OwnerChanged(address indexed _address); event FeeQueueChanged(address indexed _address); event ProxyOwnerSet(address indexed _address, address _owner); event VefxFeeInfoSet(address indexed _distro, address _token); event RewardManagerChanged(address indexed _address); event PoolManagerChanged(address indexed _address); event Shutdown(); event DelegateSet(address indexed _address); event OnChainDelegateSet(address indexed _address); event FeesClaimed(uint256 _amount); event Recovered(address indexed _token, uint256 _amount); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IStaker{ 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 checkpointFeeRewards(address) external; function claimFees(address,address,address) external returns (uint256); function voteGaugeWeight(address,uint256) external returns (bool); function operator() external view returns (address); function execute(address _to, uint256 _value, bytes calldata _data) external returns (bool, bytes memory); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IProxyVault { enum VaultType{ Erc20Basic, UniV3, Convex, Erc20Joint } function initialize(address _owner, address _stakingAddress, address _stakingToken, address _rewardsAddress) external; function usingProxy() external returns(address); function owner() external returns(address); function stakingAddress() external returns(address); function rewards() external returns(address); function getReward() external; function getReward(bool _claim) external; function getReward(bool _claim, address[] calldata _rewardTokenList) external; function earned() external returns (address[] memory token_addresses, uint256[] memory total_earned); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IProxyOwner { function proxyToggleStaker(address _vault) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IPoolRegistry { function poolLength() external view returns(uint256); function poolInfo(uint256 _pid) external view returns(address, address, address, address, uint8); function vaultMap(uint256 _pid, address _user) external view returns(address vault); function addUserVault(uint256 _pid, address _user) external returns(address vault, address stakeAddress, address stakeToken, address rewards); function deactivatePool(uint256 _pid) external; function addPool(address _implementation, address _stakingAddress, address _stakingToken) external; function setRewardActiveOnCreation(bool _active) external; function setRewardImplementation(address _imp) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IFeeRegistry{ function cvxfxsIncentive() external view returns(uint256); function cvxIncentive() external view returns(uint256); function platformIncentive() external view returns(uint256); function totalFees() external view returns(uint256); function maxFees() external view returns(uint256); function feeDeposit() external view returns(address); function getFeeDepositor(address _from) external view returns(address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IFeeReceiver { function processFees() external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IFeeDeposit{ function distribute() external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_poolReg","type":"address"},{"internalType":"address","name":"_feeReg","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"DelegateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"FeeQueueChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"FeesClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"OnChainDelegateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"PoolManagerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"address","name":"_owner","type":"address"}],"name":"ProxyOwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"RewardManagerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetPendingOwner","type":"event"},{"anonymous":false,"inputs":[],"name":"Shutdown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_distro","type":"address"},{"indexed":false,"internalType":"address","name":"_token","type":"address"}],"name":"VefxFeeInfoSet","type":"event"},{"inputs":[],"name":"acceptPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"address","name":"_stakingAddress","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"name":"addProxyOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_votingContract","type":"address"},{"internalType":"uint256","name":"_proposalId","type":"uint256"},{"internalType":"bool","name":"_support","type":"bool"}],"name":"castVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkpointFeeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimOperatorRoles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"createVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"deactivatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeBridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeQueue","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fxs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isShutdown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxyOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"address","name":"_withdrawTo","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"address","name":"_withdrawTo","type":"address"}],"name":"recoverERC20FromProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_delegateContract","type":"address"},{"internalType":"address","name":"_delegate","type":"address"},{"internalType":"bytes32","name":"_space","type":"bytes32"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_queue","type":"address"}],"name":"setFeeQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegateContract","type":"address"},{"internalType":"address","name":"_delegate","type":"address"}],"name":"setOnChainDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_po","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_deposit","type":"address"}],"name":"setPoolFeeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cvxfxs","type":"uint256"},{"internalType":"uint256","name":"_cvx","type":"uint256"},{"internalType":"uint256","name":"_platform","type":"uint256"},{"internalType":"address","name":"_feeBridge","type":"address"}],"name":"setPoolFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pmanager","type":"address"}],"name":"setPoolManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_impl","type":"address"}],"name":"setPoolRewardImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setRewardActiveOnCreation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rmanager","type":"address"}],"name":"setRewardManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_newproxy","type":"address"}],"name":"setVeFXSProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distro","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"setVefxsFeeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shutdownSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vefxsFeeDistro","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxsFeeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteDelegate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address[]","name":"_gauge","type":"address[]"},{"internalType":"uint256[]","name":"_weight","type":"uint256[]"}],"name":"voteGaugeWeight","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162002955380380620029558339810160408190526200003491620001d8565b6001600160a01b0383811660805282811660a052811660c0526007805460ff60a01b1916905560008054336001600160a01b0319918216811783556003805483168217905560028054831682179055600480548316909117905560088054736f94fe4dadd7a6f4ce67e607bab531a9d171762492168217905560405190917fee58b2ec759bf63301361bbf3ae13e1923996d6493ef4e5825537b817443fbb391a25050600680546001600160a01b031990811673c6764e58b36e26b08fd1d2aed4538c02171fa87217909155600780548216733432b6a60d23ca0dfca7761b7ab56459d9c964d017905560058054821673d430246142084ec68f7ab090cbd9252a1d1410e91790556001600160a01b039190911660008181526009602052604081208054841690921790915573c0223fb0562555bec938de5363d63edd6510228390527f1888012ba78ccace3e77b158e0f46415840a1c8844916113cb417b0a6c390cac8054909116734a136f836961860e599d9bf6e03bbb4bcd0e39dd17905562000222565b80516001600160a01b0381168114620001d357600080fd5b919050565b600080600060608486031215620001ee57600080fd5b620001f984620001bb565b92506200020960208501620001bb565b91506200021960408501620001bb565b90509250925092565b60805160a05160c051612693620002c26000396000818161045a015281816106fb0152818161123d0152611b370152600081816104200152818161063401528181611140015281816113b5015281816115cb0152818161164b01526116d30152600081816105760152818161090201528181610a5c015281816114f5015281816117dc0152818161197f01528181611a900152611dab01526126936000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80639f00332b1161013b578063c16d9d39116100b8578063d3051bc01161007c578063d3051bc014610525578063d579bb5314610538578063dc4c90d31461054b578063e30c39781461055e578063ec5568891461057157600080fd5b8063c16d9d39146104bb578063c42069ec146104ce578063c9893697146104e1578063cc6212b0146104f4578063d294f0931461051d57600080fd5b8063b20cc6a4116100ff578063b20cc6a414610442578063b3a408b814610455578063b51609b41461047c578063b8ceb82a1461048f578063bf86d6901461049757600080fd5b80639f00332b146103cf578063a3541271146103e2578063aba65098146103f5578063ae5db6ec14610408578063afcff50f1461041b57600080fd5b80633b788da9116101c95780638da5cb5b1161018d5780638da5cb5b1461037b5780639066cfb71461038e57806399f4a389146103a15780639abbdf4b146103a95780639abd9b05146103bc57600080fd5b80633b788da9146103145780633fd46786146103275780635f426cc01461033a5780637aef67151461034d5780637d4234461461036057600080fd5b806312d320c51161021057806312d320c5146102c0578063153ee554146102d3578063333f3912146102e6578063354af919146102f957806338178d951461030157600080fd5b80630a1d999f1461024d5780630a7d7d4a146102575780630cc5005c1461026a5780630f4ef8a61461027d5780630fd787b5146102ad575b600080fd5b610255610598565b005b610255610265366004612124565b61065c565b610255610278366004612165565b610746565b600354610290906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6102556102bb366004612165565b610c3b565b6102556102ce3660046121ac565b610ccd565b6102556102e13660046121ee565b610da4565b6102556102f436600461225e565b610e18565b610255610f1c565b61025561030f366004612165565b610f84565b6102556103223660046122e1565b611047565b610255610335366004612322565b6110ff565b6102556103483660046121ee565b6111a1565b61025561035b3660046121ee565b611266565b610290733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b600054610290906001600160a01b031681565b600854610290906001600160a01b031681565b6102556112da565b6102906103b736600461233f565b611386565b6102556103ca36600461233f565b61158b565b600454610290906001600160a01b031681565b6102556103f03660046121ee565b611602565b610255610403366004612358565b61167a565b600554610290906001600160a01b031681565b6102907f000000000000000000000000000000000000000000000000000000000000000081565b600754610290906001600160a01b031681565b6102907f000000000000000000000000000000000000000000000000000000000000000081565b61025561048a366004612398565b611734565b6102556117ba565b6007546104ab90600160a01b900460ff1681565b60405190151581526020016102a4565b6102556104c9366004612165565b611836565b6102556104dc3660046121ee565b6118c0565b600654610290906001600160a01b031681565b6102906105023660046121ee565b6009602052600090815260409020546001600160a01b031681565b610255611934565b6102556105333660046121ee565b611c59565b610255610546366004612398565b611ccd565b600254610290906001600160a01b031681565b600154610290906001600160a01b031681565b6102907f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146105cb5760405162461bcd60e51b81526004016105c2906123cf565b60405180910390fd5b600754600160a01b900460ff16156105f55760405162461bcd60e51b81526004016105c2906123ee565b60408051306024808301919091528251808303909101815260449091019091526020810180516001600160e01b031663b3ab15fb60e01b1790526106597f000000000000000000000000000000000000000000000000000000000000000082611d91565b50565b6000546001600160a01b031633146106865760405162461bcd60e51b81526004016105c2906123cf565b600754600160a01b900460ff16156106b05760405162461bcd60e51b81526004016105c2906123ee565b60408051602481018690526044810185905260648082018590528251808303909101815260849091019091526020810180516001600160e01b031663cec10c1160e01b1790526107207f000000000000000000000000000000000000000000000000000000000000000082611d91565b50600580546001600160a01b0319166001600160a01b0392909216919091179055505050565b600754600160a01b900460ff16156107705760405162461bcd60e51b81526004016105c2906123ee565b6000826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156107b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d69190612410565b90506001600160a01b0381163314806107f957506000546001600160a01b031633145b6108155760405162461bcd60e51b81526004016105c2906123cf565b6001600160a01b03828116600090815260096020526040902054166108655760405162461bcd60e51b81526020600482015260066024820152652170726f787960d01b60448201526064016105c2565b6040805160048152602481019091526020810180516001600160e01b031663152aa42160e11b1790526108988482611d91565b6000846001600160a01b031663d7c04a466040518163ffffffff1660e01b81526004016020604051808303816000875af11580156108da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fe9190612410565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614156109eb57604080516001600160a01b03871660248083018290528351808403909101815260449092018352602080830180516001600160e01b03166373f982c160e11b17905283516335ed2f8960e21b815293519295506109e693919263d7b4be2492600480820193929182900301816000875af11580156109bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e09190612410565b83611d91565b610a5a565b6001600160a01b03818116600090815260096020526040908190205490516373f982c160e11b8152878316600482015291169063e7f3058290602401600060405180830381600087803b158015610a4157600080fd5b505af1158015610a55573d6000803e3d6000fd5b505050505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161415610b1b57604080516001600160a01b03871660248083018290528351808403909101815260449092018352602080830180516001600160e01b03166373f982c160e11b17905283516335ed2f8960e21b81529351929550610b1693919263d7b4be2492600480820193929182900301816000875af11580156109bc573d6000803e3d6000fd5b610b8a565b6001600160a01b03848116600090815260096020526040908190205490516373f982c160e11b8152878316600482015291169063e7f3058290602401600060405180830381600087803b158015610b7157600080fd5b505af1158015610b85573d6000803e3d6000fd5b505050505b6040516001600160a01b03851660248201527f641a6cd0b01d626ff79f5bf07316ecb119eca316f9670e73b1e2c17c65b136749060440160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529150610bff8583611d91565b6040805160048152602481019091526020810180516001600160e01b031663152aa42160e11b1790529150610c348583611d91565b5050505050565b6000546001600160a01b03163314610c655760405162461bcd60e51b81526004016105c2906123cf565b6001600160a01b0382811660008181526009602090815260409182902080546001600160a01b0319169486169485179055905192835290917fb91b1bd9de2775f6673be2dbf6acc1d0d524f3b2b4e547eaab3b770a6b8d617e91015b60405180910390a25050565b6004546001600160a01b03163314610d175760405162461bcd60e51b815260206004820152600d60248201526c21766f746544656c656761746560981b60448201526064016105c2565b60007f567813887e9a02f0fdc9e5cce34dad3f5e8ac785aa0259ba5d30339dd056cd238383610d47576000610d4a565b60015b604051602481019290925260ff16604482015260640160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610d9e8482611d91565b50505050565b6000546001600160a01b03163314610dce5760405162461bcd60e51b81526004016105c2906123cf565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f3ca93d0ab216ddc34a69d5e754afd4c484dc270149e769b81e9c4d244ce6a56a90600090a250565b6000546001600160a01b03163314610e425760405162461bcd60e51b81526004016105c2906123cf565b60005b83811015610f145760007fd7136328d183ca84da1077f1bb26d5301594537a6b326c5831b74e07229dc289868684818110610e8257610e8261242d565b9050602002016020810190610e9791906121ee565b858585818110610ea957610ea961242d565b6040516001600160a01b039094166024850152602002919091013560448301525060640160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610f0b8782611d91565b50600101610e45565b505050505050565b6000546001600160a01b03163314610f465760405162461bcd60e51b81526004016105c2906123cf565b6007805460ff60a01b1916600160a01b1790556040517f4426aa1fb73e391071491fcfe21a88b5c38a0a0333a1f6e77161470439704cf890600090a1565b6000546001600160a01b03163314610fae5760405162461bcd60e51b81526004016105c2906123cf565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166317066a5760e21b179052610ffb8382611d91565b600480546001600160a01b0319166001600160a01b0384169081179091556040517ffe3d977891d8a37d81321b525b70781640d7bca89d42a9ca844204831a87944390600090a2505050565b6000546001600160a01b031633146110715760405162461bcd60e51b81526004016105c2906123cf565b60408051602481018390526001600160a01b0384166044808301919091528251808303909101815260649091019091526020810180516001600160e01b03166317b0dca160e31b1790526110c58482611d91565b6040516001600160a01b038416907f2bb25fbb42d8e727aa4821b933cc09877ef371e86860cb18c52f8fda3cf18b5c90600090a250505050565b6002546001600160a01b031633146111295760405162461bcd60e51b81526004016105c2906123cf565b604051631fea33c360e11b815281151560048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690633fd46786906024015b600060405180830381600087803b15801561118d57600080fd5b505af1158015610c34573d6000803e3d6000fd5b6000546001600160a01b031633146111cb5760405162461bcd60e51b81526004016105c2906123cf565b600754600160a01b900460ff16156111f55760405162461bcd60e51b81526004016105c2906123ee565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b031663ab18af2760e01b1790526112627f000000000000000000000000000000000000000000000000000000000000000082611d91565b5050565b6000546001600160a01b031633146112905760405162461bcd60e51b81526004016105c2906123cf565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fe53395243914ebc025ce712146f66fa5e9d3f04b308fae19ac4123350d1cd20f90600090a250565b6001546001600160a01b0316158015906112fe57506001546001600160a01b031633145b6113355760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016105c2565b60018054600080546001600160a01b0383166001600160a01b031991821681178355921690925560405190917fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3691a2565b60405163f2bc788b60e01b81526004810182905233602482015260009081908190819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f2bc788b906044016080604051808303816000875af11580156113fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114229190612443565b604080516001600160a01b0386166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166373f982c160e11b179052939750919550935091506114798482611d91565b604051637c643b2f60e11b81523360048201526001600160a01b0385811660248301528481166044830152838116606483015286169063f8c8765e90608401600060405180830381600087803b1580156114d257600080fd5b505af11580156114e6573d6000803e3d6000fd5b50506040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660248201527f641a6cd0b01d626ff79f5bf07316ecb119eca316f9670e73b1e2c17c65b136749250604401905060408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290506115808582611d91565b509295945050505050565b6002546001600160a01b031633146115b55760405162461bcd60e51b81526004016105c2906123cf565b604051639abd9b0560e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639abd9b0590602401611173565b6002546001600160a01b0316331461162c5760405162461bcd60e51b81526004016105c2906123cf565b604051637d2c770160e11b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063fa58ee0290602401611173565b6002546001600160a01b031633146116a45760405162461bcd60e51b81526004016105c2906123cf565b604051631574ca1360e31b81526001600160a01b038481166004830152838116602483015282811660448301527f0000000000000000000000000000000000000000000000000000000000000000169063aba6509890606401600060405180830381600087803b15801561171757600080fd5b505af115801561172b573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b0316331461175e5760405162461bcd60e51b81526004016105c2906123cf565b6117726001600160a01b0384168284611e72565b826001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28836040516117ad91815260200190565b60405180910390a2505050565b600654604051635b61513760e01b81526001600160a01b0391821660048201527f000000000000000000000000000000000000000000000000000000000000000090911690635b61513790602401600060405180830381600087803b15801561182257600080fd5b505af1158015610d9e573d6000803e3d6000fd5b6000546001600160a01b031633146118605760405162461bcd60e51b81526004016105c2906123cf565b600680546001600160a01b038481166001600160a01b03199283168117909355600780549185169190921681179091556040519081527f3a9d8023bb532a0a0a7e5f7faa95c528ab9a421cb4cb36151244b727d9ba9a2a90602001610cc1565b6000546001600160a01b031633146118ea5760405162461bcd60e51b81526004016105c2906123cf565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6008546000906001600160a01b031615611a5d5760065460075460085460405163af688fed60e01b81526001600160a01b0393841660048201529183166024830152821660448201527f00000000000000000000000000000000000000000000000000000000000000009091169063af688fed906064016020604051808303816000875af11580156119ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ee9190612497565b9050600860009054906101000a90046001600160a01b03166001600160a01b031663ba69ebed6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611a4057600080fd5b505af1158015611a54573d6000803e3d6000fd5b50505050611b02565b60065460075460405163af688fed60e01b81526001600160a01b03928316600482015290821660248201523060448201527f00000000000000000000000000000000000000000000000000000000000000009091169063af688fed906064016020604051808303816000875af1158015611adb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aff9190612497565b90505b6040518181527f83db9dc084973306ecd0b0f10cb495b81dd9ddcc135eb7934d2723bcabc8f4c39060200160405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663abca72906040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb79190612410565b6001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611bf157600080fd5b505af1158015611c05573d6000803e3d6000fd5b50505050600560009054906101000a90046001600160a01b03166001600160a01b031663ba69ebed6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561118d57600080fd5b6000546001600160a01b03163314611c835760405162461bcd60e51b81526004016105c2906123cf565b600880546001600160a01b0319166001600160a01b0383169081179091556040517fee58b2ec759bf63301361bbf3ae13e1923996d6493ef4e5825537b817443fbb390600090a250565b6000546001600160a01b03163314611cf75760405162461bcd60e51b81526004016105c2906123cf565b604080516001600160a01b038316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d488482611d91565b836001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2884604051611d8391815260200190565b60405180910390a250505050565b604051635b0e93fb60e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b61d27f690611de490869085908790600401612508565b6000604051808303816000875af1158015611e03573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e2b919081019061254e565b50905080611e6d5760405162461bcd60e51b815260206004820152600f60248201526e141c9bde1e4810d85b1b0811985a5b608a1b60448201526064016105c2565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152611e6d92869291600091611f02918516908490611f82565b9050805160001480611f23575080806020019051810190611f239190612611565b611e6d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c2565b6060611f918484600085611f99565b949350505050565b606082471015611ffa5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c2565b600080866001600160a01b03168587604051612016919061262e565b60006040518083038185875af1925050503d8060008114612053576040519150601f19603f3d011682016040523d82523d6000602084013e612058565b606091505b509150915061206987838387612074565b979650505050505050565b606083156120e05782516120d9576001600160a01b0385163b6120d95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c2565b5081611f91565b611f9183838151156120f55781518083602001fd5b8060405162461bcd60e51b81526004016105c2919061264a565b6001600160a01b038116811461065957600080fd5b6000806000806080858703121561213a57600080fd5b843593506020850135925060408501359150606085013561215a8161210f565b939692955090935050565b6000806040838503121561217857600080fd5b82356121838161210f565b915060208301356121938161210f565b809150509250929050565b801515811461065957600080fd5b6000806000606084860312156121c157600080fd5b83356121cc8161210f565b92506020840135915060408401356121e38161219e565b809150509250925092565b60006020828403121561220057600080fd5b813561220b8161210f565b9392505050565b60008083601f84011261222457600080fd5b50813567ffffffffffffffff81111561223c57600080fd5b6020830191508360208260051b850101111561225757600080fd5b9250929050565b60008060008060006060868803121561227657600080fd5b85356122818161210f565b9450602086013567ffffffffffffffff8082111561229e57600080fd5b6122aa89838a01612212565b909650945060408801359150808211156122c357600080fd5b506122d088828901612212565b969995985093965092949392505050565b6000806000606084860312156122f657600080fd5b83356123018161210f565b925060208401356123118161210f565b929592945050506040919091013590565b60006020828403121561233457600080fd5b813561220b8161219e565b60006020828403121561235157600080fd5b5035919050565b60008060006060848603121561236d57600080fd5b83356123788161210f565b925060208401356123888161210f565b915060408401356121e38161210f565b6000806000606084860312156123ad57600080fd5b83356123b88161210f565b92506020840135915060408401356121e38161210f565b602080825260059082015264042c2eae8d60db1b604082015260600190565b60208082526008908201526739b43aba3237bbb760c11b604082015260600190565b60006020828403121561242257600080fd5b815161220b8161210f565b634e487b7160e01b600052603260045260246000fd5b6000806000806080858703121561245957600080fd5b84516124648161210f565b60208601519094506124758161210f565b60408601519093506124868161210f565b606086015190925061215a8161210f565b6000602082840312156124a957600080fd5b5051919050565b60005b838110156124cb5781810151838201526020016124b3565b83811115610d9e5750506000910152565b600081518084526124f48160208601602086016124b0565b601f01601f19169290920160200192915050565b60018060a01b038416815282602082015260606040820152600061252f60608301846124dc565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561256157600080fd5b825161256c8161219e565b602084015190925067ffffffffffffffff8082111561258a57600080fd5b818501915085601f83011261259e57600080fd5b8151818111156125b0576125b0612538565b604051601f8201601f19908116603f011681019083821181831017156125d8576125d8612538565b816040528281528860208487010111156125f157600080fd5b6126028360208301602088016124b0565b80955050505050509250929050565b60006020828403121561262357600080fd5b815161220b8161219e565b600082516126408184602087016124b0565b9190910192915050565b60208152600061220b60208301846124dc56fea2646970667358221220badd4a5fa640192c7c5c21cd1174881cd413ce99a98675726ba561389b3538fa64736f6c634300080a003300000000000000000000000059cfcd384746ec3035299d90782be065e466800b00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a69000000000000000000000000c9acb83ada68413a6aa57007bc720ee2e2b3c46d
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102485760003560e01c80639f00332b1161013b578063c16d9d39116100b8578063d3051bc01161007c578063d3051bc014610525578063d579bb5314610538578063dc4c90d31461054b578063e30c39781461055e578063ec5568891461057157600080fd5b8063c16d9d39146104bb578063c42069ec146104ce578063c9893697146104e1578063cc6212b0146104f4578063d294f0931461051d57600080fd5b8063b20cc6a4116100ff578063b20cc6a414610442578063b3a408b814610455578063b51609b41461047c578063b8ceb82a1461048f578063bf86d6901461049757600080fd5b80639f00332b146103cf578063a3541271146103e2578063aba65098146103f5578063ae5db6ec14610408578063afcff50f1461041b57600080fd5b80633b788da9116101c95780638da5cb5b1161018d5780638da5cb5b1461037b5780639066cfb71461038e57806399f4a389146103a15780639abbdf4b146103a95780639abd9b05146103bc57600080fd5b80633b788da9146103145780633fd46786146103275780635f426cc01461033a5780637aef67151461034d5780637d4234461461036057600080fd5b806312d320c51161021057806312d320c5146102c0578063153ee554146102d3578063333f3912146102e6578063354af919146102f957806338178d951461030157600080fd5b80630a1d999f1461024d5780630a7d7d4a146102575780630cc5005c1461026a5780630f4ef8a61461027d5780630fd787b5146102ad575b600080fd5b610255610598565b005b610255610265366004612124565b61065c565b610255610278366004612165565b610746565b600354610290906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6102556102bb366004612165565b610c3b565b6102556102ce3660046121ac565b610ccd565b6102556102e13660046121ee565b610da4565b6102556102f436600461225e565b610e18565b610255610f1c565b61025561030f366004612165565b610f84565b6102556103223660046122e1565b611047565b610255610335366004612322565b6110ff565b6102556103483660046121ee565b6111a1565b61025561035b3660046121ee565b611266565b610290733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b600054610290906001600160a01b031681565b600854610290906001600160a01b031681565b6102556112da565b6102906103b736600461233f565b611386565b6102556103ca36600461233f565b61158b565b600454610290906001600160a01b031681565b6102556103f03660046121ee565b611602565b610255610403366004612358565b61167a565b600554610290906001600160a01b031681565b6102907f00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a6981565b600754610290906001600160a01b031681565b6102907f000000000000000000000000c9acb83ada68413a6aa57007bc720ee2e2b3c46d81565b61025561048a366004612398565b611734565b6102556117ba565b6007546104ab90600160a01b900460ff1681565b60405190151581526020016102a4565b6102556104c9366004612165565b611836565b6102556104dc3660046121ee565b6118c0565b600654610290906001600160a01b031681565b6102906105023660046121ee565b6009602052600090815260409020546001600160a01b031681565b610255611934565b6102556105333660046121ee565b611c59565b610255610546366004612398565b611ccd565b600254610290906001600160a01b031681565b600154610290906001600160a01b031681565b6102907f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b81565b6000546001600160a01b031633146105cb5760405162461bcd60e51b81526004016105c2906123cf565b60405180910390fd5b600754600160a01b900460ff16156105f55760405162461bcd60e51b81526004016105c2906123ee565b60408051306024808301919091528251808303909101815260449091019091526020810180516001600160e01b031663b3ab15fb60e01b1790526106597f00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a6982611d91565b50565b6000546001600160a01b031633146106865760405162461bcd60e51b81526004016105c2906123cf565b600754600160a01b900460ff16156106b05760405162461bcd60e51b81526004016105c2906123ee565b60408051602481018690526044810185905260648082018590528251808303909101815260849091019091526020810180516001600160e01b031663cec10c1160e01b1790526107207f000000000000000000000000c9acb83ada68413a6aa57007bc720ee2e2b3c46d82611d91565b50600580546001600160a01b0319166001600160a01b0392909216919091179055505050565b600754600160a01b900460ff16156107705760405162461bcd60e51b81526004016105c2906123ee565b6000826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156107b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d69190612410565b90506001600160a01b0381163314806107f957506000546001600160a01b031633145b6108155760405162461bcd60e51b81526004016105c2906123cf565b6001600160a01b03828116600090815260096020526040902054166108655760405162461bcd60e51b81526020600482015260066024820152652170726f787960d01b60448201526064016105c2565b6040805160048152602481019091526020810180516001600160e01b031663152aa42160e11b1790526108988482611d91565b6000846001600160a01b031663d7c04a466040518163ffffffff1660e01b81526004016020604051808303816000875af11580156108da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fe9190612410565b90507f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b6001600160a01b0316816001600160a01b031614156109eb57604080516001600160a01b03871660248083018290528351808403909101815260449092018352602080830180516001600160e01b03166373f982c160e11b17905283516335ed2f8960e21b815293519295506109e693919263d7b4be2492600480820193929182900301816000875af11580156109bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e09190612410565b83611d91565b610a5a565b6001600160a01b03818116600090815260096020526040908190205490516373f982c160e11b8152878316600482015291169063e7f3058290602401600060405180830381600087803b158015610a4157600080fd5b505af1158015610a55573d6000803e3d6000fd5b505050505b7f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b6001600160a01b0316846001600160a01b03161415610b1b57604080516001600160a01b03871660248083018290528351808403909101815260449092018352602080830180516001600160e01b03166373f982c160e11b17905283516335ed2f8960e21b81529351929550610b1693919263d7b4be2492600480820193929182900301816000875af11580156109bc573d6000803e3d6000fd5b610b8a565b6001600160a01b03848116600090815260096020526040908190205490516373f982c160e11b8152878316600482015291169063e7f3058290602401600060405180830381600087803b158015610b7157600080fd5b505af1158015610b85573d6000803e3d6000fd5b505050505b6040516001600160a01b03851660248201527f641a6cd0b01d626ff79f5bf07316ecb119eca316f9670e73b1e2c17c65b136749060440160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529150610bff8583611d91565b6040805160048152602481019091526020810180516001600160e01b031663152aa42160e11b1790529150610c348583611d91565b5050505050565b6000546001600160a01b03163314610c655760405162461bcd60e51b81526004016105c2906123cf565b6001600160a01b0382811660008181526009602090815260409182902080546001600160a01b0319169486169485179055905192835290917fb91b1bd9de2775f6673be2dbf6acc1d0d524f3b2b4e547eaab3b770a6b8d617e91015b60405180910390a25050565b6004546001600160a01b03163314610d175760405162461bcd60e51b815260206004820152600d60248201526c21766f746544656c656761746560981b60448201526064016105c2565b60007f567813887e9a02f0fdc9e5cce34dad3f5e8ac785aa0259ba5d30339dd056cd238383610d47576000610d4a565b60015b604051602481019290925260ff16604482015260640160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610d9e8482611d91565b50505050565b6000546001600160a01b03163314610dce5760405162461bcd60e51b81526004016105c2906123cf565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f3ca93d0ab216ddc34a69d5e754afd4c484dc270149e769b81e9c4d244ce6a56a90600090a250565b6000546001600160a01b03163314610e425760405162461bcd60e51b81526004016105c2906123cf565b60005b83811015610f145760007fd7136328d183ca84da1077f1bb26d5301594537a6b326c5831b74e07229dc289868684818110610e8257610e8261242d565b9050602002016020810190610e9791906121ee565b858585818110610ea957610ea961242d565b6040516001600160a01b039094166024850152602002919091013560448301525060640160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610f0b8782611d91565b50600101610e45565b505050505050565b6000546001600160a01b03163314610f465760405162461bcd60e51b81526004016105c2906123cf565b6007805460ff60a01b1916600160a01b1790556040517f4426aa1fb73e391071491fcfe21a88b5c38a0a0333a1f6e77161470439704cf890600090a1565b6000546001600160a01b03163314610fae5760405162461bcd60e51b81526004016105c2906123cf565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166317066a5760e21b179052610ffb8382611d91565b600480546001600160a01b0319166001600160a01b0384169081179091556040517ffe3d977891d8a37d81321b525b70781640d7bca89d42a9ca844204831a87944390600090a2505050565b6000546001600160a01b031633146110715760405162461bcd60e51b81526004016105c2906123cf565b60408051602481018390526001600160a01b0384166044808301919091528251808303909101815260649091019091526020810180516001600160e01b03166317b0dca160e31b1790526110c58482611d91565b6040516001600160a01b038416907f2bb25fbb42d8e727aa4821b933cc09877ef371e86860cb18c52f8fda3cf18b5c90600090a250505050565b6002546001600160a01b031633146111295760405162461bcd60e51b81526004016105c2906123cf565b604051631fea33c360e11b815281151560048201527f00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a696001600160a01b031690633fd46786906024015b600060405180830381600087803b15801561118d57600080fd5b505af1158015610c34573d6000803e3d6000fd5b6000546001600160a01b031633146111cb5760405162461bcd60e51b81526004016105c2906123cf565b600754600160a01b900460ff16156111f55760405162461bcd60e51b81526004016105c2906123ee565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b031663ab18af2760e01b1790526112627f000000000000000000000000c9acb83ada68413a6aa57007bc720ee2e2b3c46d82611d91565b5050565b6000546001600160a01b031633146112905760405162461bcd60e51b81526004016105c2906123cf565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fe53395243914ebc025ce712146f66fa5e9d3f04b308fae19ac4123350d1cd20f90600090a250565b6001546001600160a01b0316158015906112fe57506001546001600160a01b031633145b6113355760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016105c2565b60018054600080546001600160a01b0383166001600160a01b031991821681178355921690925560405190917fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3691a2565b60405163f2bc788b60e01b81526004810182905233602482015260009081908190819081906001600160a01b037f00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a69169063f2bc788b906044016080604051808303816000875af11580156113fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114229190612443565b604080516001600160a01b0386166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166373f982c160e11b179052939750919550935091506114798482611d91565b604051637c643b2f60e11b81523360048201526001600160a01b0385811660248301528481166044830152838116606483015286169063f8c8765e90608401600060405180830381600087803b1580156114d257600080fd5b505af11580156114e6573d6000803e3d6000fd5b50506040516001600160a01b037f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b1660248201527f641a6cd0b01d626ff79f5bf07316ecb119eca316f9670e73b1e2c17c65b136749250604401905060408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290506115808582611d91565b509295945050505050565b6002546001600160a01b031633146115b55760405162461bcd60e51b81526004016105c2906123cf565b604051639abd9b0560e01b8152600481018290527f00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a696001600160a01b031690639abd9b0590602401611173565b6002546001600160a01b0316331461162c5760405162461bcd60e51b81526004016105c2906123cf565b604051637d2c770160e11b81526001600160a01b0382811660048301527f00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a69169063fa58ee0290602401611173565b6002546001600160a01b031633146116a45760405162461bcd60e51b81526004016105c2906123cf565b604051631574ca1360e31b81526001600160a01b038481166004830152838116602483015282811660448301527f00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a69169063aba6509890606401600060405180830381600087803b15801561171757600080fd5b505af115801561172b573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b0316331461175e5760405162461bcd60e51b81526004016105c2906123cf565b6117726001600160a01b0384168284611e72565b826001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28836040516117ad91815260200190565b60405180910390a2505050565b600654604051635b61513760e01b81526001600160a01b0391821660048201527f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b90911690635b61513790602401600060405180830381600087803b15801561182257600080fd5b505af1158015610d9e573d6000803e3d6000fd5b6000546001600160a01b031633146118605760405162461bcd60e51b81526004016105c2906123cf565b600680546001600160a01b038481166001600160a01b03199283168117909355600780549185169190921681179091556040519081527f3a9d8023bb532a0a0a7e5f7faa95c528ab9a421cb4cb36151244b727d9ba9a2a90602001610cc1565b6000546001600160a01b031633146118ea5760405162461bcd60e51b81526004016105c2906123cf565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6008546000906001600160a01b031615611a5d5760065460075460085460405163af688fed60e01b81526001600160a01b0393841660048201529183166024830152821660448201527f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b9091169063af688fed906064016020604051808303816000875af11580156119ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ee9190612497565b9050600860009054906101000a90046001600160a01b03166001600160a01b031663ba69ebed6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611a4057600080fd5b505af1158015611a54573d6000803e3d6000fd5b50505050611b02565b60065460075460405163af688fed60e01b81526001600160a01b03928316600482015290821660248201523060448201527f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b9091169063af688fed906064016020604051808303816000875af1158015611adb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aff9190612497565b90505b6040518181527f83db9dc084973306ecd0b0f10cb495b81dd9ddcc135eb7934d2723bcabc8f4c39060200160405180910390a17f000000000000000000000000c9acb83ada68413a6aa57007bc720ee2e2b3c46d6001600160a01b031663abca72906040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb79190612410565b6001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611bf157600080fd5b505af1158015611c05573d6000803e3d6000fd5b50505050600560009054906101000a90046001600160a01b03166001600160a01b031663ba69ebed6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561118d57600080fd5b6000546001600160a01b03163314611c835760405162461bcd60e51b81526004016105c2906123cf565b600880546001600160a01b0319166001600160a01b0383169081179091556040517fee58b2ec759bf63301361bbf3ae13e1923996d6493ef4e5825537b817443fbb390600090a250565b6000546001600160a01b03163314611cf75760405162461bcd60e51b81526004016105c2906123cf565b604080516001600160a01b038316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d488482611d91565b836001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2884604051611d8391815260200190565b60405180910390a250505050565b604051635b0e93fb60e11b81526000906001600160a01b037f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b169063b61d27f690611de490869085908790600401612508565b6000604051808303816000875af1158015611e03573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e2b919081019061254e565b50905080611e6d5760405162461bcd60e51b815260206004820152600f60248201526e141c9bde1e4810d85b1b0811985a5b608a1b60448201526064016105c2565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152611e6d92869291600091611f02918516908490611f82565b9050805160001480611f23575080806020019051810190611f239190612611565b611e6d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c2565b6060611f918484600085611f99565b949350505050565b606082471015611ffa5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c2565b600080866001600160a01b03168587604051612016919061262e565b60006040518083038185875af1925050503d8060008114612053576040519150601f19603f3d011682016040523d82523d6000602084013e612058565b606091505b509150915061206987838387612074565b979650505050505050565b606083156120e05782516120d9576001600160a01b0385163b6120d95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c2565b5081611f91565b611f9183838151156120f55781518083602001fd5b8060405162461bcd60e51b81526004016105c2919061264a565b6001600160a01b038116811461065957600080fd5b6000806000806080858703121561213a57600080fd5b843593506020850135925060408501359150606085013561215a8161210f565b939692955090935050565b6000806040838503121561217857600080fd5b82356121838161210f565b915060208301356121938161210f565b809150509250929050565b801515811461065957600080fd5b6000806000606084860312156121c157600080fd5b83356121cc8161210f565b92506020840135915060408401356121e38161219e565b809150509250925092565b60006020828403121561220057600080fd5b813561220b8161210f565b9392505050565b60008083601f84011261222457600080fd5b50813567ffffffffffffffff81111561223c57600080fd5b6020830191508360208260051b850101111561225757600080fd5b9250929050565b60008060008060006060868803121561227657600080fd5b85356122818161210f565b9450602086013567ffffffffffffffff8082111561229e57600080fd5b6122aa89838a01612212565b909650945060408801359150808211156122c357600080fd5b506122d088828901612212565b969995985093965092949392505050565b6000806000606084860312156122f657600080fd5b83356123018161210f565b925060208401356123118161210f565b929592945050506040919091013590565b60006020828403121561233457600080fd5b813561220b8161219e565b60006020828403121561235157600080fd5b5035919050565b60008060006060848603121561236d57600080fd5b83356123788161210f565b925060208401356123888161210f565b915060408401356121e38161210f565b6000806000606084860312156123ad57600080fd5b83356123b88161210f565b92506020840135915060408401356121e38161210f565b602080825260059082015264042c2eae8d60db1b604082015260600190565b60208082526008908201526739b43aba3237bbb760c11b604082015260600190565b60006020828403121561242257600080fd5b815161220b8161210f565b634e487b7160e01b600052603260045260246000fd5b6000806000806080858703121561245957600080fd5b84516124648161210f565b60208601519094506124758161210f565b60408601519093506124868161210f565b606086015190925061215a8161210f565b6000602082840312156124a957600080fd5b5051919050565b60005b838110156124cb5781810151838201526020016124b3565b83811115610d9e5750506000910152565b600081518084526124f48160208601602086016124b0565b601f01601f19169290920160200192915050565b60018060a01b038416815282602082015260606040820152600061252f60608301846124dc565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561256157600080fd5b825161256c8161219e565b602084015190925067ffffffffffffffff8082111561258a57600080fd5b818501915085601f83011261259e57600080fd5b8151818111156125b0576125b0612538565b604051601f8201601f19908116603f011681019083821181831017156125d8576125d8612538565b816040528281528860208487010111156125f157600080fd5b6126028360208301602088016124b0565b80955050505050509250929050565b60006020828403121561262357600080fd5b815161220b8161219e565b600082516126408184602087016124b0565b9190910192915050565b60208152600061220b60208301846124dc56fea2646970667358221220badd4a5fa640192c7c5c21cd1174881cd413ce99a98675726ba561389b3538fa64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000059cfcd384746ec3035299d90782be065e466800b00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a69000000000000000000000000c9acb83ada68413a6aa57007bc720ee2e2b3c46d
-----Decoded View---------------
Arg [0] : _proxy (address): 0x59CFCD384746ec3035299D90782Be065e466800B
Arg [1] : _poolReg (address): 0x41a5881c17185383e19Df6FA4EC158a6F4851A69
Arg [2] : _feeReg (address): 0xC9aCB83ADa68413a6Aa57007BC720EE2E2b3C46D
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000059cfcd384746ec3035299d90782be065e466800b
Arg [1] : 00000000000000000000000041a5881c17185383e19df6fa4ec158a6f4851a69
Arg [2] : 000000000000000000000000c9acb83ada68413a6aa57007bc720ee2e2b3c46d
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.