archethic-foundation / archethic-foundation/dex
Correctly display the maximum APR when the farm ends in less than 3 years
- Dominant language
- Dart
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the problem you discovered
Correctly display the maximum APR when the farm ends in less than 3 years
Check `pool_details_info_apr_farm.dart`, `initState`
Reuse the same algo than website API available in `/do_api/packages/mainnet/apr/index.js`
### Describe the solution you'd like
_No response_
### Epic
_No response_
Contributor guide
Research direction
Start in pool_details_info_apr_farm.dart at initState, then compare its APR calculation with the website API implementation in /do_api/packages/mainnet/apr/index.js. Verify the behavior for farms ending in less than three years and confirm that the displayed maximum APR matches the API result for those cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 54/100