This issue is about tackling multiple use cases regarding the previously mentioned use cases
Revoked Contracts
Currently, when a Vesting contract is revoked, there is an error when calculating the total vesting amount. See for example this Grant asking for 30k and it's vesting which got revoked at the 25k mark. In this case, the Total Vesting amount displays $25,084 when the value should be $30,000. In addition to this, the percentage of vested and released funds displays as 100% when the actual percentage should be 80.5%.
[x] Maintain the original Total Vesting amount when a contract is Revoked
[x] Calculate the % of Released and Vested Funds of the Total Vesting amount (The Released and Vested amounts will match since when a contract gets revoked, all the unreleased but vested funds get transferred to the beneficiary address)
Also, the projected vesting line keeps its upward trajectory when it should drop to 0 at the same timestamp that the Grant was revoked
See:
(This screenshot is from a linear instead of a periodic vesting but the concept is the same)
It should be:
[ ] Grey vesting projection should drop to 0 when the contract gets revoked.
[ ] If the Vesting Contract was Revoked, a banner should be displayed communicating the user that information.
Paused Contracts
Currently, when a Vesting gets paused, the projected vesting line keeps its upward trajectory when it should remain flat until the grant is either unpaused or revoked.
See:
It should be:
The Paused marker should use a yellow color instead of red
Paused and then Revoked Contracts
When a Vesting gets paused, the behavior regarding the projected vesting line should be the same, and when the Vesting is revoked after the pause, the vesting line should drop to 0.
[ ] When a Vesting is paused, the projected vesting line should remain flat until the Vesting gets either unpaused or Revoked
[ ] When a Vesting gets Revoked after a pause, the projected vesting line drops to 0 and if there are any remaining funds to be released, the release line rises to the released amount.
Paused and then Unpaused Contracts
When a Vesting gets paused, the behavior regarding the projected vesting line should be the same, and when the Vesting is unpaused, the vesting lines (Projected and actual) should continue behaving the same as they were before the pause.
[ ] When a Vesting is paused, the projected vesting line should remain flat until the Vesting gets either unpaused or Revoked
[ ] When a Vesting is unpaused, the projected and actual vesting lines keep its trajectory
Periodic Vesting Contracts
[x] Copy should be updated from:
Vesting is real-time and the beneficiary is able to release funds as they are vested. The beneficiary has released from said funds 0% of what is currently vested.
to:
Vesting is periodic every 30 days and the beneficiary is able to release funds as they are vested. The beneficiary has released from said funds X% of what is currently vested.
Intro
After the latest upgrades (See https://github.com/decentraland/vestings-builder/pull/50 and https://github.com/decentraland/vestings-builder/pull/41) for the Vesting Contracts logic, the Vesting Dashboard lacks complete support for the Paused and Revoked status with periodic vesting schedules.
This issue is about tackling multiple use cases regarding the previously mentioned use cases
Revoked Contracts
Currently, when a Vesting contract is revoked, there is an error when calculating the total vesting amount. See for example this Grant asking for 30k and it's vesting which got revoked at the 25k mark. In this case, the Total Vesting amount displays $25,084 when the value should be $30,000. In addition to this, the percentage of vested and released funds displays as 100% when the actual percentage should be 80.5%.
Also, the projected vesting line keeps its upward trajectory when it should drop to 0 at the same timestamp that the Grant was revoked See:
(This screenshot is from a linear instead of a periodic vesting but the concept is the same)
It should be:
Paused Contracts
Currently, when a Vesting gets paused, the projected vesting line keeps its upward trajectory when it should remain flat until the grant is either unpaused or revoked. See:
It should be: The Paused marker should use a yellow color instead of red
Paused and then Revoked Contracts
When a Vesting gets paused, the behavior regarding the projected vesting line should be the same, and when the Vesting is revoked after the pause, the vesting line should drop to 0.
Paused and then Unpaused Contracts
When a Vesting gets paused, the behavior regarding the projected vesting line should be the same, and when the Vesting is unpaused, the vesting lines (Projected and actual) should continue behaving the same as they were before the pause.
Periodic Vesting Contracts
to: