View Source: contracts/LiquityBaseParams.sol
↗ Extends: ILiquityBaseParams, Ownable, Initializable, BaseMath
LiquityBaseParams
Constants & Variables
uint256 public MCR;
uint256 public CCR;
uint256 public PERCENT_DIVISOR;
uint256 public BORROWING_FEE_FLOOR;
uint256 public REDEMPTION_FEE_FLOOR;
uint256 public MAX_BORROWING_FEE;
- initialize()
- setMCR(uint256 MCR_)
- setCCR(uint256 CCR_)
- setPercentDivisor(uint256 PERCENT_DIVISOR_)
- setBorrowingFeeFloor(uint256 BORROWING_FEE_FLOOR_)
- setRedemptionFeeFloor(uint256 REDEMPTION_FEE_FLOOR_)
- setMaxBorrowingFee(uint256 MAX_BORROWING_FEE_)
function initialize() public nonpayable initializer onlyOwner
Source Code
function initialize() public initializer onlyOwner {
MCR = 1100000000000000000; // 110%
CCR = 1500000000000000000; // 150%
PERCENT_DIVISOR = 200; // dividing by 200 yields 0.5%
BORROWING_FEE_FLOOR = (DECIMAL_PRECISION / 1000) * 5; // 0.5%
REDEMPTION_FEE_FLOOR = (DECIMAL_PRECISION / 1000) * 5; // 0.5%
MAX_BORROWING_FEE = (DECIMAL_PRECISION / 100) * 5; // 5%
}
function setMCR(uint256 MCR_) public nonpayable onlyOwner
Arguments
Name | Type | Description |
---|---|---|
MCR_ | uint256 |
Source Code
function setMCR(uint256 MCR_) public onlyOwner {
MCR = MCR_;
}
function setCCR(uint256 CCR_) public nonpayable onlyOwner
Arguments
Name | Type | Description |
---|---|---|
CCR_ | uint256 |
Source Code
function setCCR(uint256 CCR_) public onlyOwner {
CCR = CCR_;
}
function setPercentDivisor(uint256 PERCENT_DIVISOR_) public nonpayable onlyOwner
Arguments
Name | Type | Description |
---|---|---|
PERCENT_DIVISOR_ | uint256 |
Source Code
function setPercentDivisor(uint256 PERCENT_DIVISOR_) public onlyOwner {
PERCENT_DIVISOR = PERCENT_DIVISOR_;
}
function setBorrowingFeeFloor(uint256 BORROWING_FEE_FLOOR_) public nonpayable onlyOwner
Arguments
Name | Type | Description |
---|---|---|
BORROWING_FEE_FLOOR_ | uint256 |
Source Code
function setBorrowingFeeFloor(uint256 BORROWING_FEE_FLOOR_) public onlyOwner {
BORROWING_FEE_FLOOR = BORROWING_FEE_FLOOR_;
}
function setRedemptionFeeFloor(uint256 REDEMPTION_FEE_FLOOR_) public nonpayable onlyOwner
Arguments
Name | Type | Description |
---|---|---|
REDEMPTION_FEE_FLOOR_ | uint256 |
Source Code
function setRedemptionFeeFloor(uint256 REDEMPTION_FEE_FLOOR_) public onlyOwner {
REDEMPTION_FEE_FLOOR = REDEMPTION_FEE_FLOOR_;
}
function setMaxBorrowingFee(uint256 MAX_BORROWING_FEE_) public nonpayable onlyOwner
Arguments
Name | Type | Description |
---|---|---|
MAX_BORROWING_FEE_ | uint256 |
Source Code
function setMaxBorrowingFee(uint256 MAX_BORROWING_FEE_) public onlyOwner {
MAX_BORROWING_FEE = MAX_BORROWING_FEE_;
}
- ActivePool
- ActivePoolStorage
- BaseMath
- BorrowerOperations
- BorrowerOperationsScript
- BorrowerOperationsStorage
- BorrowerWrappersScript
- CheckContract
- CollSurplusPool
- CollSurplusPoolStorage
- console
- Context
- DefaultPool
- DefaultPoolStorage
- DocsCover
- DSAuth
- DSAuthEvents
- DSAuthority
- DSNote
- DSProxy
- DSProxyCache
- DSProxyFactory
- ERC20
- ETHTransferScript
- FeeDistributor
- FeeDistributorStorage
- GasPool
- HintHelpers
- HintHelpersStorage
- IActivePool
- IBalanceRedirectPresale
- IBorrowerOperations
- ICollSurplusPool
- IDefaultPool
- IERC20
- IERC2612
- IExternalPriceFeed
- IFeeDistributor
- IFeeSharingProxy
- ILiquityBase
- ILiquityBaseParams
- IMasset
- IMoCBaseOracle
- Initializable
- IPool
- IPriceFeed
- IRSKOracle
- ISortedTroves
- IStabilityPool
- ITroveManager
- IWrbtc
- IZUSDToken
- LiquityBase
- LiquityBaseParams
- LiquityMath
- LiquitySafeMath128
- MoCMedianizer
- MultiTroveGetter
- MultiTroveGetterStorage
- NueToken
- Ownable
- PriceFeed
- PriceFeedStorage
- ProxiableContract
- ProxiableContract2
- Proxy
- RskOracle
- SafeMath
- SortedTroves
- SortedTrovesStorage
- StabilityPool
- StabilityPoolScript
- StabilityPoolStorage
- Storage
- Storage2
- TokenScript
- TroveManager
- TroveManagerBase
- TroveManagerBase1MinuteBootstrap
- TroveManagerRedeemOps
- TroveManagerScript
- TroveManagerStorage
- UpgradableProxy
- ZUSDToken
- ZUSDTokenStorage