Smart contract solutions for Nayms Smart Contract Tech Interview Coding Problem
'Token.sol' contains a rudimentary solution for paying token dividends to token holders and passes all unit tests laid out in 'test/token.test.js'.
A more robust solution can be found in 'Token2.sol', where dividend balances are updated whenever a transaction event (transfer, transferFrom, mint, burn) takes place. This avoids the potential complications and high gas fees that may be incurred by looping through a large number of token holder address' to pay dividends in 'token.sol'.
(SafeMath is yet to be implimented on contract operations)
Distributed under the MIT License. See LICENSE
for more information.
LinkedIn - https://www.linkedin.com/in/RAMWatson/
Twitter - @0xTDF
Project Link - https://github.com/0xBlueshiftLabs/Mintable-ERC20-Token-With-Proportional-Dividends
LinkedIn - https://www.linkedin.com/in/RAMWatson/