apr

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetAprByAddressHttpHandler

func NewGetAprByAddressHttpHandler(accountDb store.AccountEraSeq, rewardDb store.Rewards, syncablesDb store.Syncables) *getAprByAddressHttpHandler

func NewGetAprByAddressUseCase

func NewGetAprByAddressUseCase(accountDb store.AccountEraSeq, rewardDb store.Rewards, syncablesDb store.Syncables) *getAprByAddressUseCase

Types

type DailyApr

type DailyApr struct {
	TimeBucket   types.Time     `json:"time_bucket"`
	Era          int64          `json:"era"`
	Bonded       types.Quantity `json:"bonded"`
	TotalRewards types.Quantity `json:"total_rewards"`
	APR          string         `json:"apr"`
	Validator    string         `json:"validator"`
}

Jump to

Keyboard shortcuts

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