Skip to content

Commit

Permalink
pindexer: read community pool allocation from genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
cronokirby committed Sep 20, 2024
1 parent 46e0c78 commit ed804cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bin/pindexer/src/supply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ async fn add_genesis_native_token_allocation_supply<'a>(
.unwrap();
}
}
// Add community pool allocation
unstaked_native_token_sum += content.community_pool_content.initial_balance.amount;

sqlx::query("INSERT INTO supply_total_unstaked (height, um) VALUES ($1, $2)")
.bind(0i64)
Expand Down

0 comments on commit ed804cb

Please sign in to comment.