Skip to content

Borrowing configuration

Following parameters form the risk management framework within the Weft protocol, ensuring that borrowing and collateralization activities are managed safely and efficiently.

Global Configuration

The table below outlines the key global parameters used within the Weft protocol, including their descriptions and current values.

ParameterDescriptionCurrent Value
MaxCdpPositionTo avoid "state bomb" where transaction fees become too high due to excessive state loading, the maximum number of positions allowed in a Wefty is limited.8
maxNftCollateralLoanPositionsNFT Liquidation is more expensive than Fungible Liquidation. This parameter defines the maximum number of loan positions allowed in a CDP with NFT as collateral to prevent state boom during NFT liquidation2
PriceExpirationPeriodThe duration (in seconds) for which a fetched asset price remains valid. This represents the maximum accepted keep-alive period from price feeds.14400
(4 hours)
PriceCacheModePrice data from Oracles is cached to save on transaction fees. The two caching modes are: Hash (cached per transaction) and Debounce (cached within a period).Debounce 900 (15 minutes)
MaxClaimNftValueMaximum value of an unstaking Claim NFT allowed in a CDP1,000,000 XRD

LTV and Liquidation Threshold

These parameters determine when a collateral asset is considered sufficient to cover a loan or when it becomes eligible for liquidation:

  • Max Loan-To-Value Ratio: The highest percentage of a collateral's value that can be used to secure loans.
  • Liquidation Threshold: The LTV level at which the collateral is deemed under-secured, triggering potential liquidation.
  • Liquidation Bonus Rate: The additional percentage given to liquidators as a reward for liquidating an under-collateralized position.
IDDescriptionMax Loan-To-Value RatioLiquidation ThresholdLiquidation Bonus RateAssociated Resources
OXRD derivatives0.750.807%XRD (With All LSU), LSULP
1Bridged Volatile Asset0.750.807%xwBTC, xETH
2Bridged Stable Asset0.650.707%xUSDC, xUSDT
3dApp Utility Tokens0.250.3510%(TBD)
4Meme Coins0.200.3010%(TBD)
5Default Efficiency Config0.950.963%(Same resources in the pair)
6Default Correlation Group0.90.925%(Use for all efficiency groups)

Correlation Groups

Groups of assets that are closely related, enabling more favorable borrowing terms under certain conditions. Each correlation group is linked to an LTV and liquidation configuration.

IDDescriptionLTV Config IDAssociated Resources
0XRD/LSU and XRD derivatives6 (Default Correlation Group Efficiency)XRD (With All LSU), LSULP
1USD Stable Coins6 (Default Correlation Group Efficiency)xUSDC, xUSDT

Loan Resource Config

This configuration defines the borrowing terms for different assets:

  • loanCloseFactor: The maximum portion of a loan that can be repaid during a liquidation process.
  • loanValueFactor: A multiplier used to adjust the impact of a loan position, potentially increasing its weight to address certain risk factors.
IDDescriptionloanCloseFactorloanValueFactorAssociated Resources
ODefault0.51XRD, xUSDC, xUSDT, xETH, xwBTC

Released under the MIT License.