8000 fix: setting of last expansion timestamp by philbow61 · Pull Request #553 · mento-protocol/mento-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: setting of last expansion timestamp #553

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

Merged

Conversation

philbow61
Copy link
Contributor

Description

fixes issue in how lastUpdated was set:
before if 3.5 days passed and a daily expansion was configured, 3 expansions were calculated and the last expansion timestamp was updated to now essentially losing half a day. Over time this could have resulted in the yearly expansion rate not being achieved.

Other changes

Tested

  • added tests for this behavior

Related issues

https://github.com/mento-protocol/mento-general/issues/592

Backwards compatibility

Documentation

Copy link
Contributor
@RyRy79261 RyRy79261 left a comment

Choose a reason for hiding this comment

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

LGTM

@baroooo baroooo merged commit 86053df into develop Nov 26, 2024
5 checks passed
@baroooo baroooo deleted the feat/fix-invalid-rounding-in-expansionScaler-calculation branch November 26, 2024 11:32
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
0