EOSIO / eosio.contracts

Smart contracts that provide some of the basic functions of the EOSIO blockchain
https://eosio.github.io/eosio.contracts/latest
MIT License
325 stars 574 forks source link

Notification to proxies when their voters change vote #508

Closed conr2d closed 4 years ago

conr2d commented 4 years ago

Can you elaborate the rationale of #173?

Nowadays, it's inevitable that many proxy accounts distribute their earnings to their voters. However, changing vote cannot be caught by notification, so observing and updating state cannot be achieved on-chain, but it needs off-chain solution.

It would be better, if changing vote is notified to a proxy (when the target itself of vote is not changed, but vote weight changes, eosio::delegatebw or eosio::undelegatebw) or both old and new proxies (when they are different, eosio::voteproducer).

tbfleming commented 4 years ago

Notification allows the proxy to assert, aborting the transaction and preventing the voter from making the change.

conr2d commented 4 years ago

@tbfleming Ah, I missed that. Thank you for replying.