Skip to content

Commit

Permalink
Merge pull request #1 from book-io/bugfix-stake-pool-history-data
Browse files Browse the repository at this point in the history
makes `active_stake_pct` optional as it is `null` sometimes.
  • Loading branch information
b00kdev authored Sep 10, 2024
2 parents 420cb53 + 8b2d2d4 commit 4d80685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/pools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub struct StakePoolDelegators {
#[derive(Deserialize, Debug, Clone)]
pub struct StakePoolHistoryData {
pub active_stake: i64,
pub active_stake_pct: String,
pub active_stake_pct: Option<String>,
pub block_cnt: i64,
pub deleg_rewards: i64,
pub delegator_cnt: i64,
Expand Down

0 comments on commit 4d80685

Please sign in to comment.