In decentralized finance, one question stands above all others: "How much money am I actually making?" While this seems straightforward, the unique mechanics of DeFi—with its staking rewards, rebasing tokens, and other activities—make traditional profit-tracking methods inadequate.
In this guide, we're breaking down Lambda DeFi's inclusive approach to Profit and Loss (PnL) calculation, providing Wallets with the tools to help their users truly understand their portfolio performance.
At its core, PnL (Profit and Loss) is the total measure of your portfolio performance, expressed by a simple but powerful formula:
PnL = Unrealized Profit + Realized Profit
Let's dissect these components to understand what's actually happening with your assets:
Unrealized profit represents value changes in assets you still hold. This includes:
The key characteristic: these profits exist "on paper" but haven't been captured in your wallet as separate assets yet.
Realized profit comes from completed transactions where you've locked in your gains or losses:
Both unrealized and realized profits can be negative when asset values decrease or when you sell at a loss.
To make this concrete, let's examine a simple scenario:
A user purchases 1 ETH for $2,000. Later, the market price reaches $2,500.
Scenario 1: A user HOLDS the ETH
Scenario 2: A User SELLS the ETH
This illustrates how the same total PnL can have completely different implications for a user's portfolio liquidity and risk exposure.
Lambda's approach provides two crucial perspectives on a user's portfolio:
This measures changes in the quantity of the actual crypto assets, answering the question: "How many more tokens do I have?"
For example:
This metric is particularly valuable in inflationary environments or when the user is focused on accumulating a specific asset.
This measures the monetary value of a user's holdings in the reference currency (often USD), answering: "How much more is my portfolio worth?"
For example:
This perspective helps users to understand their actual financial position, accounting for both quantity and market price changes.
Lambda's calculation methodology is specifically designed to capture the nuances of DeFi portfolio performance:
Rather than looking at a portfolio in a single continuous period, we break it down into meaningful intervals:
This approach ensures we catch both active decisions and passive market effects.
For each interval, we record:
For each interval, we calculate:
Interval PnL = (End Price × End Balance) - (Start Price × Start Balance)
This captures both price effects and quantity changes in a single metric.
We then aggregate all interval results to produce:
Let's walk through a detailed example with a staking token that automatically increases in balance over time:
Timeline:
Lambda divides this into multiple intervals:
This creates intervals like:
For each interval, we record:
For each period, the calculation works like this:
Adding all interval PnL values gives your total one-year PnL: $76.10
This detailed breakdown shows exactly how a user's position evolved through price changes, balance growth, additional deposits, and partial withdrawals.
Lambda's PnL calculation handles various DeFi-specific situations:
With tokens that automatically increase in quantity:
For yield farming positions:
For LP positions:
Understanding true DeFi performance goes beyond simple curiosity—it directly translates to strategic business advantages for wallet applications.
Within the user base, DeFi users represent the most valuable cohort, driving the majority of profitable transactions. Lambda's PnL solution helps retain these high-value users through a genuine market differentiator—no wallet in the ecosystem currently offers true DeFi return tracking or distinguishes rewards from regular transfers.
This retention advantage works on two crucial levels:
By implementing Lambda's PnL tracking, wallet providers create a compelling reason for users to stay within their ecosystem rather than switching between applications or abandoning DeFi altogether when faced with performance uncertainty.
To start tracking your true DeFi performance, you can request access to query the PnL data with Lambda.
Lambda's sophisticated yet intuitive PnL calculation gives you the data-backed insights needed to increase your revenue.
No more spreadsheets, manual calculations, or incomplete metrics—just clear, accurate performance tracking that captures all the nuances of your DeFi portfolio.
Q: Can I evaluate PnL for positions I've already closed?
A: Yes. Lambda analyzes historical data on asset acquisition and disposal prices, allowing for retroactive PnL calculation even for positions that no longer exist in your portfolio.
Q: How does Lambda account for swaps and bridging in PnL calculations?
A: Swaps and bridging are treated as events that trigger the closing of one position and opening of another. For example, swapping ETH to USDT closes your ETH position and opens a USDT position, with each having its own PnL tracking.
For immediate losses or gains during swaps (like slippage costs), Lambda will introduce a transaction-level PnL feature in Q2 that captures these effects separately from position-level PnL.
Q: How does Lambda handle external transfers?
A: Third-party transfers (like receiving tokens from a friend) are treated similarly to manual top-ups—they create a new interval but don't reset your entire position history.
Q: How does the system handle price volatility in both base and quote currencies?
A:
Q: How does Lambda handle withdrawals and top-ups?
A:
Want to experience the power of Lambda's PnL tracking for yourself? Contact our team today to learn how our staking solutions can optimize your crypto portfolio while providing unparalleled transparency into your portfolio performance.
Website: https://lambda.p2p.org/
The information provided above is for informational purposes only and should not be construed as, or relied upon as, investment, financial, or any other type of professional advice. P2P.org or any associated parties do not offer any form of advisory services, and nothing shared here should be considered as a recommendation or endorsement for any financial decisions. P2P.org are not responsible for any decisions made based on the information provided. You are encouraged to consult with a qualified financial advisor or professional before making any investment or financial decisions.
<h2 id="tldr"><br><strong>TLDR</strong></h2><ul><li>P2P.org invests in Rakurai to enhance validator performance and increase staking returns for Solana delegators.</li><li>Rakurai's technology delivers significantly faster transaction processing compared to standard Solana clients.</li><li>The investment strengthens P2P.org's position as an innovation-focused infrastructure provider in the Solana ecosystem.</li></ul><p>P2P.org is excited to announce our strategic investment in Rakurai, a revolutionary Solana staking protocol that's redefining transaction throughput and validator rewards on the network. This move aligns with our ongoing commitment to enhance blockchain infrastructure and deliver superior staking solutions to our clients.</p><h2 id="transforming-solanas-infrastructure"><strong>Transforming Solana's Infrastructure</strong></h2><p>Rakurai recently secured $3 million in seed funding led by Anagram Ventures, with participation from P2P.org, Cyber Fund, Colosseum, Slow Ventures, Robot Ventures, Crypto.com, and other strategic investors.</p><p>Rakurai are in a class of its own due to their novel approach to transaction scheduling and pipeline optimization. Rakurai’s internal tests show the platform has the potential to deliver up to <strong>5x better performance than existing Solana clients</strong>, significantly increasing transaction throughput while maintaining high quality of service.</p><h2 id="why-p2porg-invested"><strong>Why P2P.org Invested</strong></h2><p>Our investment in Rakurai represents a strategic alignment with P2P.org's core goals of maximising returns for our clients and supporting critical infrastructure innovation. By partnering with Rakurai, we're positioning ourselves at the forefront of Solana validator optimization.</p><p>Specifically, this investment will:</p><ol><li>Help us explore cutting-edge validator node technologies that could significantly improve staking returns</li><li>Enable P2P.org to offer enhanced transaction processing capabilities to institutional clients with high-throughput requirements</li><li>Strengthen the Solana ecosystem by supporting technology that benefits the entire network</li></ol><p>The potential for increased block rewards through Rakurai's optimized transaction processing aligns perfectly with our commitment to maximizing returns for our 90,000+ delegators across all networks.</p><h2 id="bridging-tradfi-and-defi"><strong>Bridging TradFi and DeFi</strong></h2><p>The Rakurai team brings over two decades of experience in ASIC/SOC development and building ultra-low latency, high-throughput systems for algorithmic trading. Led by former <a href="https://www.linkedin.com/in/s-alirizvi?ref=p2p.org" rel="noreferrer"><strong>Apple engineer </strong>Ali Rizvi</a>, the team has already demonstrated their capabilities by winning first place in the infrastructure track of the Colosseum Renaissance Hackathon.</p><p>"We believe Rakurai addresses fundamental challenges that have constrained Solana's performance," said Steven Quinn, Head of Strategy at P2P.org. "By optimizing transaction scheduling and block creation, Rakurai improves network efficiency, creates substantial new value for validators and delegators, and lays the foundation for next-generation blockchain-based trading services and high bandwidth applications."</p><h2 id="impressive-growth-trajectory"><strong>Impressive Growth Trajectory</strong></h2><p>Even amidst challenging market conditions, Rakurai has established itself as one of Solana's fastest-growing validators. Since late January, their network stake has surged by an impressive 390%, growing from approximately 17,960 SOL to over 88,080 SOL.</p><figure class="kg-card kg-image-card"><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfIc30mQuxiinaaxeMfd187tmUfnh8UI-Lk9rpYvOntw7EvwCyFy6x56uWhPFDwDM11iCkwPzVON0et56VkAd4FqY3h4E63d1BYkqVA-QWn_6NKMF6XztM-rprRIyRsa6iXikt0sQ?key=uQUCh4_wT2xJOoN3KF80tR5t" class="kg-image" alt loading="lazy" width="1600" height="610"></figure><p><em>Img: Rukarai Stake Growth since 25th of January 2025</em></p><h2 id="looking-forward"><strong>Looking Forward</strong></h2><p>Our investment in Rakurai reflects our commitment to pushing the boundaries of what's possible in blockchain infrastructure. We're excited to support the team to develop products that significantly increase Solana throughput, benefiting users, stakers, and node operators throughout the ecosystem.</p><p>For Solana validators interested in boosting block rewards or applications seeking higher bandwidth, we recommend reaching out directly to the Rakurai team via Rakurai.io.</p><h2 id="about-rakurai"><strong>About Rakurai</strong></h2><p>Rakurai is supercharging transaction landing on Solana, boosting block rewards for node operators and stakers. Their technology allows applications to increase bandwidth while drastically reducing latency. Leading web3 funds including Anagram, Cyber.Fund, Slow Ventures, Colosseum, Crypto.com, and infrastructure providers like P2P.org and GlobalStake participated in their $3M fundraise.</p><p>Web: <a href="www.Rakurai.io" rel="noreferrer">Rakurai.io</a> </p><p>Twitter: @Rakurai_io</p>
from p2p validator