Skip to content

Commit

Permalink
feat: bonding manager contract merge pull request #302 from White-Wha…
Browse files Browse the repository at this point in the history
…le-Defi-Platform/feat/bonding-manager-whale-lair

feat: bonding manager contract
  • Loading branch information
0xFable authored May 3, 2024
2 parents d196218 + 0f77427 commit 34a78d2
Show file tree
Hide file tree
Showing 57 changed files with 6,982 additions and 61 deletions.
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"contracts/liquidity_hub/pool-manager",
"contracts/liquidity_hub/epoch-manager",
"contracts/liquidity_hub/vault-manager",
"contracts/liquidity_hub/bonding-manager",
"contracts/liquidity_hub/incentive-manager",
"xtask",
]
Expand Down Expand Up @@ -61,13 +62,14 @@ test-case = { version = "3.3.1" }

# contracts
whale-lair = { path = "./contracts/liquidity_hub/whale_lair" }
epoch-manager = { path = "./contracts/liquidity_hub/epoch-manager" }
pool-manager = { path = "./contracts/liquidity_hub/pool-manager" }
fee_collector = { path = "./contracts/liquidity_hub/fee_collector" }
fee_distributor = { path = "./contracts/liquidity_hub/fee_distributor" }
fee-distributor-mock = { path = "./contracts/liquidity_hub/fee-distributor-mock" }
incentive-factory = { path = "./contracts/liquidity_hub/pool-network/incentive_factory" }
terraswap-token = { path = "./contracts/liquidity_hub/pool-network/terraswap_token" }
terraswap-pair = { path = "./contracts/liquidity_hub/pool-network/terraswap_pair" }
epoch-manager = { path = "./contracts/liquidity_hub/epoch-manager" }
incentive-manager = { path = "./contracts/liquidity_hub/incentive-manager" }

[workspace.metadata.dylint]
Expand Down
4 changes: 4 additions & 0 deletions contracts/liquidity_hub/bonding-manager/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --bin bonding_manager_schema"
49 changes: 49 additions & 0 deletions contracts/liquidity_hub/bonding-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[package]
name = "bonding-manager"
version = "0.1.0"
authors = ["0xFable <[email protected]>"]
edition.workspace = true
description = "The Bonding Manager is the evolution of the Whale Lair, fee distributor and fee collecotr. It is a bonding contract used to bond WHALE LSDs, collect fees from pools and distribute them a rewards to bonders"
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
publish.workspace = true

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib", "rlib"]

[features]
injective = ["white-whale-std/injective"]
token_factory = ["white-whale-std/token_factory"]
osmosis_token_factory = ["white-whale-std/osmosis_token_factory"]
# for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]

[dependencies]
cosmwasm-schema.workspace = true
cosmwasm-std.workspace = true
cw-storage-plus.workspace = true
cw2.workspace = true
schemars.workspace = true
semver.workspace = true
serde.workspace = true
thiserror.workspace = true
white-whale-std.workspace = true
cw-utils.workspace = true
pool-manager.workspace = true

[dev-dependencies]
cw-multi-test.workspace = true
anyhow.workspace = true
white-whale-testing.workspace = true
pool-manager.workspace = true
epoch-manager.workspace = true
3 changes: 3 additions & 0 deletions contracts/liquidity_hub/bonding-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Bonding Manager

The Bonding Manager is the evolution of the Whale Lair, fee distributor and fee collector. It is a bonding contract used to bond WHALE LSDs, collect fees from pools and distribute them a rewards to bonders
Loading

0 comments on commit 34a78d2

Please sign in to comment.