Summary
In order to reduce the size of the Comptroller for both vesting updates and future changes, this proposal contains a number of size and gas optimizations. Currently, there is not enough space in the Comptroller for vesting changes, which is the main impetus for this proposal. We split this out from the remainder of the vesting changes, as these changes provide protocol users with some more immediate gas benefits. An itemized summary of the changes is as follows:
- This proposal removes automatic COMP claims for users and also removes automatic COMP speed refresh, replacing it with
_setCompSpeed , controlled by governance
- Implements several related small changes related to the above to further optimize the Comptroller contract and reduce gas costs for users.
Please note that this patch is not in itself making any immediate COMP speed adjustment, it is simply removing some redundant speed change functions and giving governance more direct control.
References