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

CS-V2Gov-018: Possible Stuck Tokens in BribeInitiative #117

Open
danielattilasimon opened this issue Dec 25, 2024 · 0 comments
Open

CS-V2Gov-018: Possible Stuck Tokens in BribeInitiative #117

danielattilasimon opened this issue Dec 25, 2024 · 0 comments

Comments

@danielattilasimon
Copy link
Contributor

The contract BribeInitiative implements the function depositBribe() that allows anyone to deposit BOLD and another ERC20 token as bribes. These tokens are transferred out only when there are eligible user to claim bribes. However, it is possible that an initiative might not receive any YES vote in an epoch although there is a bribe. In such scenarios, the deposited tokens for that epoch would be stuck and cannot be recovered.

Furthermore, _claimBribe() rounds down the bribe amounts, therefore there is some dust that accumulates over time and is not recovered.

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

No branches or pull requests

2 participants
@danielattilasimon and others