Skip to content

Keep a track of the dividend distributed #5

Description

@rya-sge

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions