Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Use pull over push method in reward function #114

Open
dnkolegov opened this issue Jun 7, 2023 · 0 comments
Open

Use pull over push method in reward function #114

dnkolegov opened this issue Jun 7, 2023 · 0 comments

Comments

@dnkolegov
Copy link

The push method is used to distribute rewards among validators.

Potential problems:

  • run out of gas

  • a malicious user can revert the sendValue call and lock the reward (issue - )

Fix: Replace the push method with pull pattern.

Cross-issues:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant