-
Notifications
You must be signed in to change notification settings - Fork 63
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
refactor: change Product struct, remove YieldTokenIncidents contract #1298
Conversation
@@ -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 |
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.
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.
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.
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', |
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.
just rename
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.
Same here, should we just comment to keep consistency?
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.
yep, let's keep it consistent
e2acf6c
to
fccbfd9
Compare
4517336
to
7ff6d41
Compare
bf593b2
to
d92fcff
Compare
Description
Prerequisite for #1292
Change the
Product
struct, puttingminPrice
instead ofyieldTokenAddress
.Removing the
YieldTokenIncidents
contract.Testing
Adjusted unit and integration tests.
Checklist