getPoolDelta method

Future<double> getPoolDelta()

Implementation

Future<double> getPoolDelta() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_MARKET_TERRA_POOL_DELTA}";

  var response = await apiRequester.getAsync<MarketingApiPoolDelta>(rootPath);
  if (response.successful!) {
    var result = MarketingApiPoolDelta.fromJson(response.result!);
    return double.parse(result.terra_pool_delta);
  }

  throw Exception("");
}