getFee method

int getFee(
  1. int amount
)

Calculates the fee for a given amount.

Implementation

int getFee(int amount) {
  int result = amount ~/ NosoConst.comissiontrfr;
  if (result < NosoConst.minimumFee) {
    return NosoConst.minimumFee;
  }
  return result;
}