Member-only story

About dividend token

Nhan Cao
2 min readAug 22, 2021

I have some exp with this kind of topic “Dividend Token”. Just share some thoughts

What is “Dividend Token”?

You should search for more detail. =]] But you can go with some token like BabyCake, SafeMoon, ThunderCake, … cake family. :3

The token has some tax or fee on each transaction (transfer, buy, sell) for:

  • 1. Reflection reward on other coins to all holders
  • 2. Buyback to increase token buy volume
  • 3. Burn as disinflation policy
  • 4. Add LP to make the token is more stable

I just focus on “Reflection reward”, how to make it fair and scalable.

Reflection reward

  • If you think you make a loop to update the reward to all holders -> reject that idea. :D the max loop in the contract is about 2500 only. The blockchain has not limited your contract storage but it has limitations on block gas per each transaction. You need to find a solution with O(1) complexity.
function testLongLoopRead() public pure returns (uint length) {
uint sum = 0;
for(uint i = 0; i < 2500; i++) {
sum += 1;
}

return sum;
}

--

--

No responses yet