Conversation
nicholaspai
left a comment
There was a problem hiding this comment.
Looks good, I'm going to add comments where contract changes will need to be adjusted for in non /test scripts
|
@chrismaree looks good, I noticed you didn't implement the following suggestions:
Just wanted to flag in case you didn't see, or curious if you decided it wasn't worth it. The |
Great. So regarding those suggestions: 1 &2) |
My understanding was that they wanted the method names to be changed at the contract level to communicate that those methods only work for |
mrice32
left a comment
There was a problem hiding this comment.
Looks great! A few high level comments.
| function setWeeklyDelayFee(FixedPoint.Unsigned memory newWeeklyDelayFee) public onlyRoleHolder(uint(Roles.Owner)) { | ||
| weeklyDelayFee = newWeeklyDelayFee; | ||
| emit NewWeeklyDelayFee(newWeeklyDelayFee); | ||
| function setWeeklyDelayFeePerPFC(FixedPoint.Unsigned memory newWeeklyDelayFeePerPFC) |
There was a problem hiding this comment.
This is actually becoming per second, too in this PR. Do you want to change it to setWeeklyDelayFeePerSecondPerPfc? Or should I change the name in the aforementioned PR? Something else?
| * Only one message per topic is stored at any given time. | ||
| */ | ||
| contract EncryptedStore { | ||
| contract MessageStore { |
There was a problem hiding this comment.
I would remove all the changes wrt EncryptedStore since the entire contract is being removed in #1231. We can add a note in the response doc saying that we didn't make that change because the contract was removed.
| } | ||
|
|
||
| function removeMember(RoleMembership storage roleMembership, address memberToRemove) internal { | ||
| function removeSharedMember(RoleMembership storage roleMembership, address memberToRemove) internal { |
There was a problem hiding this comment.
Should we get rid of all the multirole changes given that we don't want the interface to change? (I know these are internal changes, but I think they actually wanted us to change the external function names)
There was a problem hiding this comment.
ye, I've reverted all changes to multirole re our discussion. Thinks keeps things simple. no need to change more
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
d930c51 to
c481452
Compare
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
|
@mrice32 and @nicholaspai please take another look. I've reverted all changes other than the ones we've discussed. I also updated the PR description to better reflect this. |
… naming-updates Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
| FixedPoint.Unsigned public fixedOracleFeePerSecond; // Percentage of 1 E.g., .1 is 10% Oracle fee. | ||
| FixedPoint.Unsigned public weeklyDelayFee; // Percentage of 1 E.g., .1 is 10% weekly delay fee. | ||
| FixedPoint.Unsigned public fixedOracleFeePerSecondPerPfc; // Percentage of 1 E.g., .1 is 10% Oracle fee. | ||
| FixedPoint.Unsigned public weeklyDelayFeePerPfc; // Percentage of 1 E.g., .1 is 10% weekly delay fee. |
There was a problem hiding this comment.
nit: shouldn't this variable also be changed to weeklyDelayFeePerSecondPerPfc?
There was a problem hiding this comment.
🤦 I've changed this so many times, sorry this got through, I have updated accordingly.
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
The encrypted vote information is only needed off chain, so an event is a simpler alternative to storing/deleting messages on chain. Signed-off-by: Prasad Tare prasad.tare@gmail.com
Also add more details to the expired markets. Issue #1156 Signed-off-by: Prasad Tare <prasad.tare@gmail.com>
|
@chrismaree Looks like ci is magically fixed from before, but the test errors now are due to merge issues, I think. |
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
This PR re-names a number of internal variables and functions to be more descriptive and consistent. Most changes are small and internal variables. A number of changes requested by OZ have been left out as these will have ripple effects throughout the code base and it was decided that the value add in make these changes is less than the cost of updating other parts of the infrastructure.
The following changes were made:
ownerparameter of thecreateWithdrawRolewas be renamed towithdrawerAddress.fixedOracleFeePerSecondandweeklyDelayFeevariables were renamed tofixedOracleFeePerSecondPerPfcandweeklyDelayFeePerPfc. This includes all other references to fees like events.FixedPointcontract thedivRawvariable was renamed toaScaledsince it has nothing to do with division.The following changes recommended by OZ were not implemented:
multiRoleas this will have a large ripple effect throughout the code base.EncryptedStoreas this is removed in a later PR.Governorchange_uintToBytesto_uintToBytes32as this is addressed in another PR.getPendingRequests()togetActiveRequests()as this has a large ripple effect for minimum benefit.