Skip to content

Latest commit

 

History

History

compound-comptroller-bot

Compound v2 Comptroller Contract Pause Functionality Bot

Description

This bot detects NewPauseGuardian, ActionPaused(string, bool)(global action), and ActionPaused(address,string,bool)(an action on a market) event emissions from Compound v2's Comptroller contract.

Supported Chains

  • Ethereum

Alerts

  • NETH-COMP-PAUSE-EVENT-1

    • Fired when an action is paused on a market
    • Severity is always set to "Info"
    • Type is always set to "Info"
    • Addresses includes the emitting address of the event
    • Metadata:
      • CToken: Market address
      • action: Action of the market
      • pauseState: Pause state of the action
  • NETH-COMP-PAUSE-EVENT-2

    • Fired when an action is globally paused
    • Severity is always set to "Info"
    • Type is always set to "Info"
    • Addresses includes the emitting address of the event
    • Metadata:
      • action: Global action
      • pauseState: Pause state of the action
  • NETH-COMP-PAUSE-EVENT-3

    • Fired when the pause guardian is changed
    • Severity is always set to "Info"
    • Type is always set to "Info"
    • Addresses includes the emitting address of the event
    • Metadata:
      • oldPauseGuardian: Old pause guardian address
      • newPauseGuardian: New pause guardian address

Test Data

Mainnet

The bot behaviour can be verified with the following transactions:

Goerli Testnet (PoC)

For this test, set a Goerli Testnet RPC url as jsonRpcUrl in your forta.config.json file and run: