Skip to content

Collateralized Borrowing Adapter (Flash Loans)#337

Open
ene-rizzles wants to merge 2 commits into
Vesting-Vault:mainfrom
ene-rizzles:feat/collateralized-borrowing-adapter
Open

Collateralized Borrowing Adapter (Flash Loans)#337
ene-rizzles wants to merge 2 commits into
Vesting-Vault:mainfrom
ene-rizzles:feat/collateralized-borrowing-adapter

Conversation

@ene-rizzles

Copy link
Copy Markdown

Summary

Allows users to use their unvested tokens as collateral by implementing a cross-contract read adapter that verifies a user's guaranteed future unlocks for stablecoin loans.

Changes

  • \contracts/collateralized_borrowing_adapter/\ — New contract with:
    • Future unlock verification based on vesting schedules
    • Maximum borrowable amount calculation with LTV constraints
    • Cross-contract lien creation via collateral_bridge
    • Admin-configurable max LTV (default 60%) and liquidation threshold (default 80%)
  • Updated \Cargo.toml\ workspace

Closes

Closes #218

- 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.

Collateralized Borrowing Adapter (Flash Loans)

2 participants