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 23 forks source link

feat(smart-contracts): add stableswap support for provide liquidity #351

Closed nseguias closed 4 months ago

nseguias commented 5 months ago

Description and Motivation

This PR adds support for StableSwap pools when providing liquidity through the Pool Manager.

Related Issues

311


Checklist:

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 83.91304% with 111 lines in your changes missing coverage. Please review.

Project coverage is 90.90%. Comparing base (1d6ffbc) to head (2f40957). Report is 36 commits behind head on release/v2_contracts.

Files Patch % Lines
...ontracts/liquidity_hub/pool-manager/sim/src/lib.rs 25.45% 82 Missing :warning:
...ontracts/liquidity_hub/pool-manager/src/helpers.rs 92.75% 20 Missing :warning:
...quidity_hub/pool-manager/src/liquidity/commands.rs 64.70% 6 Missing :warning:
...work/stableswap_3pool/src/stableswap_math/curve.rs 60.00% 2 Missing :warning:
...ty_hub/pool-manager/src/tests/integration_tests.rs 99.64% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/v2_contracts #351 +/- ## ======================================================== - Coverage 91.15% 90.90% -0.26% ======================================================== Files 279 280 +1 Lines 31119 31830 +711 ======================================================== + Hits 28368 28936 +568 - Misses 2751 2894 +143 ```

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

0xFable commented 4 months ago

Test with diff amp factors on our integration test PR branch

github-actions[bot] commented 4 months ago

Schema generation had missing jobs:

Please run just schemas locally and upload the generated schemas.