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

feat: use direct look up read for staking pool or reward accumulator #26

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

charlescrain
Copy link
Collaborator

Motivation

This update reduces gas for payout function by about 50K gas

Changes

  • Exposed to 2 IRareStakingRegistry functions for getting the RarityPool or RewardAccumulator without building the symbol and name
  • Changed the bazaar and marketutils to use the reward accumulator look up

@charlescrain charlescrain merged commit 4b6023b into main Aug 10, 2023
@charlescrain charlescrain deleted the feature/gas-optimized-reads branch August 10, 2023 19:25
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.

1 participant