Hey there,
I was thinking about the withdraw_permissions and it may be possible to use them to implement a dividend feature easily.
All we need is a new PAY_DIVIDEND operation with the amount used to pay dividends. These go into a separated pseudo
account and and can be withdrawn by anybody. However, the amount that people can withdraw from that account depends
on the amount of corresponding shares you have held AT THE TIME of this operation.
1) PAY_DIVIDENDS of X SYMBOL
2) CONFIRMATION at block B
3) USER BALANCE at time of B: BALANCE(B)
4) ALLOW_TO_WITHDRAW: BALANCE(B) / SUPPLY_SYMBOLS(B) * X
This would require that the database either makes a "snapshot" of the balances at time B, or has a way to obtain the balance of
an account (and the supply) at a particular block.
@abit: Do you think something like this could work?