Comptroller Optimizations to enable Vesting

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

In order to make way for the vesting changes (which can be found in PR #71), we have pushed PR #83 that adds a few Comptroller optimizations. The biggest changes are:

  1. Removal of automatic claiming of COMP
  2. Removal of automatic changes of COMP speed, replaced by a new _setCompSpeed function that allows governance to directly set the comp speed for a given market

Both of these are followed by other related changes and cleanups that are listed in detail in the pull request (for example: functions to add and drop a Compound market are elided and are instead controlled by setting the COMP speed).

Note that this patch further reduces comptroller size and will save gas for operations that users perform and does not include any code that has to do with vesting.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEEJAuhmVduSEVN8uPKIPJySxksQ8FAl/aqmAACgkQKIPJySxk
sQ9PgQ/6A6ghkpJ/1DSh+w+WiDdOncnIu3TDbgPfKvRWJl4UTC9CMYzPvOPFftZG
fJSZoj3Dq2qc2ZGHDAmSFbDlnkRgWW5qnzxOMHX7uZcxn91DqfeiJlqwYj3wsni6
Xxg9lyVjUo1TjGVFJdhwu6LZH9d6b+/uhNT84OuK0ksZq6j3gCqD8VNVUh4m/oad
3dd7p3CYezDVzlC8Unji5zKi0rs+W2IuMb4NBXbTruUuAkop6BWJ34S8WOSVOl1O
uyZRllt3neelMDF4odkfx8SScFMiQTg++MsEImIqE7c9009lNtox6YGFX+h7AHWU
EQNAlUu+wIE36deX8B5FEEzup8dNU9xwDKnsVRrb1LUv5CNppEolPNuwlIrfQkoq
3Ru+Fwtxu/7zlaC9lv0xXqVkQKXnJLm/MKVUTeuz3byT7Qc+DXTw6ob2gBT9JfiD
eS7fuzNpsE16pJE9Ye11sXytGVXlTU/J1IrNrbkpWJkBpB7f3wW5y1a1ap9YiMAJ
1v7CRz7zbfYQiBvJAxr10+vGvizl+7D+iPOB8jUW6CNjwbHFR25koHdpFetykjBt
yKSY0kdLdcdaeHrij0h8NARUB+qJU1fq/Tkv4XtreMF+INudvtlHQU2MN6nU4Q4t
US3kixLyH3iN/k8mc+5m7sNTFUezY0cmsLgZyoS4DaYybHHKuVc=
=RUYT
-----END PGP SIGNATURE-----

6 Likes

The proposal for this change is now out for vote: https://compound.finance/governance/proposals/33

1 Like