ScopeLift/umbra-protocol

Fix Amount Based Sorting on Receive Page

apbendi opened this issue · 0 comments

It's currently unclear what value amount based sorting is using. We should change it to be something consistent and intuitive. The easiest initial fix would be to sort based on the real-value (i.e. after decimal conversion) amount, regardless of the denomination/value of the token. For example, if someone receives 28 MATIC, 0.1 WETH, 20 USDC, 18 DAI, and 27 USDT it should sort ascending as:

0.1 WETH
18 DAI
20 USDC
27 USDT
28 MATIC