How would you distribute a fee to all token holders?

how would you distribute to all holders?

1 Like

Hi @Saek_1,

Welcome to the community :wave:

If you are distributing Ether, you could look at PaymentSplitter
https://docs.openzeppelin.com/contracts/4.x/api/finance#PaymentSplitter

I am trying to use the payment splitter contract in my project, but i dont know how it really works. Can you please help me figuring out how can I inherit/use payment splitter.

Do I also need to inherit it in my contract like
Contract myContract is PaymentSplitter{ .. }

A payment splitter is not a fee distribution.

This is not funny lol

A payment splitter is not a fee distribution? Then how would it be used to pay let's say 4 payee's who were involved with the contract if:

Address (A)10% was for marketing
Address (B) 10% was for payee number one
Address (C) 10% was for payee number two
Address (D) 10% was for payee number three
Address (B) 10% was for payee number Four

And there was a way to do a 50% burn
And 5% was burned for every exchange
And 5% went back into Address (A) for eveytime a user exchanged back out pool.

I am still trying to figured this deflationary Token out. Please help. I have the same