apr

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 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"`
	Era          int64          `json:"era"`
	Bonded       types.Quantity `json:"bonded"`
	TotalRewards types.Quantity `json:"total_rewards"`
	APR          big.Float      `json:"apr"`
}

Jump to

Keyboard shortcuts

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