Skip to content
Business logic Audit finding Intermediate

Stargateethpoolstrategy realassets return false real assets

The strategy's realAssets() function reports the Stargate pool's currently redeemable credit rather than the full value of the LP position it holds. Because redeemable() is capped by cross-chain credit availability, the vault can underreport its assets, letting a new depositor mint shares at an artificially low price and dilute existing holders.

silver_eth Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

58113 sc high stargateethpoolstrategy realassets return false real assets

Submitted on Oct 30th 2025 at 18:22:25 UTC by @silver_eth for Audit Comp | Alchemix V3

Description

Brief / Introduction

The strategy in question incorrectly reports the value of its underlying Stargate LP position using:

Solidity
return pool.redeemable(address(this));

This function reflects only the currently redeemable (credit-backed) liquidity, not the full amount of assets actually owned by the vault. Because Stargate pools use a credit-based redemption cap, redeemable() can be significantly lower than the vault’s total LP value during periods of low cross-chain credit availability.

As a result, the vault may report phantom losses, misprice shares, and allow value extraction between depositors, ultimately causing cascading loss of user funds and protocol instability.


Vulnerability Details

In Stargate, liquidity and credit are decoupled:

  • liquidity → actual tokens deposited in the pool.
  • credit → portion of liquidity currently available for redemption (subject to cross-chain inflows and outflows).

The function pool.redeemable(address) returns:

Solidity
function redeemable(address _owner) external view returns (uint256 amountLD) {
    uint256 cap = _sd2ld(paths[localEid].credit);
    ...
    return min(_ownerLPBalance, cap);
}

Thus, if the Stargate pool’s available credit is low, the returned amount is limited by cap, even if the vault holds far more LP tokens.

However, the strategy’s realAssets()uses this number as the “real” value:

Solidity
function realAssets() public view override returns (uint256) {
    return pool.redeemable(address(this));  // ❌ incorrect
}

Why this is wrong

  • The LP tokens held by the strategy always represent its proportional ownership of the pool’s entire liquidity, not just currently redeemable credit.
  • redeemable() is a dynamic liquidity ceiling, not an ownership measure.
  • When cross-chain credits drop (e.g., heavy outbound traffic from this chain), the function can report a fraction of actual value, misrepresenting the vault’s holdings.

Consequently, the vault’s share accounting becomes desynchronized from reality — the share price and totalAssets fluctuate purely due to Stargate’s internal credit mechanics, not real asset movement.


Impact Details

1️⃣ Share Price Depression / Phantom Losses

During low credit periods, totalAssets() underreports real value. Because share price = totalAssets / totalSupply, it appears that shares have lost value, even though no funds were lost.

Users who withdraw during this period will redeem fewer tokens than they deposited — real losses caused by accounting, not market movement.


2️⃣ New Depositors Can Steal Value from Old Depositors

A malicious or lucky depositor can exploit temporary low credit to mint shares at an artificially low price.

Example (using real PoC numbers)

  1. Bob deposits 1288.33 ETH → receives 1288.33 shares

    • pool.redeemable() (credit cap) = 232.08 ETH
  2. Alice deposits 232.08 ETH. The vault computes:

    newShares = depositAmount * totalShares / totalAssets
              = 232.08 * 1288.33 / 232.08 = 1288.33 shares
    

    So Alice mints the same number of shares as Bob, despite depositing far less.

  3. When credit later restores and total assets reflect the full 1520.41 ETH, both Bob and Alice own equal shares → each entitled to ~760 ETH. ⇒ Alice profits, Bob loses — pure misaccounting.


3️⃣ Cascading Liquidations in Dependent Protocols

in alchemist, the artificial drop in totalAssets leads to:

  • lowers share value,
  • triggers liquidations,
  • forces users to pay liquidation penalties despite no real asset loss.

4️⃣ Supply Inflation via Mispriced Deposits

If credit temporarily collapses (e.g., redeemable ≈ 100 wei), new deposits mint disproportionately large shares. When credit later normalizes, share supply is inflated, permanently diluting honest depositors and destabilizing vault accounting.


References


Proof of Concept

Proof of Concept

this basic test can be placed directly in the StargatePoolStrategyTest

    function testRedeemableReturnsBadData() public {
        uint256 maxAvailableRedeemable = IStargatePool(STARGATE_ETH_POOL).redeemable(address(0));
        uint256 tvl = IStargatePool(STARGATE_ETH_POOL).tvl();
        console.log(maxAvailableRedeemable, tvl);
        //~232 ETH available, ~1288 ETH in tvl
    }

it shows that the current credit as of the fork block was less than 20% of the total tvl

The original report as published on Immunefi, by silver_eth. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the strategy used a dynamic redemption cap (redeemable()) as a measure of ownership value instead of the LP tokens' proportional claim on total pool liquidity.

Impact

The vault could report phantom losses, misprice shares, allow value extraction between depositors, and trigger liquidations in a dependent protocol, though the text only demonstrates the credit/TVL gap rather than a live theft.

What the attacker needed

Vault holds Stargate LP tokens; pool credit temporarily low; attacker deposits during that window

The fix

The strategy should value its position from the LP tokens' proportional share of total pool liquidity rather than from the redeemable credit cap.

How it was found

  1. Check the pool's redeemable amount for the zero address and compare it with the pool's total value locked.
  2. Observe that available credit was under 20% of total TVL at the fork block.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A vault holds tokens in a shared pool and tracks each person's share of the total. To price shares it asks the pool how much it could take out right now, but that pool limits withdrawals based on credit available at that moment. When the limit is low the vault looks poorer than it is, so someone depositing then gets too many shares and later takes value from earlier depositors.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by silver_eth

View all

8 more disclosed reports, best first.

More from Alchemix V3

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.