Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MonthlyAprTotal ¶
type MonthlyAprTotal struct { MonthlyRewardRate *big.Float DayCount int64 Dailies []RewardRate }
type MonthlyAprView ¶
type MonthlyAprView struct { MonthInfo string `json:"month_info"` AvgApr float64 `json:"avg_apr"` Dailies []RewardRate `json:"dailies"` }
type MonthlyAprViewResult ¶
type MonthlyAprViewResult struct {
Result []MonthlyAprView `json:"result"`
}
type RewardRate ¶
type RewardRate struct { TimeBucket types.Time `json:"time_bucket"` StartHeight int64 `json:"start_height"` EscrowActiveBalance types.Quantity `json:"escrow_active_balance"` TotalRewards types.Quantity `json:"total_rewards"` Rate big.Float `json:"rate"` }
func NewRewardRate ¶
func NewRewardRate(summary model.BalanceSummary, rawAccount *accountpb.GetByAddressResponse) RewardRate
Click to show internal directories.
Click to hide internal directories.