This repository was archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added new methods to vCow contract's json interface and re-generated the types * Fixing bad merge reverting values back * Hard coding prices fetched from the contract for now * Added hook useDeploymentTimestamp to fetch contract deployment timestamp * Added helper hooks to check whether claim window is still open for each type * Properly calculating ETH value from vCowAmount * Short update to prices constants comment regarding the unit * Typo fix * Turned hasClaims into a boolean rather than number * Adding two dumb checks regarding investment window for testing * Using ms.macro lib for calculating weeks in ms * Using ethers parseUnits function * Refactored hooks to return always a boolean, never null * Made notive token price calculation chain based * Validating claims are still claimable on claim callback * Added new variables to callback hook deps Co-authored-by: Leandro <[email protected]>
- Loading branch information
1 parent
309753c
commit efcb9ad
Showing
6 changed files
with
338 additions
and
30 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
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
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
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.