-
Notifications
You must be signed in to change notification settings - Fork 34
feat(checkout): Return price impact as part of the quote #2646
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
Conversation
View your CI Pipeline Execution ↗ for commit 1879502.
☁️ Nx Cloud last updated this comment at |
tradeType: TradeType, | ||
) { | ||
const quoteAmount = quoteResult[amountIndex]; | ||
if (typeof quoteAmount !== 'bigint') throw new Error('Expected BigNumber'); |
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.
could say expect bignumber but got
${typepof quoteAmont}` - helps with debugging
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.
true! this isn't new code fwiw, but i do agree.. i can update it in my next pr...
Hi👋, please ensure the PR title follows the below standards:
type(scope): message
. For example:feat(passport): my new feature
!
after thetype(scope)
, for examplefeat(passport)!: my new breaking feature
Summary
Return price impact of the trade as part of the quote.
Detail and impact of the change
Note that this is the price impact as calculated by comparing the midprice of the route and the execution price of the quote. It does not look at or consider the price impact on any of the pools individually.
Added
Changed
Deprecated
Removed
Fixed
Security
Anything else worth calling out?