Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: bonding manager #352

Merged
merged 27 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ccbaf7b
refactor: remove the temporary FillRewardsCoin msg from the whalelair…
kerber0x May 6, 2024
6d8b673
refactor: abstract bank burn msg
kerber0x May 6, 2024
4f4183b
refactor: make epoch id u64 on epoch manager
kerber0x May 6, 2024
3525240
test: use the bonding-manager in pool-manager tests
kerber0x May 6, 2024
c950a4f
chore: remove factory flags from token_factory package
kerber0x May 7, 2024
394de43
refactor: bonding-manager
kerber0x May 8, 2024
5411262
test(bonding-manager): fix instantiate tests
kerber0x May 8, 2024
ab23c53
test(bonding-manager): fix update config tests
kerber0x May 8, 2024
70f8303
test: fix bond tests
kerber0x May 9, 2024
efb05a4
refactor: update types, change weight calculation from timestamp to e…
kerber0x May 9, 2024
c19ef89
refactor: rename bonding-manager.epochs to reward buckets
kerber0x May 9, 2024
7ea3235
chore: start point before major remake of the bonding mechanism
kerber0x May 13, 2024
3c915d8
refactor: move functions to proper folders
kerber0x May 13, 2024
9743e5e
refactor: using upcoming_reward_bucket when filling rewards
kerber0x May 13, 2024
2328844
chore: add last_claimed_epoch when bonding
kerber0x May 14, 2024
9061497
chore: add rewards query
kerber0x May 15, 2024
71587f0
test: enable rewards test
kerber0x May 15, 2024
31bb6df
test: add more test coverage, to helpers and bonding
kerber0x May 16, 2024
e3336f5
test: add unbond and withdraw tests
kerber0x May 16, 2024
0a2b551
chore: fix broken tests
kerber0x May 16, 2024
1dfa428
refactor: move a few functiosn to helpers.rs
kerber0x May 17, 2024
ca3db75
refactor: cleanup state
kerber0x May 17, 2024
6df2793
chore: final refactor
kerber0x May 17, 2024
7df6c7b
test: use test_case for extract_pool_identifier unit test
kerber0x May 20, 2024
c26315d
docs: add readme to bonding-manager
kerber0x May 20, 2024
2bee41f
chore: fix PR comments
kerber0x May 20, 2024
61ed894
Merge branch 'release/v2_contracts' into refactor/remove-fill-rewards…
kerber0x May 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ incentive-factory = { path = "./contracts/liquidity_hub/pool-network/incentive_f
terraswap-token = { path = "./contracts/liquidity_hub/pool-network/terraswap_token" }
terraswap-pair = { path = "./contracts/liquidity_hub/pool-network/terraswap_pair" }
incentive-manager = { path = "./contracts/liquidity_hub/incentive-manager" }
bonding-manager = { path = "./contracts/liquidity_hub/bonding-manager" }

[workspace.metadata.dylint]
libraries = [{ git = "https://github.com/0xFable/cw-lint" }]
Expand Down
2 changes: 2 additions & 0 deletions contracts/liquidity_hub/bonding-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ thiserror.workspace = true
white-whale-std.workspace = true
cw-utils.workspace = true
pool-manager.workspace = true
cw-ownable.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
test-case.workspace = true
Loading
Loading