The claimAndSwap and _swapUnderlyingToAsset functions are key components of the strategy’s operations, handling token claims from the transmuter and swaps between WETH and alETH through the RamsesRouter. These functions involve interactions with external contracts and rely on price-sensitive operations that are time-dependent.
The deadline for swaps uses block.timestamp without a buffer, which can lead to reverts or vulnerabilities on both congested networks and under specific Arbitrum batching/sequencing scenarios.
Here are the functions: https://github.com/Cyfrin/2024-12-alchemix/blob/main/src/StrategyArb.sol#L71-L88
Here is swapExactTokensForTokens: https://github.com/Cyfrin/2024-12-alchemix/blob/main/src/interfaces/IRamses.sol
Transactions may fail or revert due to network latency or Arbitrum’s batching delays.
Impacts real-time usability, especially during network congestion. Front-running or sandwich attacks are possible if swaps involve highly volatile tokens or low-liquidity paths. Arbitrum’s centralized sequencer could inadvertently amplify this risk until decentralization occurs.
Manual Review
Include a buffer (e.g., 15–30 seconds) to account for Arbitrum’s sequencing delays and reduce failures due to tight deadlines.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.