Lowering the threshold from 1% to 0.5% allows for a more precise identification of tokens with genuinely low liquidity, ensuring that our liquidity checks are more aligned
Using a constant for the low liquidity threshold instead of a hardcoded numeric value makes the code easier to read and understand.
Proposed Changes
Change the liquidity check threshold from 1% (previously hardcoded as 0.01) to 0.5% (now defined as LOW_LIQUIDITY_THRESHOLD), to better identify tokens with low liquidity.
Reasoning
1%
to0.5%
allows for a more precise identification of tokens with genuinely low liquidity, ensuring that our liquidity checks are more alignedProposed Changes
1%
(previously hardcoded as0.01
) to0.5%
(now defined asLOW_LIQUIDITY_THRESHOLD
), to better identify tokens with low liquidity.How to test
/tokens
-> verify the sorted tokens