Monitoring and Position Management | Lending & Borrowing on XRPL | XRP Academy - XRP Academy
3 free lessons remaining this month

Free preview access resets monthly

Upgrade for Unlimited
Skip to main content
intermediate50 min

Monitoring and Position Management

Learning Objectives

Establish a monitoring routine appropriate for your positions and risk tolerance

Identify key metrics and thresholds that require attention or action

Set up alerts and notifications for critical events

Interpret warning signs before they become emergencies

Document and learn from position performance over time

DeFi doesn't wait for you:

THE CASE FOR MONITORING:

WHAT CAN CHANGE:

Market Conditions:
├── Collateral prices (hourly/daily)
├── Interest rates (continuously)
├── Utilization rates (continuously)
├── Liquidity depth (daily)
└── All affect your position health

Protocol State:
├── Governance proposals (weekly)
├── Parameter changes (periodic)
├── Audit findings (whenever released)
├── Security incidents (anytime)
└── Can change your risk assessment

External Factors:
├── Regulatory news (anytime)
├── Broader market sentiment (daily)
├── Related protocol issues (anytime)
├── Chain/infrastructure problems (anytime)
└── Outside your direct view

CONSEQUENCES OF NOT MONITORING:

Borrower Position:
├── Price moves against you
├── Health factor deteriorates
├── You don't notice
├── Liquidation occurs
├── Learn about it after the fact
└── Lost collateral + penalty

Lender Position:
├── Protocol experiences issue
├── TVL starts draining
├── You don't notice
├── By the time you act, withdrawal queue
├── Or worse: Funds compromised
└── Early actors exited, you didn't

THE DIFFERENCE:

Monitored Position:
├── Alert: Health factor below 1.5
├── Action: Add collateral or repay
├── Outcome: Position secured
└── Crisis avoided

Unmonitored Position:
├── No alert
├── No action
├── Liquidation at 1.0
└── Preventable loss


---

For each active position:

LENDER POSITION MONITORING:

METRIC 1: DEPOSIT VALUE

What: Current value of your deposited assets
Why: Tracks principal + accrued interest
How Often: Daily
Alert: Unexpected decrease (could indicate problem)

Example Tracking:
├── Day 1: Deposited 10,000 RLUSD
├── Day 30: Balance shows 10,042 RLUSD
├── Expected at 5% APY: 10,041 RLUSD
├── Status: Tracking correctly ✓
└── Deviation would warrant investigation

METRIC 2: YIELD RATE

What: Current APY being earned
Why: Indicates market conditions, protocol health
How Often: Weekly (but visible daily)
Alert: Sudden significant change (>50% drop or spike)

Interpretation:
├── Gradual changes: Normal market dynamics
├── Sudden spike up: High utilization, possible stress
├── Sudden drop: Utilization decreased, normal
├── Rate to zero: Something wrong—investigate immediately
└── Context matters

METRIC 3: UTILIZATION RATE

What: Percentage of deposits currently borrowed
Why: Affects rates and withdrawal ability
How Often: Weekly
Alert: >90% sustained (liquidity concern)

Implications:
├── Low utilization (30-50%): Easy withdrawal, lower rates
├── Optimal utilization (60-80%): Good rates, adequate liquidity
├── High utilization (80-90%): Higher rates, watch closely
├── Critical utilization (>95%): May not be able to withdraw
└── Monitor trend, not just snapshot

METRIC 4: WITHDRAWAL AVAILABILITY

What: Can you actually withdraw right now?
Why: Liquidity isn't guaranteed
How Often: Before you need it
Alert: Any withdrawal restrictions

Best Practice:
├── Test small withdrawal monthly
├── Confirm withdrawal works
├── Know the withdrawal queue if any
├── Don't assume availability
└── Liquidity crunch = Bad time to learn

Critical for leveraged positions:

BORROWER POSITION MONITORING:

METRIC 1: HEALTH FACTOR

What: Ratio indicating liquidation proximity
Why: Below 1.0 = Liquidation
How Often: Daily (hourly in volatile markets)
Alert: Below 1.5 (action zone), Below 1.2 (urgent)

Health Factor Calculation:
├── HF = (Collateral Value × Liquidation Threshold) / Debt Value
├── HF > 2.0: Very safe
├── HF 1.5-2.0: Comfortable
├── HF 1.2-1.5: Caution zone
├── HF 1.0-1.2: Danger zone
├── HF < 1.0: Liquidation eligible
└── Buffer is survival

METRIC 2: COLLATERAL VALUE

What: Current market value of deposited collateral
Why: Drives health factor
How Often: Real-time during volatility
Alert: 15%+ drop from entry

Example:
├── Deposited: 10,000 XRP at $2.50 = $25,000
├── Current: XRP at $2.20 = $22,000
├── Drop: 12%
├── If LTV was 60%: Health factor dropped from 1.67 to 1.47
└── Approaching caution zone

METRIC 3: DEBT VALUE

What: Total amount owed including accrued interest
Why: The other half of health factor equation
How Often: Weekly
Alert: Growing faster than expected

Tracking:
├── Initial borrow: 10,000 RLUSD
├── Interest rate: 8%
├── After 3 months: ~10,200 RLUSD expected
├── Actual: 10,190 RLUSD
├── Status: Tracking correctly ✓
└── If debt growing unexpectedly, investigate

METRIC 4: LIQUIDATION PRICE

What: Asset price at which liquidation triggers
Why: Concrete number to watch
How Often: Calculate on entry, monitor against market
Alert: Current price within 25% of liquidation price

Calculation Example:
├── Collateral: 10,000 XRP
├── Debt: $15,000 RLUSD
├── Liquidation threshold: 80%
├── Liquidation price = $15,000 / (10,000 × 0.80) = $1.875
├── Current XRP price: $2.50
├── Buffer: ($2.50 - $1.875) / $2.50 = 25%
└── Set alert at $2.10 (15% buffer warning)

The platform health:

PROTOCOL HEALTH INDICATORS:

INDICATOR 1: TOTAL VALUE LOCKED (TVL)

What: Total assets deposited in protocol
Why: Indicates user confidence, protocol health
How Often: Weekly
Alert: 20%+ decline over short period

Interpretation:
├── Growing TVL: Positive signal
├── Stable TVL: Normal
├── Gradual decline: Watch but not emergency
├── Rapid decline: Investigate immediately
├── Could indicate: Better alternatives, or problem brewing
└── Context from news/community helps interpret

INDICATOR 2: AUDIT STATUS

What: Security review history and findings
Why: Indicates technical risk
How Often: Check monthly, watch for announcements
Alert: New audit findings, especially critical severity

What to Check:
├── When was last audit?
├── Any outstanding issues?
├── New code deployed since audit?
├── Bug bounty activity?
└── Security posture can change

INDICATOR 3: GOVERNANCE ACTIVITY

What: Proposals, votes, parameter changes
Why: Can affect your position directly
How Often: Weekly
Alert: Proposals affecting your markets/assets

Examples of Important Proposals:
├── Interest rate model changes
├── Collateral factor changes
├── Liquidation parameter changes
├── New asset additions
├── Emergency actions
└── You should know about these before they pass

INDICATOR 4: COMMUNITY SENTIMENT

What: Social media, Discord, forums discussion
Why: Early warning system
How Often: Weekly glance
Alert: Unusual concern or discussion

Where to Watch:
├── Protocol Discord/Telegram
├── Twitter/X mentions
├── Reddit discussions
├── Governance forums
└── Sentiment often leads events

Building your early warning system:

ALERT FRAMEWORK:

TIER 1: CRITICAL ALERTS (Immediate Action)

Health Factor Alert:
├── Trigger: HF < 1.2
├── Delivery: SMS, push notification, email
├── Action: Immediate—add collateral or repay
├── Frequency: Every hour until resolved
└── Cannot miss these

Protocol Security Alert:
├── Trigger: Any reported exploit/hack
├── Delivery: SMS, push notification
├── Action: Immediate—assess and likely exit
├── Source: Twitter alerts, protocol channels
└── Speed matters

TIER 2: WARNING ALERTS (Same-Day Action)

Health Factor Warning:
├── Trigger: HF < 1.5
├── Delivery: Push notification, email
├── Action: Plan to add collateral or repay
├── Frequency: Daily
└── Early warning before critical

Rate Change Alert:
├── Trigger: 50%+ change in yield/borrow rate
├── Delivery: Email, app notification
├── Action: Investigate cause, assess impact
├── Frequency: When triggered
└── May indicate stress or opportunity

TVL Alert:
├── Trigger: 15%+ decline in protocol TVL
├── Delivery: Email
├── Action: Investigate, consider position review
├── Frequency: Daily during decline
└── Early warning of potential issues

TIER 3: INFORMATIONAL ALERTS (Weekly Review)

Rate Summary:
├── Trigger: Weekly schedule
├── Delivery: Email digest
├── Action: Review for trends
├── Content: Current rates, weekly change
└── Tracking baseline

Portfolio Summary:
├── Trigger: Weekly schedule
├── Delivery: Email digest
├── Action: Review performance
├── Content: Positions, values, yields
└── Routine maintenance

What to use:

MONITORING TOOLS:

PORTFOLIO TRACKERS:

DeBank:
├── Multi-chain DeFi tracker
├── Shows positions across protocols
├── Historical performance
├── Free basic tier
└── Widely used

Zapper:
├── Similar to DeBank
├── Good UI
├── Yield tracking
├── Transaction history
└── Also popular

For XRPL Specifically:
├── XRPL native tools (emerging)
├── Bithomp for basic tracking
├── Protocol-specific dashboards
├── May need manual tracking currently
└── Ecosystem still developing

ALERT SERVICES:

Protocol Native:
├── Many protocols have built-in alerts
├── Health factor warnings
├── Email or app notifications
├── Enable these first
└── Most reliable for critical alerts

Third-Party:
├── DeFi Saver (automated protection + alerts)
├── Instadapp (position management)
├── Custom webhook setups
└── More sophisticated but complex

CUSTOM MONITORING:

Spreadsheet Tracking:
├── Manual but customizable
├── Record positions daily/weekly
├── Calculate changes
├── Full control over what you track
└── Good backup method

API Integration:
├── For technical users
├── Pull data programmatically
├── Custom alerting logic
├── Telegram/Discord bots
└── Maximum flexibility

MINIMUM VIABLE SETUP:

For Most Users:
├── Protocol native alerts (enabled)
├── One portfolio tracker (DeBank/Zapper)
├── Weekly calendar reminder to review
├── Manual spreadsheet for positions
└── Covers basics without complexity
```

Establishing habits:

MONITORING ROUTINE:

DAILY CHECK (5 minutes):

Morning:
├── Glance at portfolio tracker
├── Check overnight price movements
├── Verify health factors (if borrowing)
├── Note any alerts received
└── Quick situational awareness

Evening (optional):
├── Review day's activity
├── Check for news/announcements
├── Clear any notifications
└── Prepare for tomorrow

WEEKLY REVIEW (30 minutes):

Pick a consistent day (e.g., Sunday evening):

  1. Position Review (10 min)

  2. Protocol Review (10 min)

  3. Documentation (10 min)

MONTHLY REVIEW (1-2 hours):

Deep dive:
├── Performance calculation vs. expectations
├── Risk assessment refresh
├── Rebalancing evaluation
├── Strategy check: Still aligned with goals?
├── Document learnings
└── Plan next month

QUARTERLY REVIEW (Half day):

Comprehensive assessment:
├── Full strategy review (from Lesson 15)
├── Protocol tier reassessment
├── Allocation framework check
├── Risk budget recalculation
├── Tax documentation update
├── Major rebalancing decisions
└── Strategy refinement


---

What suggests trouble:

PROTOCOL WARNING SIGNS:

SIGN 1: RAPID TVL DECLINE

Pattern:
├── TVL drops 20%+ in days
├── Without obvious market reason
├── Smart money often moves first
└── They may know something you don't

Response:
├── Investigate immediately
├── Check news, social media
├── If no explanation found, consider exiting
├── Better to exit and be wrong than stay and be wrong
└── Can re-enter if concerns unfounded

SIGN 2: UNUSUAL RATE BEHAVIOR

Pattern:
├── Rates spike to extreme levels
├── Or rates go to zero unexpectedly
├── Or rates disconnect from utilization
└── Something abnormal happening

Response:
├── Investigate the cause
├── High rates might mean stress
├── Zero rates might mean technical issue
├── Understand before acting
└── But don't ignore

SIGN 3: GOVERNANCE ANOMALIES

Pattern:
├── Rushed proposals with short voting periods
├── Large token movements before votes
├── Controversial proposals passing quickly
├── Core team members selling tokens
└── Governance capture or insider concerns

Response:
├── Heightened scrutiny
├── Consider reducing exposure
├── Watch for follow-up actions
└── Governance is a risk vector

SIGN 4: TEAM CHANGES

Pattern:
├── Key developers leaving
├── Leadership changes
├── Reduced communication
├── Delayed roadmap items
└── May indicate internal problems

Response:
├── Assess impact on protocol maintenance
├── Consider whether protocol can survive
├── Reduce exposure if uncertain
└── Active development matters

SIGN 5: NEGATIVE SENTIMENT SHIFT

Pattern:
├── Respected voices raising concerns
├── Security researchers asking questions
├── Unusual silence from team
├── Community tone shifting negative
└── Often precedes problems

Response:
├── Take seriously, investigate
├── Don't dismiss as FUD immediately
├── Verify concerns independently
├── Act on credible warnings
└── Crowd wisdom has value

Your specific positions:

POSITION WARNING SIGNS:

BORROWER WARNINGS:

Sign: Health Factor Trending Down
├── HF was 2.0, now 1.6, trend continuing
├── May just be price movement
├── But trend matters
├── Intervention before critical
└── Action: Plan to add collateral or reduce debt

Sign: Borrow Rate Increasing Significantly
├── Rate was 8%, now 15%
├── Cost of position increasing
├── May make position unprofitable
├── Or indicate market stress
└── Action: Reassess position economics

Sign: Liquidation Price Getting Closer
├── Current price: $2.50, Liquidation: $1.85
├── Was 35% buffer, now 25%
├── Trend in wrong direction
├── Position getting riskier
└── Action: Increase buffer or exit

LENDER WARNINGS:

Sign: Utilization Approaching 100%
├── Can't withdraw at 100% utilization
├── Trapped liquidity
├── May need to wait for borrowers to repay
├── Or rates spike to attract deposits
└── Action: Withdraw portion while possible

Sign: Yield Suddenly Zero
├── Could be technical issue
├── Could be utilization dropped
├── Could be something wrong
├── Investigate immediately
└── Action: Understand cause before deciding

Sign: Protocol Making Emergency Changes
├── Usually means problem occurred
├── Even if "fixed," trust reduced
├── Review what happened and why
├── Assess ongoing risk
└── Action: Consider full exit

GENERAL WARNING:

Sign: Your Gut Says Something's Wrong
├── Intuition has information
├── You've been monitoring, your brain noticed patterns
├── Don't dismiss discomfort
├── Investigate the feeling
└── Action: At minimum, reduce exposure


---

Recording for future learning:

POSITION DOCUMENTATION TEMPLATE:

ENTRY RECORD:

Date: ___________
Protocol: ___________
Position Type: Lend / Borrow
Amount: $___________

Entry Metrics:
├── Yield rate (if lending): %
├── Borrow rate (if borrowing): %
├── Collateral value (if borrowing): $
_____
├── Debt amount (if borrowing): $___________
├── Health factor (if borrowing): ___
├── LTV (if borrowing): %
└── Liquidation price (if borrowing): $
________

Rationale for Entry:
├── Why this protocol?
├── Why this amount?
├── Expected duration?
├── Target outcome?
└── Exit criteria defined?

ONGOING RECORD (Weekly):

Week 1: Balance: $, Yield: $, Health Factor: ___
Week 2: Balance: $
_, Yield: $___, Health Factor: ___
...

Notes:
├── Any issues encountered?
├── Any parameter changes?
├── Any concerns?
└── Plan for next week?

EXIT RECORD:

Date: ___________
Exit Reason: ___________
Final Amount: $___________
Total Yield Earned: $___________
Total Return: ___%
Duration: ___ days/weeks

Post-Mortem:
├── Did position meet expectations?
├── What worked well?
├── What would you do differently?
├── Lessons for future?
└── Would you enter similar position again?
```

Systematic improvement:

OUTCOME ANALYSIS:

QUARTERLY REVIEW QUESTIONS:

Performance:
├── Total return across all positions?
├── Return vs. expectations?
├── Best performing position and why?
├── Worst performing position and why?
└── Patterns in performance?

Risk:
├── Any close calls (near liquidation)?
├── Any actual losses?
├── Were risks as expected?
├── Any surprise risks encountered?
└── Risk estimates need updating?

Process:
├── Did monitoring routine work?
├── Were alerts effective?
├── Any missed warning signs?
├── Documentation complete?
└── What process improvements needed?

Strategy:
├── Is current strategy still appropriate?
├── Any changes in objectives?
├── Any changes in risk tolerance?
├── Allocation framework working?
└── What adjustments needed?

LEARNING DOCUMENTATION:

Lesson: ________________
Context: ________________
What Happened: ________________
What I Did: ________________
Outcome: ________________
What I'd Do Differently: ________________

BUILDING INTUITION:

Over Time, Notice:
├── What warning signs preceded problems?
├── Which protocols consistently performed?
├── What market conditions affect positions?
├── What monitoring proved most valuable?
├── Where did my estimates prove wrong?
└── Patterns inform future decisions

The goal:
├── Not just returns
├── But improved judgment
├── Better risk assessment
├── More effective monitoring
├── Compound learning over time
└── Become better at this


---

Active monitoring catches problems early - The difference between losing some and losing all often comes down to response time.

Documented decisions enable learning - Without records, you can't analyze what worked and what didn't.

Alerts prevent emergencies - Automated notifications for critical thresholds are essential for borrowers.

⚠️ Optimal monitoring frequency - Depends on position type, risk level, and personal circumstances. Find what works for you.

⚠️ Which warning signs matter most - Context-dependent. Some signs that look concerning are false alarms; others that seem minor are serious.

⚠️ Tool reliability - Third-party tools can have bugs or delays. Don't rely solely on any one source.

🔴 Set and forget mentality - DeFi positions are not "passive income." Neglect leads to preventable losses.

🔴 Alert fatigue - Too many notifications leads to ignoring them all. Configure alerts carefully.

🔴 Analysis paralysis - Too much monitoring can lead to overtrading. Balance attention with calm.

Monitoring is the ongoing work that makes lending strategies function. It's not glamorous, but it's essential. The key is building sustainable habits—not obsessive checking, but consistent, systematic attention that catches problems while they're still solvable. Document everything: your future self will thank your current self for the records.


Assignment: Design and implement your personal monitoring system for lending positions.

Requirements:

Part 1: Alert Configuration (25%)

  • What alerts will you enable?
  • What thresholds trigger each tier (critical, warning, informational)?
  • What delivery methods for each?
  • How will you ensure you don't miss critical alerts?

Part 2: Tool Selection (20%)

  • Portfolio tracking tool(s)
  • Alert service(s)
  • Manual tracking method(s)
  • Why did you choose each?

Part 3: Routine Schedule (25%)

  • Daily activities (time, duration, tasks)
  • Weekly review agenda (specific checklist)
  • Monthly review agenda
  • Quarterly review agenda

Part 4: Documentation Templates (20%)

  • Position entry record
  • Weekly monitoring log
  • Exit record
  • Quarterly review

Part 5: Warning Sign Checklist (10%)

  • Protocol warning signs to watch

  • Position warning signs to watch

  • Your planned response to each

  • Completeness (25%)

  • Practicality (30%)

  • Sustainability (25%)

  • Clarity (20%)

Time investment: 2-3 hours
Value: This system becomes your operational infrastructure for managing lending positions.


Knowledge Check

Question 1 of 4

(Tests Basic Understanding):

  • DeBank, Zapper documentation
  • DeFi tracking best practices
  • Alert configuration guides
  • On-chain analytics tools
  • DeFi safety monitoring
  • Real-time data sources
  • "Atomic Habits" - James Clear
  • Sustainable routine building
  • Avoiding burnout with monitoring

For Next Lesson:
Lesson 18 covers Liquidation Avoidance Strategies—specific tactics to prevent the most catastrophic borrower outcome.


End of Lesson 17

Total words: ~5,800
Estimated completion time: 50 minutes reading + 2-3 hours for deliverable exercise

Key Takeaways

1

Active monitoring is non-negotiable

: DeFi positions require regular attention. Establish routines that fit your lifestyle and stick to them.

2

Alert configuration is critical for borrowers

: Health factor alerts can be the difference between managing a position and being liquidated.

3

Watch for warning signs at protocol and position levels

: TVL declines, unusual rate behavior, governance anomalies, and sentiment shifts often precede problems.

4

Document everything for future learning

: Entry rationale, ongoing metrics, exit analysis—this data enables improvement over time.

5

Build sustainable habits, not obsessive checking

: Daily glance, weekly review, monthly deep-dive. Find the rhythm that works and maintain it. ---