Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
250,944.0336666111984932 ucvxFXS
Holders
354
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000000348 ucvxFXSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
stkCvxFxsVault
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "GenericVault.sol"; error ZeroAddress(); interface IstkCvxFxsStrategy { function harvest(address _caller, uint256 _minAmountOut) external returns (uint256 harvested); } interface ICvxFxsStaking { function claimableRewards(address _account) external view returns (EarnedData[] memory userRewards); struct EarnedData { address token; uint256 amount; } } contract stkCvxFxsVault is GenericUnionVault { bool public isHarvestPermissioned; mapping(address => bool) public authorizedHarvesters; ICvxFxsStaking constant cvxFxsStaking = ICvxFxsStaking(0x49b4d1dF40442f0C31b1BbAEA3EDE7c38e37E31a); constructor(address _token) GenericUnionVault(_token) {} /// @notice Sets whether only whitelisted addresses can harvest /// @param _status Whether or not harvests are permissioned function setHarvestPermissions(bool _status) external onlyOwner { isHarvestPermissioned = _status; } /// @notice Adds or remove an address from the harvesters' whitelist /// @param _harvester address of the authorized harvester /// @param _authorized Whether to add or remove harvester function updateAuthorizedHarvesters(address _harvester, bool _authorized) external onlyOwner { if (_harvester == address(0)) revert ZeroAddress(); authorizedHarvesters[_harvester] = _authorized; } /// @notice Claim rewards and swaps them to cvxFxs for restaking /// @param _minAmountOut - min amount of cvxFxs to receive for harvest /// @dev Can be called by whitelisted account or anyone against a cvxFxs incentive /// @dev Harvest logic in the strategy/harvester contract /// @dev Harvest can be called even if permissioned when last staker is /// withdrawing from the vault. function harvest(uint256 _minAmountOut) public { require( !isHarvestPermissioned || authorizedHarvesters[msg.sender] || totalSupply() == 0, "permissioned harvest" ); uint256 _harvested = IstkCvxFxsStrategy(strategy).harvest( msg.sender, _minAmountOut ); emit Harvest(msg.sender, _harvested); } /// @notice View function to get pending staking rewards function claimableRewards() external view returns (ICvxFxsStaking.EarnedData[] memory) { return cvxFxsStaking.claimableRewards(strategy); } /// @notice Claim rewards and swaps them to cvxFXS for restaking /// @dev No slippage protection (harvester will use oracles), swapping for cvxCRV function harvest() public override { harvest(0); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "Ownable.sol"; import "SafeERC20.sol"; import "ERC20.sol"; import "IStrategy.sol"; contract GenericUnionVault is ERC20, Ownable { using SafeERC20 for IERC20; uint256 public withdrawalPenalty = 100; uint256 public constant MAX_WITHDRAWAL_PENALTY = 150; uint256 public platformFee = 500; uint256 public constant MAX_PLATFORM_FEE = 2000; uint256 public callIncentive = 500; uint256 public constant MAX_CALL_INCENTIVE = 500; uint256 public constant FEE_DENOMINATOR = 10000; address public immutable underlying; address public strategy; address public platform; event Harvest(address indexed _caller, uint256 _value); event Deposit(address indexed _from, address indexed _to, uint256 _value); event Withdraw(address indexed _from, address indexed _to, uint256 _value); event WithdrawalPenaltyUpdated(uint256 _penalty); event CallerIncentiveUpdated(uint256 _incentive); event PlatformFeeUpdated(uint256 _fee); event PlatformUpdated(address indexed _platform); event StrategySet(address indexed _strategy); constructor(address _token) ERC20( string(abi.encodePacked("Unionized ", ERC20(_token).name())), string(abi.encodePacked("u", ERC20(_token).symbol())) ) { underlying = _token; } /// @notice Updates the withdrawal penalty /// @param _penalty - the amount of the new penalty (in BIPS) function setWithdrawalPenalty(uint256 _penalty) external onlyOwner { require(_penalty <= MAX_WITHDRAWAL_PENALTY); withdrawalPenalty = _penalty; emit WithdrawalPenaltyUpdated(_penalty); } /// @notice Updates the caller incentive for harvests /// @param _incentive - the amount of the new incentive (in BIPS) function setCallIncentive(uint256 _incentive) external onlyOwner { require(_incentive <= MAX_CALL_INCENTIVE); callIncentive = _incentive; emit CallerIncentiveUpdated(_incentive); } /// @notice Updates the part of yield redirected to the platform /// @param _fee - the amount of the new platform fee (in BIPS) function setPlatformFee(uint256 _fee) external onlyOwner { require(_fee <= MAX_PLATFORM_FEE); platformFee = _fee; emit PlatformFeeUpdated(_fee); } /// @notice Updates the address to which platform fees are paid out /// @param _platform - the new platform wallet address function setPlatform(address _platform) external onlyOwner notToZeroAddress(_platform) { platform = _platform; emit PlatformUpdated(_platform); } /// @notice Set the address of the strategy contract /// @dev Can only be set once /// @param _strategy - address of the strategy contract function setStrategy(address _strategy) external onlyOwner notToZeroAddress(_strategy) { require(strategy == address(0), "Strategy already set"); strategy = _strategy; emit StrategySet(_strategy); } /// @notice Query the amount currently staked /// @return total - the total amount of tokens staked function totalUnderlying() public view returns (uint256 total) { return IStrategy(strategy).totalUnderlying(); } /// @notice Returns the amount of underlying a user can claim /// @param user - address whose claimable amount to query /// @return amount - claimable amount /// @dev Does not account for penalties and fees function balanceOfUnderlying(address user) external view returns (uint256 amount) { require(totalSupply() > 0, "No users"); return ((balanceOf(user) * totalUnderlying()) / totalSupply()); } /// @notice Deposit user funds in the autocompounder and mints tokens /// representing user's share of the pool in exchange /// @param _to - the address that will receive the shares /// @param _amount - the amount of underlying to deposit /// @return _shares - the amount of shares issued function deposit(address _to, uint256 _amount) public notToZeroAddress(_to) returns (uint256 _shares) { require(_amount > 0, "Deposit too small"); uint256 _before = totalUnderlying(); IERC20(underlying).safeTransferFrom(msg.sender, strategy, _amount); IStrategy(strategy).stake(_amount); // Issues shares in proportion of deposit to pool amount uint256 shares = 0; if (totalSupply() == 0) { shares = _amount; } else { shares = (_amount * totalSupply()) / _before; } _mint(_to, shares); emit Deposit(msg.sender, _to, _amount); return shares; } /// @notice Deposit all of user's underlying balance /// @param _to - the address that will receive the shares /// @return _shares - the amount of shares issued function depositAll(address _to) external returns (uint256 _shares) { return deposit(_to, IERC20(underlying).balanceOf(msg.sender)); } /// @notice Unstake underlying in proportion to the amount of shares sent /// @param _shares - the number of shares sent /// @return _withdrawable - the withdrawable underlying amount function _withdraw(uint256 _shares) internal returns (uint256 _withdrawable) { require(totalSupply() > 0); // Computes the amount withdrawable based on the number of shares sent uint256 amount = (_shares * totalUnderlying()) / totalSupply(); // Burn the shares before retrieving tokens _burn(msg.sender, _shares); // If user is last to withdraw, harvest before exit if (totalSupply() == 0) { harvest(); IStrategy(strategy).withdraw(totalUnderlying()); _withdrawable = IERC20(underlying).balanceOf(address(this)); } // Otherwise compute share and unstake else { _withdrawable = amount; // Substract a small withdrawal fee to prevent users "timing" // the harvests. The fee stays staked and is therefore // redistributed to all remaining participants. uint256 _penalty = (_withdrawable * withdrawalPenalty) / FEE_DENOMINATOR; _withdrawable = _withdrawable - _penalty; IStrategy(strategy).withdraw(_withdrawable); } return _withdrawable; } /// @notice Unstake underlying token in proportion to the amount of shares sent /// @param _to - address to send underlying to /// @param _shares - the number of shares sent /// @return withdrawn - the amount of underlying returned to the user function withdraw(address _to, uint256 _shares) public notToZeroAddress(_to) returns (uint256 withdrawn) { // Withdraw requested amount of underlying uint256 _withdrawable = _withdraw(_shares); // And sends back underlying to user IERC20(underlying).safeTransfer(_to, _withdrawable); emit Withdraw(msg.sender, _to, _withdrawable); return _withdrawable; } /// @notice Withdraw all of a users' position as underlying /// @param _to - address to send underlying to /// @return withdrawn - the amount of underlying returned to the user function withdrawAll(address _to) external notToZeroAddress(_to) returns (uint256 withdrawn) { return withdraw(_to, balanceOf(msg.sender)); } /// @notice Claim rewards and swaps them to FXS for restaking /// @dev Can be called by anyone against an incentive in FXS /// @dev Harvest logic in the strategy contract function harvest() public virtual { uint256 _harvested = IStrategy(strategy).harvest(msg.sender); emit Harvest(msg.sender, _harvested); } modifier notToZeroAddress(address _to) { require(_to != address(0), "Invalid address!"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; import "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' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + 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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.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 Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; import "IERC20Metadata.sol"; import "Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IStrategy { function harvest(address _caller) external returns (uint256 harvested); function harvest(address _caller, uint256 _minAmountOut) external returns (uint256 harvested); function totalUnderlying() external view returns (uint256 total); function stake(uint256 _amount) external; function withdraw(uint256 _amount) external; function setApprovals() external; }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "stkCvxFxsVault.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"CallerIncentiveUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"PlatformFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_platform","type":"address"}],"name":"PlatformUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_strategy","type":"address"}],"name":"StrategySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"WithdrawalPenaltyUpdated","type":"event"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CALL_INCENTIVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAWAL_PENALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorizedHarvesters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableRewards","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ICvxFxsStaking.EarnedData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"depositAll","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isHarvestPermissioned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platform","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"setCallIncentive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setHarvestPermissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platform","type":"address"}],"name":"setPlatform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"setWithdrawalPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnderlying","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_harvester","type":"address"},{"internalType":"bool","name":"_authorized","type":"bool"}],"name":"updateAuthorizedHarvesters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a060405260646006556101f46007556101f46008553480156200002257600080fd5b50604051620026c0380380620026c08339810160408190526200004591620002c6565b80806001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156200008057600080fd5b505afa15801562000095573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620000bf919081019062000341565b604051602001620000d19190620003f9565b604051602081830303815290604052816001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200011a57600080fd5b505afa1580156200012f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000159919081019062000341565b6040516020016200016b91906200042d565b60408051601f1981840301815291905281516200019090600390602085019062000220565b508051620001a690600490602084019062000220565b5050506000620001bb6200021c60201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b03166080525062000495565b3390565b8280546200022e9062000458565b90600052602060002090601f0160209004810192826200025257600085556200029d565b82601f106200026d57805160ff19168380011785556200029d565b828001600101855582156200029d579182015b828111156200029d57825182559160200191906001019062000280565b50620002ab929150620002af565b5090565b5b80821115620002ab5760008155600101620002b0565b600060208284031215620002d957600080fd5b81516001600160a01b0381168114620002f157600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200032b57818101518382015260200162000311565b838111156200033b576000848401525b50505050565b6000602082840312156200035457600080fd5b81516001600160401b03808211156200036c57600080fd5b818401915084601f8301126200038157600080fd5b815181811115620003965762000396620002f8565b604051601f8201601f19908116603f01168101908382118183101715620003c157620003c1620002f8565b81604052828152876020848701011115620003db57600080fd5b620003ee8360208301602088016200030e565b979650505050505050565b6902ab734b7b734bd32b2160b51b8152600082516200042081600a8501602087016200030e565b91909101600a0192915050565b607560f81b8152600082516200044b8160018501602087016200030e565b9190910160010192915050565b600181811c908216806200046d57607f821691505b602082108114156200048f57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516121f3620004cd600039600081816103da01528181610a3001528181610dd80152818161124a015261182701526121f36000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c8063715018a611610146578063c70920bc116100c3578063ddc6326211610087578063ddc6326214610527578063e7c1b7711461053a578063f2fde38b14610543578063f3fef3a314610556578063f7ff67a014610569578063fa09e6301461058c57600080fd5b8063c70920bc146104c1578063cb22356b146104c9578063cc7554eb146104d2578063d73792a9146104e5578063dd62ed3e146104ee57600080fd5b80639f0d5f271161010a5780639f0d5f271461046c578063a2468c191461047f578063a457c2d714610488578063a8c62e761461049b578063a9059cbb146104ae57600080fd5b8063715018a6146104255780637faaa6c11461042d578063809c95cc146104405780638da5cb5b1461045357806395d89b411461046457600080fd5b806339509351116101df57806347e7ef24116101a357806347e7ef241461036f5780634bde38c8146103825780636945c5ea146103ad5780636c003a9b146103c05780636f307dc3146103d557806370a08231146103fc57600080fd5b806339509351146103255780633998a681146103385780633af9e669146103415780633dc31d19146103545780634641257d1461036757600080fd5b806323b872dd1161022657806323b872dd146102d3578063252c37fa146102e657806326232a2e146102fa578063313ce5671461030357806333a100ca1461031257600080fd5b806306fdde0314610263578063095ea7b31461028157806312e8e2c3146102a457806318160ddd146102b95780632060176b146102cb575b600080fd5b61026b61059f565b6040516102789190611d3e565b60405180910390f35b61029461028f366004611d89565b610631565b6040519015158152602001610278565b6102b76102b2366004611db5565b610647565b005b6002545b604051908152602001610278565b6102bd609681565b6102946102e1366004611dce565b6106c5565b600a5461029490600160a01b900460ff1681565b6102bd60075481565b60405160128152602001610278565b6102b7610320366004611e0f565b610778565b610294610333366004611d89565b610864565b6102bd6107d081565b6102bd61034f366004611e0f565b61089b565b6102b7610362366004611e3a565b61091d565b6102b7610999565b6102bd61037d366004611d89565b6109a5565b600a54610395906001600160a01b031681565b6040516001600160a01b039091168152602001610278565b6102b76103bb366004611e0f565b610b43565b6103c8610bdf565b6040516102789190611e73565b6103957f000000000000000000000000000000000000000000000000000000000000000081565b6102bd61040a366004611e0f565b6001600160a01b031660009081526020819052604090205490565b6102b7610c7a565b6102b761043b366004611db5565b610cee565b6102b761044e366004611ecb565b610d5b565b6005546001600160a01b0316610395565b61026b610da3565b6102bd61047a366004611e0f565b610db2565b6102bd60065481565b610294610496366004611d89565b610e52565b600954610395906001600160a01b031681565b6102946104bc366004611d89565b610eed565b6102bd610efa565b6102bd60085481565b6102b76104e0366004611db5565b610f77565b6102bd61271081565b6102bd6104fc366004611ee8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102b7610535366004611db5565b610fe5565b6102bd6101f481565b6102b7610551366004611e0f565b61111c565b6102bd610564366004611d89565b611207565b610294610577366004611e0f565b600b6020526000908152604090205460ff1681565b6102bd61059a366004611e0f565b6112b9565b6060600380546105ae90611f16565b80601f01602080910402602001604051908101604052809291908181526020018280546105da90611f16565b80156106275780601f106105fc57610100808354040283529160200191610627565b820191906000526020600020905b81548152906001019060200180831161060a57829003601f168201915b5050505050905090565b600061063e338484611306565b50600192915050565b6005546001600160a01b0316331461067a5760405162461bcd60e51b815260040161067190611f4b565b60405180910390fd5b6107d081111561068957600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b60006106d284848461142b565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107575760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610671565b61076b85336107668685611f96565b611306565b60019150505b9392505050565b6005546001600160a01b031633146107a25760405162461bcd60e51b815260040161067190611f4b565b806001600160a01b0381166107c95760405162461bcd60e51b815260040161067190611fad565b6009546001600160a01b0316156108195760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b6044820152606401610671565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161063e918590610766908690611fd7565b6000806108a760025490565b116108df5760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b6044820152606401610671565b6002546108ea610efa565b6001600160a01b03841660009081526020819052604090205461090d9190611fef565b610917919061200e565b92915050565b6005546001600160a01b031633146109475760405162461bcd60e51b815260040161067190611f4b565b6001600160a01b03821661096e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6109a36000610fe5565b565b6000826001600160a01b0381166109ce5760405162461bcd60e51b815260040161067190611fad565b60008311610a125760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b6044820152606401610671565b6000610a1c610efa565b600954909150610a5b906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169133911687611603565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b505050506000610ac460025490565b610acf575083610af0565b81610ad960025490565b610ae39087611fef565b610aed919061200e565b90505b610afa8682611674565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610b6d5760405162461bcd60e51b815260040161067190611f4b565b806001600160a01b038116610b945760405162461bcd60e51b815260040161067190611fad565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b60095460405163dc01f60d60e01b81526001600160a01b0390911660048201526060907349b4d1df40442f0c31b1bbaea3ede7c38e37e31a9063dc01f60d9060240160006040518083038186803b158015610c3957600080fd5b505afa158015610c4d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c7591908101906120a0565b905090565b6005546001600160a01b03163314610ca45760405162461bcd60e51b815260040161067190611f4b565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610d185760405162461bcd60e51b815260040161067190611f4b565b6096811115610d2657600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016106ba565b6005546001600160a01b03163314610d855760405162461bcd60e51b815260040161067190611f4b565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b6060600480546105ae90611f16565b6040516370a0823160e01b81523360048201526000906109179083906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037d919061216b565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610ed45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610671565b610ee333856107668685611f96565b5060019392505050565b600061063e33848461142b565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b158015610f3f57600080fd5b505afa158015610f53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c75919061216b565b6005546001600160a01b03163314610fa15760405162461bcd60e51b815260040161067190611f4b565b6101f4811115610fb057600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a42906020016106ba565b600a54600160a01b900460ff16158061100d5750336000908152600b602052604090205460ff165b806110185750600254155b61105b5760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5cdcda5bdb9959081a185c9d995cdd60621b6044820152606401610671565b60095460405163018ee9b760e01b8152336004820152602481018390526000916001600160a01b03169063018ee9b790604401602060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e0919061216b565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25050565b6005546001600160a01b031633146111465760405162461bcd60e51b815260040161067190611f4b565b6001600160a01b0381166111ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610671565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0381166112305760405162461bcd60e51b815260040161067190611fad565b600061123b84611753565b90506112716001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168683611944565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b0381166112e25760405162461bcd60e51b815260040161067190611fad565b336000908152602081905260409020546112fd908490611207565b91505b50919050565b6001600160a01b0383166113685760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610671565b6001600160a01b0382166113c95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610671565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661148f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610671565b6001600160a01b0382166114f15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610671565b6001600160a01b038316600090815260208190526040902054818110156115695760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610671565b6115738282611f96565b6001600160a01b0380861660009081526020819052604080822093909355908516815290812080548492906115a9908490611fd7565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115f591815260200190565b60405180910390a350505050565b6040516001600160a01b038085166024830152831660448201526064810182905261166e9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611979565b50505050565b6001600160a01b0382166116ca5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610671565b80600260008282546116dc9190611fd7565b90915550506001600160a01b03821660009081526020819052604081208054839290611709908490611fd7565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60008061175f60025490565b1161176957600080fd5b600061177460025490565b61177c610efa565b6117869085611fef565b611790919061200e565b905061179c3384611a4b565b6002546118b2576117ab610999565b6009546001600160a01b0316632e1a7d4d6117c4610efa565b6040518263ffffffff1660e01b81526004016117e291815260200190565b600060405180830381600087803b1580156117fc57600080fd5b505af1158015611810573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506370a08231915060240160206040518083038186803b15801561187357600080fd5b505afa158015611887573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ab919061216b565b9150611300565b8091506000612710600654846118c89190611fef565b6118d2919061200e565b90506118de8184611f96565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561192557600080fd5b505af1158015611939573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b03831660248201526044810182905261197490849063a9059cbb60e01b90606401611637565b505050565b60006119ce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b9a9092919063ffffffff16565b80519091501561197457808060200190518101906119ec9190612184565b6119745760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610671565b6001600160a01b038216611aab5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610671565b6001600160a01b03821660009081526020819052604090205481811015611b1f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610671565b611b298282611f96565b6001600160a01b03841660009081526020819052604081209190915560028054849290611b57908490611f96565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161141e565b6060611ba98484600085611bb1565b949350505050565b606082471015611c125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610671565b843b611c605760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610671565b600080866001600160a01b03168587604051611c7c91906121a1565b60006040518083038185875af1925050503d8060008114611cb9576040519150601f19603f3d011682016040523d82523d6000602084013e611cbe565b606091505b5091509150611cce828286611cd9565b979650505050505050565b60608315611ce8575081610771565b825115611cf85782518084602001fd5b8160405162461bcd60e51b81526004016106719190611d3e565b60005b83811015611d2d578181015183820152602001611d15565b8381111561166e5750506000910152565b6020815260008251806020840152611d5d816040850160208701611d12565b601f01601f19169190910160400192915050565b6001600160a01b0381168114611d8657600080fd5b50565b60008060408385031215611d9c57600080fd5b8235611da781611d71565b946020939093013593505050565b600060208284031215611dc757600080fd5b5035919050565b600080600060608486031215611de357600080fd5b8335611dee81611d71565b92506020840135611dfe81611d71565b929592945050506040919091013590565b600060208284031215611e2157600080fd5b813561077181611d71565b8015158114611d8657600080fd5b60008060408385031215611e4d57600080fd5b8235611e5881611d71565b91506020830135611e6881611e2c565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b82811015611ebe57815180516001600160a01b03168552860151868501529284019290850190600101611e90565b5091979650505050505050565b600060208284031215611edd57600080fd5b813561077181611e2c565b60008060408385031215611efb57600080fd5b8235611f0681611d71565b91506020830135611e6881611d71565b600181811c90821680611f2a57607f821691505b6020821081141561130057634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611fa857611fa8611f80565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60008219821115611fea57611fea611f80565b500190565b600081600019048311821515161561200957612009611f80565b500290565b60008261202b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561206957612069612030565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561209857612098612030565b604052919050565b600060208083850312156120b357600080fd5b825167ffffffffffffffff808211156120cb57600080fd5b818501915085601f8301126120df57600080fd5b8151818111156120f1576120f1612030565b6120ff848260051b0161206f565b818152848101925060069190911b83018401908782111561211f57600080fd5b928401925b81841015611cce576040848903121561213d5760008081fd5b612145612046565b845161215081611d71565b81528486015186820152835260409093019291840191612124565b60006020828403121561217d57600080fd5b5051919050565b60006020828403121561219657600080fd5b815161077181611e2c565b600082516121b3818460208701611d12565b919091019291505056fea264697066735822122071555e917482ae7eabdf1be6a85c7a5679fd0efe7e5edf01c60df1dcc18ebe4e64736f6c63430008090033000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf74
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c8063715018a611610146578063c70920bc116100c3578063ddc6326211610087578063ddc6326214610527578063e7c1b7711461053a578063f2fde38b14610543578063f3fef3a314610556578063f7ff67a014610569578063fa09e6301461058c57600080fd5b8063c70920bc146104c1578063cb22356b146104c9578063cc7554eb146104d2578063d73792a9146104e5578063dd62ed3e146104ee57600080fd5b80639f0d5f271161010a5780639f0d5f271461046c578063a2468c191461047f578063a457c2d714610488578063a8c62e761461049b578063a9059cbb146104ae57600080fd5b8063715018a6146104255780637faaa6c11461042d578063809c95cc146104405780638da5cb5b1461045357806395d89b411461046457600080fd5b806339509351116101df57806347e7ef24116101a357806347e7ef241461036f5780634bde38c8146103825780636945c5ea146103ad5780636c003a9b146103c05780636f307dc3146103d557806370a08231146103fc57600080fd5b806339509351146103255780633998a681146103385780633af9e669146103415780633dc31d19146103545780634641257d1461036757600080fd5b806323b872dd1161022657806323b872dd146102d3578063252c37fa146102e657806326232a2e146102fa578063313ce5671461030357806333a100ca1461031257600080fd5b806306fdde0314610263578063095ea7b31461028157806312e8e2c3146102a457806318160ddd146102b95780632060176b146102cb575b600080fd5b61026b61059f565b6040516102789190611d3e565b60405180910390f35b61029461028f366004611d89565b610631565b6040519015158152602001610278565b6102b76102b2366004611db5565b610647565b005b6002545b604051908152602001610278565b6102bd609681565b6102946102e1366004611dce565b6106c5565b600a5461029490600160a01b900460ff1681565b6102bd60075481565b60405160128152602001610278565b6102b7610320366004611e0f565b610778565b610294610333366004611d89565b610864565b6102bd6107d081565b6102bd61034f366004611e0f565b61089b565b6102b7610362366004611e3a565b61091d565b6102b7610999565b6102bd61037d366004611d89565b6109a5565b600a54610395906001600160a01b031681565b6040516001600160a01b039091168152602001610278565b6102b76103bb366004611e0f565b610b43565b6103c8610bdf565b6040516102789190611e73565b6103957f000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf7481565b6102bd61040a366004611e0f565b6001600160a01b031660009081526020819052604090205490565b6102b7610c7a565b6102b761043b366004611db5565b610cee565b6102b761044e366004611ecb565b610d5b565b6005546001600160a01b0316610395565b61026b610da3565b6102bd61047a366004611e0f565b610db2565b6102bd60065481565b610294610496366004611d89565b610e52565b600954610395906001600160a01b031681565b6102946104bc366004611d89565b610eed565b6102bd610efa565b6102bd60085481565b6102b76104e0366004611db5565b610f77565b6102bd61271081565b6102bd6104fc366004611ee8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102b7610535366004611db5565b610fe5565b6102bd6101f481565b6102b7610551366004611e0f565b61111c565b6102bd610564366004611d89565b611207565b610294610577366004611e0f565b600b6020526000908152604090205460ff1681565b6102bd61059a366004611e0f565b6112b9565b6060600380546105ae90611f16565b80601f01602080910402602001604051908101604052809291908181526020018280546105da90611f16565b80156106275780601f106105fc57610100808354040283529160200191610627565b820191906000526020600020905b81548152906001019060200180831161060a57829003601f168201915b5050505050905090565b600061063e338484611306565b50600192915050565b6005546001600160a01b0316331461067a5760405162461bcd60e51b815260040161067190611f4b565b60405180910390fd5b6107d081111561068957600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b60006106d284848461142b565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107575760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610671565b61076b85336107668685611f96565b611306565b60019150505b9392505050565b6005546001600160a01b031633146107a25760405162461bcd60e51b815260040161067190611f4b565b806001600160a01b0381166107c95760405162461bcd60e51b815260040161067190611fad565b6009546001600160a01b0316156108195760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b6044820152606401610671565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161063e918590610766908690611fd7565b6000806108a760025490565b116108df5760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b6044820152606401610671565b6002546108ea610efa565b6001600160a01b03841660009081526020819052604090205461090d9190611fef565b610917919061200e565b92915050565b6005546001600160a01b031633146109475760405162461bcd60e51b815260040161067190611f4b565b6001600160a01b03821661096e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6109a36000610fe5565b565b6000826001600160a01b0381166109ce5760405162461bcd60e51b815260040161067190611fad565b60008311610a125760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b6044820152606401610671565b6000610a1c610efa565b600954909150610a5b906001600160a01b037f000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf7481169133911687611603565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b505050506000610ac460025490565b610acf575083610af0565b81610ad960025490565b610ae39087611fef565b610aed919061200e565b90505b610afa8682611674565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610b6d5760405162461bcd60e51b815260040161067190611f4b565b806001600160a01b038116610b945760405162461bcd60e51b815260040161067190611fad565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b60095460405163dc01f60d60e01b81526001600160a01b0390911660048201526060907349b4d1df40442f0c31b1bbaea3ede7c38e37e31a9063dc01f60d9060240160006040518083038186803b158015610c3957600080fd5b505afa158015610c4d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c7591908101906120a0565b905090565b6005546001600160a01b03163314610ca45760405162461bcd60e51b815260040161067190611f4b565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610d185760405162461bcd60e51b815260040161067190611f4b565b6096811115610d2657600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016106ba565b6005546001600160a01b03163314610d855760405162461bcd60e51b815260040161067190611f4b565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b6060600480546105ae90611f16565b6040516370a0823160e01b81523360048201526000906109179083906001600160a01b037f000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf7416906370a082319060240160206040518083038186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037d919061216b565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610ed45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610671565b610ee333856107668685611f96565b5060019392505050565b600061063e33848461142b565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b158015610f3f57600080fd5b505afa158015610f53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c75919061216b565b6005546001600160a01b03163314610fa15760405162461bcd60e51b815260040161067190611f4b565b6101f4811115610fb057600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a42906020016106ba565b600a54600160a01b900460ff16158061100d5750336000908152600b602052604090205460ff165b806110185750600254155b61105b5760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5cdcda5bdb9959081a185c9d995cdd60621b6044820152606401610671565b60095460405163018ee9b760e01b8152336004820152602481018390526000916001600160a01b03169063018ee9b790604401602060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e0919061216b565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a25050565b6005546001600160a01b031633146111465760405162461bcd60e51b815260040161067190611f4b565b6001600160a01b0381166111ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610671565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0381166112305760405162461bcd60e51b815260040161067190611fad565b600061123b84611753565b90506112716001600160a01b037f000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf74168683611944565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b0381166112e25760405162461bcd60e51b815260040161067190611fad565b336000908152602081905260409020546112fd908490611207565b91505b50919050565b6001600160a01b0383166113685760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610671565b6001600160a01b0382166113c95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610671565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661148f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610671565b6001600160a01b0382166114f15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610671565b6001600160a01b038316600090815260208190526040902054818110156115695760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610671565b6115738282611f96565b6001600160a01b0380861660009081526020819052604080822093909355908516815290812080548492906115a9908490611fd7565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115f591815260200190565b60405180910390a350505050565b6040516001600160a01b038085166024830152831660448201526064810182905261166e9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611979565b50505050565b6001600160a01b0382166116ca5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610671565b80600260008282546116dc9190611fd7565b90915550506001600160a01b03821660009081526020819052604081208054839290611709908490611fd7565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60008061175f60025490565b1161176957600080fd5b600061177460025490565b61177c610efa565b6117869085611fef565b611790919061200e565b905061179c3384611a4b565b6002546118b2576117ab610999565b6009546001600160a01b0316632e1a7d4d6117c4610efa565b6040518263ffffffff1660e01b81526004016117e291815260200190565b600060405180830381600087803b1580156117fc57600080fd5b505af1158015611810573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf746001600160a01b031692506370a08231915060240160206040518083038186803b15801561187357600080fd5b505afa158015611887573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ab919061216b565b9150611300565b8091506000612710600654846118c89190611fef565b6118d2919061200e565b90506118de8184611f96565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561192557600080fd5b505af1158015611939573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b03831660248201526044810182905261197490849063a9059cbb60e01b90606401611637565b505050565b60006119ce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b9a9092919063ffffffff16565b80519091501561197457808060200190518101906119ec9190612184565b6119745760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610671565b6001600160a01b038216611aab5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610671565b6001600160a01b03821660009081526020819052604090205481811015611b1f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610671565b611b298282611f96565b6001600160a01b03841660009081526020819052604081209190915560028054849290611b57908490611f96565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161141e565b6060611ba98484600085611bb1565b949350505050565b606082471015611c125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610671565b843b611c605760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610671565b600080866001600160a01b03168587604051611c7c91906121a1565b60006040518083038185875af1925050503d8060008114611cb9576040519150601f19603f3d011682016040523d82523d6000602084013e611cbe565b606091505b5091509150611cce828286611cd9565b979650505050505050565b60608315611ce8575081610771565b825115611cf85782518084602001fd5b8160405162461bcd60e51b81526004016106719190611d3e565b60005b83811015611d2d578181015183820152602001611d15565b8381111561166e5750506000910152565b6020815260008251806020840152611d5d816040850160208701611d12565b601f01601f19169190910160400192915050565b6001600160a01b0381168114611d8657600080fd5b50565b60008060408385031215611d9c57600080fd5b8235611da781611d71565b946020939093013593505050565b600060208284031215611dc757600080fd5b5035919050565b600080600060608486031215611de357600080fd5b8335611dee81611d71565b92506020840135611dfe81611d71565b929592945050506040919091013590565b600060208284031215611e2157600080fd5b813561077181611d71565b8015158114611d8657600080fd5b60008060408385031215611e4d57600080fd5b8235611e5881611d71565b91506020830135611e6881611e2c565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b82811015611ebe57815180516001600160a01b03168552860151868501529284019290850190600101611e90565b5091979650505050505050565b600060208284031215611edd57600080fd5b813561077181611e2c565b60008060408385031215611efb57600080fd5b8235611f0681611d71565b91506020830135611e6881611d71565b600181811c90821680611f2a57607f821691505b6020821081141561130057634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611fa857611fa8611f80565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60008219821115611fea57611fea611f80565b500190565b600081600019048311821515161561200957612009611f80565b500290565b60008261202b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561206957612069612030565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561209857612098612030565b604052919050565b600060208083850312156120b357600080fd5b825167ffffffffffffffff808211156120cb57600080fd5b818501915085601f8301126120df57600080fd5b8151818111156120f1576120f1612030565b6120ff848260051b0161206f565b818152848101925060069190911b83018401908782111561211f57600080fd5b928401925b81841015611cce576040848903121561213d5760008081fd5b612145612046565b845161215081611d71565b81528486015186820152835260409093019291840191612124565b60006020828403121561217d57600080fd5b5051919050565b60006020828403121561219657600080fd5b815161077181611e2c565b600082516121b3818460208701611d12565b919091019291505056fea264697066735822122071555e917482ae7eabdf1be6a85c7a5679fd0efe7e5edf01c60df1dcc18ebe4e64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf74
-----Decoded View---------------
Arg [0] : _token (address): 0xFEEf77d3f69374f66429C91d732A244f074bdf74
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000feef77d3f69374f66429c91d732a244f074bdf74
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.