rhizomik/copyrightly

CLYToken doesn't keep stakes separate for different stakables

Opened this issue · 0 comments

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;