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

Rename rounding modes and complete with fourth #4455

Merged
merged 6 commits into from
Jul 13, 2023

Conversation

frangio
Copy link
Contributor

@frangio frangio commented Jul 12, 2023

As pointed out in #4185 "up" and "down" are potentially confusing, and there is more precise terminology that we should be using. Additionally, 3 rounding modes are not enough when it comes to signed numbers, so we've added the missing 4th rounding mode.

Fixes #4185
Fixes LIB-949

Needs tests for new rounding mode.

@changeset-bot
Copy link

changeset-bot bot commented Jul 12, 2023

🦋 Changeset detected

Latest commit: 12e6dad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@frangio frangio requested review from Amxx and ernestognw July 12, 2023 20:17
@frangio frangio marked this pull request as ready for review July 12, 2023 20:17
Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

We need to revisit the following places for reconsidering the use of down:

Amxx
Amxx previously approved these changes Jul 13, 2023
@ernestognw
Copy link
Member

I'm pushing a commit with rounding comments updates where I considered appropriate.

ernestognw
ernestognw previously approved these changes Jul 13, 2023
Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

LGTM

Amxx
Amxx previously approved these changes Jul 13, 2023
@frangio frangio dismissed stale reviews from Amxx and ernestognw via 12e6dad July 13, 2023 20:47
Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

thx

@frangio frangio merged commit 84db204 into OpenZeppelin:master Jul 13, 2023
@frangio frangio deleted the rounding-modes branch July 13, 2023 20:52
@Zartaj0
Copy link
Contributor

Zartaj0 commented Oct 13, 2023

Hey guys, just noticed that this change has not been mentioned in breaking changes, and the docs are also not updated.

image

@Amxx
Copy link
Collaborator

Amxx commented Oct 13, 2023

@Zartaj0 you are looking at the v4 documentation. Documentation for v5 is up to date:
https://docs.openzeppelin.com/contracts/5.x/erc4626#fees

@Zartaj0
Copy link
Contributor

Zartaj0 commented Oct 13, 2023

Oh yes, My bad. Didn't check commenting. Thanks @Amxx

This was referenced Sep 10, 2024
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.

Rounding mode names
4 participants