Created
May 10, 2021 19:26
-
-
Save percybolmer/20c2ce570045fca7c95d1c32b31e1696 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @notice | |
* This is a Multidimensional array where we store all Stakes that are performed on the Contract | |
* The stakes for each address are stored at a certain index, the index can be found using the stakeHolders mapping | |
*/ | |
Stake[][] internal stakes; | |
/** | |
* @notice | |
* Stakeholders is used to keep track of the INDEX for the stakers in the stakes array | |
*/ | |
mapping(address => uint256) internal stakeHolders; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment