Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 720 Bytes

01_state.md

File metadata and controls

28 lines (18 loc) · 720 Bytes

State

Index

The Index field is a collections.Item that stores the current $USDN rebasing multiplier (math.LegacyDec).

const IndexKey = []byte("index")

Paused

The Paused field is a collections.Item that stores the current paused state (boolean).

const PausedKey = []byte("paused")

Principal

The Principal field is a mapping (collections.Map) between user addresses ([]byte) and their principal amount (math.Int) of their $USDN balance.

const PrincipalPrefix = []byte("principal/")