calculateRewardsEarned
halimabergaoui opened this issue · 3 comments
halimabergaoui commented
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?
larrinator1 commented
What number do you expect?
halimabergaoui commented
I am expecting about 0.000031 from the pool usdc/usdt
halimabergaoui commented
this is solved. the problem was in the timestamp should be in seconds.