TermVaultEventEmitter.sol#TermVaultEventEmitter

Git Source

Inherits: Initializable, UUPSUpgradeable, AccessControlUpgradeable, ITermVaultEvents

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);

Last updated