Skip to content

CLYToken doesn't keep stakes separate for different stakables #38

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

Open
rogargon opened this issue Aug 29, 2021 · 0 comments
Open

CLYToken doesn't keep stakes separate for different stakables #38

rogargon opened this issue Aug 29, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rogargon
Copy link
Member

The way CLYToken keeps individual stakes is indexed using the stakable hash as the identifier but doesn't include the stakable contract address. Consequently, it might not distinguish among stakes for different stakable contracts sharing the same hash. Not likely but possible.

CLYToken.sol, line 44:
mapping(string => mapping(address => uint256)) public individualStakes;

@rogargon rogargon added the bug Something isn't working label Aug 29, 2021
@rogargon rogargon self-assigned this Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant