fromAmino static method

Implementation

static PolicyConstraints fromAmino(PolicyConstraintsAminoArgs data) {
  return PolicyConstraints(
      double.parse(data.rate_min!),
      double.parse(data.rate_max!),
      Coin.fromAmino(data.cap!),
      double.parse(data.change_rate_max!));
}