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

[MEX-533] Fix farm user rewards for week #1528

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

mad2sm0key
Copy link
Contributor

Reasoning

  • curentBoostedAPR computation for farm positions is not increasing when additionalUserEnergy is provided

Proposed Changes

  • add additionalUserEnergyAmount to user energy when computing user rewards for week

How to test

query {
  getFarmBoostedRewardsBatch(
    farmsAddresses: [
      "erd1qqqqqqqqqqqqqpgqapxdp9gjxtg60mjwhle3n6h88zch9e7kkp2s8aqhkg",
    ]
  ) {
    farmAddress
    curentBoostedAPR(
      additionalUserEnergy: "1000000000000000000000000000000"
    )
  }
}

@mad2sm0key mad2sm0key merged commit 89cdd5a into development Nov 27, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants