-
Notifications
You must be signed in to change notification settings - Fork 59
Alex/implement whitelist for propose #340
Conversation
b306ee9 to
0aaba9a
Compare
| // to a propose that prohibit the set from carrying out an auction i.e. a token that only the manager possesses | ||
| IWhiteList rebalanceComponentWhitelist = IRebalancingSetFactory(_factory).rebalanceComponentWhitelist(); | ||
| address[] memory components = ISetToken(_nextSet).getComponents(); | ||
| for (uint256 i = 0; i < components.length; i++) { |
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 could reduce the calls to whitelist by passing the array of components to the whitelist contract
|
|
||
| // Check proposed components on whitelist. This is to ensure managers are unable to add contract addresses | ||
| // to a propose that prohibit the set from carrying out an auction i.e. a token that only the manager possesses | ||
| IWhiteList rebalanceComponentWhitelist = IRebalancingSetFactory(_factory).rebalanceComponentWhitelist(); |
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.
If we do not believe that the factory will change (which it shouldn't), we could cache the rebalanceComponentWhitelist in a state variable
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.
+1
Pull Request Test Coverage Report for Build 3567
💛 - Coveralls |
42e3798 to
a7882af
Compare
| /** | ||
| * Validates address against white list | ||
| * | ||
| * @param _address Address to check |
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.
return javadoc
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.
+1
| /** | ||
| * Verifies an array of addresses against the whitelist | ||
| * | ||
| * @return address[] Array of addresses to verify |
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.
return vs param javadoc
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.
+1
contracts/lib/WhiteList.sol
Outdated
| /** | ||
| * Verifies an array of addresses against the whitelist | ||
| * | ||
| * @return address[] Array of addresses to verify |
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.
should be param and add a return javadoc
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.
+1
contracts/lib/WhiteList.sol
Outdated
| /** | ||
| * Verifies an array of addresses against the whitelist | ||
| * | ||
| * @return address[] Array of addresses to verify |
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.
params javadoc
a7882af to
e1b88ea
Compare
No description provided.