Protector (Guardian)
Description
Guardian is a multi-model AI node responsible for overseeing investment positions and managing performance deviation thresholds. It manages Performance Deviation Threshold for Unrealized PnL (PDTU) and Performance Deviation Threshold for Realized PnL (PDTR) to ensure that investment performance stays within acceptable limits.

Function
Monitoring: Guardian continuously monitors on-chain data, investment strategies, and market conditions.
Risk Management: It evaluates the risk profile of each strategy and takes necessary actions if positions are deemed unsafe or insolvent.
Performance Management: Guardian ensures that the investment positions align with expected performance metrics and thresholds.
Role in Architecture
Guardian plays a critical role in the QuantWealth architecture by:
Monitoring and managing the performance of investment positions.
Ensuring compliance with risk and performance thresholds.
Protecting user investments by taking preemptive actions when necessary.
Responsibilities
Monitoring and Evaluating Strategies
Network Monitoring: Monitors the network to ensure each strategy operates within safe parameters.
Performance Evaluation: Regularly checks if strategy performance meets expected benchmarks by reading data from Atlas (Indexer).
Risk Assessment: Evaluates whether a pool incurs greater risk than tolerance or if positions are insolvent.
Managing Performance Deviation Thresholds
PDTU (Performance Deviation Threshold for Unrealized PnL): Ensures unrealized profits and losses stay within acceptable limits.
Example: If the base investment asset class is variable, such as Ethereum, fluctuations in Ethereum's price can create unrealized PnL.
PDTR (Performance Deviation Threshold for Realized PnL): Manages realized profits and losses, taking corrective actions when necessary.
Example: PDTR is proportional to the position itself. For instance, if a user's investment position realizes significant profits, Guardian might adjust the strategy to lock in gains or reallocate assets. Conversely, if realized losses occur, Guardian may liquidate the position or adjust the strategy to prevent further losses.
Action on Insolvent or Unsafe Positions
Insolvent Amount Tolerance (IAT): Uses IAT as a tolerance level for deviations from APR, triggering liquidation when positions fall below this threshold.
Inaction vs. Liquidation: Decides whether to keep positions or liquidate them based on predefined conditions.
Inaction: Positions are kept according to the strategy.
Liquidation: Positions are liquidated if deemed insolvent or unsafe, with funds stored back in QWManager.
Risk Auditor Function
Risk Monitoring: Acts as a risk auditor, ensuring strategies are within expected bounds and meeting minimum target APY across different timeframes (seconds, hours, days, weeks).
Strategy Compliance Score (SCS): Derives an SCS to measure strategy compliance with expected performance.
User Strategies: Liquidations and Withdrawals
Liquidations: Initiates a liquidation process if a user's position carries too much risk.
Withdrawals: Handles user requests for withdrawals, ensuring the investment strategy is not disrupted.
Evaluating Market Conditions
Continuous Evaluation: Continually evaluates market conditions via Atlas (Indexer).
Adjustments: Makes necessary adjustments to strategies based on ongoing market analysis.
Handling Investment and Withdrawals
Investment Adjustments: Ensures user investments are managed according to predefined strategies, adjusting for new deposits or market changes.
Withdrawal Management: Manages user withdrawal requests, ensuring strategies are not adversely affected.
Detailed Workflow
Monitoring:
Monitors on-chain statistics of interest.
Continuously checks strategy performance against expectations.
Action Decision:
Checks if positions are insolvent or unsafe.
Decides on inaction or liquidation based on predefined conditions.
Execution:
Executes liquidations if necessary.
Updates Indexer with the state of liquidated positions.
Stores liquidated funds back in QWManager.
Risk Auditing:
Watches dapp operations to ensure compliance with expected performance.
Derives Strategy Compliance Score (SCS).
User Interaction:
Processes user requests for withdrawals.
Evaluates and manages user strategies for liquidations.
Mitigation of Additional Factors
Economic Events:
Incorporates macroeconomic indicators and event analysis to adjust strategies in anticipation of economic events.
Regulatory Changes:
Stays updated with regulatory news and adjusts investment strategies to comply with new regulations, avoiding potential legal and financial risks.
Technological Changes:
Monitors technological trends and innovations, adapting strategies to leverage new opportunities and mitigate disruption risks.
Sentiment Shifts:
Performs sentiment analysis and adjusts investment strategies to hedge against adverse sentiment-driven market movements.
Market Volatility:
Uses volatility indicators and historical data to predict and manage market volatility, adjusting strategies to mitigate risks.
Flowchart

Last updated
Was this helpful?