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

[OZ][N-11] Code Cohesion and Readability #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Mike-CZ
Copy link
Collaborator

@Mike-CZ Mike-CZ commented Dec 13, 2024

This PR imrpoves readibility.

The epochEndTime getter was made public in https://github.com/Fantom-foundation/opera-sfc/pull/119/files

@Mike-CZ Mike-CZ requested a review from thaarok December 13, 2024 16:50
originatedTxsFee = accumulatedOriginatedTxsFee[i] - prevAccumulatedTxsFee;
uint256 accumulatedTxsFee = 0;
if (originatedTxsFee[i] > prevAccumulatedTxsFee) {
accumulatedTxsFee = originatedTxsFee[i] - prevAccumulatedTxsFee;
Copy link
Collaborator

@thaarok thaarok Dec 16, 2024

Choose a reason for hiding this comment

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

This is wrong - the txs fee (from txs emitted by given validator) from this epoch is calculated as the difference of the accumulated fee from the current and the accumulated fee from the previous epoch.

Using names originatedTxsFee and accumulatedOriginatedTxsFee was correct in here.

Copy link
Collaborator

@thaarok thaarok left a comment

Choose a reason for hiding this comment

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

Using names originatedTxsFee and accumulatedOriginatedTxsFee was correct in here.

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