deposit — YieldWithdrawParams and YieldWithdrawResult are type aliases for YieldDepositParams and YieldDepositResult.
Transactions execute sequentially. A transaction confirmed as failed on-chain stops execution with .failed; a confirmation timeout stops execution with .partialSuccess.
The wallet address is resolved from your Portal instance for the chain the yield resolves to — there is no address parameter.
Parameters
YieldWithdrawParams (alias for YieldDepositParams):
YieldSubmitOptions:
Returns
YieldWithdrawResult (alias for YieldDepositResult):
Throws
Throws
YieldXyzError — the same cases as deposit, including invalidChainId, noYieldForChainToken, yieldNotFound, addressUnavailable, noTransactions, unsupportedNetwork, transactionFailed, and apiError.
Example Usage