White-Whale-Defi-Platform / white-whale-core

Core contracts for White Whale, The Interchain Liquidity Protocol for the Cosmos.
https://whitewhale.money
MIT License
36 stars 22 forks source link

fix: add max_spread param to router operations simulation #381

Open kerber0x opened 2 months ago

kerber0x commented 2 months ago

Description and Motivation

With the previous fix for failing fee aggregation it was introduced a simulation on the aggregation swap. However, the aggregation doesn't perform any spread assertions. This code introduces this into the pool router.

Related Issues


Checklist:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.84%. Comparing base (a96fecb) to head (3eb627d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #381 +/- ## ========================================== + Coverage 93.21% 94.84% +1.63% ========================================== Files 219 214 -5 Lines 24868 24770 -98 ========================================== + Hits 23180 23493 +313 + Misses 1688 1277 -411 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.