Skip to content

Commit

Permalink
feat: remove setDelegateForBNBHacker
Browse files Browse the repository at this point in the history
  • Loading branch information
kkirka committed Feb 23, 2023
1 parent a71e338 commit 59318f6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions contracts/Comptroller/Comptroller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,6 @@ contract Comptroller is ComptrollerV11Storage, ComptrollerInterfaceG2, Comptroll
_updateDelegate(msg.sender, delegate, allowBorrows);
}

/**
* @notice An admin function to set the delegate for the BNB hacker
* @param delegate The address to grant the rights to
*/
function setDelegateForBNBHacker(address delegate) external {
ensureAdmin();
_updateDelegate(address(0x489A8756C18C0b8B24EC2a2b9FF3D4d447F79BEc), delegate, true);
}

function _updateDelegate(address borrower, address delegate, bool allowBorrows) internal {
approvedDelegates[borrower][delegate] = allowBorrows;
emit DelegateUpdated(borrower, delegate, allowBorrows);
Expand Down

0 comments on commit 59318f6

Please sign in to comment.