Lossless
Search…
StrategyBase
This is an abstract contract which has common protection strategy variables and functions.
Contract can be found here:
lossless-v2/StrategyBase.sol at master · Lossless-Cash/lossless-v2
GitHub

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

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