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 Pool ¶
type Pool struct { ID string `json:"id"` DisplayName string `json:"displayName"` Logo string `json:"logo"` TokenForLogo string `json:"tokenForLogo"` 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 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"` EstimatedAPY string `json:"estimatedApy"` UnderlyingBalanceWithInvestment string `json:"underlyingBalanceWithInvestment"` USDPrice string `json:"usdPrice"` }
Click to show internal directories.
Click to hide internal directories.