getRewardWeight method
Implementation
Future<double> getRewardWeight() async {
var rootPath =
"${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_TREASURY_REWARD_WEIGHT}";
var response = await apiRequester.getAsync<TreasuryTaxCap>(rootPath);
if (response.successful!) {
var result = TreasuryTaxCap.fromJson(response.result!);
return double.parse(result.reward_weight);
}
throw Exception("");
}