The dashboard for the USUAL project aims to provide a comprehensive analysis of user positions in the wake of a significant price drop of USD0++, the staked version of Usual Money's USD0 token, from $1 to $0.915 on decentralized exchanges. While USD0 remains pegged to $1 as a U.S. Treasuries-backed stablecoin, USD0++ behaves more like a zero-coupon bond, being locked for four years and rewarding holders with USUAL tokens at the end of the term.
The dashboard seeks to:
- Analyze Profit and Loss:
- Identify users in profit or loss based on their entry price, trades, and current holdings of USD0++.
- Calculate how much each user has gained or lost.
- Incorporate Rewards:
- Account for rewards - USUAL tokens (earned over the staking period) and USUALX (received from USUAL swap).
- Provide General Statistics:
- Display key metrics such as:
- The total number of user positions.
- The percentage of positions currently in profit.
- The percentage of TVL (Total Value Locked) originates from positions that are at a loss.
- Display key metrics such as:
Methodology: Calculating Profit or Loss of Individual Users
The profit or loss of individual users in the USUAL project is calculated by analyzing three key components of their positions: USD0++, USUAL, and USUALX. Here's how each component is assessed:
1. USD0++ Positions
- Transaction Data: For each user transaction involving USD0++, fetch the price of USD0++ at the time of the transaction.
- USD Value Calculation:
- For USD0++buy transactions, calculate the total USD value as: $Bought Value = AmountBought × Price at Transaction Time$
- For USD0++sell transactions, calculate the total USD value as: $Sold Value = Amount Sold × Price at Transaction Time$
- Current Holdings: Calculate the USD value of the user's current USD0++ holdings based on the current market price: $Remaining Value = Remaining Amount × Current Price$
- Net USD0++ Value: Subtract the total USD value of all buy transactions from the total USD value of all sell transactions, and add the value of the current token holdings: $Net USD0++ Value = Sold Value − Bought Value + Remaining Value$
2. USUAL Positions
- Reward Calculation: Fetch the total number of USUAL tokens earned as rewards for staking USD0.
- Sold USUAL Tokens: Identify all sending transactions of USUAL tokens and calculate their USD value based on the price of USUAL at the time of the transaction: $SoldValue = Amount Sold × Price at Transaction Time$
- Only include the USD value for selling transactions up to USUAL tokens earned as rewards. Any USUAL tokens bought separately from the market are excluded from this calculation.
- Remaining USUAL Tokens: Calculate the USD value of any remaining USUAL tokens (unspent) based on the current market price: $Remaining Value = Remaining Amount × Current Price$
- Net USUAL Value: Add the value of sold USUAL tokens and the value of remaining USUAL tokens to determine the total contribution of USUAL rewards to the user's position: $Net USUAL Value = Sold Value + Remaining Value$
3. USUALX Positions
- USUAL Conversion: Calculate only the amount of USUALX converted from USUAL tokens (filtered to only wallets claimed by USUAL reward only USUAL-USUALX pair on DEXs)
- USD Value Calculation:
- For buy transactions, calculate the total USD value as: $Bought Value = Amount Bought × Price at Transaction Time$
- For sell transactions, calculate the total USD value as: $Sold Value = Amount Sold × Price at Transaction Time$
- Remaining USUALX Tokens: Calculate the USD value of any remaining USUALX tokens (unspent) based on the current market price: $Remaining Value = Remaining Amount × Current Price$
- Net USUALX Value: Add the value of sold USUALX tokens and the value of remaining USUALX tokens to determine the total contribution of USUALX to the user's position: $Net USUALX Value = Sold Value − Bought Value + Remaining Value$
Final Calculation
The overall profit or loss for each user is computed by summing the net values from all three components:
$Total Profit/Loss = Net USD0++ Value + Net USUAL Value + Net USUALX Value$
General Statistics
The General Statistics section provides a comprehensive overview of the aggregate data derived from the analysis. It is divided into the following four key metrics:
1. Total Number of Positions
- Definition: The total number of unique wallet addresses analyzed, including those in both profit and loss.
- Calculation: Count the number of unique wallet addresses from all transactions and holdings data.
2. Number of Profitable Positions
- Definition: The number of wallet addresses where the total profit or loss exceeds zero indicates a net profit.
- Calculation: Count the number of wallets with a total calculated profit greater than zero.
3. Percentage of Profitable Positions
- Definition: The proportion of profitable wallet addresses relative to the total number of wallets analyzed.
- Calculation: Divide the number of profitable positions by the total number of positions and multiply by 100 to express as a percentage.
4. Percentage of TVL from Wallets in Loss
- Definition: The share of the total value locked (TVL) from wallets currently in a net loss.
- Calculation:
- Identify wallets in a net loss (Total Profit/Loss<0).
- Sum the total value locked (TVL) of these wallets.
- Divide by the overall TVL and multiply by 100 to express as a percentage.
From "% of TVL from loss positions" calculation, Morpho and Pendle Deployer addresses are excluded