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

Interface should exclude "_" from beginning of variable names and con… #198

Merged
merged 2 commits into from
Oct 6, 2021

Conversation

asselstine
Copy link
Contributor

…tract should "_" in variable names in function interface

@PierrickGT PierrickGT self-assigned this Oct 6, 2021
@@ -191,7 +191,7 @@ contract DrawBeacon is IDrawBeacon, Ownable {
}

/// @inheritdoc IDrawBeacon
function calculateNextBeaconPeriodStartTime(uint256 currentTime)
function calculateNextBeaconPeriodStartTime(uint256 _time)
Copy link
Contributor

Choose a reason for hiding this comment

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

require(prizeSplitIndex < _prizeSplits.length, "PrizeSplit/nonexistent-prizesplit");
require(prizeStrategySplit.target != address(0), "PrizeSplit/invalid-prizesplit-target");
require(_prizeSplitIndex < _prizeSplits.length, "PrizeSplit/nonexistent-prizesplit");
require(_prizeStrategySplit.target != address(0), "PrizeSplit/invalid-prizesplit-target");
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be named _prizeSplitStrategy if we want to follow the convention introduced by _prizeSplitIndex.

@asselstine asselstine force-pushed the pool-1655-interface-should-exclude-_-from branch from 4b3c3f0 to 4eec773 Compare October 6, 2021 21:34
@asselstine asselstine merged commit 6a7b321 into master Oct 6, 2021
@asselstine asselstine deleted the pool-1655-interface-should-exclude-_-from branch October 6, 2021 21:34
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.

None yet

2 participants