Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APYTrendPoint ¶
type JuniorBondUser ¶
type JuniorBondUser struct { JuniorBondId int64 `json:"juniorBondId"` AccountAddress string `json:"accountAddress"` DepositedAmount decimal.Decimal `json:"depositedAmount"` MaturityDate int64 `json:"maturityDate"` Redeemed bool `json:"redeemed"` UnderlyingTokenAddress string `json:"underlyingTokenAddress"` UnderlyingTokenSymbol string `json:"underlyingTokenSymbol"` UnderlyingTokenDecimals int64 `json:"underlyingTokenDecimals"` TxHash string `json:"transactionHash"` BlockTimestamp int64 `json:"blockTimestamp"` }
type JuniorPastPosition ¶
type JuniorPastPosition struct { ProtocolId string `json:"protocolId"` SmartYieldAddress string `json:"smartYieldAddress"` UnderlyingTokenAddress string `json:"underlyingTokenAddress"` UnderlyingTokenSymbol string `json:"underlyingTokenSymbol"` TokensIn decimal.Decimal `json:"tokensIn"` UnderlyingOut decimal.Decimal `json:"underlyingOut"` Forfeits decimal.Decimal `json:"forfeits"` TransactionType string `json:"transactionType"` BlockTimestamp int64 `json:"blockTimestamp"` TxHash string `json:"transactionHash"` }
type LiquidityPoint ¶
type Pool ¶
type Pool struct { ProtocolId string `json:"protocolId"` ControllerAddress string `json:"controllerAddress"` ModelAddress string `json:"modelAddress"` ProviderAddress string `json:"providerAddress"` PoolAddress string `json:"smartYieldAddress"` OracleAddress string `json:"oracleAddress"` JuniorBondAddress string `json:"juniorBondAddress"` SeniorBondAddress string `json:"seniorBondAddress"` CTokenAddress string `json:"cTokenAddress"` UnderlyingAddress string `json:"underlyingAddress"` UnderlyingSymbol string `json:"underlyingSymbol"` UnderlyingDecimals int64 `json:"underlyingDecimals"` RewardPoolAddress string `json:"rewardPoolAddress"` State PoolState `json:"state"` }
type PoolHistory ¶
type PoolHistory struct { AccountAddress *string `json:"accountAddress,omitempty"` ProtocolId string `json:"protocolId"` Pool string `json:"pool"` UnderlyingTokenAddress string `json:"underlyingTokenAddress"` UnderlyingTokenSymbol string `json:"underlyingTokenSymbol"` Amount decimal.Decimal `json:"amount"` Tranche string `json:"tranche"` TransactionType string `json:"transactionType"` TransactionHash string `json:"transactionHash"` BlockTimestamp int64 `json:"blockTimestamp"` BlockNumber int64 `json:"blockNumber"` }
type PoolState ¶
type PoolState struct { BlockNumber int64 `json:"blockNumber"` BlockTimestamp time.Time `json:"blockTimestamp"` SeniorLiquidity decimal.Decimal `json:"seniorLiquidity"` JuniorLiquidity decimal.Decimal `json:"juniorLiquidity"` JTokenPrice decimal.Decimal `json:"jTokenPrice"` SeniorAPY float64 `json:"seniorApy"` JuniorAPY float64 `json:"juniorApy"` JuniorAPYPast30dAvg float64 `json:"juniorAPYPast30DAvg"` OriginatorApy float64 `json:"originatorApy"` OriginatorNetApy float64 `json:"originatorNetApy"` AvgSeniorMaturityDays float64 `json:"avgSeniorMaturityDays"` NumberOfSeniors int64 `json:"numberOfSeniors"` NumberOfJuniors int64 `json:"numberOfJuniors"` NumberOfJuniorsLocked int64 `json:"numberOfJuniorsLocked"` JuniorLiquidityLocked decimal.Decimal `json:"juniorLiquidityLocked"` }
type PortfolioValuePoint ¶
type RewardPool ¶
type RewardPool struct { PoolAddress string `json:"poolAddress"` PoolTokenAddress string `json:"poolTokenAddress"` RewardTokenAddress string `json:"rewardTokenAddress"` PoolTokenDecimals int64 `json:"poolTokenDecimals"` ProtocolID string `json:"protocolId"` UnderlyingSymbol string `json:"underlyingSymbol"` UnderlyingAddress string `json:"underlyingAddress"` }
type RewardPoolV2 ¶
type RewardPoolV2 struct { PoolType string `json:"poolType"` PoolAddress string `json:"poolAddress"` PoolControllerAddress string `json:"poolControllerAddress"` PoolTokenAddress string `json:"poolTokenAddress"` RewardTokens []RewardPoolV2RewardToken `json:"rewardTokens"` PoolTokenDecimals int64 `json:"poolTokenDecimals"` ProtocolID string `json:"protocolId"` UnderlyingSymbol string `json:"underlyingSymbol"` UnderlyingAddress string `json:"underlyingAddress"` }
type RewardPoolV2RewardToken ¶
type SeniorBondUser ¶
type SeniorBondUser struct { SeniorBondId int64 `json:"seniorBondId"` MaturityDate int64 `json:"maturityDate"` Redeemed bool `json:"redeemed"` AccountAddress string `json:"accountAddress"` DepositedAmount decimal.Decimal `json:"depositedAmount"` RedeemableAmount decimal.Decimal `json:"redeemableAmount"` UnderlyingTokenAddress string `json:"underlyingTokenAddress"` UnderlyingTokenSymbol string `json:"underlyingTokenSymbol"` UnderlyingTokenDecimals int64 `json:"underlyingTokenDecimals"` TxHash string `json:"transactionHash"` BlockTimestamp int64 `json:"blockTimestamp"` }
type SeniorRedeem ¶
type SeniorRedeem struct { SeniorBondAddress string `json:"seniorBondAddress"` UserAddress string `json:"userAddress"` SeniorBondID int64 `json:"seniorBondId"` PoolAddress string `json:"smartYieldAddress"` Fee decimal.Decimal `json:"fee"` UnderlyingIn decimal.Decimal `json:"underlyingIn"` Gain decimal.Decimal `json:"gain"` ForDays int64 `json:"forDays"` BlockTimestamp int64 `json:"blockTimestamp"` TxHash string `json:"transactionHash"` }
type StakingAction ¶
type TxType ¶
type TxType string
const ( TxJuniorDeposit TxType = "JUNIOR_DEPOSIT" TxJuniorInstantWithdraw TxType = "JUNIOR_INSTANT_WITHDRAW" TxJuniorRegularWithdraw TxType = "JUNIOR_REGULAR_WITHDRAW" TxJuniorRedeem TxType = "JUNIOR_REDEEM" TxSeniorDeposit TxType = "SENIOR_DEPOSIT" TxSeniorRedeem TxType = "SENIOR_REDEEM" TxJtokenSend TxType = "JTOKEN_SEND" TxJtokenReceive TxType = "JTOKEN_RECEIVE" TxJbondSend TxType = "JBOND_SEND" TxJbondReceive TxType = "JBOND_RECEIVE" TxSbondSend TxType = "SBOND_SEND" TxSbondReceive TxType = "SBOND_RECEIVE" TxJuniorStake TxType = "JUNIOR_STAKE" TxJuniorUnstake TxType = "JUNIOR_UNSTAKE" )
Click to show internal directories.
Click to hide internal directories.