Skip to content

Queued deposits are withdrawable and affect health factor for liquidation/rebalancing only #117

@jordanschalm

Description

@jordanschalm

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.

  1. 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.
  2. 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.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions