Submitted by KIntern_NA, also found by carrotsmuggler, deadrxsezzz, and cccz (1, 2)
The depositYBLendSGLLockXchainTOLP() function attempts to lend into Singularity, then withdraws the Singularity tokens cross-chain to lock and participate on the destination chain. The Singularity tokens are wrapped as TOFT tokens to facilitate cross-chain transfer.
This function calls _withdrawToChain() with the unwrap parameter set to false, indicating that TOFT-wrapped Singularity tokens will not be unwrapped upon receipt on the destination chain.
However, the TapiocaOptionLiquidityProvision.lock() function attempts to acquire YieldBoxs shares of the original Singularity tokens. Therefore, upon receiving wrapped Singularity tokens on the destination chain, it should unwrap these tokens to facilitate the execution of subsequent actions.
depositYBLendSGLLockXchainTOLP() will fail to execute the locking process after receiving wrapped Singularity tokens cross-chain.
depositYBLendSGLLockXchainTOLP() should call _withdrawToChain() with unwrap set to true.
Context
cryptotechmaker (Tapioca) confirmed and commented:
