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

TRUST M-8: Reward distribution in RewardableERC20 #993

Closed
wants to merge 522 commits into from

Conversation

julianmrodri
Copy link
Contributor

  • Fixes incorrect reward distribution in RewardableERC20 by adding a decimals buffer = 9.
  • Adds regression testing with the example from Trust with the exact values to confirm its distributing correctly
  • Adapts tests, now shares and balance are in different units. So we need to multiply or divide by the "Shares Factor" (bn(10).pow(DECIMALS_BUFFER)) to get the previous comparisons to work. This is the only change accross the file.

tbrent and others added 30 commits May 12, 2023 11:20
* move plugin files to vendor folders if needed.

* fix compilation.
* backwards-compatible facades

* goerli phase1 deployments

* add Multicall to FacadeAct and test

* goerli FacadeAct with multicall

* revert if neither 3.0.0 or <=2.1.0 interfaces work

* fix forwardRevenue step

* update goerli FacadeAct
tbrent and others added 29 commits October 2, 2023 19:59
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.

5 participants