Skip to content

feat: deallocate allocations on settlement#540

Closed
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/settle-deallocate-468
Closed

feat: deallocate allocations on settlement#540
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/settle-deallocate-468

Conversation

@dangelo352

Copy link
Copy Markdown

Summary

  • add a CommitmentCore-authorized allocation_logic::deallocate entrypoint that clears allocation records and decrements pool liquidity
  • invoke deallocation from commitment_core settle and early_exit when an allocation contract is configured
  • document the settlement/early-exit deallocation lifecycle

Tests

  • CARGO_TARGET_DIR=/tmp/commitlabs-deallocate-target cargo test -p allocation_logic deallocate -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-deallocate-target cargo test -p commitment_core deallocate -- --nocapture
  • git diff --check

Closes #468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wire commitment_core::settle to deallocate funds from allocation_logic pools

2 participants