-
Notifications
You must be signed in to change notification settings - Fork 18
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
Corrections for Assets #2482
Corrections for Assets #2482
Conversation
PR deployed in Google Cloud |
PR deployed in Google Cloud |
principal = { | ||
external: { | ||
price: price.toString(), | ||
quantity: (isIncrease ? diff : diff.neg()).toString(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quantity: (isIncrease ? diff : diff.neg()).toString(), | |
quantity: (!diff.isNeg() ? diff : diff.neg()).toString(), |
Wouldn't this be the same and spare the isIncrease
variable? Don't think it affect readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea will get rid of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah no, the isIncrease variable is needed on line 60
Description
#2404
Approvals
Screenshots
Impact