Skip to content

Mintable ERC20 token with proportional dividends feature and gas optimised implementation.

Notifications You must be signed in to change notification settings

0xBlueshiftLabs/Mintable-ERC20-Token-With-Proportional-Dividends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT License LinkedIn

Mintable ERC20 token with proportional dividends

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)

License

Distributed under the MIT License. See LICENSE for more information.

Contact

LinkedIn - https://www.linkedin.com/in/RAMWatson/

Built With

Contact

Twitter - @0xTDF

Project Link - https://github.com/0xBlueshiftLabs/Mintable-ERC20-Token-With-Proportional-Dividends

LinkedIn - https://www.linkedin.com/in/RAMWatson/

About

Mintable ERC20 token with proportional dividends feature and gas optimised implementation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published