Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fail to adjust gas cost (#11078)
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on fixing error handling when adjusting token output by gas cost in the `offChainQuoteProvider.ts` file of the `smart-router` package. ### Detailed summary - Updated the destructuring of `route` to include `output` and `input`. - Introduced `quoteCurrency` to determine the correct currency based on the wrapped amounts. - Changed the `quote` assignment to use `finalQuote` created from `CurrencyAmount.fromRawAmount`. - Adjusted the `quote` and `quoteAdjustedForGas` properties in the `routesWithQuote` push to use `finalQuote`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information