Skip to content

Impermanent Loss Buffer for Locked Liquidity#336

Open
ene-rizzles wants to merge 2 commits into
Vesting-Vault:mainfrom
ene-rizzles:feat/collateral-buffer
Open

Impermanent Loss Buffer for Locked Liquidity#336
ene-rizzles wants to merge 2 commits into
Vesting-Vault:mainfrom
ene-rizzles:feat/collateral-buffer

Conversation

@ene-rizzles

Copy link
Copy Markdown

Summary

Implements a collateral buffer requiring 5% over-collateralization when tokens are routed to AMM pools, ensuring employees can withdraw 100% of base tokens despite IL.

Changes

  • \contracts/collateral_buffer/\ — New contract with:
    • 5% over-collateralization buffer for AMM pool positions
    • Pool whitelisting by admin
    • Guaranteed withdrawable amount calculation
    • Buffer health monitoring with insufficient buffer events
    • DAO-controlled parameters (buffer_bps, max_pool_allocation)
  • Updated \Cargo.toml\ workspace

Closes

Closes #221

- TWAP oracle for time-weighted average pricing
- Delayed state commits with cooldown periods
- Price manipulation detection and prevention

Closes Vesting-Vault#219
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.

Impermanent Loss Buffer for Locked Liquidity

2 participants