-
Notifications
You must be signed in to change notification settings - Fork 5
Main sync #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Main sync #67
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
47b6e8f
feat: lst hype hyper evm deployment
kostyamospan fb0ed4b
fix: correct wsthype address
kostyamospan 5e9e8e0
Merge pull request #60 from midas-apps/feat/lst-hype
kostyamospan 7f8586e
feat: add mHYPER and mAPOLLO on ethereum mainnet
dmytro-horbatenko 37db4ad
Merge pull request #61 from midas-apps/feaet/mhyper-mapollo-on-mainnet
kostyamospan 2133d64
feat: eng-1066 liquidHYPE on hyperevm
dmytro-horbatenko dcfd6d5
fix: liquid hype rv upgrade
dmytro-horbatenko 80454c7
Merge pull request #63 from midas-apps/feat/liquid-hype-on-hyperevm
dmytro-horbatenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity 0.8.9; | ||
|
|
||
| import "../feeds/CustomAggregatorV3CompatibleFeed.sol"; | ||
| import "./LiquidHypeMidasAccessControlRoles.sol"; | ||
|
|
||
| /** | ||
| * @title LiquidHypeCustomAggregatorFeed | ||
| * @notice AggregatorV3 compatible feed for liquidHYPE, | ||
| * where price is submitted manually by feed admins | ||
| * @author RedDuck Software | ||
| */ | ||
| contract LiquidHypeCustomAggregatorFeed is | ||
| CustomAggregatorV3CompatibleFeed, | ||
| LiquidHypeMidasAccessControlRoles | ||
| { | ||
| /** | ||
| * @dev leaving a storage gap for futures updates | ||
| */ | ||
| uint256[50] private __gap; | ||
|
|
||
| /** | ||
| * @inheritdoc CustomAggregatorV3CompatibleFeed | ||
| */ | ||
| function feedAdminRole() public pure override returns (bytes32) { | ||
| return LIQUID_HYPE_CUSTOM_AGGREGATOR_FEED_ADMIN_ROLE; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity 0.8.9; | ||
|
|
||
| import "../feeds/DataFeed.sol"; | ||
| import "./LiquidHypeMidasAccessControlRoles.sol"; | ||
|
|
||
| /** | ||
| * @title LiquidHypeDataFeed | ||
| * @notice DataFeed for liquidHYPE product | ||
| * @author RedDuck Software | ||
| */ | ||
| contract LiquidHypeDataFeed is DataFeed, LiquidHypeMidasAccessControlRoles { | ||
| /** | ||
| * @dev leaving a storage gap for futures updates | ||
| */ | ||
| uint256[50] private __gap; | ||
|
|
||
| /** | ||
| * @inheritdoc DataFeed | ||
| */ | ||
| function feedAdminRole() public pure override returns (bytes32) { | ||
| return LIQUID_HYPE_CUSTOM_AGGREGATOR_FEED_ADMIN_ROLE; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity 0.8.9; | ||
|
|
||
| import "../DepositVault.sol"; | ||
| import "./LiquidHypeMidasAccessControlRoles.sol"; | ||
|
|
||
| /** | ||
| * @title LiquidHypeDepositVault | ||
| * @notice Smart contract that handles liquidHYPE minting | ||
| * @author RedDuck Software | ||
| */ | ||
| contract LiquidHypeDepositVault is | ||
| DepositVault, | ||
| LiquidHypeMidasAccessControlRoles | ||
| { | ||
| /** | ||
| * @dev leaving a storage gap for futures updates | ||
| */ | ||
| uint256[50] private __gap; | ||
|
|
||
| /** | ||
| * @inheritdoc ManageableVault | ||
| */ | ||
| function vaultRole() public pure override returns (bytes32) { | ||
| return LIQUID_HYPE_DEPOSIT_VAULT_ADMIN_ROLE; | ||
| } | ||
| } |
27 changes: 27 additions & 0 deletions
27
contracts/liquidHYPE/LiquidHypeMidasAccessControlRoles.sol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity 0.8.9; | ||
|
|
||
| /** | ||
| * @title LiquidHypeMidasAccessControlRoles | ||
| * @notice Base contract that stores all roles descriptors for liquidHYPE contracts | ||
| * @author RedDuck Software | ||
| */ | ||
| abstract contract LiquidHypeMidasAccessControlRoles { | ||
| /** | ||
| * @notice actor that can manage LiquidHypeDepositVault | ||
| */ | ||
| bytes32 public constant LIQUID_HYPE_DEPOSIT_VAULT_ADMIN_ROLE = | ||
| keccak256("LIQUID_HYPE_DEPOSIT_VAULT_ADMIN_ROLE"); | ||
|
|
||
| /** | ||
| * @notice actor that can manage LiquidHypeRedemptionVault | ||
| */ | ||
| bytes32 public constant LIQUID_HYPE_REDEMPTION_VAULT_ADMIN_ROLE = | ||
| keccak256("LIQUID_HYPE_REDEMPTION_VAULT_ADMIN_ROLE"); | ||
|
|
||
| /** | ||
| * @notice actor that can manage LiquidHypeCustomAggregatorFeed and LiquidHypeDataFeed | ||
| */ | ||
| bytes32 public constant LIQUID_HYPE_CUSTOM_AGGREGATOR_FEED_ADMIN_ROLE = | ||
| keccak256("LIQUID_HYPE_CUSTOM_AGGREGATOR_FEED_ADMIN_ROLE"); | ||
| } |
27 changes: 27 additions & 0 deletions
27
contracts/liquidHYPE/LiquidHypeRedemptionVaultWithSwapper.sol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity 0.8.9; | ||
|
|
||
| import "../RedemptionVaultWithSwapper.sol"; | ||
| import "./LiquidHypeMidasAccessControlRoles.sol"; | ||
|
|
||
| /** | ||
| * @title LiquidHypeRedemptionVaultWithSwapper | ||
| * @notice Smart contract that handles liquidHYPE redemptions | ||
| * @author RedDuck Software | ||
| */ | ||
| contract LiquidHypeRedemptionVaultWithSwapper is | ||
| RedemptionVaultWithSwapper, | ||
| LiquidHypeMidasAccessControlRoles | ||
| { | ||
| /** | ||
| * @dev leaving a storage gap for futures updates | ||
| */ | ||
| uint256[50] private __gap; | ||
|
|
||
| /** | ||
| * @inheritdoc ManageableVault | ||
| */ | ||
| function vaultRole() public pure override returns (bytes32) { | ||
| return LIQUID_HYPE_REDEMPTION_VAULT_ADMIN_ROLE; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity 0.8.9; | ||
| import "../mTBILL/mTBILL.sol"; | ||
|
|
||
| /** | ||
| * @title liquidHYPE | ||
| * @author RedDuck Software | ||
| */ | ||
| //solhint-disable contract-name-camelcase | ||
| contract liquidHYPE is mTBILL { | ||
| /** | ||
| * @notice actor that can mint liquidHYPE | ||
| */ | ||
| bytes32 public constant LIQUID_HYPE_MINT_OPERATOR_ROLE = | ||
| keccak256("LIQUID_HYPE_MINT_OPERATOR_ROLE"); | ||
|
|
||
| /** | ||
| * @notice actor that can burn liquidHYPE | ||
| */ | ||
| bytes32 public constant LIQUID_HYPE_BURN_OPERATOR_ROLE = | ||
| keccak256("LIQUID_HYPE_BURN_OPERATOR_ROLE"); | ||
|
|
||
| /** | ||
| * @notice actor that can pause liquidHYPE | ||
| */ | ||
| bytes32 public constant LIQUID_HYPE_PAUSE_OPERATOR_ROLE = | ||
| keccak256("LIQUID_HYPE_PAUSE_OPERATOR_ROLE"); | ||
|
|
||
| /** | ||
| * @dev leaving a storage gap for futures updates | ||
| */ | ||
| uint256[50] private __gap; | ||
|
|
||
| /** | ||
| * @notice upgradeable pattern contract`s initializer | ||
| * @param _accessControl address of MidasAccessControl contract | ||
| */ | ||
| function initialize(address _accessControl) external override initializer { | ||
| __Blacklistable_init(_accessControl); | ||
| __ERC20_init("Liquid HYPE Yield", "liquidHYPE"); | ||
| } | ||
|
|
||
| /** | ||
| * @dev AC role, owner of which can mint liquidHYPE token | ||
| */ | ||
| function _minterRole() internal pure override returns (bytes32) { | ||
| return LIQUID_HYPE_MINT_OPERATOR_ROLE; | ||
| } | ||
|
|
||
| /** | ||
| * @dev AC role, owner of which can burn liquidHYPE token | ||
| */ | ||
| function _burnerRole() internal pure override returns (bytes32) { | ||
| return LIQUID_HYPE_BURN_OPERATOR_ROLE; | ||
| } | ||
|
|
||
| /** | ||
| * @dev AC role, owner of which can pause liquidHYPE token | ||
| */ | ||
| function _pauserRole() internal pure override returns (bytes32) { | ||
| return LIQUID_HYPE_PAUSE_OPERATOR_ROLE; | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The token address for
whypeappears to be a placeholder value. Using such an address in a production environment would lead to contract failures. Please replace it with the correct address or ensure it's only used in a context where this placeholder is expected and handled (e.g., test environments).