farm-army / farm-army-backend

Track your farming and pool performance on the Binance Smart Chain, Polygon, Fantom, KuCoin Community Chain, Harmony, Celo - https://farm.army - nodejs backend
https://farm.army
MIT License
107 stars 61 forks source link

Value vFarms with vesting show incorrect pending rewards #10

Open johnsanc314 opened 3 years ago

johnsanc314 commented 3 years ago

The pending rewards shown for Value DeFi vFarms are incorrect for farms that have a vesting mechanism. Example pool: 30% rewards available immediately and 70% eligible for vesting after block X distributed linearly until block Y.

When I claim my rewards, the pending to harvest resets to zero on farm.army, but the number increases as if its the full amount of the vested (claimable) and unvested (unclaimable) portions.

I suggest displaying and breaking down the two amounts separately so the user can see dollar values and amounts of the claimable and unclaimable portions of the rewards.