BeanstalkFarms/Beanstalk

UI Bug: Vesting Beans warning is inaccurate

Closed this issue · 0 comments

Beans minted to the Silo are distributed to Stalkholders 10 blocks after the beginning of the Season. During the first 10 blocks of the Season, the Beans are vesting.

Currently, the Earned Beans tooltip states that all of the user's Earned Beans are vesting (incorrect), rather than the subset of Beans that were minted to the Silo at the beginning of the Season that haven't vested yet (correct).

image

Instead of:

The number of Beans earned since your last Plant. Upon Plant, Earned Beans are Deposited in the current Season. 4.361 Earned Beans are currently Vesting.

It should say:

The number of Beans earned since your last Plant. Upon Plant, Earned Beans are Deposited. When Beans are minted to the Silo, they are Vesting until they become Earned Beans 2 minutes later. You have [X] Vesting Beans.

Where [X] is actually the number of Beans that are Vesting.

If it is not possible to get a user's Vesting Earned Bean amount, then something like the following would work:

The number of Beans earned since your last Plant. Upon Plant, Earned Beans are Deposited. When Beans are minted to the Silo, they are Vesting until they become Earned Beans 2 minutes later. It is currently the Vesting Period.

And remove It is currently the Vesting Period. if it's not the Vesting Period.