More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
stkCvxPrismaStrategy
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 "Ownable.sol"; import "SafeERC20.sol"; import "ERC20.sol"; import "IBooster.sol"; import "IStrategyOracle.sol"; import "IGenericVault.sol"; import "ICvxPrismaStaking.sol"; import "IHarvester.sol"; error ZeroAddress(); contract stkCvxPrismaStrategy is Ownable { using SafeERC20 for IERC20; IERC20 private constant CVXPRISMA_TOKEN = IERC20(0x34635280737b5BFe6c7DC2FC3065D60d66e78185); address public immutable vault; ICvxPrismaStaking private constant cvxPrismaStaking = ICvxPrismaStaking(0x0c73f1cFd5C9dFc150C8707Aa47Acbd14F0BE108); address public harvester; uint256 public constant FEE_DENOMINATOR = 10000; constructor(address _vault) { vault = _vault; } /// @notice Set approvals for the contracts used when swapping & staking function setApprovals() external { IERC20 _cvxPrisma = CVXPRISMA_TOKEN; _cvxPrisma.safeApprove(address(cvxPrismaStaking), 0); _cvxPrisma.safeApprove(address(cvxPrismaStaking), type(uint256).max); } /// @notice Update the harvester contract /// @param _harvester address of the new contract function setHarvester(address _harvester) external onlyOwner { if (_harvester == address(0)) revert ZeroAddress(); harvester = _harvester; // ensures all rewards are redirected to harvester // if regular claim reward is triggered on staking contract cvxPrismaStaking.setRewardRedirect(_harvester); } /// @notice Query the amount currently staked /// @return total - the total amount of tokens staked function totalUnderlying() external view returns (uint256 total) { return cvxPrismaStaking.balanceOf(address(this)); } /// @notice Deposits all underlying tokens in the staking contract function stake(uint256 _amount) external onlyVault { cvxPrismaStaking.stake(_amount); } /// @notice Withdraw a certain amount from the staking contract /// @param _amount - the amount to withdraw /// @dev Can only be called by the vault function withdraw(uint256 _amount) external onlyVault { cvxPrismaStaking.withdraw(_amount); CVXPRISMA_TOKEN.safeTransfer(vault, _amount); } /// @notice Claim rewards and swaps them to cvxPRISMA for restaking /// @dev Can be called by the vault only /// @param _caller - the address calling the harvest on the vault /// @param _minAmountOut - min amount of cvxPrisma expected /// @return harvested - the amount harvested function harvest( address _caller, uint256 _minAmountOut ) external onlyVault returns (uint256 harvested) { // claim rewards cvxPrismaStaking.getReward(address(this), harvester); uint256 _cvxPrismaBalance = IHarvester(harvester).processRewards(); require(_cvxPrismaBalance >= _minAmountOut, "slippage"); uint256 _stakingAmount = _cvxPrismaBalance; if (_cvxPrismaBalance > 0) { IERC20 _cvxPrisma = CVXPRISMA_TOKEN; IGenericVault _vault = IGenericVault(vault); // if this is the last call, no fees if (_vault.totalSupply() != 0) { // Deduce and pay out incentive to caller (not needed for final exit) if (_vault.callIncentive() > 0) { uint256 incentiveAmount = (_cvxPrismaBalance * _vault.callIncentive()) / FEE_DENOMINATOR; _cvxPrisma.safeTransfer(_caller, incentiveAmount); _stakingAmount = _stakingAmount - incentiveAmount; } // Deduce and pay platform fee if (_vault.platformFee() > 0) { uint256 feeAmount = (_cvxPrismaBalance * _vault.platformFee()) / FEE_DENOMINATOR; _cvxPrisma.safeTransfer(_vault.platform(), feeAmount); _stakingAmount = _stakingAmount - feeAmount; } } // Stake on Convex cvxPrismaStaking.stakeAll(); } return _stakingAmount; } /// @notice Transfers an ERC20 stuck in the contract to designated address /// @param _token - token address (can not be staking token) /// @param _to - address to send token to /// @param _amount - amount to transfer function rescueToken( address _token, address _to, uint256 _amount ) external onlyOwner { require( _token != address(cvxPrismaStaking), "Cannot rescue staking token" ); IERC20(_token).safeTransfer(_to, _amount); } modifier onlyVault() { require(vault == msg.sender, "Vault calls only"); _; } }
// 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 IBooster { function depositAll(uint256 _pid, bool _stake) external returns (bool); function deposit( uint256 _pid, uint256 _amount, bool _stake ) external returns (bool); function withdraw(uint256 _pid, uint256 _amount) external returns (bool); function withdrawAll(uint256 _pid) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IStrategyOracle { function harvest(address _caller) external returns (uint256 harvested); function totalUnderlying() external view returns (uint256 total); function stake(uint256 _amount) external; function withdraw(uint256 _amount) external; function setApprovals() external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IGenericVault { function withdraw(address _to, uint256 _shares) external returns (uint256 withdrawn); function withdrawAll(address _to) external returns (uint256 withdrawn); function depositAll(address _to) external returns (uint256 _shares); function deposit(address _to, uint256 _amount) external returns (uint256 _shares); function harvest() external; function balanceOfUnderlying(address user) external view returns (uint256 amount); function totalUnderlying() external view returns (uint256 total); function totalSupply() external view returns (uint256 total); function underlying() external view returns (address); function strategy() external view returns (address); function platform() external view returns (address); function setPlatform(address _platform) external; function setPlatformFee(uint256 _fee) external; function setCallIncentive(uint256 _incentive) external; function setWithdrawalPenalty(uint256 _penalty) external; function setApprovals() external; function callIncentive() external view returns (uint256); function withdrawalPenalty() external view returns (uint256); function platformFee() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.9; interface ICvxPrismaStaking { function balanceOf(address) external view returns (uint256); function withdraw(uint256) external; function getReward(address _address) external; function getReward(address _address, address _forwardTo) external; function stake(uint256) external; function stakeFor(address, uint256) external; function stakeAll() external; function addReward(address _rewardsToken, address _distributor) external; function approveRewardDistributor( address _rewardsToken, address _distributor, bool _approved ) external; function setRewardRedirect(address _to) external; function notifyRewardAmount(address _rewardsToken, uint256 _reward) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IHarvester { function setPendingOwner(address _po) external; function applyPendingOwner() external; function processRewards() external returns (uint256); }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "Strategy.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":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"harvest","outputs":[{"internalType":"uint256","name":"harvested","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvester","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvester","type":"address"}],"name":"setHarvester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalUnderlying","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b506040516113f23803806113f283398101604081905261002f91610081565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b03166080526100b1565b60006020828403121561009357600080fd5b81516001600160a01b03811681146100aa57600080fd5b9392505050565b6080516113036100ef600039600081816101bd015281816101e30152818161039401528181610837015281816108fd01526109fc01526113036000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063d73792a911610066578063d73792a914610189578063e5711e8b14610192578063f2fde38b146101a5578063fbfa77cf146101b857600080fd5b80638da5cb5b1461015d578063a694fc3a1461016e578063c70920bc1461018157600080fd5b8063018ee9b7146100d457806315de1daa146100fa5780632e1a7d4d1461010f5780634bdaeac114610122578063715018a61461014d5780638757b15b14610155575b600080fd5b6100e76100e2366004611086565b6101df565b6040519081526020015b60405180910390f35b61010d6101083660046110b2565b61075c565b005b61010d61011d3660046110cf565b610835565b600154610135906001600160a01b031681565b6040516001600160a01b0390911681526020016100f1565b61010d610927565b61010d61099b565b6000546001600160a01b0316610135565b61010d61017c3660046110cf565b6109fa565b6100e7610a7a565b6100e761271081565b61010d6101a03660046110e8565b610b04565b61010d6101b33660046110b2565b610bb4565b6101357f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146102325760405162461bcd60e51b815260040161022990611129565b60405180910390fd5b600154604051636b09169560e01b81523060048201526001600160a01b039091166024820152730c73f1cfd5c9dfc150c8707aa47acbd14f0be10890636b09169590604401600060405180830381600087803b15801561029157600080fd5b505af11580156102a5573d6000803e3d6000fd5b505050506000600160009054906101000a90046001600160a01b03166001600160a01b031663f9fc0d076040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156102fb57600080fd5b505af115801561030f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103339190611153565b9050828110156103705760405162461bcd60e51b8152602060048201526008602482015267736c69707061676560c01b6044820152606401610229565b8080156107545760007334635280737b5bfe6c7dc2fc3065d60d66e78185905060007f00000000000000000000000000000000000000000000000000000000000000009050806001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103ee57600080fd5b505afa158015610402573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104269190611153565b156106ea576000816001600160a01b031663cb22356b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046657600080fd5b505afa15801561047a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049e9190611153565b1115610552576000612710826001600160a01b031663cb22356b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156104e257600080fd5b505afa1580156104f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051a9190611153565b6105249087611182565b61052e91906111a1565b90506105446001600160a01b0384168983610c9e565b61054e81856111c3565b9350505b6000816001600160a01b03166326232a2e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561058d57600080fd5b505afa1580156105a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c59190611153565b11156106ea576000612710826001600160a01b03166326232a2e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561060957600080fd5b505afa15801561061d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106419190611153565b61064b9087611182565b61065591906111a1565b90506106dc826001600160a01b0316634bde38c86040518163ffffffff1660e01b815260040160206040518083038186803b15801561069357600080fd5b505afa1580156106a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cb91906111da565b6001600160a01b0385169083610c9e565b6106e681856111c3565b9350505b730c73f1cfd5c9dfc150c8707aa47acbd14f0be1086001600160a01b0316638dcb40616040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561073957600080fd5b505af115801561074d573d6000803e3d6000fd5b5050505050505b949350505050565b6000546001600160a01b031633146107865760405162461bcd60e51b8152600401610229906111f7565b6001600160a01b0381166107ad5760405163d92e233d60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b038316908117909155604051631d69040560e21b81526004810191909152730c73f1cfd5c9dfc150c8707aa47acbd14f0be108906375a41014906024015b600060405180830381600087803b15801561081a57600080fd5b505af115801561082e573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316331461087d5760405162461bcd60e51b815260040161022990611129565b604051632e1a7d4d60e01b815260048101829052730c73f1cfd5c9dfc150c8707aa47acbd14f0be10890632e1a7d4d90602401600060405180830381600087803b1580156108ca57600080fd5b505af11580156108de573d6000803e3d6000fd5b5061092492507334635280737b5bfe6c7dc2fc3065d60d66e7818591507f0000000000000000000000000000000000000000000000000000000000000000905083610c9e565b50565b6000546001600160a01b031633146109515760405162461bcd60e51b8152600401610229906111f7565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7334635280737b5bfe6c7dc2fc3065d60d66e781856109d081730c73f1cfd5c9dfc150c8707aa47acbd14f0be1086000610d01565b6109246001600160a01b038216730c73f1cfd5c9dfc150c8707aa47acbd14f0be108600019610d01565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314610a425760405162461bcd60e51b815260040161022990611129565b60405163534a7e1d60e11b815260048101829052730c73f1cfd5c9dfc150c8707aa47acbd14f0be1089063a694fc3a90602401610800565b6040516370a0823160e01b8152306004820152600090730c73f1cfd5c9dfc150c8707aa47acbd14f0be108906370a082319060240160206040518083038186803b158015610ac757600080fd5b505afa158015610adb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aff9190611153565b905090565b6000546001600160a01b03163314610b2e5760405162461bcd60e51b8152600401610229906111f7565b6001600160a01b038316730c73f1cfd5c9dfc150c8707aa47acbd14f0be1081415610b9b5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420726573637565207374616b696e6720746f6b656e00000000006044820152606401610229565b610baf6001600160a01b0384168383610c9e565b505050565b6000546001600160a01b03163314610bde5760405162461bcd60e51b8152600401610229906111f7565b6001600160a01b038116610c435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610229565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b038316602482015260448101829052610baf90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610e25565b801580610d8a5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610d5057600080fd5b505afa158015610d64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d889190611153565b155b610df55760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610229565b6040516001600160a01b038316602482015260448101829052610baf90849063095ea7b360e01b90606401610cca565b6000610e7a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ef79092919063ffffffff16565b805190915015610baf5780806020019051810190610e98919061122c565b610baf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610229565b6060610f068484600085610f10565b90505b9392505050565b606082471015610f715760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610229565b843b610fbf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610229565b600080866001600160a01b03168587604051610fdb919061127e565b60006040518083038185875af1925050503d8060008114611018576040519150601f19603f3d011682016040523d82523d6000602084013e61101d565b606091505b509150915061102d828286611038565b979650505050505050565b60608315611047575081610f09565b8251156110575782518084602001fd5b8160405162461bcd60e51b8152600401610229919061129a565b6001600160a01b038116811461092457600080fd5b6000806040838503121561109957600080fd5b82356110a481611071565b946020939093013593505050565b6000602082840312156110c457600080fd5b8135610f0981611071565b6000602082840312156110e157600080fd5b5035919050565b6000806000606084860312156110fd57600080fd5b833561110881611071565b9250602084013561111881611071565b929592945050506040919091013590565b60208082526010908201526f5661756c742063616c6c73206f6e6c7960801b604082015260600190565b60006020828403121561116557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561119c5761119c61116c565b500290565b6000826111be57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156111d5576111d561116c565b500390565b6000602082840312156111ec57600080fd5b8151610f0981611071565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561123e57600080fd5b81518015158114610f0957600080fd5b60005b83811015611269578181015183820152602001611251565b83811115611278576000848401525b50505050565b6000825161129081846020870161124e565b9190910192915050565b60208152600082518060208401526112b981604085016020870161124e565b601f01601f1916919091016040019291505056fea2646970667358221220d1c9630d672d79da12225ef9091efc2d7fdba244d8dca4a2af8c4c9818ce454164736f6c634300080900330000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063d73792a911610066578063d73792a914610189578063e5711e8b14610192578063f2fde38b146101a5578063fbfa77cf146101b857600080fd5b80638da5cb5b1461015d578063a694fc3a1461016e578063c70920bc1461018157600080fd5b8063018ee9b7146100d457806315de1daa146100fa5780632e1a7d4d1461010f5780634bdaeac114610122578063715018a61461014d5780638757b15b14610155575b600080fd5b6100e76100e2366004611086565b6101df565b6040519081526020015b60405180910390f35b61010d6101083660046110b2565b61075c565b005b61010d61011d3660046110cf565b610835565b600154610135906001600160a01b031681565b6040516001600160a01b0390911681526020016100f1565b61010d610927565b61010d61099b565b6000546001600160a01b0316610135565b61010d61017c3660046110cf565b6109fa565b6100e7610a7a565b6100e761271081565b61010d6101a03660046110e8565b610b04565b61010d6101b33660046110b2565b610bb4565b6101357f0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd81565b60007f0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd6001600160a01b031633146102325760405162461bcd60e51b815260040161022990611129565b60405180910390fd5b600154604051636b09169560e01b81523060048201526001600160a01b039091166024820152730c73f1cfd5c9dfc150c8707aa47acbd14f0be10890636b09169590604401600060405180830381600087803b15801561029157600080fd5b505af11580156102a5573d6000803e3d6000fd5b505050506000600160009054906101000a90046001600160a01b03166001600160a01b031663f9fc0d076040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156102fb57600080fd5b505af115801561030f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103339190611153565b9050828110156103705760405162461bcd60e51b8152602060048201526008602482015267736c69707061676560c01b6044820152606401610229565b8080156107545760007334635280737b5bfe6c7dc2fc3065d60d66e78185905060007f0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd9050806001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103ee57600080fd5b505afa158015610402573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104269190611153565b156106ea576000816001600160a01b031663cb22356b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046657600080fd5b505afa15801561047a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049e9190611153565b1115610552576000612710826001600160a01b031663cb22356b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156104e257600080fd5b505afa1580156104f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051a9190611153565b6105249087611182565b61052e91906111a1565b90506105446001600160a01b0384168983610c9e565b61054e81856111c3565b9350505b6000816001600160a01b03166326232a2e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561058d57600080fd5b505afa1580156105a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c59190611153565b11156106ea576000612710826001600160a01b03166326232a2e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561060957600080fd5b505afa15801561061d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106419190611153565b61064b9087611182565b61065591906111a1565b90506106dc826001600160a01b0316634bde38c86040518163ffffffff1660e01b815260040160206040518083038186803b15801561069357600080fd5b505afa1580156106a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cb91906111da565b6001600160a01b0385169083610c9e565b6106e681856111c3565b9350505b730c73f1cfd5c9dfc150c8707aa47acbd14f0be1086001600160a01b0316638dcb40616040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561073957600080fd5b505af115801561074d573d6000803e3d6000fd5b5050505050505b949350505050565b6000546001600160a01b031633146107865760405162461bcd60e51b8152600401610229906111f7565b6001600160a01b0381166107ad5760405163d92e233d60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b038316908117909155604051631d69040560e21b81526004810191909152730c73f1cfd5c9dfc150c8707aa47acbd14f0be108906375a41014906024015b600060405180830381600087803b15801561081a57600080fd5b505af115801561082e573d6000803e3d6000fd5b5050505050565b7f0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd6001600160a01b0316331461087d5760405162461bcd60e51b815260040161022990611129565b604051632e1a7d4d60e01b815260048101829052730c73f1cfd5c9dfc150c8707aa47acbd14f0be10890632e1a7d4d90602401600060405180830381600087803b1580156108ca57600080fd5b505af11580156108de573d6000803e3d6000fd5b5061092492507334635280737b5bfe6c7dc2fc3065d60d66e7818591507f0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd905083610c9e565b50565b6000546001600160a01b031633146109515760405162461bcd60e51b8152600401610229906111f7565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7334635280737b5bfe6c7dc2fc3065d60d66e781856109d081730c73f1cfd5c9dfc150c8707aa47acbd14f0be1086000610d01565b6109246001600160a01b038216730c73f1cfd5c9dfc150c8707aa47acbd14f0be108600019610d01565b7f0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd6001600160a01b03163314610a425760405162461bcd60e51b815260040161022990611129565b60405163534a7e1d60e11b815260048101829052730c73f1cfd5c9dfc150c8707aa47acbd14f0be1089063a694fc3a90602401610800565b6040516370a0823160e01b8152306004820152600090730c73f1cfd5c9dfc150c8707aa47acbd14f0be108906370a082319060240160206040518083038186803b158015610ac757600080fd5b505afa158015610adb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aff9190611153565b905090565b6000546001600160a01b03163314610b2e5760405162461bcd60e51b8152600401610229906111f7565b6001600160a01b038316730c73f1cfd5c9dfc150c8707aa47acbd14f0be1081415610b9b5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420726573637565207374616b696e6720746f6b656e00000000006044820152606401610229565b610baf6001600160a01b0384168383610c9e565b505050565b6000546001600160a01b03163314610bde5760405162461bcd60e51b8152600401610229906111f7565b6001600160a01b038116610c435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610229565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b038316602482015260448101829052610baf90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610e25565b801580610d8a5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610d5057600080fd5b505afa158015610d64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d889190611153565b155b610df55760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610229565b6040516001600160a01b038316602482015260448101829052610baf90849063095ea7b360e01b90606401610cca565b6000610e7a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ef79092919063ffffffff16565b805190915015610baf5780806020019051810190610e98919061122c565b610baf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610229565b6060610f068484600085610f10565b90505b9392505050565b606082471015610f715760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610229565b843b610fbf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610229565b600080866001600160a01b03168587604051610fdb919061127e565b60006040518083038185875af1925050503d8060008114611018576040519150601f19603f3d011682016040523d82523d6000602084013e61101d565b606091505b509150915061102d828286611038565b979650505050505050565b60608315611047575081610f09565b8251156110575782518084602001fd5b8160405162461bcd60e51b8152600401610229919061129a565b6001600160a01b038116811461092457600080fd5b6000806040838503121561109957600080fd5b82356110a481611071565b946020939093013593505050565b6000602082840312156110c457600080fd5b8135610f0981611071565b6000602082840312156110e157600080fd5b5035919050565b6000806000606084860312156110fd57600080fd5b833561110881611071565b9250602084013561111881611071565b929592945050506040919091013590565b60208082526010908201526f5661756c742063616c6c73206f6e6c7960801b604082015260600190565b60006020828403121561116557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561119c5761119c61116c565b500290565b6000826111be57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156111d5576111d561116c565b500390565b6000602082840312156111ec57600080fd5b8151610f0981611071565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561123e57600080fd5b81518015158114610f0957600080fd5b60005b83811015611269578181015183820152602001611251565b83811115611278576000848401525b50505050565b6000825161129081846020870161124e565b9190910192915050565b60208152600082518060208401526112b981604085016020870161124e565b601f01601f1916919091016040019291505056fea2646970667358221220d1c9630d672d79da12225ef9091efc2d7fdba244d8dca4a2af8c4c9818ce454164736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd
-----Decoded View---------------
Arg [0] : _vault (address): 0x9bfD08D7b3cC40129132A17b4d5B9Ea3351464BD
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009bfd08d7b3cc40129132a17b4d5b9ea3351464bd
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.