Last updated
Last updated
Author: Inverter Network
Error thrown when the fee amount is too high. This error is thrown when the fee amount is greater than the maximum fee percentage. It takes care of both upscaling and downscaling the decimals based on the required decimals.
Parameters
Returns
_amount
uint256
The amount to be converted.
_tokenDecimals
uint8
The current decimal places of the token.
_requiredDecimals
uint8
The required decimal places for the token.
<none>
uint256
The converted amount with required decimal places.