This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Cross-Margin Collateral Mover

DeFi · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategoryDeFi
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Cross-Margin Collateral Mover is a DeFi tool that lets you transfer collateral between different lending protocols in a single atomic transaction. Instead of manually withdrawing from one protocol and depositing into another in separate steps, this tool combines both actions, optionally adjusting your debt positions to maintain or optimize your cross-margin strategy. It reads your collateral balances, debt positions, health factors, and liquidation thresholds across multiple protocols, then calculates the impact of moving collateral between them. This is particularly useful for cross-margin trading where you want to shift collateral from one protocol to another to take advantage of better interest rates, lower liquidation thresholds, or improved borrowing terms — all while maintaining your overall position health.

HOW TO USE

Connect your EVM wallet via the BGWallet bridge. Enter the addresses of your source protocol (where collateral is currently held), your target protocol (where you want to move it), and the collateral token address. Optionally, specify the debt token if you want to adjust debt on the target protocol. Enter the amount of collateral you want to move and choose whether to borrow debt in the target protocol. Click "Preview Movement" to see the current collateral balances, health factors, and the expected gas efficiency compared to doing the steps separately. Review the preview carefully — ensure both positions remain healthy after the move. Click "Move Collateral" to sign and broadcast the transaction. The tool handles withdrawal, deposit, and optional borrowing in a single atomic transaction.

TECHNICAL MECHANISM

The tool fetches your collateral and debt positions from both protocols using their respective view functions. It calculates health factors using (collateral_value * liquidation_threshold) / debt_value for each protocol. When you execute, the tool encodes a multicall or sequential transaction that: (1) calls the source protocol's `withdraw` function to retrieve collateral, (2) calls the target protocol's `deposit` function to supply it, and (3) optionally calls the target protocol's `borrow` function to take debt. The entire operation is atomic — if any step fails, the transaction reverts and your positions remain unchanged. The tool also simulates the resulting health factors after the move, warning you if either position would become risky.

WHAT IT CANNOT SEE

This tool cannot guarantee that the collateral transfer will improve your overall position health if prices change between protocols during execution. Collateral prices are fetched from oracles and may differ slightly between protocols due to price feed variations. The tool also cannot predict oracle updates, protocol changes, or sudden market movements that could affect your positions. Always monitor market conditions and consider the gas cost — moving small amounts of collateral may not be worth the transaction fees. This tool is an aid for cross-margin management, not a guarantee of improved position health.

PLEASE NOTE

EVM chains only. This tool relies on the BGWallet connector and will not function on Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, or XRP. The user is responsible for ensuring the supplied contract addresses are correct and that both protocols support the specified operations. Always double-check the preview results and ensure you have sufficient collateral and gas before executing the transaction.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.