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: bonding manager contract #302

Closed 0xFable closed 4 months ago

0xFable commented 5 months ago

Description and Motivation

Adds the Bonding-Manager contract. A contract which combines 3 previous contracts; the whale lair, fee collector and fee distributor. Handles the onchain bonding and fee distribution model for the dex.

Related Issues


Checklist:

github-actions[bot] commented 4 months ago

Schema generation had missing jobs:

contracts/liquidity_hub/pool-manager/schema/pool-manager.json
contracts/liquidity_hub/pool-manager/schema/raw/execute.json
contracts/liquidity_hub/pool-manager/schema/raw/response_to_pair.json

Please run just schemas locally and upload the generated schemas.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 90.63346% with 173 lines in your changes are missing coverage. Please review.

Project coverage is 90.09%. Comparing base (deebeee) to head (0f77427). Report is 5 commits behind head on release/v2_contracts.

Files Patch % Lines
...ntracts/liquidity_hub/bonding-manager/src/state.rs 36.98% 46 Missing :warning:
...s/liquidity_hub/bonding-manager/src/tests/robot.rs 83.80% 46 Missing :warning:
...acts/liquidity_hub/bonding-manager/src/contract.rs 82.26% 25 Missing :warning:
...racts/liquidity_hub/bonding-manager/src/queries.rs 90.34% 14 Missing :warning:
...racts/liquidity_hub/bonding-manager/src/helpers.rs 91.45% 10 Missing :warning:
packages/white-whale-std/src/coin.rs 37.50% 10 Missing :warning:
packages/white-whale-std/src/bonding_manager.rs 40.00% 6 Missing :warning:
...acts/liquidity_hub/bonding-manager/src/commands.rs 98.44% 3 Missing :warning:
...s/white-whale-testing/src/integration/contracts.rs 0.00% 3 Missing :warning:
.../bonding-manager/src/bin/bonding_manager_schema.rs 0.00% 2 Missing :warning:
... and 5 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/v2_contracts #302 +/- ## ======================================================== + Coverage 89.86% 90.09% +0.23% ======================================================== Files 261 278 +17 Lines 27339 29604 +2265 ======================================================== + Hits 24569 26673 +2104 - Misses 2770 2931 +161 ```

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

0xFable commented 4 months ago

This branch needs a lil more work before merge but ready for review Gonna focus now on:

github-actions[bot] commented 4 months ago

Schema generation had missing jobs:

contracts/liquidity_hub/bonding-manager/schema/raw/response_to_claimable.json
contracts/liquidity_hub/bonding-manager/schema/raw/response_to_claimable_epochs.json
contracts/liquidity_hub/bonding-manager/schema/bonding-manager.json
contracts/liquidity_hub/bonding-manager/schema/raw/execute.json
contracts/liquidity_hub/bonding-manager/schema/raw/query.json

Please run just schemas locally and upload the generated schemas.

github-actions[bot] commented 4 months ago

Schema generation had missing jobs:

Please run just schemas locally and upload the generated schemas.