Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 17 from a total of 17 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Burn F Token | 18258717 | 302 days ago | IN | 0 ETH | 0.00144172 | ||||
Burn F Token | 18258614 | 302 days ago | IN | 0 ETH | 0.00064185 | ||||
Burn F Token | 18258574 | 302 days ago | IN | 0 ETH | 0.00053989 | ||||
Burn F Token | 18236390 | 305 days ago | IN | 0 ETH | 0.00112967 | ||||
Set Max Stake Du... | 17515043 | 406 days ago | IN | 0 ETH | 0.00085235 | ||||
Set Max Stake Du... | 17288897 | 438 days ago | IN | 0 ETH | 0.00140134 | ||||
Set Max Stake Du... | 17288250 | 438 days ago | IN | 0 ETH | 0.00175071 | ||||
Set Max Stake Du... | 17288079 | 438 days ago | IN | 0 ETH | 0.0034814 | ||||
Set Max Stake Du... | 17288069 | 438 days ago | IN | 0 ETH | 0.00274755 | ||||
Set Max Stake Du... | 17287546 | 438 days ago | IN | 0 ETH | 0.0041768 | ||||
Set Max Stake Du... | 17287494 | 438 days ago | IN | 0 ETH | 0.00469006 | ||||
Set Max Stake Du... | 17280690 | 439 days ago | IN | 0 ETH | 0.00172284 | ||||
Set Max Stake Du... | 17274241 | 440 days ago | IN | 0 ETH | 0.00273134 | ||||
Set Max Stake Du... | 17264567 | 441 days ago | IN | 0 ETH | 0.00115395 | ||||
Set Max Stake Du... | 17264510 | 441 days ago | IN | 0 ETH | 0.00116998 | ||||
Set Max Stake Du... | 17139257 | 459 days ago | IN | 0 ETH | 0.00121716 | ||||
0x60a06040 | 17139256 | 459 days ago | IN | 0 ETH | 0.0640592 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19487317 | 130 days ago | 2.93587694 ETH | ||||
19487317 | 130 days ago | 2.93587694 ETH | ||||
19317679 | 153 days ago | 0.52532675 ETH | ||||
19317679 | 153 days ago | 0.52532675 ETH | ||||
18624301 | 251 days ago | 0.00999499 ETH | ||||
18624301 | 251 days ago | 0.00999499 ETH | ||||
18624301 | 251 days ago | 0.00999499 ETH | ||||
18624301 | 251 days ago | 0.00999499 ETH | ||||
18624301 | 251 days ago | 0.01070463 ETH | ||||
18624301 | 251 days ago | 0.01070463 ETH | ||||
18274022 | 300 days ago | 2.19948781 ETH | ||||
18274022 | 300 days ago | 2.19948781 ETH | ||||
18256821 | 302 days ago | 42.47875 ETH | ||||
18256821 | 302 days ago | 42.47875 ETH | ||||
18204121 | 309 days ago | 10.9945 ETH | ||||
18204121 | 309 days ago | 10.9945 ETH | ||||
18204118 | 309 days ago | 3.32833499 ETH | ||||
18204118 | 309 days ago | 3.32833499 ETH | ||||
18204112 | 309 days ago | 3.29652542 ETH | ||||
18204112 | 309 days ago | 3.29652542 ETH | ||||
18204105 | 309 days ago | 2.99849999 ETH | ||||
18204105 | 309 days ago | 2.99849999 ETH | ||||
18204100 | 309 days ago | 2.99849999 ETH | ||||
18204100 | 309 days ago | 2.99849999 ETH | ||||
18204098 | 309 days ago | 2.99849999 ETH |
Loading...
Loading
Contract Name:
FlashStrategyRocketPool
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 // Licensor: Flashstake DAO // Licensed Works: (this contract, source below) // Change Date: The earlier of 2026-12-01 or a date specified by Flashstake DAO publicly // Change License: GNU General Public License v2.0 or later pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./interfaces/Flashstake/IFlashStrategy.sol"; import "./interfaces/Flashstake/IFlashFToken.sol"; import "./interfaces/RocketPool/RocketStorageInterface.sol"; import "./interfaces/RocketPool/RocketDepositPoolInterface.sol"; import "./interfaces/RocketPool/RocketTokenRETHInterface.sol"; import "./interfaces/IWETH.sol"; contract FlashStrategyRocketPool is Ownable, ReentrancyGuard { using SafeERC20 for IERC20Metadata; event BurnedFToken(address indexed _address, uint256 _tokenAmount, uint256 _yieldReturned); address immutable flashProtocolAddress; address payable constant principalTokenAddress = payable(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); address fTokenAddress; uint256 principalBalance; RocketStorageInterface public rocketStorage; uint256 maxStakeDuration = 14515200; bool public maxStakeDurationLocked = false; constructor(address _flashProtocolAddress, address _rocketStorageAddress) { flashProtocolAddress = _flashProtocolAddress; rocketStorage = RocketStorageInterface(_rocketStorageAddress); } // @notice Retrieves relevant addresses as per RocketPool docs // @dev this can be called by anyone function getAddresses() public view returns(address _depositAddress, address _withdrawAddress) { _depositAddress = rocketStorage.getAddress(keccak256(abi.encodePacked("contract.address", "rocketDepositPool"))); _withdrawAddress = rocketStorage.getAddress(keccak256(abi.encodePacked("contract.address", "rocketTokenRETH"))); } // @notice Allows Flashstake Protocol to deposit principal tokens // @dev this can only be called by the Flashstake Protocol function depositPrincipal(uint256 _tokenAmount) external onlyAuthorised returns (uint256) { IWETH(principalTokenAddress).approve(principalTokenAddress, _tokenAmount); IWETH(principalTokenAddress).withdraw(_tokenAmount); (address _depositAddress, address _withdrawAddress) = getAddresses(); uint256 rETHBefore = IERC20Metadata(_withdrawAddress).balanceOf(address(this)); RocketDepositPoolInterface(_depositAddress).deposit{ value: address(this).balance }(); uint256 rETHAfter = IERC20Metadata(_withdrawAddress).balanceOf(address(this)); uint256 redeemableValue = RocketTokenRETHInterface(_withdrawAddress).getEthValue(rETHAfter - rETHBefore); principalBalance += redeemableValue; return redeemableValue; } // @notice Allows Flashstake Protocol to withdraw principal tokens // @dev this can only be called by the Flashstake Protocol function withdrawPrincipal(uint256 _tokenAmount) external onlyAuthorised { require(_tokenAmount <= principalBalance, "WITHDRAW TOO HIGH"); (, address _withdrawAddress) = getAddresses(); uint256 rETHtoBurn = ((_tokenAmount * 10**18) / RocketTokenRETHInterface(_withdrawAddress).getExchangeRate()) + 1; RocketTokenRETHInterface(_withdrawAddress).approve(_withdrawAddress, rETHtoBurn); RocketTokenRETHInterface(_withdrawAddress).burn(rETHtoBurn); IWETH(principalTokenAddress).deposit{ value: address(this).balance }(); IERC20Metadata(principalTokenAddress).safeTransfer(msg.sender, _tokenAmount); principalBalance -= _tokenAmount; } // @notice retrieve the total principal locked within this strategy function getPrincipalBalance() public view returns (uint256) { return principalBalance; } // @notice retrieve the total amount of yield currently in the yield pool function getYieldBalance() public view returns (uint256) { (, address _withdrawAddress) = getAddresses(); uint256 totalrETHBalance = RocketTokenRETHInterface(_withdrawAddress).balanceOf(address(this)); uint256 totalEtherBalance = RocketTokenRETHInterface(_withdrawAddress).getEthValue(totalrETHBalance); if(principalBalance > totalEtherBalance) { return 0; } // Yield balance is the difference between total redeemable and principalBalance (as recorded) return totalEtherBalance - principalBalance; } // @notice retrieve the principal token address this strategy accepts function getPrincipalAddress() external view returns (address) { return principalTokenAddress; } // @notice retrieve the fToken address associated with this strategy function getFTokenAddress() external view returns (address) { return fTokenAddress; } // @notice sets the fToken address // @dev this can only be called once when registering the strategy against the Flashstake Protocol // @dev this can only be called by the Flashstake Protocol function setFTokenAddress(address _fTokenAddress) external onlyAuthorised { require(fTokenAddress == address(0), "FTOKEN ADDRESS ALREADY SET"); fTokenAddress = _fTokenAddress; } // @notice returns the number of fTokens to mint given some principal and duration // @dev this can only be called by anyone function quoteMintFToken(uint256 _tokenAmount, uint256 _duration) external pure returns (uint256) { // Enforce minimum _duration require(_duration >= 60, "DURATION TOO LOW"); // 1 ERC20 for 365 DAYS = 1 fERC20 // 1 second = 0.000000031709792000 // eg (100000000000000000 * (1 second * 31709792000)) / 10**18 uint256 amountToMint = (_tokenAmount * (_duration * 31709792000)) / (10**18); return amountToMint; } // @notice returns the number (estimate) of principal tokens returned when burning some amount of fTokens // @dev this can only be called by anyone with fTokens function quoteBurnFToken(uint256 _tokenAmount) public view returns (uint256) { uint256 totalSupply = IERC20Metadata(fTokenAddress).totalSupply(); require(totalSupply > 0, "INSUFFICIENT fERC20 TOKEN SUPPLY"); if (_tokenAmount > totalSupply) { _tokenAmount = totalSupply; } uint256 totalYield = getYieldBalance(); return (totalYield * _tokenAmount) / totalSupply; } // @notice burns fTokens to redeem yield from yield pool // @dev this can only be called by anyone with fTokens function burnFToken( uint256 _tokenAmount, uint256 _minimumReturned, address _yieldTo ) external nonReentrant returns (uint256) { uint256 tokensOwed = quoteBurnFToken(_tokenAmount); require(tokensOwed >= _minimumReturned, "INSUFFICIENT OUTPUT"); IFlashFToken(fTokenAddress).burnFrom(msg.sender, _tokenAmount); // Withdraw the yield (, address _withdrawAddress) = getAddresses(); uint256 rETHtoBurn = ((tokensOwed * 10**18) / RocketTokenRETHInterface(_withdrawAddress).getExchangeRate()) + 1; RocketTokenRETHInterface(_withdrawAddress).approve(_withdrawAddress, rETHtoBurn); RocketTokenRETHInterface(_withdrawAddress).burn(rETHtoBurn); IWETH(principalTokenAddress).deposit{ value: address(this).balance }(); IERC20Metadata(principalTokenAddress).safeTransfer(_yieldTo, tokensOwed); emit BurnedFToken(msg.sender, _tokenAmount, tokensOwed); return tokensOwed; } modifier onlyAuthorised() { require(msg.sender == flashProtocolAddress || msg.sender == address(this), "NOT FLASH PROTOCOL"); _; } // @notice withdraw any ERC20 token in this strategy that is not the principal or share token // @dev this can only be called by the strategy owner function withdrawERC20(address[] calldata _tokenAddresses, uint256[] calldata _tokenAmounts) external onlyOwner { require(_tokenAddresses.length == _tokenAmounts.length, "ARRAY SIZE MISMATCH"); (, address _withdrawAddress) = getAddresses(); for (uint256 i = 0; i < _tokenAddresses.length; i++) { // Ensure the token being withdrawn is not the principal token require(_tokenAddresses[i] != principalTokenAddress && _tokenAddresses[i] != _withdrawAddress, "TOKEN ADDRESS PROHIBITED"); // Transfer the token to the caller IERC20Metadata(_tokenAddresses[i]).safeTransfer(msg.sender, _tokenAmounts[i]); } } // @notice retrieve the maximum stake duration in seconds // @dev this is usually called by the Flashstake Protocol function getMaxStakeDuration() public view returns (uint256) { return maxStakeDuration; } // @notice sets the new maximum stake duration // @dev this can only be called by the strategy owner function setMaxStakeDuration(uint256 _newMaxStakeDuration) external onlyOwner { require(maxStakeDurationLocked == false); maxStakeDuration = _newMaxStakeDuration; } // @notice permanently locks the max stake duration // @dev this can only be called by the strategy owner function lockMaxStakeDuration() external onlyOwner { maxStakeDurationLocked = true; } fallback() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) 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 // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IFlashFToken { function mint(address account, uint256 amount) external; function burnFrom(address from, uint256 amount) external; function decimals() external returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IFlashStrategy { event BurnedFToken(address indexed _address, uint256 _tokenAmount, uint256 _yieldReturned); // This is how principal will be deposited into the contract // The Flash protocol allows the strategy to specify how much // should be registered. This allows the strategy to manipulate (eg take fee) // on the principal if the strategy requires function depositPrincipal(uint256 _tokenAmount) external returns (uint256); // This is how principal will be returned from the contract function withdrawPrincipal(uint256 _tokenAmount) external; // Responsible for instant upfront yield. Takes fERC20 tokens specific to this // strategy. The strategy is responsible for returning some amount of principal tokens function burnFToken( uint256 _tokenAmount, uint256 _minimumReturned, address _yieldTo ) external returns (uint256); // This should return the current total of all principal within the contract function getPrincipalBalance() external view returns (uint256); // This should return the current total of all yield generated to date (including bootstrapped tokens) function getYieldBalance() external view returns (uint256); // This should return the principal token address (eg DAI) function getPrincipalAddress() external view returns (address); // View function which quotes how many principal tokens would be returned if x // fERC20 tokens are burned function quoteMintFToken(uint256 _tokenAmount, uint256 duration) external view returns (uint256); // View function which quotes how many principal tokens would be returned if x // fERC20 tokens are burned // IMPORTANT NOTE: This should utilise bootstrap tokens if they exist // bootstrapped tokens are any principal tokens that exist within the smart contract function quoteBurnFToken(uint256 _tokenAmount) external view returns (uint256); // The function to set the fERC20 address within the strategy function setFTokenAddress(address _fTokenAddress) external; // This should return what the maximum stake duration is function getMaxStakeDuration() external view returns (uint256); function getFTokenAddress() external view returns (address); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; interface IWETH { function name() external view returns (string memory); function approve(address guy, uint256 wad) external returns (bool); function totalSupply() external view returns (uint256); function transferFrom( address src, address dst, uint256 wad ) external returns (bool); function withdraw(uint256 wad) external; function decimals() external view returns (uint8); function balanceOf(address) external view returns (uint256); function symbol() external view returns (string memory); function transfer(address dst, uint256 wad) external returns (bool); function deposit() external payable; function allowance(address, address) external view returns (uint256); fallback() external payable; event Approval(address indexed src, address indexed guy, uint256 wad); event Transfer(address indexed src, address indexed dst, uint256 wad); event Deposit(address indexed dst, uint256 wad); event Withdrawal(address indexed src, uint256 wad); }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned, * decentralised, trustless and compatible with staking in Ethereum 2.0. * * For more information about Rocket Pool, visit https://rocketpool.net * * Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty * */ pragma solidity >0.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only interface RocketDepositPoolInterface { function getBalance() external view returns (uint256); function getNodeBalance() external view returns (uint256); function getUserBalance() external view returns (int256); function getExcessBalance() external view returns (uint256); function deposit() external payable; function getMaximumDepositAmount() external view returns (uint256); function nodeDeposit(uint256 _totalAmount) external payable; function nodeCreditWithdrawal(uint256 _amount) external; function recycleDissolvedDeposit() external payable; function recycleExcessCollateral() external payable; function recycleLiquidatedStake() external payable; function assignDeposits() external; function maybeAssignDeposits() external returns (bool); function withdrawExcessBalance(uint256 _amount) external; }
pragma solidity >0.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only interface RocketStorageInterface { // Deploy status function getDeployedStatus() external view returns (bool); // Guardian function getGuardian() external view returns(address); function setGuardian(address _newAddress) external; function confirmGuardian() external; // Getters function getAddress(bytes32 _key) external view returns (address); function getUint(bytes32 _key) external view returns (uint); function getString(bytes32 _key) external view returns (string memory); function getBytes(bytes32 _key) external view returns (bytes memory); function getBool(bytes32 _key) external view returns (bool); function getInt(bytes32 _key) external view returns (int); function getBytes32(bytes32 _key) external view returns (bytes32); // Setters function setAddress(bytes32 _key, address _value) external; function setUint(bytes32 _key, uint _value) external; function setString(bytes32 _key, string calldata _value) external; function setBytes(bytes32 _key, bytes calldata _value) external; function setBool(bytes32 _key, bool _value) external; function setInt(bytes32 _key, int _value) external; function setBytes32(bytes32 _key, bytes32 _value) external; // Deleters function deleteAddress(bytes32 _key) external; function deleteUint(bytes32 _key) external; function deleteString(bytes32 _key) external; function deleteBytes(bytes32 _key) external; function deleteBool(bytes32 _key) external; function deleteInt(bytes32 _key) external; function deleteBytes32(bytes32 _key) external; // Arithmetic function addUint(bytes32 _key, uint256 _amount) external; function subUint(bytes32 _key, uint256 _amount) external; // Protected storage function getNodeWithdrawalAddress(address _nodeAddress) external view returns (address); function getNodePendingWithdrawalAddress(address _nodeAddress) external view returns (address); function setWithdrawalAddress(address _nodeAddress, address _newWithdrawalAddress, bool _confirm) external; function confirmWithdrawalAddress(address _nodeAddress) external; }
pragma solidity >0.5.0 <0.9.0; // SPDX-License-Identifier: GPL-3.0-only import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface RocketTokenRETHInterface is IERC20 { function getEthValue(uint256 _rethAmount) external view returns (uint256); function getRethValue(uint256 _ethAmount) external view returns (uint256); function getExchangeRate() external view returns (uint256); function getTotalCollateral() external view returns (uint256); function getCollateralRate() external view returns (uint256); function depositExcess() external payable; function depositExcessCollateral() external; function mint(uint256 _ethAmount, address _to) external; function burn(uint256 _rethAmount) external; }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_flashProtocolAddress","type":"address"},{"internalType":"address","name":"_rocketStorageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_yieldReturned","type":"uint256"}],"name":"BurnedFToken","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_minimumReturned","type":"uint256"},{"internalType":"address","name":"_yieldTo","type":"address"}],"name":"burnFToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"depositPrincipal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAddresses","outputs":[{"internalType":"address","name":"_depositAddress","type":"address"},{"internalType":"address","name":"_withdrawAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxStakeDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrincipalAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrincipalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getYieldBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMaxStakeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxStakeDurationLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"quoteBurnFToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"quoteMintFToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rocketStorage","outputs":[{"internalType":"contract RocketStorageInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fTokenAddress","type":"address"}],"name":"setFTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxStakeDuration","type":"uint256"}],"name":"setMaxStakeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_tokenAmounts","type":"uint256[]"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"withdrawPrincipal","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405262dd7c006005556006805460ff191690553480156200002257600080fd5b5060405162001c7538038062001c758339810160408190526200004591620000ea565b62000050336200007d565b600180556001600160a01b03918216608052600480546001600160a01b0319169190921617905562000122565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000e557600080fd5b919050565b60008060408385031215620000fe57600080fd5b6200010983620000cd565b91506200011960208401620000cd565b90509250929050565b608051611b296200014c600039600081816109d70152818161100f01526111100152611b296000f3fe60806040526004361061014a5760003560e01c8063715018a6116100b4578063a39fac121161006e578063e68c84cb11610056578063e68c84cb1461037a578063ef8d49641461039a578063f2fde38b146103ba57005b8063a39fac1214610325578063cec833a91461035a57005b80637b027af01161009c5780637b027af0146102d25780638b4fd515146102f25780638da5cb5b1461030757005b8063715018a6146102a857806376972999146102bd57005b806345ed7f3311610105578063594cc686116100ed578063594cc68614610248578063658e28a41461026857806367601a8e1461028857005b806345ed7f331461020c578063489cc20c1461023357005b8063202f2a2711610133578063202f2a271461018c578063272d28ca146101b057806344f04911146101e257005b806308aae3301461014c578063188190221461016c575b005b34801561015857600080fd5b5061014a61016736600461184f565b6103da565b34801561017857600080fd5b5061014a6101873660046118b4565b6103f7565b34801561019857600080fd5b506003545b6040519081526020015b60405180910390f35b3480156101bc57600080fd5b506002546001600160a01b03165b6040516001600160a01b0390911681526020016101a7565b3480156101ee57600080fd5b506006546101fc9060ff1681565b60405190151581526020016101a7565b34801561021857600080fd5b5073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26101ca565b34801561023f57600080fd5b5061019d6105b0565b34801561025457600080fd5b5061019d610263366004611935565b6106c4565b34801561027457600080fd5b5061014a61028336600461184f565b6109cc565b34801561029457600080fd5b506004546101ca906001600160a01b031681565b3480156102b457600080fd5b5061014a610ca3565b3480156102c957600080fd5b5060055461019d565b3480156102de57600080fd5b5061019d6102ed36600461196e565b610cb7565b3480156102fe57600080fd5b5061014a610d42565b34801561031357600080fd5b506000546001600160a01b03166101ca565b34801561033157600080fd5b5061033a610d59565b604080516001600160a01b039384168152929091166020830152016101a7565b34801561036657600080fd5b5061019d61037536600461184f565b610f03565b34801561038657600080fd5b5061014a610395366004611990565b611004565b3480156103a657600080fd5b5061019d6103b536600461184f565b611103565b3480156103c657600080fd5b5061014a6103d5366004611990565b61143b565b6103e26114cb565b60065460ff16156103f257600080fd5b600555565b6103ff6114cb565b8281146104535760405162461bcd60e51b815260206004820152601360248201527f41525241592053495a45204d49534d415443480000000000000000000000000060448201526064015b60405180910390fd5b600061045d610d59565b91505060005b848110156105a85773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2868683818110610492576104926119ad565b90506020020160208101906104a79190611990565b6001600160a01b0316141580156104f65750816001600160a01b03168686838181106104d5576104d56119ad565b90506020020160208101906104ea9190611990565b6001600160a01b031614155b6105425760405162461bcd60e51b815260206004820152601860248201527f544f4b454e20414444524553532050524f484942495445440000000000000000604482015260640161044a565b61059633858584818110610558576105586119ad565b90506020020135888885818110610571576105716119ad565b90506020020160208101906105869190611990565b6001600160a01b03169190611525565b806105a0816119d9565b915050610463565b505050505050565b6000806105bb610d59565b6040516370a0823160e01b8152306004820152909250600091506001600160a01b038316906370a0823190602401602060405180830381865afa158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a91906119f2565b604051638b32fa2360e01b8152600481018290529091506000906001600160a01b03841690638b32fa2390602401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069991906119f2565b90508060035411156106af576000935050505090565b6003546106bc9082611a0b565b935050505090565b60006106ce611591565b60006106d985610f03565b90508381101561072b5760405162461bcd60e51b815260206004820152601360248201527f494e53554646494349454e54204f555450555400000000000000000000000000604482015260640161044a565b60025460405163079cc67960e41b8152336004820152602481018790526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561077757600080fd5b505af115801561078b573d6000803e3d6000fd5b505050506000610799610d59565b9150506000816001600160a01b031663e6aa216c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080091906119f2565b61081284670de0b6b3a7640000611a1e565b61081c9190611a35565b610827906001611a57565b60405163095ea7b360e01b81526001600160a01b038416600482018190526024820183905291925063095ea7b3906044016020604051808303816000875af1158015610877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089b9190611a6a565b50604051630852cd8d60e31b8152600481018290526001600160a01b038316906342966c6890602401600060405180830381600087803b1580156108de57600080fd5b505af11580156108f2573d6000803e3d6000fd5b5050505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b15801561094557600080fd5b505af1158015610959573d6000803e3d6000fd5b50610981935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29250889150869050611525565b604080518881526020810185905233917f931033e43a2977753dbe3de2347d53265c3a695c82b3fa009dd57e06d6a20503910160405180910390a250506001805590505b9392505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610a0257503330145b610a435760405162461bcd60e51b81526020600482015260126024820152711393d50811931054d208141493d513d0d3d360721b604482015260640161044a565b600354811115610a955760405162461bcd60e51b815260206004820152601160248201527f574954484452415720544f4f2048494748000000000000000000000000000000604482015260640161044a565b6000610a9f610d59565b9150506000816001600160a01b031663e6aa216c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0691906119f2565b610b1884670de0b6b3a7640000611a1e565b610b229190611a35565b610b2d906001611a57565b60405163095ea7b360e01b81526001600160a01b038416600482018190526024820183905291925063095ea7b3906044016020604051808303816000875af1158015610b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba19190611a6a565b50604051630852cd8d60e31b8152600481018290526001600160a01b038316906342966c6890602401600060405180830381600087803b158015610be457600080fd5b505af1158015610bf8573d6000803e3d6000fd5b5050505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b50610c87935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29250339150869050611525565b8260036000828254610c999190611a0b565b9091555050505050565b610cab6114cb565b610cb560006115ea565b565b6000603c821015610d0a5760405162461bcd60e51b815260206004820152601060248201527f4455524154494f4e20544f4f204c4f5700000000000000000000000000000000604482015260640161044a565b6000670de0b6b3a7640000610d24846407620d0700611a1e565b610d2e9086611a1e565b610d389190611a35565b9150505b92915050565b610d4a6114cb565b6006805460ff19166001179055565b6004546040516f636f6e74726163742e6164647265737360801b60208201527f726f636b65744465706f736974506f6f6c000000000000000000000000000000603082015260009182916001600160a01b03909116906321f8a72190604101604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610dec91815260200190565b602060405180830381865afa158015610e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2d9190611a8c565b6004546040516f636f6e74726163742e6164647265737360801b60208201527f726f636b6574546f6b656e52455448000000000000000000000000000000000060308201529193506001600160a01b0316906321f8a72190603f01604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610ebc91815260200190565b602060405180830381865afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd9190611a8c565b90509091565b600080600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7d91906119f2565b905060008111610fcf5760405162461bcd60e51b815260206004820181905260248201527f494e53554646494349454e542066455243323020544f4b454e20535550504c59604482015260640161044a565b80831115610fdb578092505b6000610fe56105b0565b905081610ff28583611a1e565b610ffc9190611a35565b949350505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061103a57503330145b61107b5760405162461bcd60e51b81526020600482015260126024820152711393d50811931054d208141493d513d0d3d360721b604482015260640161044a565b6002546001600160a01b0316156110d45760405162461bcd60e51b815260206004820152601a60248201527f46544f4b454e204144445245535320414c524541445920534554000000000000604482015260640161044a565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061113b57503330145b61117c5760405162461bcd60e51b81526020600482015260126024820152711393d50811931054d208141493d513d0d3d360721b604482015260640161044a565b60405163095ea7b360e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201819052602482018490529063095ea7b3906044016020604051808303816000875af11580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f99190611a6a565b50604051632e1a7d4d60e01b81526004810183905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b15801561124757600080fd5b505af115801561125b573d6000803e3d6000fd5b5050505060008061126a610d59565b6040516370a0823160e01b815230600482015291935091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da91906119f2565b9050826001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b15801561131757600080fd5b505af115801561132b573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600093506001600160a01b03861692506370a082319150602401602060405180830381865afa158015611377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139b91906119f2565b905060006001600160a01b038416638b32fa236113b88585611a0b565b6040518263ffffffff1660e01b81526004016113d691815260200190565b602060405180830381865afa1580156113f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141791906119f2565b9050806003600082825461142b9190611a57565b9091555090979650505050505050565b6114436114cb565b6001600160a01b0381166114bf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161044a565b6114c8816115ea565b50565b6000546001600160a01b03163314610cb55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161044a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261158c908490611647565b505050565b6002600154036115e35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161044a565b6002600155565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061169c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661172c9092919063ffffffff16565b80519091501561158c57808060200190518101906116ba9190611a6a565b61158c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161044a565b6060610ffc848460008585600080866001600160a01b031685876040516117539190611acd565b60006040518083038185875af1925050503d8060008114611790576040519150601f19603f3d011682016040523d82523d6000602084013e611795565b606091505b50915091506117a6878383876117b1565b979650505050505050565b60608315611820578251600003611819576001600160a01b0385163b6118195760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161044a565b5081610ffc565b610ffc83838151156118355781518083602001fd5b8060405162461bcd60e51b815260040161044a9190611ae9565b60006020828403121561186157600080fd5b5035919050565b60008083601f84011261187a57600080fd5b50813567ffffffffffffffff81111561189257600080fd5b6020830191508360208260051b85010111156118ad57600080fd5b9250929050565b600080600080604085870312156118ca57600080fd5b843567ffffffffffffffff808211156118e257600080fd5b6118ee88838901611868565b9096509450602087013591508082111561190757600080fd5b5061191487828801611868565b95989497509550505050565b6001600160a01b03811681146114c857600080fd5b60008060006060848603121561194a57600080fd5b8335925060208401359150604084013561196381611920565b809150509250925092565b6000806040838503121561198157600080fd5b50508035926020909101359150565b6000602082840312156119a257600080fd5b81356109c581611920565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016119eb576119eb6119c3565b5060010190565b600060208284031215611a0457600080fd5b5051919050565b81810381811115610d3c57610d3c6119c3565b8082028115828204841417610d3c57610d3c6119c3565b600082611a5257634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610d3c57610d3c6119c3565b600060208284031215611a7c57600080fd5b815180151581146109c557600080fd5b600060208284031215611a9e57600080fd5b81516109c581611920565b60005b83811015611ac4578181015183820152602001611aac565b50506000910152565b60008251611adf818460208701611aa9565b9190910192915050565b6020815260008251806020840152611b08816040850160208701611aa9565b601f01601f1916919091016040019291505056fea164736f6c6343000811000a00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b90000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46
Deployed Bytecode
0x60806040526004361061014a5760003560e01c8063715018a6116100b4578063a39fac121161006e578063e68c84cb11610056578063e68c84cb1461037a578063ef8d49641461039a578063f2fde38b146103ba57005b8063a39fac1214610325578063cec833a91461035a57005b80637b027af01161009c5780637b027af0146102d25780638b4fd515146102f25780638da5cb5b1461030757005b8063715018a6146102a857806376972999146102bd57005b806345ed7f3311610105578063594cc686116100ed578063594cc68614610248578063658e28a41461026857806367601a8e1461028857005b806345ed7f331461020c578063489cc20c1461023357005b8063202f2a2711610133578063202f2a271461018c578063272d28ca146101b057806344f04911146101e257005b806308aae3301461014c578063188190221461016c575b005b34801561015857600080fd5b5061014a61016736600461184f565b6103da565b34801561017857600080fd5b5061014a6101873660046118b4565b6103f7565b34801561019857600080fd5b506003545b6040519081526020015b60405180910390f35b3480156101bc57600080fd5b506002546001600160a01b03165b6040516001600160a01b0390911681526020016101a7565b3480156101ee57600080fd5b506006546101fc9060ff1681565b60405190151581526020016101a7565b34801561021857600080fd5b5073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26101ca565b34801561023f57600080fd5b5061019d6105b0565b34801561025457600080fd5b5061019d610263366004611935565b6106c4565b34801561027457600080fd5b5061014a61028336600461184f565b6109cc565b34801561029457600080fd5b506004546101ca906001600160a01b031681565b3480156102b457600080fd5b5061014a610ca3565b3480156102c957600080fd5b5060055461019d565b3480156102de57600080fd5b5061019d6102ed36600461196e565b610cb7565b3480156102fe57600080fd5b5061014a610d42565b34801561031357600080fd5b506000546001600160a01b03166101ca565b34801561033157600080fd5b5061033a610d59565b604080516001600160a01b039384168152929091166020830152016101a7565b34801561036657600080fd5b5061019d61037536600461184f565b610f03565b34801561038657600080fd5b5061014a610395366004611990565b611004565b3480156103a657600080fd5b5061019d6103b536600461184f565b611103565b3480156103c657600080fd5b5061014a6103d5366004611990565b61143b565b6103e26114cb565b60065460ff16156103f257600080fd5b600555565b6103ff6114cb565b8281146104535760405162461bcd60e51b815260206004820152601360248201527f41525241592053495a45204d49534d415443480000000000000000000000000060448201526064015b60405180910390fd5b600061045d610d59565b91505060005b848110156105a85773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2868683818110610492576104926119ad565b90506020020160208101906104a79190611990565b6001600160a01b0316141580156104f65750816001600160a01b03168686838181106104d5576104d56119ad565b90506020020160208101906104ea9190611990565b6001600160a01b031614155b6105425760405162461bcd60e51b815260206004820152601860248201527f544f4b454e20414444524553532050524f484942495445440000000000000000604482015260640161044a565b61059633858584818110610558576105586119ad565b90506020020135888885818110610571576105716119ad565b90506020020160208101906105869190611990565b6001600160a01b03169190611525565b806105a0816119d9565b915050610463565b505050505050565b6000806105bb610d59565b6040516370a0823160e01b8152306004820152909250600091506001600160a01b038316906370a0823190602401602060405180830381865afa158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a91906119f2565b604051638b32fa2360e01b8152600481018290529091506000906001600160a01b03841690638b32fa2390602401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069991906119f2565b90508060035411156106af576000935050505090565b6003546106bc9082611a0b565b935050505090565b60006106ce611591565b60006106d985610f03565b90508381101561072b5760405162461bcd60e51b815260206004820152601360248201527f494e53554646494349454e54204f555450555400000000000000000000000000604482015260640161044a565b60025460405163079cc67960e41b8152336004820152602481018790526001600160a01b03909116906379cc679090604401600060405180830381600087803b15801561077757600080fd5b505af115801561078b573d6000803e3d6000fd5b505050506000610799610d59565b9150506000816001600160a01b031663e6aa216c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080091906119f2565b61081284670de0b6b3a7640000611a1e565b61081c9190611a35565b610827906001611a57565b60405163095ea7b360e01b81526001600160a01b038416600482018190526024820183905291925063095ea7b3906044016020604051808303816000875af1158015610877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089b9190611a6a565b50604051630852cd8d60e31b8152600481018290526001600160a01b038316906342966c6890602401600060405180830381600087803b1580156108de57600080fd5b505af11580156108f2573d6000803e3d6000fd5b5050505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b15801561094557600080fd5b505af1158015610959573d6000803e3d6000fd5b50610981935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29250889150869050611525565b604080518881526020810185905233917f931033e43a2977753dbe3de2347d53265c3a695c82b3fa009dd57e06d6a20503910160405180910390a250506001805590505b9392505050565b336001600160a01b037f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b9161480610a0257503330145b610a435760405162461bcd60e51b81526020600482015260126024820152711393d50811931054d208141493d513d0d3d360721b604482015260640161044a565b600354811115610a955760405162461bcd60e51b815260206004820152601160248201527f574954484452415720544f4f2048494748000000000000000000000000000000604482015260640161044a565b6000610a9f610d59565b9150506000816001600160a01b031663e6aa216c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0691906119f2565b610b1884670de0b6b3a7640000611a1e565b610b229190611a35565b610b2d906001611a57565b60405163095ea7b360e01b81526001600160a01b038416600482018190526024820183905291925063095ea7b3906044016020604051808303816000875af1158015610b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba19190611a6a565b50604051630852cd8d60e31b8152600481018290526001600160a01b038316906342966c6890602401600060405180830381600087803b158015610be457600080fd5b505af1158015610bf8573d6000803e3d6000fd5b5050505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b50610c87935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29250339150869050611525565b8260036000828254610c999190611a0b565b9091555050505050565b610cab6114cb565b610cb560006115ea565b565b6000603c821015610d0a5760405162461bcd60e51b815260206004820152601060248201527f4455524154494f4e20544f4f204c4f5700000000000000000000000000000000604482015260640161044a565b6000670de0b6b3a7640000610d24846407620d0700611a1e565b610d2e9086611a1e565b610d389190611a35565b9150505b92915050565b610d4a6114cb565b6006805460ff19166001179055565b6004546040516f636f6e74726163742e6164647265737360801b60208201527f726f636b65744465706f736974506f6f6c000000000000000000000000000000603082015260009182916001600160a01b03909116906321f8a72190604101604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610dec91815260200190565b602060405180830381865afa158015610e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2d9190611a8c565b6004546040516f636f6e74726163742e6164647265737360801b60208201527f726f636b6574546f6b656e52455448000000000000000000000000000000000060308201529193506001600160a01b0316906321f8a72190603f01604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610ebc91815260200190565b602060405180830381865afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd9190611a8c565b90509091565b600080600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7d91906119f2565b905060008111610fcf5760405162461bcd60e51b815260206004820181905260248201527f494e53554646494349454e542066455243323020544f4b454e20535550504c59604482015260640161044a565b80831115610fdb578092505b6000610fe56105b0565b905081610ff28583611a1e565b610ffc9190611a35565b949350505050565b336001600160a01b037f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b916148061103a57503330145b61107b5760405162461bcd60e51b81526020600482015260126024820152711393d50811931054d208141493d513d0d3d360721b604482015260640161044a565b6002546001600160a01b0316156110d45760405162461bcd60e51b815260206004820152601a60248201527f46544f4b454e204144445245535320414c524541445920534554000000000000604482015260640161044a565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000336001600160a01b037f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b916148061113b57503330145b61117c5760405162461bcd60e51b81526020600482015260126024820152711393d50811931054d208141493d513d0d3d360721b604482015260640161044a565b60405163095ea7b360e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201819052602482018490529063095ea7b3906044016020604051808303816000875af11580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f99190611a6a565b50604051632e1a7d4d60e01b81526004810183905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b15801561124757600080fd5b505af115801561125b573d6000803e3d6000fd5b5050505060008061126a610d59565b6040516370a0823160e01b815230600482015291935091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da91906119f2565b9050826001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b15801561131757600080fd5b505af115801561132b573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600093506001600160a01b03861692506370a082319150602401602060405180830381865afa158015611377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139b91906119f2565b905060006001600160a01b038416638b32fa236113b88585611a0b565b6040518263ffffffff1660e01b81526004016113d691815260200190565b602060405180830381865afa1580156113f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141791906119f2565b9050806003600082825461142b9190611a57565b9091555090979650505050505050565b6114436114cb565b6001600160a01b0381166114bf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161044a565b6114c8816115ea565b50565b6000546001600160a01b03163314610cb55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161044a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261158c908490611647565b505050565b6002600154036115e35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161044a565b6002600155565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061169c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661172c9092919063ffffffff16565b80519091501561158c57808060200190518101906116ba9190611a6a565b61158c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161044a565b6060610ffc848460008585600080866001600160a01b031685876040516117539190611acd565b60006040518083038185875af1925050503d8060008114611790576040519150601f19603f3d011682016040523d82523d6000602084013e611795565b606091505b50915091506117a6878383876117b1565b979650505050505050565b60608315611820578251600003611819576001600160a01b0385163b6118195760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161044a565b5081610ffc565b610ffc83838151156118355781518083602001fd5b8060405162461bcd60e51b815260040161044a9190611ae9565b60006020828403121561186157600080fd5b5035919050565b60008083601f84011261187a57600080fd5b50813567ffffffffffffffff81111561189257600080fd5b6020830191508360208260051b85010111156118ad57600080fd5b9250929050565b600080600080604085870312156118ca57600080fd5b843567ffffffffffffffff808211156118e257600080fd5b6118ee88838901611868565b9096509450602087013591508082111561190757600080fd5b5061191487828801611868565b95989497509550505050565b6001600160a01b03811681146114c857600080fd5b60008060006060848603121561194a57600080fd5b8335925060208401359150604084013561196381611920565b809150509250925092565b6000806040838503121561198157600080fd5b50508035926020909101359150565b6000602082840312156119a257600080fd5b81356109c581611920565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016119eb576119eb6119c3565b5060010190565b600060208284031215611a0457600080fd5b5051919050565b81810381811115610d3c57610d3c6119c3565b8082028115828204841417610d3c57610d3c6119c3565b600082611a5257634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610d3c57610d3c6119c3565b600060208284031215611a7c57600080fd5b815180151581146109c557600080fd5b600060208284031215611a9e57600080fd5b81516109c581611920565b60005b83811015611ac4578181015183820152602001611aac565b50506000910152565b60008251611adf818460208701611aa9565b9190910192915050565b6020815260008251806020840152611b08816040850160208701611aa9565b601f01601f1916919091016040019291505056fea164736f6c6343000811000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b90000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46
-----Decoded View---------------
Arg [0] : _flashProtocolAddress (address): 0x78b2d65dd1d3d9Fb2972d7Ef467261Ca101EC2B9
Arg [1] : _rocketStorageAddress (address): 0x1d8f8f00cfa6758d7bE78336684788Fb0ee0Fa46
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b9
Arg [1] : 0000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,707.55 | 11.0726 | $41,052.16 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.