-
Notifications
You must be signed in to change notification settings - Fork 3
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
dApp: Acre points UI #704
dApp: Acre points UI #704
Conversation
Added `Countdown` component, adjusted `Button` styles and mocked `useAcrePoints` hook
Changed width, added links, moved `CardButton` component to shared.
✅ Deploy Preview for acre-dapp-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for acre-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Removed (temporarily) `AcreRankCard` component
Add close button
{/* TODO: Update `ButtonLink` component and 'link' Button theme variant */} | ||
<Button | ||
as={Link} | ||
href={`${EXTERNAL_HREF.DOCS}/acre-points-program`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to create a separate const value for this link.
src/constants/externalHref.ts
export const EXTERNAL_HREF = {
ACRE_POINTS_DOCS: "https://docs.acre.fi/acre-points-program",
...
}
Issue 001 -
|
column | value before claim | value after claim |
---|---|---|
user_id | 0x6F1a421573082BE1BEAe22551259D4D793EfD2cE | 0x6F1a421573082BE1BEAe22551259D4D793EfD2cE |
unclaimed | 173078298 | 0 |
calculated_at | 2024-09-18 00:00:07 | 1726689620 |
claimed | 0 | 173078298 |
claimed_at | null | 1726689620 |
note calculated_at
was initially stored as YYYY-MM-DD hh:mm:ss
, but after claiming, stored as Unix timestamp
Can see other occurrences by querying SELECT * FROM points_balances
testing completed on preview-704 w/ no issues to report. |
61e3bdb
to
2254b7e
Compare
This reverts commit 414a753.
The daily points amount is capped from 100 000 000 pts to 10 000 pts (assuming the deposited amount is 1 BTC)
Closes: #735 Closes: #736 Closes: #738 Closes: #749 Intermediate state wireframes [here](https://excalidraw.com/#json=xN6XxWkT_FR4ep18xlE3l,kn9MqECigeMFp1oDMXqpVA)
1e828bc
to
3fe2b12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, it looks good and seems to work well. I think it would be a good idea to make sure on Monday that the value of the points is being displayed and calculated correctly.
Ref: #722
Overview:
AcrePointsCard
componentAcrePointsClaimModal
componentScreenshots:
Screen.Recording.2024-09-12.at.16.38.39.mov