smartyield

package
v0.0.0-...-5fc2af4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmartYield

type SmartYield struct {
	Pools       []smartyield.Pool
	RewardPools []types.RewardPool
}

func New

func New() *SmartYield

func (*SmartYield) CacheRewardPool

func (sy *SmartYield) CacheRewardPool(p types.RewardPool)

func (*SmartYield) IsERC721OfInterest

func (sy *SmartYield) IsERC721OfInterest(addr string) bool

func (*SmartYield) LoadPools

func (sy *SmartYield) LoadPools(ctx context.Context, db *pgxpool.Pool) error

func (*SmartYield) LoadRewardPools

func (sy *SmartYield) LoadRewardPools(ctx context.Context, db *pgxpool.Pool) error

func (*SmartYield) PoolByAddress

func (sy *SmartYield) PoolByAddress(addr string) *smartyield.Pool

func (*SmartYield) PoolByControllerAddress

func (sy *SmartYield) PoolByControllerAddress(addr string) *smartyield.Pool

func (*SmartYield) PoolByJuniorBondAddress

func (sy *SmartYield) PoolByJuniorBondAddress(addr string) *smartyield.Pool

func (*SmartYield) PoolByProviderAddress

func (sy *SmartYield) PoolByProviderAddress(addr string) *smartyield.Pool

func (*SmartYield) PoolBySeniorBondAddress

func (sy *SmartYield) PoolBySeniorBondAddress(addr string) *smartyield.Pool

func (*SmartYield) RewardPoolByAddress

func (sy *SmartYield) RewardPoolByAddress(addr string) *types.RewardPool

Jump to

Keyboard shortcuts

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