Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save percybolmer/20c2ce570045fca7c95d1c32b31e1696 to your computer and use it in GitHub Desktop.
Save percybolmer/20c2ce570045fca7c95d1c32b31e1696 to your computer and use it in GitHub Desktop.
/**
* @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