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

Restore encapsulation of distributions layout, broken by gas optimisa… #13

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

hoytech
Copy link
Contributor

@hoytech hoytech commented Apr 30, 2024

…tions

/// @param distributionStorage Pre-computed distribution storage pointer.
/// @param epoch The epoch to get the reward token amount for.
/// @return The reward token amount.
function rewardAmount(
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: please move this function to the bottom where other internal functions are defined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, but I'll wait until the readability PR lands, because I foresee merge conflicts :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

the readability PR is merged

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I rebased, and moved the function

@hoytech hoytech force-pushed the restore-encapsulation branch from 1970a2d to 67b6001 Compare April 30, 2024 17:42
Copy link
Collaborator

@kasperpawlowski kasperpawlowski left a comment

Choose a reason for hiding this comment

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

lgtm

@kasperpawlowski kasperpawlowski merged commit efcee13 into master Apr 30, 2024
4 checks passed
@kasperpawlowski kasperpawlowski deleted the restore-encapsulation branch April 30, 2024 18:31
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.

2 participants