From 8b2d2d45f56a250e8517a4fa4005df60cf5924e5 Mon Sep 17 00:00:00 2001 From: RJ Regenold Date: Tue, 10 Sep 2024 16:30:26 -0500 Subject: [PATCH] makes `active_stake_pct` optional as it is `null` sometimes. --- src/models/pools.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/pools.rs b/src/models/pools.rs index d879f5b..4f32c13 100644 --- a/src/models/pools.rs +++ b/src/models/pools.rs @@ -49,7 +49,7 @@ pub struct StakePoolDelegators { #[derive(Deserialize)] pub struct StakePoolHistoryData { pub active_stake: i64, - pub active_stake_pct: String, + pub active_stake_pct: Option, pub block_cnt: i64, pub deleg_rewards: i64, pub delegator_cnt: i64,