Skip to content

Conversation

orenyodfat
Copy link
Contributor

@orenyodfat orenyodfat commented Mar 13, 2019

Remove redundant ownership at rep schemes and universal schemes.
resolve #387

IERC20 _token,
address _wallet)
external
onlyOwner
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious: What is the use case for removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

initialize function can be called one time only .
So no need to set onlyOwner


contract UniversalSchemeInterface {

function updateParameters(bytes32 _hashedParameters) public;
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing this function appears to address #387.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right

hashedParameters = _hashedParameters;
}

contract UniversalScheme is UniversalSchemeInterface {
Copy link
Contributor

Choose a reason for hiding this comment

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

So all schemes are affected, not just the bootstrapping.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right

@orenyodfat orenyodfat merged commit 643355d into master Mar 18, 2019
@orenyodfat orenyodfat deleted the fix_rep_scheme branch March 18, 2019 09:07
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.

UniversalScheme.updateParameters can be removed?

4 participants