types

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL