Price-Band Rebalance Trigger Tool
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Price-Band Rebalance Trigger Tool is a specialized DeFi tool that monitors asset prices through oracles and triggers rebalancing when prices move outside configurable bands. It reads the price oracle state, target asset price, and asset price feeds to determine current market conditions. The tool fetches the lower and upper price band limits, user position state, and rebalance trigger status to evaluate whether a rebalance is needed. It reads the last rebalance timestamp, minimum rebalance interval, and rebalance eligibility to prevent excessive or unnecessary rebalancing. The tool also reads gas price, block timestamp, chain ID, user balance, and user allowance to validate transaction feasibility. It monitors position composition, health factor, and liquidation price to assess risk before triggering rebalancing. The tool supports three key actions: updating band limits, triggering a single rebalance, and batch rebalancing multiple assets.
HOW TO USE
Connect your wallet and select your network from the dropdown. Paste the price oracle contract address, rebalance trigger contract address, and target asset address. Click "Read Price & Status" to fetch the current asset price, band limits, rebalance status, last rebalance timestamp, minimum interval, eligibility, health factor, liquidation price, and rebalance history. To update the band limits, enter new lower and upper price values and click "Update Band Limits". To trigger a rebalance, click "Trigger Rebalance"—the tool checks if the current price is outside the bands before executing. To rebalance multiple assets simultaneously, click "Batch Rebalance". The action preview shows the current price, band limits, and whether the price is within or outside the band.
BAND MONITORING AND REBALANCE TRIGGER ENGINE
The tool implements a comprehensive band monitoring engine that continuously evaluates asset prices against configured limits. It reads the current asset price from the oracle using the latestAnswer function, then compares it against the lowerPriceBand and upperPriceBand from the rebalance contract. When the price falls below the lower band or rises above the upper band, the tool flags a rebalance opportunity. The tool also checks the minimumRebalanceInterval to ensure sufficient time has passed since the last rebalance—this prevents excessive triggering during volatile periods. It reads the rebalanceEligible function to confirm the caller has permission to trigger. For position safety, the tool reads healthFactor to verify the position is not at risk of liquidation, and liquidationPrice to show the price at which liquidation would occur. When triggering, the tool constructs a triggerRebalance transaction with the target asset address—the contract then executes the rebalance via protocol adapters. For batch operations, the tool calls batchRebalance with an array of asset addresses. The tool also reads rebalanceHistory to display past rebalance events. Gas estimation uses the provider's fee data with a safety multiplier, and the tool validates that the user has sufficient balance for gas costs. The tool also reads triggerConfiguration to display the current rebalance settings.
WHAT IT CANNOT SEE
This tool cannot verify that the price band limits are optimal for current market conditions or that the bands are appropriate for the user's strategy. It cannot detect if the oracle price feed has been manipulated, compromised, or delayed. It cannot guarantee that the rebalance transaction will succeed if the protocol state changes between monitoring and execution. It cannot recover funds if rebalancing fails due to reverts or gas issues. It cannot predict future price movements or guarantee that the rebalanced position will remain within bands. It cannot provide financial, investment, or trading advice. It cannot detect if the price band configuration has been compromised or tampered with. It cannot guarantee that the rebalance will execute within the expected gas limits. It cannot verify off-chain rebalancing strategies or trading rules. It cannot ensure that the rebalance will be mined before the price moves further.
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 price band limits and oracle addresses before triggering rebalancing. Rebalancing transactions may be complex and require sufficient gas. The tool is for informational and experimental use; you bear full responsibility for rebalancing decisions.