Skip to content

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

Description

@rogargon

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions