Context
FCM supports queueing deposits; if a deposit exceeds the deposit rate limit (see #63), it will be queued and deposited later on. FCM automatically processes queued deposits using scheduled transactions.
We need to change some aspects of how queued deposits are handled.
- Queued deposits should count toward a position's health factor for the purposes of liquidation/rebalancing only. Queued deposits should not count a position's total borrowing capacity.
- When a user withdraws from their position, they should withdraw queued deposits first. (Currently queued deposits cannot be withdrawn until they exit the queue and are deposited.)