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

Fixes + Merge into single checker #2

Open
wants to merge 10 commits into
base: nv/fixes
Choose a base branch
from
Open

Fixes + Merge into single checker #2

wants to merge 10 commits into from

Conversation

reubenr0d
Copy link
Contributor

No description provided.

@height
Copy link

height bot commented May 31, 2022

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@reubenr0d reubenr0d changed the base branch from master to nv/fixes May 31, 2022 17:32
@reubenr0d reubenr0d changed the title Rr/Fixes Fixes + Merge into single checker Jun 2, 2022
uint256 currentPrinciple = tenderizer.totalStakedTokens();
uint256 stake;

if (keccak256(bytes(protocol.name)) == keccak256(bytes("Graph"))) {
if (keccak256(bytes(protocol.name)) == GRAPH) {
Copy link

Choose a reason for hiding this comment

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

from a code readability point of view, having a function with 2 string params would be the best, is this a better trade-off?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm yea considered this, although with variable names I think the readability is still okay, and save some gas by not having to compute two hashes.

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.

3 participants