Lets say I want people to be able to buy shares in some sort of decentralized entity. Then when the entity has Bitcoin revenue, I want the entity to distribute the revenue to "shareholders" in proportion to their ownership stake. Whats the best way to do this?
There`s no best way.You will have to pay a programmer to write such script.
The other way is you, or somebody you hire, to do it manually.
What if your entity doesn`t have any profits (revenues-costs).Will you pay dividents to shareholders?
Can you explain us more about your btc business,OP?