blocksights / blocksights-open-explorer

Other
5 stars 4 forks source link

Pool Price chart on Liquidity Pool page should specify price direction and let you invert it. #5

Open christophersanborn opened 2 years ago

christophersanborn commented 2 years ago

The pool price chart is unclear as to whether it charts ASSET_A:ASSET_B or ASSET_B:ASSET_A.

From inspection, it looks like it plots A:B. For pools for which ASSET_A is BTS, this means it plots BTS:ASSET_B when a user might intuitively be more interested in ASSET_B:BTS.

A label and a button to invert the orientation would be helpful.

(N.B.: One way to pick a default orientation could be to look and see if one of the assets in the pair lists the other as a "preferred market".)

sschiessl-bcp commented 2 years ago

Added the label now for clarity image

The rule for deciding what the market is: bigger_asset_id/smaller_asset_id