pub const MAX_UI_AMOUNT_LEN: usize = 254;
The longest UI-amount string UiAmountToAmount carries: the instruction is one byte of discriminator plus at most 254 bytes of UTF-8.
UiAmountToAmount