getCommunityPool method
Implementation
Future<List<Coin>> getCommunityPool() async {
String root =
"${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_DISTRIBUTION_COMMUNITY_POOL}";
var response = await apiRequester.getAsync<DistributionInfoApiJson>(root);
if (response.successful!) {
var rewards = DistributionInfoApiJson.fromJson(response.result!);
return CoinsExtensions.fromJSON(rewards.pool!);
}
throw Exception("");
}