We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0846967 commit adb2f5aCopy full SHA for adb2f5a
core/src/db_models/stake_pool_stats.rs
@@ -89,8 +89,7 @@ impl StakePoolStatsStore {
89
docs.push(doc);
90
}
91
92
- let new_stake_pool_stats = Self::calculate_moving_avg_apy(&docs, 10).unwrap();
93
- Ok(new_stake_pool_stats)
+ Self::calculate_moving_avg_apy(&docs, 10).map_err(DataStoreError::StakePoolStatsError)
94
95
96
/// Calculates moving average apy based on past num_epochs epochs
0 commit comments