QuarryProtocol/quarry

calculateRewardsEarned

halimabergaoui opened this issue · 3 comments

Hello,

How can I get the reward amount of a given user? I tried using calculateRewardsEarned function but I am getting a very large number. Is it the problem that I am using the wrong function or there is a missing integer conversion?

What number do you expect?

I am expecting about 0.000031 from the pool usdc/usdt

this is solved. the problem was in the timestamp should be in seconds.