This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Motivation:** There were some issues with our current time period checks. We need to fix them such that there's no overlapping time periods or gaps in time periods. And it should also respect the underlying approval and disapproval periods in the Llama framework. **Modifications:** * All time period checks start from the beginning and now progress forward. * Fix `getPastVotes` to use `delayPeriodEndTime` instead of `action.creationTime - 1` (Since voting period starts at `delayPeriodEndTime + 1`). * Fix `getPastTotalSupply` to use `delayPeriodEndTime` instead of `action.creationTime - 1` (Since voting period starts at `delayPeriodEndTime + 1`). * Fix where castingPeriodEndTime was being calculated wrong (due to forgetting to include voting delay in the calculation) **Result:** No time period related issues. Closes #32
- Loading branch information
Showing
4 changed files
with
363 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.