We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To know the remaining balance after distribution, it could be relevant to keep a track of the distributed sum for a specific dividend.
Example mapping(uint256 => uint256) public segregatedDividendClaimed;
And rename segregatedDividend in segregatedDividendDeposit
segregatedDividend
segregatedDividendDeposit
When a dividend is deposit: segregatedDividendClaimed += value
segregatedDividendClaimed += value
When a dividend is claimed segregatedDividendClaimed -= value
segregatedDividendClaimed -= value
After the end of the distribution, it is easier for the operator to withdraw the remaining dividends after distribution
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To know the remaining balance after distribution, it could be relevant to keep a track of the distributed sum for a specific dividend.
Example
mapping(uint256 => uint256) public segregatedDividendClaimed;
And rename
segregatedDividend
insegregatedDividendDeposit
When a dividend is deposit:
segregatedDividendClaimed += value
When a dividend is claimed
segregatedDividendClaimed -= value
After the end of the distribution, it is easier for the operator to withdraw the remaining dividends after distribution
The text was updated successfully, but these errors were encountered: