58782 sc high rewards earned by eulerarbusdcstrategy will not be withdrawable from euler pool on arbitrum
Submitted on Nov 4th 2025 at 13:22:00 UTC by @kenzo for Audit Comp | Alchemix V3
Report ID: #58782
Report Type: Smart Contract
Report severity: High
Target: https://github.com/alchemix-finance/v3-poc/blob/immunefi_audit/src/strategies/arbitrum/EulerARBUSDCStrategy.sol
Impacts:
Permanent freezing of unclaimed yield
Permanent freezing of unclaimed royalties
Description
Brief/Intro
Rewards earned by EulerARBUSDCStrategy will not be withdrawable from Euler pool on Arbitrum.
Vulnerability Details
In the Alchemix strategy contracts, a strategy contract is deployed for every MYT contract. MYT contract is the VaultV2 contract which users deposit assets into. These assets can be deposited in strategies through allocations and then earn yield.
The problem is that in the EulerARBUSDCStrategy contract, only the initial full allocation of assets to Euler USDC on Arbitrum pool can be withdrawn because once allocation becomes zero, all deallocation call from VaultV2 will revert and EulerARBUSDCStrategy contract does not expose a function to claim earned yields from Euler. So, this yield will be locked and will not be sent to MYT contract for the users to claim
This is the EulerARBUSDCStrategy and it inherits MYTStrategy. In MYT base contract there is claim rewards function but that is not enough because when we allocate assets to Euler, we use asset not share amounts. Since if we deposit 10k USDC into Euler and earn 36 USDC after 1 month, when we withdraw 10k USDC from Euler, allocation will become 0 and not all shares will be burned in Euler and we still have 36 USDC yield assets in Euler and shares corresponding to this amount.
Also, in the VaultV2 contract, we cannot force deallocation once the current caps[id].allocation is 0 since it will revert from there.
Issue steps is:
User deposits 10k USDC into VaultV2 contract
After sometime e.g 2 hours, operator or the admin calls the allocator contract to allocate 10k USDC from VaultV2 to the
EulerARBUSDCStrategyEuler mints shares to the
EulerARBUSDCStrategyand the 10k USDC is deposited into EulerAfter sometime e.g 1 month, user wants to withdraw back 10k USDC, the contract deallocates the 10k allocated to Euler
Allocation to Euler becomes 0, 10k USDC is sent to user.
36 USDC is then locked in the Euler pool. This is the yield amount gained from the allocation amount of 10k USDC for 1 month. Only way the
EulerARBUSDCStrategycontract withdraws from Euler is, if we trigger_deallocatewhich we cannot since allocation is 0.
The forked POC demonstrates the issue, please check the logs to see the stuck USDC in Euler.
Alchemix team needs to add a function to EulerARBUSDCStrategy contract to claim rewards/withdraw yields otherwise these yields will be stuck in Euler.
Note that I have also logged this issue in another one of my reports and this time it affects another asset in scope which is the EulerARBUSDCStrategy contract.
Impact Details
Stuck yields in Euler that cannot be claimed since allocation is already depleted and since we work with assets in allocation instead of shares.
References
https://github.com/alchemix-finance/v3-poc/blob/immunefi_audit/src/strategies/arbitrum/EulerARBUSDCStrategy.sol
Proof of Concept
Proof of Concept
Paste the below codes into the EulerARBUSDCStrategy.t.sol file:
In the logs below for this test, you will see that 36 USDC (earned for 1 month on Euler) is locked in Euler and further deallocation calls will revert:
Was this helpful?