cache

package
v0.0.0-...-d12d077 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheExpiration time.Duration = 120 * time.Minute
	CacheCleanup    time.Duration = 150 * time.Minute

	CacheDir string

	// caches all the pool contracts from a masterchef
	PoolInfoCache    *cache.Cache
	PoolLenghtsCache *cache.Cache
)

Functions

func Init

func Init()

func Save

func Save()

Types

type PoolInfo

type PoolInfo struct {
	// return values from poolInfo call
	Address          common.Address
	AllocPoint       *big.Int
	LastRewardBlock  *big.Int
	AccTokenPerShare *big.Int
	// additional info for further processing
	Id *big.Int
}

Jump to

Keyboard shortcuts

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