Tapioca-DAO / tap-token

24 stars 14 forks source link

Wrong max lock time check on `twTap.participate()` #246

Open 0xRektora opened 3 months ago

0xRektora commented 3 months ago

Context On the twl V2, we initialize the epoch duration to be 4 weeks instead of the typical 1.

On participate(), we check if the last epoch cumulative was 0 (on genesis it's at 0), and we set the default to the epoch duration.

issue There'd be a mismatch in the assumption of the last epoch cumulative setting it 4 times lower than what's expected.

0xRektora commented 3 months ago

Fix https://github.com/Tapioca-DAO/tap-token/pull/244/commits/4fc28a14a06ab37d64d70e525d8462ae168f6f16