Governance

The protocol includes several critical management functions essential for integrating future collateral and jAsset tokens. These functions leverage the foundational Ownable concept, which transfers ownership to the governance contract upon deployment.

ContractFunction

TokenManager

setEnableMinting(bool _enable)

addDebtToken(address _debtTokenAddress, bytes32 _oracleId)

addCollToken(address _tokenAddress, uint _supportedCollateralRatio, bytes32 _oracleId, bool _isGovToken)

setCollTokenSupportedCollateralRatio(address _collTokenAddress, uint _supportedCollateralRatio)

setStockExchange(address _debtTokenAddress, address _exchangeForStock, int _exchangeRate)

setNextStockSplitRelative(address _debtTokenAddress, int32 _relativeSplit)

setSymbolAndName(address _debtTokenAddress, string memory _symbol, string memory _name)

ReservePool

setRelativeStableCap(uint _relativeStableCap)

setGovReserveCap(uint _govReserveCap)

TroveManager

setEnableLiquidationAndRedeeming(bool _enable)

SwapOperations

createPair(address _plainSwapPair, address tokenA, address tokenB)

Additionally, the PriceFeed incorporates a fallback price storage mechanism to handle situations where the Pyth network becomes unavailable. These fallback prices can be updated using the PriceFeed.setFallbackPrices() function.

Last updated