model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApyInfo added in v0.2.0

type ApyInfo struct {
	Apy         decimal.Decimal
	Apr         decimal.Decimal
	RewardToken *erc.ERC20Info

	IncentiveTotalApy  decimal.Decimal
	IncentiveTotalApr  decimal.Decimal
	IncentiveToken0Apy decimal.Decimal
	IncentiveToken0Apr decimal.Decimal
	IncentiveToken1Apy decimal.Decimal
	IncentiveToken1Apr decimal.Decimal
	IncentiveToken0    *erc.ERC20Info
	IncentiveToken1    *erc.ERC20Info
}

Apys of a token.

Use 0.01 for 1%

func (*ApyInfo) Generate added in v0.2.1

func (i *ApyInfo) Generate()

type ProtocolBasic

type ProtocolBasic struct {
	Network      string
	ProtocolName string
	Client       *bind.ContractBackend
	Gecko        *coingecko.Gecko
}

func (*ProtocolBasic) Regularcheck

func (p *ProtocolBasic) Regularcheck() bool

Return if protocol basic pass regular check.

Jump to

Keyboard shortcuts

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