pdvrewards

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pdvrewards contains code for rewards calculation and distribution

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distributor

type Distributor struct {
	// contains filtered or unexported fields
}

Distributor responsible for distributing PDV rewards in uDEC.

func NewDistributor

func NewDistributor(
	rewardsPoolSize int64,
	b blockchain.Blockchain,
	is storage.IndexStorage) *Distributor

NewDistributor creates a new instance of Distributor.

func (*Distributor) RunAsync

func (d *Distributor) RunAsync(ctx context.Context, interval time.Duration)

RunAsync times to check if distribute date is reached and whether to distribute rewards.

Jump to

Keyboard shortcuts

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