Collateral Migrator

Collateral Migrator

Collateral Migrator

Developed for

Developed for

Benqi

Benqi

The Challenge & Solution

Changing lending collateral manually is risky and clunky: users must withdraw assets, swap them on a DEX, and re-deposit—exposing positions to liquidation risk and requiring extra capital.

Woof Software engineered a custom 1-click smart contract engine that migrates BENQI collateral in a single atomic transaction: zero manual unwinding, zero liquidation risk, and zero extra capital needed.

Image 1 - Comparison between Traditional Unwinding and 1 click integration by Woof

Why It Matters

  • For Users: 1-click collateral migration (e.g., USDT → USDC) without closing active borrow positions.

  • For BENQI: Retains capital inside the protocol during user repositioning, boosting UX and liquidity retention.

How It Works (Under the Hood)

  1. Flash Liquidity: Contract takes a temporary flash loan via Trader Joe.

  2. Atomic Swap & Deposit: Redeems old collateral, swaps via 1inch, and deposits new collateral into BENQI.

  3. 1-Block Repay: Flash loan is repaid immediately. If any step fails, the transaction safely reverts.

Image 2 - How Benqi Collateral Migrator works

Scope Delivered

  • Solidity Smart Contracts: Production-ready engine.

  • Protocol Integrations: Trader Joe (Flash Loans), 1inch (Swaps), and BENQI Core/Isolated markets.

  • Security & Admin Controls: Circuit breakers (pause mechanism), admin recovery, and residual handling.

Handoff: 100% test coverage, deployment tooling, and documentation delivered to BENQI.

Choose Your Ending CTA:

Ready to Build Custom Protocol Architecture?

Whether you need complex DeFi primitives, flash-loan integrations, or an elite SWAT team to ship audit-ready smart contracts to mainnet—we eliminate engineering risk and deliver on time.





Team behind this project