-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
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
[Mainnet] Dividend Token Contract #27
base: master
Are you sure you want to change the base?
[Mainnet] Dividend Token Contract #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes be made due to GetWithdrawableDividends
methods multiplication.
https://github.com/stratisproject/CirrusSmartContracts/pull/27/files#r550697142
If you write tests for this and every day real scenario values, you will find overflow exceptions very easily breaking the contract.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment/question otherwise lgtm
Dividend Token Contract
DividendToken designed to share dividends for token holders. Token holders will get same percentage of holded token from deposited dividends.
An example, an address holds 10% percentage of tokens and 100 CRS token distributed by sending to DistributeDividends method. The address will get 10 CRS (10% of 100 CRS). Earned dividends will remain in address even all of tokens transferred.
The address owner can withdraw owned dividends anytime. GetDividends returns dividend balance and GetTotalDividends returns Withdrawn Dividends + Current Dividend Balance
Compiler
Contract Hash
Contract Byte Code