Lossless Protocol
  • Lossless Whitepaper
  • FAQ
  • Technical reference
    • LERC20
      • Audits
    • Vault and Treasury Protection
      • LosslessControllerV2
      • LosslessGuardian
      • StrategyBase
      • TreasuryProtectionStrategy
      • LiquidityProtectionSingleLimitStrategy
      • Deployments
      • Audits
    • Hack Mitigation Protocol
      • Overview
      • How it works
      • Configuration
        • Current Configuration
      • Audits
      • Deployments
      • Smart Contracts
        • Lossless Controller V3
        • Lossless Governance
        • Lossless Reporting
        • Lossless Staking
    • Lossless Controller
      • Deployments
    • Wrapped Tokens
      • Lossless Wrapped Protection
        • Lossless Wrapped ERC20
        • Lossless Wrapped ERC20 Ownable
      • Extensible Wrapped Tokens
        • Lossless Wrapped ERC20 Extensible
        • Lossless Extensions Core
        • Extensions
          • Lossless Core Extension
      • UMA Protocol Integration
        • DAO Voting
      • Kleros Integration
      • Deployments
  • Guides
    • Wrapped Tokens
    • Committee Voting
    • Lossless Vault Protection User Guide
    • How To Use Vault Protection Smart Contracts
    • Lossless Integration Into The Token
      • Custom Token
      • Standard Token
Powered by GitBook
On this page
  • Variables
  • Events
  • Modifiers
  • Functions

Was this helpful?

  1. Technical reference
  2. Vault and Treasury Protection

StrategyBase

PreviousLosslessGuardianNextTreasuryProtectionStrategy

Last updated 3 years ago

Was this helpful?

This is an abstract contract which has common protection strategy variables and functions.

Contract can be found here:

Variables

  • guardian

  • controller

guardian

controller

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.

Lossless contract.

Lossless contract.

guardian
controller
Logolossless-v2/StrategyBase.sol at master · Lossless-Cash/lossless-v2GitHub