Skip to content

Enforce a minimum balance per position #143

@vishalchangrani

Description

@vishalchangrani

The protocol should enforce a minimum balance for every position, with the following behavior:

A minimum balance must be maintained after every deposit and withdrawal

  • The check should be enforced on the position balance itself, not just on creation
  • If an action would cause the position to fall below the minimum, it should revert
  • This applies to all token / collateral types
  • The minimum can initially be very simple (e.g. 1 unit of the reference value)
  • Closing a position is exempt from this requirement
  • The rebalancer does not need to account for this yet

Metadata

Metadata

Assignees

Labels

QS FCM Audit First RoundTask to address QuantStamp Audit comments from their first round of review of the FCM contracts.⎈ QuantStampThis issue is related to QuantStamp review comment

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions