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

pd: fix behavior of simulation RPC #4731

Merged
merged 1 commit into from
Jul 22, 2024
Merged

pd: fix behavior of simulation RPC #4731

merged 1 commit into from
Jul 22, 2024

Conversation

hdevalence
Copy link
Member

Describe your changes

Fixes the behavior of the simulation RPC for pairs with no liquidity, so that the simulation results correspond to what would happen if there were a swap.

Issue ticket number and link

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    rpc only changes

@conorsch conorsch merged commit 2429c16 into main Jul 22, 2024
13 checks passed
@conorsch conorsch deleted the fix-pd-simulation branch July 22, 2024 20:47
conorsch pushed a commit that referenced this pull request Jul 22, 2024
## Describe your changes

Fixes the behavior of the simulation RPC for pairs with no liquidity, so
that the simulation results correspond to what would happen if there
were a swap.

## Issue ticket number and link

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > rpc only changes

(cherry picked from commit 2429c16)
conorsch added a commit that referenced this pull request Jul 22, 2024
## Describe your changes
Backports the RPC fix in
#4731 to the
`release/v0.79.x` branch, in preparation for `v0.79.2`.

## Issue ticket number and link
Only #4731

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

> RPC-only changes, already reviewed in #4731, and should be exactly the
same here.

Co-authored-by: Henry de Valence <[email protected]>
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.

3 participants