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

Readable order of operations #917

Merged
merged 2 commits into from
Jun 30, 2023
Merged

Readable order of operations #917

merged 2 commits into from
Jun 30, 2023

Conversation

grandizzy
Copy link
Contributor

  • make readable / explicit order of operations where a * b / c -> (a * b) / c

Copy link

@dmitriia dmitriia left a comment

Choose a reason for hiding this comment

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

Looks ok

Copy link
Contributor

@EdNoepel EdNoepel left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -418,7 +418,7 @@ import { Maths } from '../internal/Maths.sol';
uint256 collateral_,
uint256 momp_
) pure returns (uint256 bondFactor_, uint256 bondSize_) {
uint256 thresholdPrice = borrowerDebt_ * Maths.WAD / collateral_;
uint256 thresholdPrice = (borrowerDebt_ * Maths.WAD) / collateral_;
Copy link
Contributor

Choose a reason for hiding this comment

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

Was like that before change, but nit: extra whitespace after borrowerDebt_.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed with d2b7fa3

@grandizzy grandizzy merged commit 04adfed into develop Jun 30, 2023
3 checks passed
@grandizzy grandizzy deleted the clear-order-of-ops branch June 30, 2023 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants