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

Multi-Protocol Position Migrator

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

Multi-Protocol Position Migrator is a specialized DeFi tool that reads position state from source lending protocols and enables migration to destination protocols. It fetches user position balances, collateral amounts, debt amounts, health factor, liquidation threshold, interest rates, and accumulated rewards from the source protocol. The tool analyzes the position's health and migration eligibility, checking for withdrawal penalties, position composition, and protocol-specific restrictions. It reads the destination protocol's state, including available liquidity, deposit rates, and configuration parameters. The tool supports configurable migration steps: withdrawing from the source protocol, claiming accumulated rewards, depositing to the destination protocol, or executing a full batch migration. It also reads gas price, block timestamp, and protocol fees to estimate transaction costs and slippage. The tool provides detailed position performance metrics and risk parameters, helping users make informed migration decisions.

HOW TO USE

Connect your wallet and select your network from the dropdown. Paste the source protocol contract address (e.g., Aave, Compound, Lido), the destination protocol contract address, and optionally a position ID. Click "Analyze Position" to read your position state from the source protocol. The tool displays position value, collateral, debt, health factor, liquidation threshold, accumulated rewards, withdrawal penalties, migration eligibility, and estimated gas costs. Review the migration configuration: set slippage tolerance, choose whether to claim rewards before migration, and optionally set a maximum gas price. Use the three action buttons to control the migration: "Withdraw from Source" to pull funds out of the source protocol, "Deposit to Destination" to open a new position on the destination protocol, or "Full Migration" to execute the complete withdrawal-and-deposit sequence in a batched transaction. The migration preview shows the source, destination, amount, slippage, and reward claim status before execution.

POSITION AGGREGATION AND MIGRATION SEQUENCE ENGINE

The tool implements a multi-protocol state aggregation engine that reads position data from various DeFi protocols using standardized interfaces. It queries the source protocol's getUserAccountData function to obtain total collateral, total debt, available borrows, liquidation threshold, loan-to-value ratio, and health factor. It reads user reserve data to get aToken balances, variable debt, and stable debt amounts. The tool calculates the effective position value by subtracting debt from collateral, then analyzes the health factor to determine if the position is safe from liquidation. For migration eligibility, the tool checks protocol-specific withdrawal restrictions, timelock periods, and penalty conditions. The tool constructs the migration transaction sequence by encoding withdrawal calls with the correct asset addresses and amounts, then encoding deposit calls with the appropriate referral codes. For batch migration, the tool uses multicall or protocol-specific adapter patterns to combine multiple transactions into a single atomic operation. The tool calculates slippage tolerance based on current exchange rates and applies it to the deposit amount to ensure the transaction succeeds within acceptable price impact. Gas estimation is performed using current network conditions, and the tool provides a detailed breakdown of expected gas costs for each migration step, using effectiveGasPrice from the provider for post-EIP-1559 accuracy.

WHAT IT CANNOT SEE

This tool cannot verify that the migration will result in better position performance or higher yields. It cannot detect if the destination protocol has been exploited, compromised, or has hidden vulnerabilities. It cannot guarantee that the migration transaction will succeed if protocol state changes between analysis and execution. It cannot recover funds if migration fails mid-execution due to reverts or gas issues. It cannot verify that the position composition is optimal for the destination protocol. It cannot provide financial, investment, or tax advice. It cannot ensure that rewards will be properly migrated or that reward rates will remain consistent. It cannot detect if the source protocol has withdrawal restrictions, timelocks, or penalties not visible on-chain. It cannot predict future interest rates, yields, or token prices. It cannot guarantee that the migrated position will remain profitable or avoid liquidation.

PLEASE NOTE

This tool supports EVM-compatible chains only. It requires an active RPC connection and a wallet with signing capabilities. The tool does not custodial funds or private keys. Always verify protocol addresses and position details before executing migration. Migration transactions may be complex and require sufficient gas. Some protocols have withdrawal cooldown periods—check eligibility before proceeding. The tool is for informational and experimental use; you bear full responsibility for migration decisions.

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.