Constants and Mimir
Overview
The network launched with a set number of constants, which has not changed. Constants can be overridden via Mimir and nodes have the ability to vote on and change Mimir values.
See Halt Management for halt and pause specific settings.
Mimir setting can be created and changed without a corresponding Constant.
Values
- Constant Values:https://midgard.ninerealms.com/v2/thorchain/constants
- Mimir Values: https://thornode.ninerealms.com/thorchain/mimir
Key
- No Star or Hash - Constant only, no Mimir override.
- Star (*) indicates a Mimir override of a Constant
- Hash (#) indicates Mimir with no Constant.
Outbound Transactions
OutboundTransactionFee
: Amount of rune to withhold on all outbound transactions (1e8 notation)RescheduleCoalesceBlocks
*: The number of blocks to coalesce rescheduled outboundsMaxOutboundAttempts
: The maximum retries to reschedule a transaction
Scheduled Outbound
MaxTxOutOffset
: Maximum number of blocks a scheduled outbound transaction can be delayedMinTxOutVolumeThreshold
: Quantity of outbound value (in 1e8 rune) in a block before it's considered "full" and additional value is pushed into the next blockTxOutDelayMax
: Maximum number of blocks a scheduled transaction can be delayedTxOutDelayRate
*: Rate of which scheduled transactions are delayed
Swapping
HaltTrading
#: Pause all tradingHalt<chain>Trading
#: Pause trading on a specific chainMaxSwapsPerBlock
: Artificial limit on the number of swaps that a single block with processMinSwapsPerBlock
: Process all swaps if the queue is equal to or smaller than this numberEnableDerivedAssets
: Enable/disable derived asset swapping (excludes lending)StreamingSwapMinBPFee
*: Minimum swap fee (in basis points) for a streaming swap tradeStreamingSwapMaxLength
: Maximum number of blocks a streaming swap can trade forStreamingSwapMaxLengthNative
: Maximum number of blocks native streaming swaps can trade overTradeAccountsEnabled
: Enable/disable trade account
Synths
MaxSynthPerAssetDepth
: The amount of synths allowed per pool relative to the pool depthMaxSynthPerPoolDepth
*: The percentage (in basis points) of how many synths are allowed relative to pool depth of the related poolBurnSynths
#: Enable/Disable burning synthsMintSynths
#: Enable/Disable minting synthsVirtualMultSynths
: The amount of increase the pool depths for calculating swap fees of synths
Savers
MaxSynthsForSaversYield
*: The percentage (in basis points) synth per pool where synth yield reaches 0%SaversStreamingSwapsInterval
*: For Savers deposits and withdraws, the streaming swaps interval to use for the Native <> Synth swap
POL Management
POL-<Asset-Asset>
#: Enabled POL for that pool. E.g.POL-BTC-BTC" = 1
enabled POL for the BTC pool.POLBuffer
*: the buffer around the POL synth utilization (basis points added to/subtracted from POLTargetSynthPerPoolDepth basis points)POLMaxNetworkDeposit
*: Maximum amount of rune deposited into the poolsPOLMaxPoolMovement
*: Maximum amount of rune to enter/exit a pool per iteration - 1 equals one hundredth of a basis point of pool rune depthPOLTargetSynthPerPoolDepth
*: The target synth per pool depth for POL (basis points)
Lending
LendingLever
: Controls (in basis points) how much lending is allowed relative to rune supplyLoanRepaymentMaturity
: Number of blocks before loan has reached maturity and can be repaidMinCR
*: Minimum collateralization ratio (basis pts)MaxCR
*: Maximum collateralization ratio (basis pts)Lending-THOR-<Asset>
#: Lending key for an asset, allows that Asset to be used as colloteral. The lending key for theETH.ETH
pool would beLENDING-THOR-ETH
and enabled theTHOR-ETH
virtual pool.LoanStreamingSwapsInterval
*: The block interval between each streaming swap of opening or closing a loan
Derived Assets
DerivedDepthBasisPts
: Allows mimir to increase or decrease the default derived asset pool depth relative to the anchor pools. 10k == 1x, 20k == 2x, 5k == 0.5xDerivedMinDepth
: Sets the minimum derived asset depth in basis points, or pool depth floor.MaxAnchorSlip
*: Percentage (in basis points) of how much price slip in the anchor pools will cause the derived asset pool depths to decrease toDerivedMinDepth
. For example, 8k basis pts will mean that when there has been 80% price slip in the lastMaxAnchorBlocks
, the derived asset pool depth will beDerivedMinDepth
. So this controls the "reactiveness" of the derived asset pool to the layer1 trade volume.MaxAnchorBlocks
: Number of blocks that are summed to get total pool slip. This is the number used to be applied toMaxAnchorSlip
TORAnchor-<Asset>
#: Enables an asset to be used in the TOR price calculation
LP Management
PauseLP
#: Pauses the ability for LPs to add/remove liquidityPauseLP<chain>
#: Pauses the ability for LPs to add/remove liquidity, per chainMaximumLiquidityRune
#: Maximum RUNE capped on the pools known as the ‘soft cap’LiquidityLockUpBlocks
: The number of blocks LP can withdraw after their liquidityPendingLiquidityAgeLimit
: The number of blocks the network waits before initiating pending liquidity cleanup. Cleanup of all pools lasts for the same duration.
RunePool
RUNEPoolEnabled
: Enable/disable RUNE PoolRUNEPoolDepositMaturityBlocks
: Minimum number of blocks from last RUNEPool deposit when a withdraw is allowed.RUNEPoolMaxReserveBackstop
: Max amount of RUNE above thePOLMaxNetworkDeposit
that the reserve can enter RunePool before withdrawls are disabled.
Chain Management
HaltChainGlobal
#: Pause observations on all chains (chain clients)HaltTrading
: Stops swaps and additions, if done, will result in refunds. Observations still occur.Halt<chain>Chain
#: Pause a specific blockchainNodePauseChainGlobal
#: Individual node controlled means to pause all chainsNodePauseChainBlocks
: Number of block a node operator can pause/resume the chains forBlocksPerYear
: Blocks in a yearMaxUTXOsToSpend
#: Max UTXOs to be spent in one blockMinimumNodesForBFT
: Minimum node count to keep the network running. Below this, Ragnarök is performed
Fee Management
NativeTransactionFee
: RUNE fee on all on chain txsTNSRegisterFee
: Registration fee for new THORName, in RUNETNSFeeOnSale
: fee for TNS sale in basis pointsTNSFeePerBlock
: per block cost for TNS, in RUNEPreferredAssetOutboundFeeMultiplier
*: The multiplier of the current preferred asset outbound fee, if RUNE balance > multiplier * outbound_fee, a preferred asset swap is triggeredMinOutboundFeeMultiplierBasisPoints
*: Minimum multiplier applied to base outbound fee charged to user, in basis pointsMaxOutboundFeeMultiplierBasisPoints
: Maximum multiplier applied to base outbound fee charged to user, in basis points
Solvency Checker
StopSolvencyCheck
#: Enable/Disable Solvency CheckerStopSolvencyCheck<chain>
#: Enable/Disable Solvency Checker, per chainPermittedSolvencyGap
: The amount of funds permitted to be "insolvent". This gives the network a little bit of "wiggle room" for margin of error
Node Management
MinimumBondInRune
*: Sets a lower bound on bond for a node to be considered to be churned inValidatorMaxRewardRatio
*: the ratio to MinimumBondInRune at which validators stop receiving rewards proportional to their bondMaxBondProviders
*: Maximum number of bond providers per modeNodeOperatorFee
*: Minimum node operator feeSignerConcurrency
*: Number of concurrent signers for active and retiring vaults
Yggdrasil Management
Yggdrasil Vaults are deprecated since ADR-002.
YggFundLimit
: Funding limit for yggdrasil vaults (percentage)YggFundRetry
*: Number of blocks to wait before attempting to fund a yggdrasil againStopFundYggdrasil
#: Enable/Disable yggdrasil fundingObservationDelayFlexibility
*: Number of blocks of flexibility for a validator to get their slash points taken off for making an observationPoolDepthForYggFundingMin
*: The minimum pool depth in RUNE required for ygg fundingMinimumNodesForYggdrasil
: No yggdrasil vaults if THORNode have less than 6 active nodes
Slashing Management
LackOfObservationPenalty
: Add two slash points for each block where a node does not observeSigningTransactionPeriod
: How many blocks before a request to sign a tx by yggdrasil pool, is counted as delinquent.DoubleSignMaxAge
: Number of blocks to limit double signing a blockFailKeygenSlashPoints
: Slash for 720 blocks, which equals 1 hourFailKeysignSlashPoints
: Slash for 2 blocksObserveSlashPoints
: The number of slashpoints for making an observation (redeems later if observation reaches consensus)ObservationDelayFlexibility
: Number of blocks of flexibility for a validator to get their slash points taken off for making an observationJailTimeKeygen
: Blocks a node account is jailed for failing to keygen. DO NOT drop below TSS timeoutJailTimeKeysign
: Blocks a node account is jailed for failing to keysign. DO NOT drop below TSS timeout
Churning
AsgardSize
*: Defines the number of members to an Asgard vaultMinSlashPointsForBadValidator
: Minimum quantity of slash points needed to be considered "bad" and be marked for churn outBondLockupPeriod
: Lockout period that a node must wait before being allowed to unbondChurnInterval
*: Number of blocks between each churnHaltChurning
: Pause churningDesiredValidatorSet
: Maximum number of validatorsFundMigrationInterval
*: Number of blocks between attempts to migrate funds between asgard vaults during a migrationNumberOfNewNodesPerChurn
#: Number of targeted additional nodes added to the validator set each churnBadValidatorRedline
*: Redline multiplier to find a multitude of bad actorsLowBondValidatorRate
: Rate to mark a validator to be rotated out for low bondMaxNodeToChurnOutForLowVersion
*: Maximum number of validators to churn out for low version each churn
Economics
EmissionCurve
*: How quickly rune is emitted from the reserve in block rewardsIncentiveCurve
*: The split between nodes and LPs while the balance is optimalMaxAvailablePools
: Maximum number of pools allowed on the network. Gas pools (native pools) are excluded from this.MinRunePoolDepth
*: Minimum number of RUNE to be considered to become activePoolCycle
*: Number of blocks the network will churn the pools (add/remove new available pools)StagedPoolCost
: Number of RUNE (1e8 notation) that a stage pool is deducted on each pool cycle.KillSwitchStart
*: Block height to start to kill BEP2 and ERC20 RUNEKillSwitchDuration
: Duration (in blocks) until switching is deprecatedMinimumPoolLiquidityFee
: Minimum liquidity fee an active pool should accumulate to avoid being demoted, set to 0 to disable demote pool based on liquidity feeMaxRuneSupply
*: Maximum supply of RUNE
Miscellaneous
DollarsPerRune
: Manual override of number of dollars per one RUNE. Used for metrics data collection and RUNE calculation from MinimumL1OutboundFeeUSDTHORNames
: Enable/Disable THORNamesTNSRegisterFee
: TNS registration fee of new namesTNSFeePerBlock
: TNS cost per block to retain ownership of a nameArtificialRagnarokBlockHeight
: Triggers a chain shutdown and ragnarokNativeTransactionFee
: The RUNE fee for a native transaction (gas cost in 1e8 notation)HALTSIGNING<chain>
#: Halt signing in a specific chainHALTSIGNING#
: Halt signing globallyRagnarok-<Asset>
#: Ragnaroks a specific pool
Router Upgrading (DO NOT TOUCH!)
Old keys (pre 1.94.0)
MimirRecallFund
: Recalls Chain funds, typically used for router upgrades onlyMimirUpgradeContract
: Upgrades contract, typically used for router upgrades only
New keys (1.94.0 and on)
MimirRecallFund<CHAIN>
: Recalls Chain funds, typically used for router upgrades onlyMimirUpgradeContract<CHAIN>
: Upgrades contract, typically used for router upgrades only