PotLock / bos-app

PotLock BOS (blockchain operating system - decentralized front ends) App
MIT License
9 stars 9 forks source link

[BUG] Payouts amounts incorrect #516

Closed lachlanglen closed 7 months ago

lachlanglen commented 7 months ago

Describe the bug There is an issue here: https://github.com/PotLock/bos-app/blob/61796b9f32a590629acf9bbeb85e03d2f47f37f3/apps/potlock/widget/Pots/Payouts.jsx#L463-L467

This shows the correct amount for allocation on mobile, but incorrect amount on desktop (displays matchedAmount when it should display totalAmount)

If I change to yoctosToNear(totalAmount, true), it appears correctly on desktop but incorrectly on mobile (says e.g. "11.86N allocated" instead of "229.39N allocated"

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.