Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15362160 | 739 days ago | IN | 0 ETH | 0.05569848 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingProxyConvex
Compiler Version
v0.8.10+commit.fc410830
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.8.10; import "./interfaces/ICurveConvex.sol"; import "./interfaces/IConvexWrapper.sol"; import "./StakingProxyBase.sol"; import "./interfaces/IFraxFarmERC20.sol"; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract StakingProxyConvex is StakingProxyBase, ReentrancyGuard{ using SafeERC20 for IERC20; address public constant poolRegistry = address(0x7413bFC877B5573E29f964d572f421554d8EDF86); address public constant convexCurveBooster = address(0xF403C135812408BFbE8713b5A23a04b3D48AAE31); address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52); address public constant cvx = address(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B); address public curveLpToken; address public convexDepositToken; constructor() { } function vaultType() external pure override returns(VaultType){ return VaultType.Convex; } function vaultVersion() external pure override returns(uint256){ return 3; } //initialize vault function initialize(address _owner, address _stakingAddress, address _stakingToken, address _rewardsAddress) external override{ require(owner == address(0),"already init"); //set variables owner = _owner; stakingAddress = _stakingAddress; stakingToken = _stakingToken; rewards = _rewardsAddress; //get tokens from pool info (address _lptoken, address _token,,, , ) = ICurveConvex(convexCurveBooster).poolInfo(IConvexWrapper(_stakingToken).convexPoolId()); curveLpToken = _lptoken; convexDepositToken = _token; //set infinite approvals IERC20(_stakingToken).approve(_stakingAddress, type(uint256).max); IERC20(_lptoken).approve(_stakingToken, type(uint256).max); IERC20(_token).approve(_stakingToken, type(uint256).max); } //create a new locked state of _secs timelength with a Curve LP token function stakeLockedCurveLp(uint256 _liquidity, uint256 _secs) external onlyOwner nonReentrant returns (bytes32 kek_id){ if(_liquidity > 0){ //pull tokens from user IERC20(curveLpToken).safeTransferFrom(msg.sender, address(this), _liquidity); //deposit into wrapper IConvexWrapper(stakingToken).deposit(_liquidity, address(this)); //stake kek_id = IFraxFarmERC20(stakingAddress).stakeLocked(_liquidity, _secs); } //checkpoint rewards _checkpointRewards(); } //create a new locked state of _secs timelength with a Convex deposit token function stakeLockedConvexToken(uint256 _liquidity, uint256 _secs) external onlyOwner nonReentrant returns (bytes32 kek_id){ if(_liquidity > 0){ //pull tokens from user IERC20(convexDepositToken).safeTransferFrom(msg.sender, address(this), _liquidity); //stake into wrapper IConvexWrapper(stakingToken).stake(_liquidity, address(this)); //stake into frax kek_id = IFraxFarmERC20(stakingAddress).stakeLocked(_liquidity, _secs); } //checkpoint rewards _checkpointRewards(); } //create a new locked state of _secs timelength function stakeLocked(uint256 _liquidity, uint256 _secs) external onlyOwner nonReentrant returns (bytes32 kek_id){ if(_liquidity > 0){ //pull tokens from user IERC20(stakingToken).safeTransferFrom(msg.sender, address(this), _liquidity); //stake kek_id = IFraxFarmERC20(stakingAddress).stakeLocked(_liquidity, _secs); } //checkpoint rewards _checkpointRewards(); } //add to a current lock function lockAdditional(bytes32 _kek_id, uint256 _addl_liq) external onlyOwner nonReentrant{ if(_addl_liq > 0){ //pull tokens from user IERC20(stakingToken).safeTransferFrom(msg.sender, address(this), _addl_liq); //add stake IFraxFarmERC20(stakingAddress).lockAdditional(_kek_id, _addl_liq); } //checkpoint rewards _checkpointRewards(); } //add to a current lock function lockAdditionalCurveLp(bytes32 _kek_id, uint256 _addl_liq) external onlyOwner nonReentrant{ if(_addl_liq > 0){ //pull tokens from user IERC20(curveLpToken).safeTransferFrom(msg.sender, address(this), _addl_liq); //deposit into wrapper IConvexWrapper(stakingToken).deposit(_addl_liq, address(this)); //add stake IFraxFarmERC20(stakingAddress).lockAdditional(_kek_id, _addl_liq); } //checkpoint rewards _checkpointRewards(); } //add to a current lock function lockAdditionalConvexToken(bytes32 _kek_id, uint256 _addl_liq) external onlyOwner nonReentrant{ if(_addl_liq > 0){ //pull tokens from user IERC20(convexDepositToken).safeTransferFrom(msg.sender, address(this), _addl_liq); //stake into wrapper IConvexWrapper(stakingToken).stake(_addl_liq, address(this)); //add stake IFraxFarmERC20(stakingAddress).lockAdditional(_kek_id, _addl_liq); } //checkpoint rewards _checkpointRewards(); } // Extends the lock of an existing stake function lockLonger(bytes32 _kek_id, uint256 new_ending_ts) external onlyOwner nonReentrant{ //update time IFraxFarmERC20(stakingAddress).lockLonger(_kek_id, new_ending_ts); //checkpoint rewards _checkpointRewards(); } //withdraw a staked position //frax farm transfers first before updating farm state so will checkpoint during transfer function withdrawLocked(bytes32 _kek_id) external onlyOwner nonReentrant{ //withdraw directly to owner(msg.sender) IFraxFarmERC20(stakingAddress).withdrawLocked(_kek_id, msg.sender); //checkpoint rewards _checkpointRewards(); } //withdraw a staked position //frax farm transfers first before updating farm state so will checkpoint during transfer function withdrawLockedAndUnwrap(bytes32 _kek_id) external onlyOwner nonReentrant{ //withdraw IFraxFarmERC20(stakingAddress).withdrawLocked(_kek_id, address(this)); //unwrap IConvexWrapper(stakingToken).withdrawAndUnwrap(IERC20(stakingToken).balanceOf(address(this))); IERC20(curveLpToken).transfer(owner,IERC20(curveLpToken).balanceOf(address(this))); //checkpoint rewards _checkpointRewards(); } //helper function to combine earned tokens on staking contract and any tokens that are on this vault function earned() external view override returns (address[] memory token_addresses, uint256[] memory total_earned) { //get list of reward tokens address[] memory rewardTokens = IFraxFarmERC20(stakingAddress).getAllRewardTokens(); uint256[] memory stakedearned = IFraxFarmERC20(stakingAddress).earned(address(this)); IConvexWrapper.EarnedData[] memory convexrewards = IConvexWrapper(stakingToken).earned(address(this)); uint256 extraRewardsLength = IRewards(rewards).rewardTokenLength(); token_addresses = new address[](rewardTokens.length + extraRewardsLength + convexrewards.length); total_earned = new uint256[](rewardTokens.length + extraRewardsLength + convexrewards.length); //add any tokens that happen to be already claimed but sitting on the vault //(ex. withdraw claiming rewards) for(uint256 i = 0; i < rewardTokens.length; i++){ token_addresses[i] = rewardTokens[i]; total_earned[i] = stakedearned[i] + IERC20(rewardTokens[i]).balanceOf(address(this)); } IRewards.EarnedData[] memory extraRewards = IRewards(rewards).claimableRewards(address(this)); for(uint256 i = 0; i < extraRewards.length; i++){ token_addresses[i+rewardTokens.length] = extraRewards[i].token; total_earned[i+rewardTokens.length] = extraRewards[i].amount; } //add convex farm earned tokens for(uint256 i = 0; i < convexrewards.length; i++){ token_addresses[i+rewardTokens.length+extraRewardsLength] = convexrewards[i].token; total_earned[i+rewardTokens.length+extraRewardsLength] = convexrewards[i].amount; } } /* claim flow: claim rewards directly to the vault calculate fees to send to fee deposit send fxs to a holder contract for fees get reward list of tokens that were received send all remaining tokens to owner A slightly less gas intensive approach could be to send rewards directly to a holder contract and have it sort everything out. However that makes the logic a bit more complex as well as runs a few future proofing risks */ function getReward() external override{ getReward(true); } //get reward with claim option. //_claim bool is for the off chance that rewardCollectionPause is true so getReward() fails but //there are tokens on this vault for cases such as withdraw() also calling claim. //can also be used to rescue tokens on the vault function getReward(bool _claim) public override{ //claim if(_claim){ //claim frax farm IFraxFarmERC20(stakingAddress).getReward(address(this)); //claim convex farm and forward to owner IConvexWrapper(stakingToken).getReward(address(this),owner); //double check there have been no crv/cvx claims directly to this address uint256 b = IERC20(crv).balanceOf(address(this)); if(b > 0){ IERC20(crv).safeTransfer(owner, b); } b = IERC20(cvx).balanceOf(address(this)); if(b > 0){ IERC20(cvx).safeTransfer(owner, b); } } //process fxs fees _processFxs(); //get list of reward tokens address[] memory rewardTokens = IFraxFarmERC20(stakingAddress).getAllRewardTokens(); //transfer _transferTokens(rewardTokens); //extra rewards _processExtraRewards(); } //auxiliary function to supply token list(save a bit of gas + dont have to claim everything) //_claim bool is for the off chance that rewardCollectionPause is true so getReward() fails but //there are tokens on this vault for cases such as withdraw() also calling claim. //can also be used to rescue tokens on the vault function getReward(bool _claim, address[] calldata _rewardTokenList) external override{ //claim if(_claim){ //claim frax farm IFraxFarmERC20(stakingAddress).getReward(address(this)); //claim convex farm and forward to owner IConvexWrapper(stakingToken).getReward(address(this),owner); } //process fxs fees _processFxs(); //transfer _transferTokens(_rewardTokenList); //extra rewards _processExtraRewards(); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IRewards{ struct EarnedData { address token; uint256 amount; } function initialize(uint256 _pid, bool _startActive) external; function addReward(address _rewardsToken, address _distributor) external; function approveRewardDistributor( address _rewardsToken, address _distributor, bool _approved ) external; function deposit(address _owner, uint256 _amount) external; function withdraw(address _owner, uint256 _amount) external; function getReward(address _forward) external; function notifyRewardAmount(address _rewardsToken, uint256 _reward) external; function balanceOf(address account) external view returns (uint256); function claimableRewards(address _account) external view returns(EarnedData[] memory userRewards); function rewardTokens(uint256 _rid) external view returns (address); function rewardTokenLength() external view returns(uint256); function active() external view returns(bool); }
// 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 view returns (address[] memory token_addresses, uint256[] memory total_earned); }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; interface IFraxFarmERC20 { struct LockedStake { bytes32 kek_id; uint256 start_timestamp; uint256 liquidity; uint256 ending_timestamp; uint256 lock_multiplier; // 6 decimals of precision. 1x = 1000000 } function owner() external view returns (address); function stakingToken() external view returns (address); function fraxPerLPToken() external view returns (uint256); function calcCurCombinedWeight(address account) external view returns ( uint256 old_combined_weight, uint256 new_vefxs_multiplier, uint256 new_combined_weight ); function lockedStakesOf(address account) external view returns (LockedStake[] memory); function lockedStakesOfLength(address account) external view returns (uint256); function lockAdditional(bytes32 kek_id, uint256 addl_liq) external; function lockLonger(bytes32 kek_id, uint256 new_ending_ts) external; function stakeLocked(uint256 liquidity, uint256 secs) external returns (bytes32); function withdrawLocked(bytes32 kek_id, address destination_address) external returns (uint256); function periodFinish() external view returns (uint256); function getAllRewardTokens() external view returns (address[] memory); function earned(address account) external view returns (uint256[] memory new_earned); function totalLiquidityLocked() external view returns (uint256); function lockedLiquidityOf(address account) external view returns (uint256); function totalCombinedWeight() external view returns (uint256); function combinedWeightOf(address account) external view returns (uint256); function lockMultiplier(uint256 secs) external view returns (uint256); function rewardRates(uint256 token_idx) external view returns (uint256 rwd_rate); function userStakedFrax(address account) external view returns (uint256); function proxyStakedFrax(address proxy_address) external view returns (uint256); function maxLPForMaxBoost(address account) external view returns (uint256); function minVeFXSForMaxBoost(address account) external view returns (uint256); function minVeFXSForMaxBoostProxy(address proxy_address) external view returns (uint256); function veFXSMultiplier(address account) external view returns (uint256 vefxs_multiplier); function toggleValidVeFXSProxy(address proxy_address) external; function proxyToggleStaker(address staker_address) external; function stakerSetVeFXSProxy(address proxy_address) external; function getReward(address destination_address) external returns (uint256[] memory); function vefxs_max_multiplier() external view returns(uint256); function vefxs_boost_scale_factor() external view returns(uint256); function vefxs_per_frax_for_max_boost() external view returns(uint256); function getProxyFor(address addr) external view returns (address); function sync() external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; interface IFraxFarmBase{ function totalLiquidityLocked() external view returns (uint256); function lockedLiquidityOf(address account) external view returns (uint256); function toggleValidVeFXSProxy(address proxy_address) external; function proxyToggleStaker(address staker_address) external; function stakerSetVeFXSProxy(address proxy_address) external; function getReward(address destination_address) external returns (uint256[] memory); }
// 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 ICurveConvex { function earmarkRewards(uint256 _pid) external returns(bool); function earmarkFees() external returns(bool); function poolInfo(uint256 _pid) external returns(address _lptoken, address _token, address _gauge, address _crvRewards, address _stash, bool _shutdown); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IConvexWrapper{ struct EarnedData { address token; uint256 amount; } function convexPoolId() external view returns(uint256 _poolId); function balanceOf(address _account) external view returns(uint256); function totalBalanceOf(address _account) external view returns(uint256); function deposit(uint256 _amount, address _to) external; function stake(uint256 _amount, address _to) external; function withdraw(uint256 _amount) external; function withdrawAndUnwrap(uint256 _amount) external; function getReward(address _account) external; function getReward(address _account, address _forwardTo) external; function rewardLength() external view returns(uint256); function earned(address _account) external view returns(EarnedData[] memory claimable); function setVault(address _vault) external; function user_checkpoint(address[2] calldata _accounts) external returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "./interfaces/IProxyVault.sol"; import "./interfaces/IFeeRegistry.sol"; import "./interfaces/IFraxFarmBase.sol"; import "./interfaces/IRewards.sol"; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; contract StakingProxyBase is IProxyVault{ using SafeERC20 for IERC20; address public constant fxs = address(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0); address public constant vefxsProxy = address(0x59CFCD384746ec3035299D90782Be065e466800B); address public constant feeRegistry = address(0xC9aCB83ADa68413a6Aa57007BC720EE2E2b3C46D); //fee registry address public owner; //owner of the vault address public stakingAddress; //farming contract address public stakingToken; //farming token address public rewards; //extra rewards on convex address public usingProxy; //address of proxy being used uint256 public constant FEE_DENOMINATOR = 10000; constructor() { } function vaultType() external virtual pure returns(VaultType){ return VaultType.Erc20Basic; } function vaultVersion() external virtual pure returns(uint256){ return 1; } modifier onlyOwner() { require(owner == msg.sender, "!auth"); _; } modifier onlyAdmin() { require(vefxsProxy == msg.sender, "!auth_admin"); _; } //initialize vault function initialize(address _owner, address _stakingAddress, address _stakingToken, address _rewardsAddress) external virtual{ } function changeRewards(address _rewardsAddress) external onlyAdmin{ //remove from old rewards and claim if(IRewards(rewards).active()){ uint256 bal = IRewards(rewards).balanceOf(address(this)); if(bal > 0){ IRewards(rewards).withdraw(owner, bal); } IRewards(rewards).getReward(owner); } //set to new rewards rewards = _rewardsAddress; //update balance _checkpointRewards(); } //checkpoint weight on farm by calling getReward as its the lowest cost thing to do. function checkpointRewards() external onlyAdmin{ //checkpoint the frax farm _checkpointFarm(); } function _checkpointFarm() internal{ //claim rewards to local vault as a means to checkpoint IFraxFarmBase(stakingAddress).getReward(address(this)); } function setVeFXSProxy(address _proxy) external virtual onlyAdmin{ //set the vefxs proxy _setVeFXSProxy(_proxy); } function _setVeFXSProxy(address _proxyAddress) internal{ //set proxy address on staking contract IFraxFarmBase(stakingAddress).stakerSetVeFXSProxy(_proxyAddress); usingProxy = _proxyAddress; } function getReward() external virtual{} function getReward(bool _claim) external virtual{} function getReward(bool _claim, address[] calldata _rewardTokenList) external virtual{} function earned() external view virtual returns (address[] memory token_addresses, uint256[] memory total_earned){} //checkpoint and add/remove weight to convex rewards contract function _checkpointRewards() internal{ //if rewards are active, checkpoint if(IRewards(rewards).active()){ //using liquidity shares from staking contract will handle rebasing tokens correctly uint256 userLiq = IFraxFarmBase(stakingAddress).lockedLiquidityOf(address(this)); //get current balance of reward contract uint256 bal = IRewards(rewards).balanceOf(address(this)); if(userLiq >= bal){ //add the difference to reward contract IRewards(rewards).deposit(owner, userLiq - bal); }else{ //remove the difference from the reward contract IRewards(rewards).withdraw(owner, bal - userLiq); } } } //apply fees to fxs and send remaining to owner function _processFxs() internal{ //get fee rate from fee registry uint256 totalFees = IFeeRegistry(feeRegistry).totalFees(); //send fxs fees to fee deposit uint256 fxsBalance = IERC20(fxs).balanceOf(address(this)); uint256 sendAmount = fxsBalance * totalFees / FEE_DENOMINATOR; if(sendAmount > 0){ IERC20(fxs).transfer(IFeeRegistry(feeRegistry).getFeeDepositor(usingProxy), sendAmount); } //transfer remaining fxs to owner sendAmount = IERC20(fxs).balanceOf(address(this)); if(sendAmount > 0){ IERC20(fxs).transfer(owner, sendAmount); } } //get extra rewards function _processExtraRewards() internal{ if(IRewards(rewards).active()){ //check if there is a balance because the reward contract could have be activated later //dont use _checkpointRewards since difference of 0 will still call deposit() and cost gas uint256 bal = IRewards(rewards).balanceOf(address(this)); uint256 userLiq = IFraxFarmBase(stakingAddress).lockedLiquidityOf(address(this)); if(bal == 0 && userLiq > 0){ //bal == 0 and liq > 0 can only happen if rewards were turned on after staking IRewards(rewards).deposit(owner,userLiq); } IRewards(rewards).getReward(owner); } } //transfer other reward tokens besides fxs(which needs to have fees applied) function _transferTokens(address[] memory _tokens) internal{ //transfer all tokens for(uint256 i = 0; i < _tokens.length; i++){ if(_tokens[i] != fxs){ uint256 bal = IERC20(_tokens[i]).balanceOf(address(this)); if(bal > 0){ IERC20(_tokens[i]).safeTransfer(owner, bal); } } } } }
// SPDX-License-Identifier: MIT pragma solidity ^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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.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; 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } 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"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^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.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsAddress","type":"address"}],"name":"changeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkpointRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"convexCurveBooster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"convexDepositToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curveLpToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvx","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earned","outputs":[{"internalType":"address[]","name":"token_addresses","type":"address[]"},{"internalType":"uint256[]","name":"total_earned","type":"uint256[]"}],"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":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_claim","type":"bool"},{"internalType":"address[]","name":"_rewardTokenList","type":"address[]"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_claim","type":"bool"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_stakingAddress","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardsAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_kek_id","type":"bytes32"},{"internalType":"uint256","name":"_addl_liq","type":"uint256"}],"name":"lockAdditional","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_kek_id","type":"bytes32"},{"internalType":"uint256","name":"_addl_liq","type":"uint256"}],"name":"lockAdditionalConvexToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_kek_id","type":"bytes32"},{"internalType":"uint256","name":"_addl_liq","type":"uint256"}],"name":"lockAdditionalCurveLp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_kek_id","type":"bytes32"},{"internalType":"uint256","name":"new_ending_ts","type":"uint256"}],"name":"lockLonger","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","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":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"}],"name":"setVeFXSProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidity","type":"uint256"},{"internalType":"uint256","name":"_secs","type":"uint256"}],"name":"stakeLocked","outputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidity","type":"uint256"},{"internalType":"uint256","name":"_secs","type":"uint256"}],"name":"stakeLockedConvexToken","outputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidity","type":"uint256"},{"internalType":"uint256","name":"_secs","type":"uint256"}],"name":"stakeLockedCurveLp","outputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usingProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultType","outputs":[{"internalType":"enum IProxyVault.VaultType","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"vaultVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"vefxsProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_kek_id","type":"bytes32"}],"name":"withdrawLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_kek_id","type":"bytes32"}],"name":"withdrawLockedAndUnwrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506001600555613105806100256000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80638da5cb5b1161011a578063b85efd06116100ad578063d73792a91161007c578063d73792a914610474578063d7b4be241461047d578063d7c04a4614610490578063e869565e146104a3578063f8c8765e146104b657600080fd5b8063b85efd0614610425578063cc64175114610438578063d2fbdc0d1461044b578063d6f192621461045e57600080fd5b8063a41ce7e9116100e9578063a41ce7e9146103c9578063a4698feb146103dc578063afcff50f146103ef578063b3a408b81461040a57600080fd5b80638da5cb5b1461036d578063923c1d61146103805780639ce0ff9d1461039b5780639ec5a894146103b657600080fd5b80634e7adf2c1161019d578063641a6cd01161016c578063641a6cd0146102fe578063646780df146103115780636a4874a11461032457806372f702f31461033f5780637d4234461461035257600080fd5b80634e7adf2c146102be5780634f5aefcf146102c557806351e3fc17146102d85780635eb143ce146102eb57600080fd5b80632a554842116101d95780632a5548421461028c5780633d18b912146102945780634ab794a31461029c5780634ac032be146102af57600080fd5b80630687c4bd1461020b57806317b18c8914610220578063193ba6d1146102465780632439242a14610279575b600080fd5b61021e610219366004612994565b6104c9565b005b61023361022e366004612994565b61061f565b6040519081526020015b60405180910390f35b6102617359cfcd384746ec3035299d90782be065e466800b81565b6040516001600160a01b03909116815260200161023d565b610233610287366004612994565b61071d565b61021e61082b565b61021e610868565b61021e6102aa3660046129b6565b610872565b600260405161023d91906129cf565b6003610233565b61021e6102d3366004612a05565b610ae9565b61021e6102e63660046129b6565b610c1b565b600754610261906001600160a01b031681565b61021e61030c366004612aa2565b610ce2565b600654610261906001600160a01b031681565b61026173d533a949740bb3306d119cc777fa900ba034cd5281565b600254610261906001600160a01b031681565b610261733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b600054610261906001600160a01b031681565b610261734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b61026173f403c135812408bfbe8713b5a23a04b3d48aae3181565b600354610261906001600160a01b031681565b6102336103d7366004612994565b610d21565b61021e6103ea366004612abf565b610dc9565b610261737413bfc877b5573e29f964d572f421554d8edf8681565b61026173c9acb83ada68413a6aa57007bc720ee2e2b3c46d81565b61021e610433366004612994565b61108c565b61021e610446366004612994565b611134565b61021e610459366004612994565b6111db565b610466611265565b60405161023d929190612adc565b61023361271081565b600154610261906001600160a01b031681565b600454610261906001600160a01b031681565b61021e6104b1366004612aa2565b61184c565b61021e6104c4366004612b60565b611a5f565b6000546001600160a01b031633146104fc5760405162461bcd60e51b81526004016104f390612bbc565b60405180910390fd5b6002600554141561051f5760405162461bcd60e51b81526004016104f390612bdb565b6002600555801561060e57600654610542906001600160a01b0316333084611d65565b600254604051636e553f6560e01b8152600481018390523060248201526001600160a01b0390911690636e553f65906044015b600060405180830381600087803b15801561058f57600080fd5b505af11580156105a3573d6000803e3d6000fd5b5050600154604051635c2f7e8360e11b815260048101869052602481018590526001600160a01b03909116925063b85efd0691506044015b600060405180830381600087803b1580156105f557600080fd5b505af1158015610609573d6000803e3d6000fd5b505050505b610616611dd6565b50506001600555565b600080546001600160a01b0316331461064a5760405162461bcd60e51b81526004016104f390612bbc565b6002600554141561066d5760405162461bcd60e51b81526004016104f390612bdb565b6002600555821561070a57600254610690906001600160a01b0316333086611d65565b6001546040516317b18c8960e01b815260048101859052602481018490526001600160a01b03909116906317b18c89906044015b6020604051808303816000875af11580156106e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107079190612c12565b90505b610712611dd6565b600160055592915050565b600080546001600160a01b031633146107485760405162461bcd60e51b81526004016104f390612bbc565b6002600554141561076b5760405162461bcd60e51b81526004016104f390612bdb565b6002600555821561070a5760075461078e906001600160a01b0316333086611d65565b600254604051637acb775760e01b8152600481018590523060248201526001600160a01b0390911690637acb7757906044015b600060405180830381600087803b1580156107db57600080fd5b505af11580156107ef573d6000803e3d6000fd5b50506001546040516317b18c8960e01b815260048101879052602481018690526001600160a01b0390911692506317b18c8991506044016106c4565b7359cfcd384746ec3035299d90782be065e466800b331461085e5760405162461bcd60e51b81526004016104f390612c2b565b610866611fd3565b565b6108666001610dc9565b6000546001600160a01b0316331461089c5760405162461bcd60e51b81526004016104f390612bbc565b600260055414156108bf5760405162461bcd60e51b81526004016104f390612bdb565b600260055560015460405163e44b9fa560e01b8152600481018390523060248201526001600160a01b039091169063e44b9fa5906044016020604051808303816000875af1158015610915573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109399190612c12565b506002546040516370a0823160e01b81523060048201526001600160a01b0390911690633969dfb49082906370a0823190602401602060405180830381865afa15801561098a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ae9190612c12565b6040518263ffffffff1660e01b81526004016109cc91815260200190565b600060405180830381600087803b1580156109e657600080fd5b505af11580156109fa573d6000803e3d6000fd5b50506006546000546040516370a0823160e01b81523060048201526001600160a01b03928316945063a9059cbb935091169083906370a0823190602401602060405180830381865afa158015610a54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a789190612c12565b6040518363ffffffff1660e01b8152600401610a95929190612c50565b6020604051808303816000875af1158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190612c69565b50610ae1611dd6565b506001600555565b8215610bca57600154604051630c00007b60e41b81523060048201526001600160a01b039091169063c00007b0906024016000604051808303816000875af1158015610b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b619190810190612cf1565b50600254600054604051636b09169560e01b81523060048201526001600160a01b039182166024820152911690636b09169590604401600060405180830381600087803b158015610bb157600080fd5b505af1158015610bc5573d6000803e3d6000fd5b505050505b610bd2612045565b610c0e82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061235d92505050565b610c1661249a565b505050565b6000546001600160a01b03163314610c455760405162461bcd60e51b81526004016104f390612bbc565b60026005541415610c685760405162461bcd60e51b81526004016104f390612bdb565b600260055560015460405163e44b9fa560e01b8152600481018390523360248201526001600160a01b039091169063e44b9fa5906044016020604051808303816000875af1158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190612c12565b7359cfcd384746ec3035299d90782be065e466800b3314610d155760405162461bcd60e51b81526004016104f390612c2b565b610d1e816126a7565b50565b600080546001600160a01b03163314610d4c5760405162461bcd60e51b81526004016104f390612bbc565b60026005541415610d6f5760405162461bcd60e51b81526004016104f390612bdb565b6002600555821561070a57600654610d92906001600160a01b0316333086611d65565b600254604051636e553f6560e01b8152600481018590523060248201526001600160a01b0390911690636e553f65906044016107c1565b8015610ffc57600154604051630c00007b60e41b81523060048201526001600160a01b039091169063c00007b0906024016000604051808303816000875af1158015610e19573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e419190810190612cf1565b50600254600054604051636b09169560e01b81523060048201526001600160a01b039182166024820152911690636b09169590604401600060405180830381600087803b158015610e9157600080fd5b505af1158015610ea5573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000925073d533a949740bb3306d119cc777fa900ba034cd5291506370a0823190602401602060405180830381865afa158015610efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1f9190612c12565b90508015610f5357600054610f539073d533a949740bb3306d119cc777fa900ba034cd52906001600160a01b031683612729565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610fa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc69190612c12565b90508015610ffa57600054610ffa90734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906001600160a01b031683612729565b505b611004612045565b600154604080516304bb6c9360e21b815290516000926001600160a01b0316916312edb24c91600480830192869291908290030181865afa15801561104d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110759190810190612d7c565b90506110808161235d565b61108861249a565b5050565b6000546001600160a01b031633146110b65760405162461bcd60e51b81526004016104f390612bbc565b600260055414156110d95760405162461bcd60e51b81526004016104f390612bdb565b6002600555801561060e576002546110fc906001600160a01b0316333084611d65565b600154604051635c2f7e8360e11b815260048101849052602481018390526001600160a01b039091169063b85efd06906044016105db565b6000546001600160a01b0316331461115e5760405162461bcd60e51b81526004016104f390612bbc565b600260055414156111815760405162461bcd60e51b81526004016104f390612bdb565b6002600555801561060e576007546111a4906001600160a01b0316333084611d65565b600254604051637acb775760e01b8152600481018390523060248201526001600160a01b0390911690637acb775790604401610575565b6000546001600160a01b031633146112055760405162461bcd60e51b81526004016104f390612bbc565b600260055414156112285760405162461bcd60e51b81526004016104f390612bdb565b600260055560015460405163d2fbdc0d60e01b815260048101849052602481018390526001600160a01b039091169063d2fbdc0d906044016105db565b6060806000600160009054906101000a90046001600160a01b03166001600160a01b03166312edb24c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156112bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e59190810190612d7c565b6001546040516246613160e11b81523060048201529192506000916001600160a01b0390911690628cc26290602401600060405180830381865afa158015611331573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113599190810190612cf1565b6002546040516246613160e11b81523060048201529192506000916001600160a01b0390911690628cc26290602401600060405180830381865afa1580156113a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113cd9190810190612ea8565b90506000600360009054906101000a90046001600160a01b03166001600160a01b031663857cb94a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114489190612c12565b905081518185516114599190612f0f565b6114639190612f0f565b67ffffffffffffffff81111561147b5761147b612c86565b6040519080825280602002602001820160405280156114a4578160200160208202803683370190505b50955081518185516114b69190612f0f565b6114c09190612f0f565b67ffffffffffffffff8111156114d8576114d8612c86565b604051908082528060200260200182016040528015611501578160200160208202803683370190505b50945060005b84518110156116355784818151811061152257611522612f27565b602002602001015187828151811061153c5761153c612f27565b60200260200101906001600160a01b031690816001600160a01b03168152505084818151811061156e5761156e612f27565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156115be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e29190612c12565b8482815181106115f4576115f4612f27565b60200260200101516116069190612f0f565b86828151811061161857611618612f27565b60209081029190910101528061162d81612f3d565b915050611507565b5060035460405163dc01f60d60e01b81523060048201526000916001600160a01b03169063dc01f60d90602401600060405180830381865afa15801561167f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116a79190810190612ea8565b905060005b815181101561176a578181815181106116c7576116c7612f27565b602002602001015160000151888751836116e19190612f0f565b815181106116f1576116f1612f27565b60200260200101906001600160a01b031690816001600160a01b03168152505081818151811061172357611723612f27565b6020026020010151602001518787518361173d9190612f0f565b8151811061174d5761174d612f27565b60209081029190910101528061176281612f3d565b9150506116ac565b5060005b83518110156118425783818151811061178957611789612f27565b60200260200101516000015188848851846117a49190612f0f565b6117ae9190612f0f565b815181106117be576117be612f27565b60200260200101906001600160a01b031690816001600160a01b0316815250508381815181106117f0576117f0612f27565b602002602001015160200151878488518461180b9190612f0f565b6118159190612f0f565b8151811061182557611825612f27565b60209081029190910101528061183a81612f3d565b91505061176e565b5050505050509091565b7359cfcd384746ec3035299d90782be065e466800b331461187f5760405162461bcd60e51b81526004016104f390612c2b565b600360009054906101000a90046001600160a01b03166001600160a01b03166302fb0c5e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f69190612c69565b15611a3c576003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611944573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119689190612c12565b905080156119d95760035460005460405163f3fef3a360e01b81526001600160a01b039283169263f3fef3a3926119a6929116908590600401612c50565b600060405180830381600087803b1580156119c057600080fd5b505af11580156119d4573d6000803e3d6000fd5b505050505b600354600054604051630c00007b60e41b81526001600160a01b03918216600482015291169063c00007b090602401600060405180830381600087803b158015611a2257600080fd5b505af1158015611a36573d6000803e3d6000fd5b50505050505b600380546001600160a01b0319166001600160a01b038316179055610d1e611dd6565b6000546001600160a01b031615611aa75760405162461bcd60e51b815260206004820152600c60248201526b185b1c9958591e481a5b9a5d60a21b60448201526064016104f3565b600080546001600160a01b038087166001600160a01b0319928316178355600180548783169084161790556002805486831690841681179091556003805492861692909316919091179091556040805163e529ee9560e01b81529051839273f403c135812408bfbe8713b5a23a04b3d48aae3192631526fe279263e529ee95916004808201926020929091908290030181865afa158015611b4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b709190612c12565b6040518263ffffffff1660e01b8152600401611b8e91815260200190565b60c0604051808303816000875af1158015611bad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd19190612f58565b5050600680546001600160a01b038087166001600160a01b03199283161790925560078054838716921691909117905560405163095ea7b360e01b8152949650929450505085169063095ea7b390611c3190889060001990600401612c50565b6020604051808303816000875af1158015611c50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c749190612c69565b5060405163095ea7b360e01b81526001600160a01b0383169063095ea7b390611ca590879060001990600401612c50565b6020604051808303816000875af1158015611cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce89190612c69565b5060405163095ea7b360e01b81526001600160a01b0382169063095ea7b390611d1990879060001990600401612c50565b6020604051808303816000875af1158015611d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5c9190612c69565b50505050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611dd09085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612748565b50505050565b600360009054906101000a90046001600160a01b03166001600160a01b03166302fb0c5e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4d9190612c69565b156108665760015460405163d9f96e8d60e01b81523060048201526000916001600160a01b03169063d9f96e8d90602401602060405180830381865afa158015611e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebf9190612c12565b6003546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f319190612c12565b9050808210611fb0576003546000546001600160a01b03918216916347e7ef249116611f5d8486612fdf565b6040518363ffffffff1660e01b8152600401611f7a929190612c50565b600060405180830381600087803b158015611f9457600080fd5b505af1158015611fa8573d6000803e3d6000fd5b505050505050565b6003546000546001600160a01b039182169163f3fef3a39116611f5d8585612fdf565b600154604051630c00007b60e41b81523060048201526001600160a01b039091169063c00007b0906024016000604051808303816000875af115801561201d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d1e9190810190612cf1565b600073c9acb83ada68413a6aa57007bc720ee2e2b3c46d6001600160a01b03166313114a9d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612099573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120bd9190612c12565b6040516370a0823160e01b8152306004820152909150600090733432b6a60d23ca0dfca7761b7ab56459d9c964d0906370a0823190602401602060405180830381865afa158015612112573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121369190612c12565b905060006127106121478484612ff6565b6121519190613015565b9050801561225b576004805460405163998cbb4360e01b81526001600160a01b0390911691810191909152733432b6a60d23ca0dfca7761b7ab56459d9c964d09063a9059cbb9073c9acb83ada68413a6aa57007bc720ee2e2b3c46d9063998cbb4390602401602060405180830381865afa1580156121d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f89190613037565b836040518363ffffffff1660e01b8152600401612216929190612c50565b6020604051808303816000875af1158015612235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122599190612c69565b505b6040516370a0823160e01b8152306004820152733432b6a60d23ca0dfca7761b7ab56459d9c964d0906370a0823190602401602060405180830381865afa1580156122aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ce9190612c12565b90508015610c165760005460405163a9059cbb60e01b8152733432b6a60d23ca0dfca7761b7ab56459d9c964d09163a9059cbb9161231a916001600160a01b0316908590600401612c50565b6020604051808303816000875af1158015612339573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd09190612c69565b60005b815181101561108857733432b6a60d23ca0dfca7761b7ab56459d9c964d06001600160a01b031682828151811061239957612399612f27565b60200260200101516001600160a01b0316146124885760008282815181106123c3576123c3612f27565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612413573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124379190612c12565b90508015612486576000548351612486916001600160a01b031690839086908690811061246657612466612f27565b60200260200101516001600160a01b03166127299092919063ffffffff16565b505b8061249281612f3d565b915050612360565b600360009054906101000a90046001600160a01b03166001600160a01b03166302fb0c5e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125119190612c69565b15610866576003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561255f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125839190612c12565b60015460405163d9f96e8d60e01b81523060048201529192506000916001600160a01b039091169063d9f96e8d90602401602060405180830381865afa1580156125d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125f59190612c12565b9050811580156126055750600081115b15612673576003546000546040516311f9fbc960e21b81526001600160a01b03928316926347e7ef2492612640929116908590600401612c50565b600060405180830381600087803b15801561265a57600080fd5b505af115801561266e573d6000803e3d6000fd5b505050505b600354600054604051630c00007b60e41b81526001600160a01b03918216600482015291169063c00007b090602401611f7a565b600154604051636ba006ab60e11b81526001600160a01b0383811660048301529091169063d7400d5690602401600060405180830381600087803b1580156126ee57600080fd5b505af1158015612702573d6000803e3d6000fd5b5050600480546001600160a01b0319166001600160a01b0394909416939093179092555050565b610c168363a9059cbb60e01b8484604051602401611d99929190612c50565b600061279d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661281a9092919063ffffffff16565b805190915015610c1657808060200190518101906127bb9190612c69565b610c165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104f3565b60606128298484600085612833565b90505b9392505050565b6060824710156128945760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104f3565b843b6128e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104f3565b600080866001600160a01b031685876040516128fe9190613080565b60006040518083038185875af1925050503d806000811461293b576040519150601f19603f3d011682016040523d82523d6000602084013e612940565b606091505b509150915061295082828661295b565b979650505050505050565b6060831561296a57508161282c565b82511561297a5782518084602001fd5b8160405162461bcd60e51b81526004016104f3919061309c565b600080604083850312156129a757600080fd5b50508035926020909101359150565b6000602082840312156129c857600080fd5b5035919050565b60208101600483106129f157634e487b7160e01b600052602160045260246000fd5b91905290565b8015158114610d1e57600080fd5b600080600060408486031215612a1a57600080fd5b8335612a25816129f7565b9250602084013567ffffffffffffffff80821115612a4257600080fd5b818601915086601f830112612a5657600080fd5b813581811115612a6557600080fd5b8760208260051b8501011115612a7a57600080fd5b6020830194508093505050509250925092565b6001600160a01b0381168114610d1e57600080fd5b600060208284031215612ab457600080fd5b813561282c81612a8d565b600060208284031215612ad157600080fd5b813561282c816129f7565b604080825283519082018190526000906020906060840190828701845b82811015612b1e5781516001600160a01b031684529284019290840190600101612af9565b5050508381038285015284518082528583019183019060005b81811015612b5357835183529284019291840191600101612b37565b5090979650505050505050565b60008060008060808587031215612b7657600080fd5b8435612b8181612a8d565b93506020850135612b9181612a8d565b92506040850135612ba181612a8d565b91506060850135612bb181612a8d565b939692955090935050565b602080825260059082015264042c2eae8d60db1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060208284031215612c2457600080fd5b5051919050565b6020808252600b908201526a10b0baba342fb0b236b4b760a91b604082015260600190565b6001600160a01b03929092168252602082015260400190565b600060208284031215612c7b57600080fd5b815161282c816129f7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612cc557612cc5612c86565b604052919050565b600067ffffffffffffffff821115612ce757612ce7612c86565b5060051b60200190565b60006020808385031215612d0457600080fd5b825167ffffffffffffffff811115612d1b57600080fd5b8301601f81018513612d2c57600080fd5b8051612d3f612d3a82612ccd565b612c9c565b81815260059190911b82018301908381019087831115612d5e57600080fd5b928401925b8284101561295057835182529284019290840190612d63565b60006020808385031215612d8f57600080fd5b825167ffffffffffffffff811115612da657600080fd5b8301601f81018513612db757600080fd5b8051612dc5612d3a82612ccd565b81815260059190911b82018301908381019087831115612de457600080fd5b928401925b82841015612950578351612dfc81612a8d565b82529284019290840190612de9565b6000612e19612d3a84612ccd565b8381529050602080820190600685901b840186811115612e3857600080fd5b845b81811015612e9d57604080828a031215612e545760008081fd5b805181810181811067ffffffffffffffff82111715612e7557612e75612c86565b909152815190612e8482612a8d565b9081528184015184820152845292820192604001612e3a565b505050509392505050565b600060208284031215612eba57600080fd5b815167ffffffffffffffff811115612ed157600080fd5b8201601f81018413612ee257600080fd5b612ef184825160208401612e0b565b949350505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f2257612f22612ef9565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612f5157612f51612ef9565b5060010190565b60008060008060008060c08789031215612f7157600080fd5b8651612f7c81612a8d565b6020880151909650612f8d81612a8d565b6040880151909550612f9e81612a8d565b6060880151909450612faf81612a8d565b6080880151909350612fc081612a8d565b60a0880151909250612fd1816129f7565b809150509295509295509295565b600082821015612ff157612ff1612ef9565b500390565b600081600019048311821515161561301057613010612ef9565b500290565b60008261303257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561304957600080fd5b815161282c81612a8d565b60005b8381101561306f578181015183820152602001613057565b83811115611dd05750506000910152565b60008251613092818460208701613054565b9190910192915050565b60208152600082518060208401526130bb816040850160208701613054565b601f01601f1916919091016040019291505056fea26469706673582212200268814daa35a3acc6c5fb278511aca5a14cee1f86d74b8c4e9c69899f39749164736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c80638da5cb5b1161011a578063b85efd06116100ad578063d73792a91161007c578063d73792a914610474578063d7b4be241461047d578063d7c04a4614610490578063e869565e146104a3578063f8c8765e146104b657600080fd5b8063b85efd0614610425578063cc64175114610438578063d2fbdc0d1461044b578063d6f192621461045e57600080fd5b8063a41ce7e9116100e9578063a41ce7e9146103c9578063a4698feb146103dc578063afcff50f146103ef578063b3a408b81461040a57600080fd5b80638da5cb5b1461036d578063923c1d61146103805780639ce0ff9d1461039b5780639ec5a894146103b657600080fd5b80634e7adf2c1161019d578063641a6cd01161016c578063641a6cd0146102fe578063646780df146103115780636a4874a11461032457806372f702f31461033f5780637d4234461461035257600080fd5b80634e7adf2c146102be5780634f5aefcf146102c557806351e3fc17146102d85780635eb143ce146102eb57600080fd5b80632a554842116101d95780632a5548421461028c5780633d18b912146102945780634ab794a31461029c5780634ac032be146102af57600080fd5b80630687c4bd1461020b57806317b18c8914610220578063193ba6d1146102465780632439242a14610279575b600080fd5b61021e610219366004612994565b6104c9565b005b61023361022e366004612994565b61061f565b6040519081526020015b60405180910390f35b6102617359cfcd384746ec3035299d90782be065e466800b81565b6040516001600160a01b03909116815260200161023d565b610233610287366004612994565b61071d565b61021e61082b565b61021e610868565b61021e6102aa3660046129b6565b610872565b600260405161023d91906129cf565b6003610233565b61021e6102d3366004612a05565b610ae9565b61021e6102e63660046129b6565b610c1b565b600754610261906001600160a01b031681565b61021e61030c366004612aa2565b610ce2565b600654610261906001600160a01b031681565b61026173d533a949740bb3306d119cc777fa900ba034cd5281565b600254610261906001600160a01b031681565b610261733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b600054610261906001600160a01b031681565b610261734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b61026173f403c135812408bfbe8713b5a23a04b3d48aae3181565b600354610261906001600160a01b031681565b6102336103d7366004612994565b610d21565b61021e6103ea366004612abf565b610dc9565b610261737413bfc877b5573e29f964d572f421554d8edf8681565b61026173c9acb83ada68413a6aa57007bc720ee2e2b3c46d81565b61021e610433366004612994565b61108c565b61021e610446366004612994565b611134565b61021e610459366004612994565b6111db565b610466611265565b60405161023d929190612adc565b61023361271081565b600154610261906001600160a01b031681565b600454610261906001600160a01b031681565b61021e6104b1366004612aa2565b61184c565b61021e6104c4366004612b60565b611a5f565b6000546001600160a01b031633146104fc5760405162461bcd60e51b81526004016104f390612bbc565b60405180910390fd5b6002600554141561051f5760405162461bcd60e51b81526004016104f390612bdb565b6002600555801561060e57600654610542906001600160a01b0316333084611d65565b600254604051636e553f6560e01b8152600481018390523060248201526001600160a01b0390911690636e553f65906044015b600060405180830381600087803b15801561058f57600080fd5b505af11580156105a3573d6000803e3d6000fd5b5050600154604051635c2f7e8360e11b815260048101869052602481018590526001600160a01b03909116925063b85efd0691506044015b600060405180830381600087803b1580156105f557600080fd5b505af1158015610609573d6000803e3d6000fd5b505050505b610616611dd6565b50506001600555565b600080546001600160a01b0316331461064a5760405162461bcd60e51b81526004016104f390612bbc565b6002600554141561066d5760405162461bcd60e51b81526004016104f390612bdb565b6002600555821561070a57600254610690906001600160a01b0316333086611d65565b6001546040516317b18c8960e01b815260048101859052602481018490526001600160a01b03909116906317b18c89906044015b6020604051808303816000875af11580156106e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107079190612c12565b90505b610712611dd6565b600160055592915050565b600080546001600160a01b031633146107485760405162461bcd60e51b81526004016104f390612bbc565b6002600554141561076b5760405162461bcd60e51b81526004016104f390612bdb565b6002600555821561070a5760075461078e906001600160a01b0316333086611d65565b600254604051637acb775760e01b8152600481018590523060248201526001600160a01b0390911690637acb7757906044015b600060405180830381600087803b1580156107db57600080fd5b505af11580156107ef573d6000803e3d6000fd5b50506001546040516317b18c8960e01b815260048101879052602481018690526001600160a01b0390911692506317b18c8991506044016106c4565b7359cfcd384746ec3035299d90782be065e466800b331461085e5760405162461bcd60e51b81526004016104f390612c2b565b610866611fd3565b565b6108666001610dc9565b6000546001600160a01b0316331461089c5760405162461bcd60e51b81526004016104f390612bbc565b600260055414156108bf5760405162461bcd60e51b81526004016104f390612bdb565b600260055560015460405163e44b9fa560e01b8152600481018390523060248201526001600160a01b039091169063e44b9fa5906044016020604051808303816000875af1158015610915573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109399190612c12565b506002546040516370a0823160e01b81523060048201526001600160a01b0390911690633969dfb49082906370a0823190602401602060405180830381865afa15801561098a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ae9190612c12565b6040518263ffffffff1660e01b81526004016109cc91815260200190565b600060405180830381600087803b1580156109e657600080fd5b505af11580156109fa573d6000803e3d6000fd5b50506006546000546040516370a0823160e01b81523060048201526001600160a01b03928316945063a9059cbb935091169083906370a0823190602401602060405180830381865afa158015610a54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a789190612c12565b6040518363ffffffff1660e01b8152600401610a95929190612c50565b6020604051808303816000875af1158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190612c69565b50610ae1611dd6565b506001600555565b8215610bca57600154604051630c00007b60e41b81523060048201526001600160a01b039091169063c00007b0906024016000604051808303816000875af1158015610b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b619190810190612cf1565b50600254600054604051636b09169560e01b81523060048201526001600160a01b039182166024820152911690636b09169590604401600060405180830381600087803b158015610bb157600080fd5b505af1158015610bc5573d6000803e3d6000fd5b505050505b610bd2612045565b610c0e82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061235d92505050565b610c1661249a565b505050565b6000546001600160a01b03163314610c455760405162461bcd60e51b81526004016104f390612bbc565b60026005541415610c685760405162461bcd60e51b81526004016104f390612bdb565b600260055560015460405163e44b9fa560e01b8152600481018390523360248201526001600160a01b039091169063e44b9fa5906044016020604051808303816000875af1158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190612c12565b7359cfcd384746ec3035299d90782be065e466800b3314610d155760405162461bcd60e51b81526004016104f390612c2b565b610d1e816126a7565b50565b600080546001600160a01b03163314610d4c5760405162461bcd60e51b81526004016104f390612bbc565b60026005541415610d6f5760405162461bcd60e51b81526004016104f390612bdb565b6002600555821561070a57600654610d92906001600160a01b0316333086611d65565b600254604051636e553f6560e01b8152600481018590523060248201526001600160a01b0390911690636e553f65906044016107c1565b8015610ffc57600154604051630c00007b60e41b81523060048201526001600160a01b039091169063c00007b0906024016000604051808303816000875af1158015610e19573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e419190810190612cf1565b50600254600054604051636b09169560e01b81523060048201526001600160a01b039182166024820152911690636b09169590604401600060405180830381600087803b158015610e9157600080fd5b505af1158015610ea5573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000925073d533a949740bb3306d119cc777fa900ba034cd5291506370a0823190602401602060405180830381865afa158015610efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1f9190612c12565b90508015610f5357600054610f539073d533a949740bb3306d119cc777fa900ba034cd52906001600160a01b031683612729565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610fa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc69190612c12565b90508015610ffa57600054610ffa90734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906001600160a01b031683612729565b505b611004612045565b600154604080516304bb6c9360e21b815290516000926001600160a01b0316916312edb24c91600480830192869291908290030181865afa15801561104d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110759190810190612d7c565b90506110808161235d565b61108861249a565b5050565b6000546001600160a01b031633146110b65760405162461bcd60e51b81526004016104f390612bbc565b600260055414156110d95760405162461bcd60e51b81526004016104f390612bdb565b6002600555801561060e576002546110fc906001600160a01b0316333084611d65565b600154604051635c2f7e8360e11b815260048101849052602481018390526001600160a01b039091169063b85efd06906044016105db565b6000546001600160a01b0316331461115e5760405162461bcd60e51b81526004016104f390612bbc565b600260055414156111815760405162461bcd60e51b81526004016104f390612bdb565b6002600555801561060e576007546111a4906001600160a01b0316333084611d65565b600254604051637acb775760e01b8152600481018390523060248201526001600160a01b0390911690637acb775790604401610575565b6000546001600160a01b031633146112055760405162461bcd60e51b81526004016104f390612bbc565b600260055414156112285760405162461bcd60e51b81526004016104f390612bdb565b600260055560015460405163d2fbdc0d60e01b815260048101849052602481018390526001600160a01b039091169063d2fbdc0d906044016105db565b6060806000600160009054906101000a90046001600160a01b03166001600160a01b03166312edb24c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156112bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e59190810190612d7c565b6001546040516246613160e11b81523060048201529192506000916001600160a01b0390911690628cc26290602401600060405180830381865afa158015611331573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113599190810190612cf1565b6002546040516246613160e11b81523060048201529192506000916001600160a01b0390911690628cc26290602401600060405180830381865afa1580156113a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113cd9190810190612ea8565b90506000600360009054906101000a90046001600160a01b03166001600160a01b031663857cb94a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611424573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114489190612c12565b905081518185516114599190612f0f565b6114639190612f0f565b67ffffffffffffffff81111561147b5761147b612c86565b6040519080825280602002602001820160405280156114a4578160200160208202803683370190505b50955081518185516114b69190612f0f565b6114c09190612f0f565b67ffffffffffffffff8111156114d8576114d8612c86565b604051908082528060200260200182016040528015611501578160200160208202803683370190505b50945060005b84518110156116355784818151811061152257611522612f27565b602002602001015187828151811061153c5761153c612f27565b60200260200101906001600160a01b031690816001600160a01b03168152505084818151811061156e5761156e612f27565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156115be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e29190612c12565b8482815181106115f4576115f4612f27565b60200260200101516116069190612f0f565b86828151811061161857611618612f27565b60209081029190910101528061162d81612f3d565b915050611507565b5060035460405163dc01f60d60e01b81523060048201526000916001600160a01b03169063dc01f60d90602401600060405180830381865afa15801561167f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116a79190810190612ea8565b905060005b815181101561176a578181815181106116c7576116c7612f27565b602002602001015160000151888751836116e19190612f0f565b815181106116f1576116f1612f27565b60200260200101906001600160a01b031690816001600160a01b03168152505081818151811061172357611723612f27565b6020026020010151602001518787518361173d9190612f0f565b8151811061174d5761174d612f27565b60209081029190910101528061176281612f3d565b9150506116ac565b5060005b83518110156118425783818151811061178957611789612f27565b60200260200101516000015188848851846117a49190612f0f565b6117ae9190612f0f565b815181106117be576117be612f27565b60200260200101906001600160a01b031690816001600160a01b0316815250508381815181106117f0576117f0612f27565b602002602001015160200151878488518461180b9190612f0f565b6118159190612f0f565b8151811061182557611825612f27565b60209081029190910101528061183a81612f3d565b91505061176e565b5050505050509091565b7359cfcd384746ec3035299d90782be065e466800b331461187f5760405162461bcd60e51b81526004016104f390612c2b565b600360009054906101000a90046001600160a01b03166001600160a01b03166302fb0c5e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f69190612c69565b15611a3c576003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611944573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119689190612c12565b905080156119d95760035460005460405163f3fef3a360e01b81526001600160a01b039283169263f3fef3a3926119a6929116908590600401612c50565b600060405180830381600087803b1580156119c057600080fd5b505af11580156119d4573d6000803e3d6000fd5b505050505b600354600054604051630c00007b60e41b81526001600160a01b03918216600482015291169063c00007b090602401600060405180830381600087803b158015611a2257600080fd5b505af1158015611a36573d6000803e3d6000fd5b50505050505b600380546001600160a01b0319166001600160a01b038316179055610d1e611dd6565b6000546001600160a01b031615611aa75760405162461bcd60e51b815260206004820152600c60248201526b185b1c9958591e481a5b9a5d60a21b60448201526064016104f3565b600080546001600160a01b038087166001600160a01b0319928316178355600180548783169084161790556002805486831690841681179091556003805492861692909316919091179091556040805163e529ee9560e01b81529051839273f403c135812408bfbe8713b5a23a04b3d48aae3192631526fe279263e529ee95916004808201926020929091908290030181865afa158015611b4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b709190612c12565b6040518263ffffffff1660e01b8152600401611b8e91815260200190565b60c0604051808303816000875af1158015611bad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd19190612f58565b5050600680546001600160a01b038087166001600160a01b03199283161790925560078054838716921691909117905560405163095ea7b360e01b8152949650929450505085169063095ea7b390611c3190889060001990600401612c50565b6020604051808303816000875af1158015611c50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c749190612c69565b5060405163095ea7b360e01b81526001600160a01b0383169063095ea7b390611ca590879060001990600401612c50565b6020604051808303816000875af1158015611cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce89190612c69565b5060405163095ea7b360e01b81526001600160a01b0382169063095ea7b390611d1990879060001990600401612c50565b6020604051808303816000875af1158015611d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5c9190612c69565b50505050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611dd09085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612748565b50505050565b600360009054906101000a90046001600160a01b03166001600160a01b03166302fb0c5e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4d9190612c69565b156108665760015460405163d9f96e8d60e01b81523060048201526000916001600160a01b03169063d9f96e8d90602401602060405180830381865afa158015611e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebf9190612c12565b6003546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f319190612c12565b9050808210611fb0576003546000546001600160a01b03918216916347e7ef249116611f5d8486612fdf565b6040518363ffffffff1660e01b8152600401611f7a929190612c50565b600060405180830381600087803b158015611f9457600080fd5b505af1158015611fa8573d6000803e3d6000fd5b505050505050565b6003546000546001600160a01b039182169163f3fef3a39116611f5d8585612fdf565b600154604051630c00007b60e41b81523060048201526001600160a01b039091169063c00007b0906024016000604051808303816000875af115801561201d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d1e9190810190612cf1565b600073c9acb83ada68413a6aa57007bc720ee2e2b3c46d6001600160a01b03166313114a9d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612099573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120bd9190612c12565b6040516370a0823160e01b8152306004820152909150600090733432b6a60d23ca0dfca7761b7ab56459d9c964d0906370a0823190602401602060405180830381865afa158015612112573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121369190612c12565b905060006127106121478484612ff6565b6121519190613015565b9050801561225b576004805460405163998cbb4360e01b81526001600160a01b0390911691810191909152733432b6a60d23ca0dfca7761b7ab56459d9c964d09063a9059cbb9073c9acb83ada68413a6aa57007bc720ee2e2b3c46d9063998cbb4390602401602060405180830381865afa1580156121d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f89190613037565b836040518363ffffffff1660e01b8152600401612216929190612c50565b6020604051808303816000875af1158015612235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122599190612c69565b505b6040516370a0823160e01b8152306004820152733432b6a60d23ca0dfca7761b7ab56459d9c964d0906370a0823190602401602060405180830381865afa1580156122aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ce9190612c12565b90508015610c165760005460405163a9059cbb60e01b8152733432b6a60d23ca0dfca7761b7ab56459d9c964d09163a9059cbb9161231a916001600160a01b0316908590600401612c50565b6020604051808303816000875af1158015612339573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd09190612c69565b60005b815181101561108857733432b6a60d23ca0dfca7761b7ab56459d9c964d06001600160a01b031682828151811061239957612399612f27565b60200260200101516001600160a01b0316146124885760008282815181106123c3576123c3612f27565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612413573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124379190612c12565b90508015612486576000548351612486916001600160a01b031690839086908690811061246657612466612f27565b60200260200101516001600160a01b03166127299092919063ffffffff16565b505b8061249281612f3d565b915050612360565b600360009054906101000a90046001600160a01b03166001600160a01b03166302fb0c5e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125119190612c69565b15610866576003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561255f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125839190612c12565b60015460405163d9f96e8d60e01b81523060048201529192506000916001600160a01b039091169063d9f96e8d90602401602060405180830381865afa1580156125d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125f59190612c12565b9050811580156126055750600081115b15612673576003546000546040516311f9fbc960e21b81526001600160a01b03928316926347e7ef2492612640929116908590600401612c50565b600060405180830381600087803b15801561265a57600080fd5b505af115801561266e573d6000803e3d6000fd5b505050505b600354600054604051630c00007b60e41b81526001600160a01b03918216600482015291169063c00007b090602401611f7a565b600154604051636ba006ab60e11b81526001600160a01b0383811660048301529091169063d7400d5690602401600060405180830381600087803b1580156126ee57600080fd5b505af1158015612702573d6000803e3d6000fd5b5050600480546001600160a01b0319166001600160a01b0394909416939093179092555050565b610c168363a9059cbb60e01b8484604051602401611d99929190612c50565b600061279d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661281a9092919063ffffffff16565b805190915015610c1657808060200190518101906127bb9190612c69565b610c165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104f3565b60606128298484600085612833565b90505b9392505050565b6060824710156128945760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104f3565b843b6128e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104f3565b600080866001600160a01b031685876040516128fe9190613080565b60006040518083038185875af1925050503d806000811461293b576040519150601f19603f3d011682016040523d82523d6000602084013e612940565b606091505b509150915061295082828661295b565b979650505050505050565b6060831561296a57508161282c565b82511561297a5782518084602001fd5b8160405162461bcd60e51b81526004016104f3919061309c565b600080604083850312156129a757600080fd5b50508035926020909101359150565b6000602082840312156129c857600080fd5b5035919050565b60208101600483106129f157634e487b7160e01b600052602160045260246000fd5b91905290565b8015158114610d1e57600080fd5b600080600060408486031215612a1a57600080fd5b8335612a25816129f7565b9250602084013567ffffffffffffffff80821115612a4257600080fd5b818601915086601f830112612a5657600080fd5b813581811115612a6557600080fd5b8760208260051b8501011115612a7a57600080fd5b6020830194508093505050509250925092565b6001600160a01b0381168114610d1e57600080fd5b600060208284031215612ab457600080fd5b813561282c81612a8d565b600060208284031215612ad157600080fd5b813561282c816129f7565b604080825283519082018190526000906020906060840190828701845b82811015612b1e5781516001600160a01b031684529284019290840190600101612af9565b5050508381038285015284518082528583019183019060005b81811015612b5357835183529284019291840191600101612b37565b5090979650505050505050565b60008060008060808587031215612b7657600080fd5b8435612b8181612a8d565b93506020850135612b9181612a8d565b92506040850135612ba181612a8d565b91506060850135612bb181612a8d565b939692955090935050565b602080825260059082015264042c2eae8d60db1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060208284031215612c2457600080fd5b5051919050565b6020808252600b908201526a10b0baba342fb0b236b4b760a91b604082015260600190565b6001600160a01b03929092168252602082015260400190565b600060208284031215612c7b57600080fd5b815161282c816129f7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612cc557612cc5612c86565b604052919050565b600067ffffffffffffffff821115612ce757612ce7612c86565b5060051b60200190565b60006020808385031215612d0457600080fd5b825167ffffffffffffffff811115612d1b57600080fd5b8301601f81018513612d2c57600080fd5b8051612d3f612d3a82612ccd565b612c9c565b81815260059190911b82018301908381019087831115612d5e57600080fd5b928401925b8284101561295057835182529284019290840190612d63565b60006020808385031215612d8f57600080fd5b825167ffffffffffffffff811115612da657600080fd5b8301601f81018513612db757600080fd5b8051612dc5612d3a82612ccd565b81815260059190911b82018301908381019087831115612de457600080fd5b928401925b82841015612950578351612dfc81612a8d565b82529284019290840190612de9565b6000612e19612d3a84612ccd565b8381529050602080820190600685901b840186811115612e3857600080fd5b845b81811015612e9d57604080828a031215612e545760008081fd5b805181810181811067ffffffffffffffff82111715612e7557612e75612c86565b909152815190612e8482612a8d565b9081528184015184820152845292820192604001612e3a565b505050509392505050565b600060208284031215612eba57600080fd5b815167ffffffffffffffff811115612ed157600080fd5b8201601f81018413612ee257600080fd5b612ef184825160208401612e0b565b949350505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f2257612f22612ef9565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612f5157612f51612ef9565b5060010190565b60008060008060008060c08789031215612f7157600080fd5b8651612f7c81612a8d565b6020880151909650612f8d81612a8d565b6040880151909550612f9e81612a8d565b6060880151909450612faf81612a8d565b6080880151909350612fc081612a8d565b60a0880151909250612fd1816129f7565b809150509295509295509295565b600082821015612ff157612ff1612ef9565b500390565b600081600019048311821515161561301057613010612ef9565b500290565b60008261303257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561304957600080fd5b815161282c81612a8d565b60005b8381101561306f578181015183820152602001613057565b83811115611dd05750506000910152565b60008251613092818460208701613054565b9190910192915050565b60208152600082518060208401526130bb816040850160208701613054565b601f01601f1916919091016040019291505056fea26469706673582212200268814daa35a3acc6c5fb278511aca5a14cee1f86d74b8c4e9c69899f39749164736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.