Skip to main content

index/variables/BRIDGE_AMOUNT_PROBLEMS.md

const BRIDGE_AMOUNT_PROBLEMS: readonly ["not_a_number", "not_positive", "too_many_decimals"]

Why a bridge amount was refused (INVALID_BRIDGE_AMOUNT.params.reason):

  • not_a_number: not a finite decimal number;
  • not_positive: zero or negative (a bridge of nothing only wastes the fee);
  • too_many_decimals: more decimal places than the token has (it would be rounded).