makerdao / dss-gov

GNU Affero General Public License v3.0
4 stars 6 forks source link

Added revokable delegate token #25

Closed hexonaut closed 3 years ago

hexonaut commented 3 years ago

This will allow delegates to insert this token into other contracts to prove that they having a certain amount of MKR being under their voting control. There are many future use cases for this.

There is an optional callback to any contract when the token is forcibly revoked to keep external accounting up to date.

This could probably be used for active MKR as well.

Note: we should probably put a reentrancy lock on DssGov delegation as well just to be safe.

hexonaut commented 3 years ago

Closing this as I found a better method for this particular use-case: https://github.com/BellwoodStudios/dss-gov-rewards/blob/master/src/DssGovDelegateRewards.sol