harvestfarm

package
v0.0.0-...-8b20efb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_API_UI = "41e90ced-d559-4433-b390-af424fdc76d6"
	KEY_API    = "fc8ad696-7905-4daa-a552-129ede248e33"
	API_UI     = "https://api-ui.harvest.finance/%s?key=%s"
	API        = "https://api.harvest.finance/%s?key=%s"

	VAULTS = "vaults"
	POOLS  = "pools"

	PROFIT_SHARING_POOL = "0x25550Cccbd68533Fa04bFD3e3AC4D09f9e00Fc50"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LPToken

type LPToken struct {
	Address  string      `json:"address"`
	Decimals string      `json:"decimals"`
	Symbol   string      `json:"symbol"`
	Price    interface{} `json:"price"`
}

type Pool

type Pool struct {
	ID                     string   `json:"id"`
	DisplayName            string   `json:"displayName"`
	Type                   int      `json:"type"`
	ContractAddress        string   `json:"contractAddress"`
	AutoStakePoolAddress   string   `json:"autoStakePoolAddress"`
	CollateralAddress      string   `json:"collateralAddress"`
	RewardAPY              string   `json:"rewardAPY"`
	RewardToken            string   `json:"rewardToken"`
	RewardTokenSymbols     []string `json:"rewardTokenSymbols"`
	CollateralTokenSymbols []string `json:"collateralTokenSymbols"`
	DetailsTokenSymbol     string   `json:"detailsTokenSymbol"`
	LpTokenData            LPToken  `json:"lpTokenData"`
	RewardAPR              string   `json:"rewardAPR"`
	RewardPerToken         string   `json:"rewardPerToken"`
	TotalSupply            string   `json:"totalSupply"`
	FinishTime             string   `json:"finishTime"`
	TotalValueLocked       string   `json:"totalValueLocked"`
	StakeDisabled          bool     `json:"stakeDisabled"`

	Vault *Vault `json:"vault"`
}

type Pools

type Pools []Pool

func GetCurrentPools

func GetCurrentPools() (Pools, error)

type Vault

type Vault struct {
	LogoURL                         string   `json:"logoUrl"`
	ApyIconURL                      string   `json:"apyIconUrl"`
	TokenAddress                    string   `json:"tokenAddress"`
	Decimals                        string   `json:"decimals"`
	VaultAddress                    string   `json:"vaultAddress"`
	CMCRewardTokenSymbols           []string `json:"cmcRewardTokenSymbols"`
	PricePerFullShare               string   `json:"pricePerFullShare"`
	EstimatedAPY                    string   `json:"estimatedApy"`
	UnderlyingBalanceWithInvestment string   `json:"underlyingBalanceWithInvestment"`
	USDPrice                        string   `json:"usdPrice"`
}

type Vaults

type Vaults map[string]Vault

func GetVaults

func GetVaults() (Vaults, error)

Jump to

Keyboard shortcuts

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