seigniorageProceeds method

Future<Coin> seigniorageProceeds()

Implementation

Future<Coin> seigniorageProceeds() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_TREASURY_Seigniorage_Proceeds}";

  var response = await apiRequester.getAsync<TreasuryTaxSeignorage>(rootPath);
  if (response.successful!) {
    var result = TreasuryTaxSeignorage.fromJson(response.result!);
    return Coin(CoinDenoms.ULUNA, double.parse(result.seigniorage_proceeds));
  }

  throw Exception("");
}