thesis / acre

Bitcoin Liquid Staking
https://acre.fi
GNU General Public License v3.0
7 stars 2 forks source link

[Acre points UI] Claimable points doesn't match `acre-api-staging.points_balances` (extra digit in db) #740

Closed pnicjanik closed 1 week ago

pnicjanik commented 1 month ago

https://deploy-preview-704--acre-dapp-testnet.netlify.app/ mwp7CjXuQCxSvUu95ZSygHdUFYMr3SZBKh (user_id= 0x6F1a421573082BE1BEAe22551259D4D793EfD2cE) and tb1qr3w08jap6ap2y9em3q7nc9k26s2tchds2w49d7 (user_id= 0x247c356466D139Df16231E576eF52B1168528B6F)

2 users (same seed phrase, different address types / users), and in both cases what's seen on the Claim button doesn't match the points_balances db value.

1) select * from points_balances where unclaimed like "7518078%"

2) select * from points_balances where unclaimed like "151434986%"

possible (likely?) a fractional/rounding issue ... but in that case for example 2 above, i'd expect the UI to show 151434987 not 151434986.