-
Notifications
You must be signed in to change notification settings - Fork 13
Upgrade/bribes eaiser price setting #1094
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
Open
jourdanDunkley
wants to merge
54
commits into
development
Choose a base branch
from
upgrade/bribes-eaiser-price-setting
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
…ocol/monorepo into feat/morpho-collateral
… into feat/morpho-collateral
- Renamed and restructured the CErc20RewardsDelegateMorpho ABI to CErc20Storage. - Added new function definitions and updated existing ones for clarity and consistency. - Removed deprecated functions and events related to morpho bribe distribution. - Introduced new functions for better interaction with the storage contract. - Updated comments for improved documentation and understanding of the ABI structure.
- Introduced smUSDC asset with its corresponding details in assets.ts. - Updated the deployment scripts to include a new market for Morpho Seamless, replacing references to Morpho Ionic. - Added new task for creating the Morpho Seamless pool and adjusted related tasks to accommodate the new asset. - Enhanced PoolToggle component to display short names for markets. - Updated constants to include short names for the new Morpho Seamless market.
- Introduced a new task `market:set-cf:base:morpho-ionic` to set collateral factors for specific assets in the Morpho Ionic market. - Updated the `useMarketData` hook to improve data retrieval by selecting the appropriate pool based on the selected pool ID, ensuring better handling of market data.
- Introduced a new PNG asset for smUSDC located in the public image directory, enhancing the visual representation of the asset in the UI.
… market - Eliminated the `market:set-cf:base:morpho-ionic` task, which was responsible for setting collateral factors on specific assets in the Morpho Ionic market, as part of the transition to Morpho Seamless.
- Deleted the Morpho Ionic market entry from the constants file, streamlining the codebase as part of the transition to Morpho Seamless.
- Upgraded the Node.js setup action from version 2 to version 4 in the package SDK pull request build and test workflow, ensuring compatibility with the latest features and improvements.
- Upgraded the Yarn package manager version in both .yarnrc.yml and package.json files to ensure compatibility with the latest features and improvements. - Removed the old Yarn 4.7.0 release file and added the new Yarn 4.9.1 release file.
- Removed the loading state from the `useHealth` hook call in the WithdrawTab component, simplifying the code and improving readability. - The health factor and status are now directly destructured from the hook, enhancing clarity in the component's logic.
…eployment script - Added a new task for deploying the MorphoBribeDistributor with initialization parameters for Morpho market and bribes. - Enhanced the existing market deployment script to include deployment of CTokenFirstExtension and CErc20RewardsDelegateMorpho, along with their configuration in the FeeDistributor contract. - Improved transaction handling and logging for better visibility during deployment.
- Updated the foundry.toml file to include Lisk mainnet and archive RPC URLs. - Enhanced the BaseTest contract to support forking from the Lisk mainnet. - Added a new test function in DevTesting to create a lock on the Lisk network, ensuring proper functionality and logging.
- Added a new test function for borrowing functionality in the DevTesting contract, allowing for testing of the borrow action on the specified market. - Updated the user address in the testUserBribes function for accuracy. - Refactored the setBribeHistoricalPrices task to include improved error handling and added a new task for checking historical prices. - Introduced a task for transferring ownership of bribe contracts, enhancing management capabilities for bribes.
- Added functionality to set and retrieve historical prices for LP tokens at specific epochs in the Voter contract. - Updated the BribeRewards contract to utilize the new historical price retrieval method. - Introduced a new task for setting historical prices over a range, enhancing the management of bribe rewards.
- Commented out the emission of the HistoricalPriceSet event in the setHistoricalPrices function to prevent unnecessary logging. - Rearranged the parameters in the getHistoricalPrice function for improved clarity, placing the lpToken parameter before the epochTimestamp.
…ced functionality - Added multiple new BribeRewards contracts with unique implementations and proxies to support various deployment scenarios. - Introduced new RewardAccumulator contracts to manage reward distribution effectively. - Updated existing deployment scripts to accommodate the new contracts and ensure proper integration. - Enhanced the Voter contract with updated historical price management features. - Added new solc input files for improved compilation tracking.
…gement - Modified the DevTesting contract to update the BribeRewards address and adjust voting token values for testing. - Introduced a new task to check rewards over a specified epoch range in the setBribeHistoricalPrices script, enhancing the management of bribe rewards.
…lators and bribes - Updated the deployment script to check if market reward accumulators are already set before attempting to set them, improving efficiency and preventing redundant transactions. - Added logic to set bribes only if they are not already assigned to the reward accumulators, ensuring proper management of bribe assignments. - Enhanced error handling and logging for better visibility during the deployment process.
- Added multiple new RewardAccumulator contracts with unique implementations and proxies to enhance reward distribution management. - Updated deployment scripts to accommodate the new contracts, ensuring proper integration and functionality. - Enhanced the Voter contract with updated historical price management features. - Improved error handling and logging in deployment processes for better visibility.
- Updated the Voter contract to introduce a distributor address and a modifier for restricted access to reward distribution functions. - Added a new function to set the distributor address, improving control over reward distribution. - Modified the distributeRewards and setHistoricalPrices functions to utilize the new distributor modifier. - Enhanced the DevTesting contract to improve bribe management by iterating through incentives and logging earned bribes for both supply and borrow scenarios. - Updated the testUserBribes function with a new user address for accurate testing.
- Changed the implementation address in Voter and Voter_Implementation to a new address for deployment. - Introduced a new error type, NotDistributor, to enhance error handling in the Voter contract. - Added a distributor function to retrieve the distributor address, improving access control for reward distribution. - Updated the number of deployments in Voter and Voter_Implementation to reflect recent changes. - Added new solc input files for improved compilation tracking in both base and mode deployments.
- Added emergencyWithdraw function in the Voter contract for owner-controlled withdrawals of specified amounts. - Introduced testDistro function in DevTesting to validate reward distribution and log transfer events. - Updated setBribeHistoricalPrices task to improve historical price retrieval and logging for better visibility.
- Added emergencyWithdraw function to the Voter contract for owner-controlled withdrawals of specified amounts. - Updated implementation addresses in Voter and Voter_Implementation to new addresses for deployment. - Increased the number of deployments in Voter and Voter_Implementation to reflect recent changes. - Modified setBribeHistoricalPrices task to improve historical price retrieval and logging for better visibility.
…istro block number - Added testRewardCycles function to log reward cycles and balances for specified markets. - Updated testDistro function to use a new block number for testing on the BASE_MAINNET.
❌ Deploy Preview for ionicv2 failed. Why did it fail? →
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Type of change
High-level change(s) description - from the user's perspective
Related Issue(s)
Fixes
Related pull request(s)