Description
On the frontend Portfolio page, users want to see how much money they are making from their deposited liquidity.
We need a backend endpoint that calculates (or currently mocks) their pending rewards based on their wallet address.
This endpoint will return the total yield earned in USD and the equivalent in the specific pool tokens.
This data is the primary hook that keeps Liquidity Providers coming back to the app daily.
Requirements
Description
On the frontend Portfolio page, users want to see how much money they are making from their deposited liquidity.
We need a backend endpoint that calculates (or currently mocks) their pending rewards based on their wallet address.
This endpoint will return the total yield earned in USD and the equivalent in the specific pool tokens.
This data is the primary hook that keeps Liquidity Providers coming back to the app daily.
Requirements
/api/v1/users/:address/rewards.totalEarnedUSDand a breakdown ofpendingTokensper pool.lastCompoundedtimestamp.successResponseformatter.