Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 995 Bytes

01_state_vaults.md

File metadata and controls

36 lines (23 loc) · 995 Bytes

Vaults State

Paused

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

const PausedKey = []byte("paused")

Rewards

The Rewards field is a mapping (collections.Map) between indexes (int64) and a vaults.Reward value.

const RewardPrefix = []byte("reward/")

Positions

The Positions field is a mapping (collections.Map) between the keys <address, vault, timestamp> ([]byte, vaults.VaultType, int64) and a vaults.Position value.

const PositionPrefix = []byte("position/")

TotalFlexiblePrincipal

The TotalFlexiblePrincipal field is a collections.Item that stores the current total principal stored in the flexible vault (math.Int).

const TotalFlexiblePrincipalKey = []byte("paused")