🖥️
Term Finance v1 Developer Documentation
  • Overview
  • Term Finance Protocol
    • Term Repo
      • Term Auction Group
        • Initialization Parameters
        • Administrative Functions
      • Term Servicer Group
        • Initialization Parameters
        • Administrative Functions
      • Term Repo Token
        • Initialization Parameters
        • Administrative Functions
    • Protocol Contracts
      • Price Feeds
    • Conventions
    • Terminology
  • Access Controls
    • Upgradeability
  • Deployed Contracts
    • Smart Contract Audits
    • Formal Verification
    • [Ethereum]
    • [Avalanche]
  • Protocol Security
    • Smart Contract Monitoring
    • Front-End Security
  • Solidity API - latest
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.5.31
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.5.32
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.6.0
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.9.0
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • DeFiSafety - detailed report
  • Github Repo
  • Periphery Contracts
    • Blue Sheets
      • Core Architecture
      • Core Functionality
      • Administration
      • Deployed Contracts
        • Smart Contract Audits
        • [Ethereum]
      • Solidity API - latest
        • RepoTokenLinkedList.sol#RepoTokenLinkedList
        • RepoTokenLinkedList.sol#RepoTokenLinkedListStorageV1
        • RepoTokenLinkedListEventEmitter.sol
        • TermDiscountRateAdapter.sol
    • Github Repo
    • Term Strategy Vaults
      • Core Architecture
        • Yearn V3 Framework
        • Term Integration
      • Core Functionality
        • YearnV3 Base Operations
        • Term Protocol Operations
          • Core Integration
          • Portfolio Valuation
          • Protocol Interactions
          • Portfolio Constraints
      • Administration
        • Yearn Roles & Governance
        • Term Vault Governance
      • Configuration Guide
      • Deployed Contracts
        • Smart Contract Audits
        • [Ethereum]
      • Solidity API - latest
        • RepoTokenList.sol#RepoTokenList
        • RepoTokenList.sol#RepoTokenListData
        • RepoTokenList.sol#RepoTokenListNode
        • RepoTokenUtils.sol#RepoTokenUtils
        • Strategy.sol#Strategy
        • TermAuctionList.sol#TermAuctionList
        • TermAuctionList.sol#PendingOffer
        • TermAuctionList.sol#TermAuctionListData
        • TermAuctionList.sol#TermAuctionListNode
        • TermDiscountRateAdapter.sol#TermDiscountRateAdapter
        • TermVaultEventEmitter.sol#TermVaultEventEmitter
        • TermFinanceVaultWrappedVotesToken.sol#TermFinanceVaultWrappedVotesToken
    • Github Repo
Powered by GitBook
On this page
  • State Variables
  • ADMIN_ROLE
  • DEVOPS_ROLE
  • VAULT_CONTRACT
  • Functions
  • constructor
  • initialize
  • pairVaultContract
  • emitTermControllerUpdated
  • emitTimeToMaturityThresholdUpdated
  • emitRequiredReserveRatioUpdated
  • emitDiscountRateMarkupUpdated
  • emitMinCollateralRatioUpdated
  • emitRepoTokenConcentrationLimitUpdated
  • emitDepositPaused
  • emitDepositUnpaused
  • emitDiscountRateAdapterUpdated
  • emitRepoTokenBlacklistUpdated
  • emitNewGovernor
  • _authorizeUpgrade
  1. Periphery Contracts
  2. Term Strategy Vaults
  3. Solidity API - latest

TermVaultEventEmitter.sol#TermVaultEventEmitter

Last updated 4 months ago

Inherits: Initializable, UUPSUpgradeable, AccessControlUpgradeable,

State Variables

ADMIN_ROLE

bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

DEVOPS_ROLE

bytes32 public constant DEVOPS_ROLE = keccak256("DEVOPS_ROLE");

VAULT_CONTRACT

bytes32 public constant VAULT_CONTRACT = keccak256("VAULT_CONTRACT");

Functions

constructor

constructor();

initialize

Initializes the contract

See: https://docs.openzeppelin.com/contracts/4.x/upgradeable

function initialize(address adminWallet_, address devopsWallet_) external initializer;

pairVaultContract

function pairVaultContract(address vaultContract) external onlyRole(ADMIN_ROLE);

emitTermControllerUpdated

function emitTermControllerUpdated(address oldController, address newController) external onlyRole(VAULT_CONTRACT);

emitTimeToMaturityThresholdUpdated

function emitTimeToMaturityThresholdUpdated(uint256 oldThreshold, uint256 newThreshold)
    external
    onlyRole(VAULT_CONTRACT);

emitRequiredReserveRatioUpdated

function emitRequiredReserveRatioUpdated(uint256 oldThreshold, uint256 newThreshold)
    external
    onlyRole(VAULT_CONTRACT);

emitDiscountRateMarkupUpdated

function emitDiscountRateMarkupUpdated(uint256 oldMarkup, uint256 newMarkup) external onlyRole(VAULT_CONTRACT);

emitMinCollateralRatioUpdated

function emitMinCollateralRatioUpdated(address collateral, uint256 minCollateralRatio)
    external
    onlyRole(VAULT_CONTRACT);

emitRepoTokenConcentrationLimitUpdated

function emitRepoTokenConcentrationLimitUpdated(uint256 oldLimit, uint256 newLimit) external onlyRole(VAULT_CONTRACT);

emitDepositPaused

function emitDepositPaused() external onlyRole(VAULT_CONTRACT);

emitDepositUnpaused

function emitDepositUnpaused() external onlyRole(VAULT_CONTRACT);

emitDiscountRateAdapterUpdated

function emitDiscountRateAdapterUpdated(address oldAdapter, address newAdapter) external onlyRole(VAULT_CONTRACT);

emitRepoTokenBlacklistUpdated

function emitRepoTokenBlacklistUpdated(address repoToken, bool blacklisted) external onlyRole(VAULT_CONTRACT);

emitNewGovernor

function emitNewGovernor(address newGovernor) external onlyRole(VAULT_CONTRACT);

_authorizeUpgrade

required override by the OpenZeppelin UUPS module

function _authorizeUpgrade(address) internal view override onlyRole(DEVOPS_ROLE);
Git Source
ITermVaultEvents