---
title: "Comment by Daniel Tung on \"The 2018 guide to writing (and testing) real world crowdsale contracts\" | Hashnode"
description: "I would like to add the following token distribution mechanism: to let each user get extra tokens proportional to the total number of tokens sold, i.e. the more"
url: "https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5ac59a655dd21e2b30c8db7e"
---

[Discussion](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

Comment [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[Daniel Tung](https://hashnode.com/@tytung)

[Apr 5, 2018](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5ac59a655dd21e2b30c8db7e)

I would like to add the following token distribution mechanism: to let each user get extra tokens proportional to the total number of tokens sold, i.e. the more tokens are sold in total, the more extra tokens each user will receive. How to do this in the codes? Thanks.
