fly_staked

package
v0.0.0-...-07d62d3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Context to use for database logging
	Context = "TIMESCALE/FLY_STAKED"

	// TableFlyStaked to use to get the currently staked users
	TableFlyStaked = "fly_staked"
)

Variables

This section is empty.

Functions

func PickSenderAndReceiver

func PickSenderAndReceiver() (sender ethereum.Address, receiver ethereum.Address)

PickSenderAndReceiver by randomly picking 10 stakers, then taking the top 2 of them by staked amount. If we only find one, then we make them the recipient for everything. If we can't find anything, we Fatal. This only makes sense with a large dataset (everything else

Types

This section is empty.

Jump to

Keyboard shortcuts

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