You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
), but generally any of these panics could likely cause an issue if MultihopEstimateOutGivenExactAmountIn does not catch the panics.
Suggested Design
We are open to different forms of resolution, whether that may be core team adding panic catching in MultihopEstimateOutGivenExactAmountIn or us catching panics in Protorev, but we are waiting for core team decision on best way forward.
Acceptance Criteria
All current protorev tests pass, and adding new tests to purposefully trigger the panics does not result in the actual panic to cause a halt.
The text was updated successfully, but these errors were encountered:
Background
Panics are caught when swapping (https://github.com/osmosis-labs/osmosis/blob/main/x/gamm/keeper/swap.go#L39-L44) but not when estimating a swap (
osmosis/x/poolmanager/router.go
Line 133 in d28c741
The specific panic that brought this to our attention for Protorev was in stableswap
solveCFMMBinarySearchMulti
: (osmosis/x/gamm/pool-models/stableswap/amm.go
Line 315 in d28c741
MultihopEstimateOutGivenExactAmountIn
does not catch the panics.Suggested Design
We are open to different forms of resolution, whether that may be core team adding panic catching in
MultihopEstimateOutGivenExactAmountIn
or us catching panics in Protorev, but we are waiting for core team decision on best way forward.Acceptance Criteria
All current protorev tests pass, and adding new tests to purposefully trigger the panics does not result in the actual panic to cause a halt.
The text was updated successfully, but these errors were encountered: