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

fix: address audit feedback #57

Merged
merged 2 commits into from
Jan 24, 2025
Merged

fix: address audit feedback #57

merged 2 commits into from
Jan 24, 2025

Conversation

avichalp
Copy link
Member

Implement changes in the existing contracts as proposed in the #47

@avichalp avichalp changed the title Address audit feedback chore: Address audit feedback Jan 24, 2025
@avichalp avichalp changed the title chore: Address audit feedback Chore: Address audit feedback Jan 24, 2025
@avichalp avichalp changed the title Chore: Address audit feedback Fix: Address audit feedback Jan 24, 2025
@avichalp avichalp changed the title Fix: Address audit feedback fix: Address audit feedback Jan 24, 2025
@avichalp avichalp changed the title fix: Address audit feedback Fix: Address audit feedback Jan 24, 2025
@avichalp avichalp changed the title Fix: Address audit feedback fix: Address audit feedback Jan 24, 2025
@avichalp avichalp changed the title fix: Address audit feedback fix: address audit feedback Jan 24, 2025
Copy link
Contributor

@oed oed left a comment

Choose a reason for hiding this comment

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

lgtm

/// @dev The rate is expressed as a decimal*1e18.
/// @dev For example 5% APY is 0.0000928276004952% yield per checkpoint period.
/// @dev This is expressed as 928_276_004_952 or 0.000000928276004952*1e18.
uint256 public constant INFLATION_RATE = 928_276_004_952;
Copy link
Contributor

Choose a reason for hiding this comment

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

We made this a constant because we expect to just replace the validatorRewarder if we want to change the rate?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, we could just replace the contract. also we need to reimplement this contract based on @carsonfarmer's new, simplified proposal #59

@avichalp avichalp force-pushed the avichalp/audit-feedback branch from 9aca62f to 5ecdb97 Compare January 24, 2025 20:42
@avichalp avichalp merged commit ed7d9ae into main Jan 24, 2025
7 checks passed
@avichalp avichalp deleted the avichalp/audit-feedback branch January 24, 2025 20:58
sanderpick pushed a commit that referenced this pull request Jan 26, 2025
Implement changes in the existing contracts as proposed in #47 audit
feedback.

Signed-off-by: avichalp <[email protected]>
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