You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
One of the most requested features by ZRX Portal users is a tool that helps them simulate rewards based on a prospective stake.
The design team at 0xLabs prepared mocks of a sliding widget to be added to the Portal.
Refer to prototype mode in the Figma file.
The widget slides laterally from the right. It's pre-populated with staking pool data, in condensed view. The additional data is available when clicking on 'more settings'.
At the bottom, the reward and the yearly return is estimated and returned to the user.
It's possible to manually enter values. When pool-related metrics are manually entered, the dropdown menu switched to 'Manual'.
Data (WIP)
Here's a rough mapping of the 0xAPI endpoints to be used to calculate the different fields
Balance: via web3 call similarly to how it's done in the account page
This widget is contextually available in multiple locations in the Portal:
in the staking pool page, via a dedicated CTA button.
in the account page, via a 'Calculate Rewards' button near the estimated reward for the staked pool. This section will have to be updated as well (as per designs)
The text was updated successfully, but these errors were encountered:
One of the most requested features by ZRX Portal users is a tool that helps them simulate rewards based on a prospective stake.
The design team at 0xLabs prepared mocks of a sliding widget to be added to the Portal.
Designs
https://www.figma.com/file/hYG4xEMFrugLn6jnUmsOvH/Staking-Dashboard-(staking-calculator)?node-id=3728%3A0
Behavior
Refer to prototype mode in the Figma file.
The widget slides laterally from the right. It's pre-populated with staking pool data, in condensed view. The additional data is available when clicking on 'more settings'.
At the bottom, the reward and the yearly return is estimated and returned to the user.
It's possible to manually enter values. When pool-related metrics are manually entered, the dropdown menu switched to 'Manual'.
Data (WIP)
Here's a rough mapping of the 0xAPI endpoints to be used to calculate the different fields
totalProtocolFeesGeneratedInEth
incurrentEpochStats
operatorShare
incurrentEpochStats
zrxStaked
incurrentEpochStats
zrxStaked
incurrentEpoch
(or nextEpoch if in the staking pool page)Access
This widget is contextually available in multiple locations in the Portal:
The text was updated successfully, but these errors were encountered: