Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sale end without vesting date #152

Merged
merged 8 commits into from
May 11, 2022
Merged

Conversation

flaviocastro
Copy link
Contributor

@flaviocastro flaviocastro commented May 11, 2022

This PR adds the Vesting Start date unknown state as VESTING_UNKNOWN app state.
It also fixes the aUSD to be displayed with aUSD instead of $ and forces the formatter to ignore the locale and always put the symbol at the end.

Fixes #143.
Refs #106 for the claimable and refundable amounts.

image

Flavio Castro added 7 commits May 10, 2022 15:35
This also removes the date-dns dependency due to lack of timezones
support.
This change was due to the server sending a unix timestamp which is in
UTC and date-fns working based on the js Date class with always converts
it to local time. Dayjs is now replacing every instance of date-fns.
This fixes the localhost network chain id and the default chain ID when
no Env Variables are set.
This adds another state for when the vesting start date isn't available.
It also fixes the refund amount and claimable values.
This overrides the Intl locales default behaviour.
@vercel
Copy link

vercel bot commented May 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
discovery-dao ⬜️ Ignored (Inspect) May 11, 2022 at 7:50PM (UTC)

@github-actions github-actions bot added the medium small changes label May 11, 2022
@flaviocastro flaviocastro added enhancement New feature or request and removed medium small changes labels May 11, 2022
@flaviocastro flaviocastro changed the title Feature/sale end without vesting date Add sale end without vesting date May 11, 2022

dayjs.extend(timezone);
dayjs.extend(utc);
dayjs.tz.setDefault('Europe/Lisbon');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the default be UTC?

@github-actions github-actions bot added the medium small changes label May 11, 2022
@naps62 naps62 merged commit 360b68b into main May 11, 2022
@naps62 naps62 deleted the feature/sale-end-without-vesting-date branch May 11, 2022 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium small changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

replace $ with aUSD everyone on frontend
3 participants