Skip to content
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

refactor: change Product struct, remove YieldTokenIncidents contract #1298

Merged

Conversation

duxxud
Copy link
Contributor

@duxxud duxxud commented Dec 3, 2024

Description

Prerequisite for #1292
Change the Product struct, putting minPrice instead of yieldTokenAddress.
Removing the YieldTokenIncidents contract.

Testing

Adjusted unit and integration tests.

Checklist

  • Performed a self-review of my own code
  • Made corresponding changes to the documentation

@@ -18,7 +18,7 @@ interface IMasterAwareV2 {
CL, // CoverMigrator.sol - removed
AS, // Assessment.sol
CI, // IndividualClaims.sol - Claims for Individuals
CG, // YieldTokenIncidents.sol - Claims for Groups
// CG, // YieldTokenIncidents.sol - Claims for Groups
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we cannot comment out stuff from enums - it will change the IDs for the items that follow it. you can rename it to CG_unused, UNUSED_CG or something similar, whatever seems cleaner.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed. I will add a unit test for this.

lib/constants.js Outdated
@@ -152,7 +152,7 @@ const ContractCode = {
StakingProducts: 'SP',
TokenController: 'TC',
// TokenData: 'TD',
YieldTokenIncidents: 'CG',
// YieldTokenIncidents: 'CG',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just rename

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, should we just comment to keep consistency?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, let's keep it consistent

@duxxud duxxud changed the base branch from release-candidate to chore/adjust-pricing-parameters December 13, 2024 14:14
@duxxud duxxud force-pushed the refactor/remove-yield-token-incidents branch from e2acf6c to fccbfd9 Compare December 13, 2024 14:16
@duxxud duxxud force-pushed the chore/adjust-pricing-parameters branch from 4517336 to 7ff6d41 Compare December 16, 2024 00:00
@duxxud duxxud requested review from shark0der and rackstar December 17, 2024 13:00
@duxxud duxxud force-pushed the refactor/remove-yield-token-incidents branch from bf593b2 to d92fcff Compare December 17, 2024 17:39
Base automatically changed from chore/adjust-pricing-parameters to feat/product-pricing-updates December 18, 2024 08:34
@rackstar rackstar merged commit d92fcff into feat/product-pricing-updates Dec 18, 2024
6 checks passed
@rackstar rackstar deleted the refactor/remove-yield-token-incidents branch December 18, 2024 08:34
@rackstar rackstar mentioned this pull request Jan 6, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants