Submitted by 0x1f8b, also found by hansfriese
The deployer can modify the values to obtain different values than expected.
The flag used in initializeReceiverWith to prevent re-initialization is fantomSender == address(0), however the provided address for that value is not checked to be different from address(0), so it could be initialized multiple times to establish that value.
This could allow minting multiple Velos into Velo.mintToRedemptionReceiver and setting the wrong value in redeemableVELO and redeemableUSDC to affect the calculations of the previewRedeem method and later receive larger amounts of tokens in lzReceive than expected.
Affected source code:
pooltypes (Velodrome) acknowledged
Alex the Entreprenerd (judge) commented:
