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

Multihop: replaces the hardcoded values for max_belief_price and max_spread_bps #164

Merged
merged 7 commits into from
Nov 8, 2023

Conversation

gangov
Copy link
Collaborator

@gangov gangov commented Nov 2, 2023

the issue for this PR doesn't mention it, but we also have hard coded the value for max_belief_price, that's why I also added it, too

@gangov gangov self-assigned this Nov 2, 2023
@gangov gangov linked an issue Nov 2, 2023 that may be closed by this pull request
@gangov gangov requested a review from ueco-jb November 2, 2023 18:16
@ueco-jb ueco-jb marked this pull request as ready for review November 3, 2023 09:42
Copy link
Member

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

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

Can you add a testcase which fails with spread exceeding the limit?

… N.B.: concrete expected message in mulithop doesn't work
…us is . We should be throwing the expected panic msg, somehow we don't catch that
@gangov
Copy link
Collaborator Author

gangov commented Nov 6, 2023

in regard to the issues that we are experiencing with propagating the error messages between the contracts we created a small demo where this can be reproduced in an swift manner

@gangov gangov requested a review from ueco-jb November 7, 2023 18:07
Copy link
Member

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

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

LGTM

contracts/pool/src/tests/swap.rs Outdated Show resolved Hide resolved
@gangov gangov merged commit c8d8cd0 into main Nov 8, 2023
3 checks passed
@gangov gangov deleted the 163-multihop-add-max-spread-parameter-during-swaps branch November 8, 2023 22:09
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.

Multihop: Add max spread parameter during swaps
2 participants