Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiquidatableSubaccountIds ¶
type LiquidatableSubaccountIds struct { sync.Mutex // lock // contains filtered or unexported fields }
LiquidatableSubaccountIds maintains the list of subaccount ids to be liquidated in the next block. Methods are goroutine safe.
func NewLiquidatableSubaccountIds ¶
func NewLiquidatableSubaccountIds() *LiquidatableSubaccountIds
NewLiquidatableSubaccountIds creates a new `LiquidatableSubaccountIds` struct.
func (*LiquidatableSubaccountIds) GetSubaccountIds ¶
func (ls *LiquidatableSubaccountIds) GetSubaccountIds() []satypes.SubaccountId
GetSubaccountIds returns the list of potentially liquidatable subaccount ids reported by the liquidation daemon.
func (*LiquidatableSubaccountIds) UpdateSubaccountIds ¶
func (ls *LiquidatableSubaccountIds) UpdateSubaccountIds(updates []satypes.SubaccountId)
UpdateSubaccountIds updates the struct with the given a list of potentially liquidatable subaccount ids.
Click to show internal directories.
Click to hide internal directories.