Executed

Update and Standardize cToken Implementation


ID 49

ID 49

Compound

Compound

Proposed on: Jun 21st, 2021

Proposed on: Jun 21st, 2021

Votes

Actions

Type

Address

Details

Custom

0x70e3...E8e4

_setImplementation(..)

Custom

Account

0x70e3...E8e4

Method

_setImplementation(..)

Custom

0x5d3a...3643

_setImplementation(..)

Custom

Account

0x5d3a...3643

Method

_setImplementation(..)

Custom

0xFAce...B0c7

_setImplementation(..)

Custom

Account

0xFAce...B0c7

Method

_setImplementation(..)

Custom

0x1239...Ad86

_setImplementation(..)

Custom

Account

0x1239...Ad86

Method

_setImplementation(..)

Custom

0x35A1...D550

_setImplementation(..)

Custom

Account

0x35A1...D550

Method

_setImplementation(..)

Custom

0xf650...dCC9

_setImplementation(..)

Custom

Account

0xf650...dCC9

Method

_setImplementation(..)

Custom

0xccF4...DD6a

_setImplementation(..)

Custom

Account

0xccF4...DD6a

Method

_setImplementation(..)

Custom

0x3d98...Cd3B

_grantComp(..)

Custom

Account

0x3d98...Cd3B

Method

_grantComp(..)

Proposal

This proposal is a patch, developed by Compound Labs, which updates the base cToken implementation contract, and adopts it across all upgradable markets.

Changelog

The seize function has been modified to transfer 2.8% of a liquidation to cToken reserves, reducing the risk of cascading liquidations that could render the protocol insolvent. With each liquidation, the protocol’s ability to recover (or utilize reserves) increases.

Given the proliferation of COMP-like governance tokens, the delegate function has been merged into the base cToken implementation.

Adoption

The seven upgradable cTokens, deployed starting 18 months ago, currently rely on five different cToken implementation contracts, many of which lack the most modern features.

This proposal unifies all upgradable cTokens with a single implementation, which reduces the surface area of technical debt, and slightly reduces gas costs.

Development

This patch was developed publicly, coupled with completed scenario analysis. In addition to the Compound Labs bug bounty program, a secondary bug bounty was offered through Immunefi.

During the review period for Proposal 048, community member pyggie identified potential improvements to the cToken event logs and public interface; these have been included in this proposal, alongside a bounty of 30 COMP for their efforts.

Discussion

Votes
Status