Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion contracts/Comptroller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,9 @@ contract Comptroller is ComptrollerV7Storage, ComptrollerInterface, ComptrollerE
* @return uint 0=success, otherwise a failure. (See enum Error for details)
*/
function _supportMarket(CToken cToken) external returns (uint) {
if (msg.sender != admin) {
// 1. Ensure the sender is the admin of the Comptroller
// 2. Ensure the admin of the cToken is the admin of the Comptroller
if (/* 1. */ msg.sender != admin || /* 2. */ cToken.admin() != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.SUPPORT_MARKET_OWNER_CHECK);
}

Expand Down