LP Price "Shorthand"
Making low LP token prices easier to understand.
Sometimes the price of an LP token can be quite low. When this occurs, we use a way to "shorthand" the price shown on the LP data cards. This prevents many characters (zeroes) from appearing on the card and impacting the design/readability.
An example mock up is shown below (click to expand images).
On the first (left) card, we're looking at a standard LP card. In this instance, we're looking at a two-token LP within the Algorand DeFi ecosystem.
Here we see the card shows a price of \$0.0021 for the LP token. But we see a note underneath that indicates we've "shorthanded" the price — by 0.10M. ("0.10M LP Token").
To find the LP token price, we divide the shown price by the "shorthand" note.
The user would note the following:
• Shown LP price = \$0.0021
• LP price "shorthand" = 0.10M
• Divide 0.0021 / 0.10M (100,000)
• Actual LP price = \$0.000000021
Notes regarding calculation factors:
• If LP token price is less than 0.0000000000, we multiply by a factor in Billions.
• If LP token price is less than 0.000000, we multiply by a factor in Millions.
• If LP token price is less than 0.000, we multiply by a factor in Thousands.
When the actual price of an LP token is shown (no calculation required), we note this with " 1 LP Token".