Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Add docstrings and additional comments #234

Merged
merged 6 commits into from
Apr 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add comment for account statuses
  • Loading branch information
Brendan Chou committed Apr 15, 2019
commit ce16bdce99ae7dcfcc53a4474e1f1b839eed795e
9 changes: 7 additions & 2 deletions contracts/protocol/lib/Account.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ library Account {
// ============ Enums ============

/*
* Account status. Account can be liquidated if its status is Liquid even if it becomes
* overcollateralized at some later time.
* Most-recently-cached account status.
*
* Normal: Can only be liquidated if the account values are violating the global margin-ratio.
* Liquid: Can be liquidated no matter the account values.
* Can be vaporized if there are no more positive account values.
* Vapor: Has only negative (or zeroed) account values. Can be vaporized.
*
*/
enum Status {
Normal,
Expand Down