StrategyBase

This is an abstract contract which has common protection strategy variables and functions.
Contract can be found here:

Variables

  • guardian
  • controller

guardian

Lossless guardian contract.

controller

Lossless controller contract.

Events

  • event GuardianSet(address indexed newGuardian)
  • event Paused(address indexed token, address indexed protectedAddress)
  • event Unpaused(address indexed token, address indexed protectedAddress)

Modifiers

  • onlyProtectionAdmin

onlyProtectionAdmin

Checks if msg.sender is protectionAdmin for the token.

Functions

  • setGuardian

setGuardian

function setGuardian(Guardian newGuardian) external
Sets guardian contract.
Parameters:
Name
Type
Description
newGuardian
Guardian
New guardian contract address.