unstake_redeem
Unstake TLP and redeem underlying tokens in one transaction, then call claim() to receive the collateral.
Instructions
Unstake and immediately redeem TLP for underlying tokens in one transaction. ⚠️ This does NOT return tokens to your wallet directly — you must call claim() afterwards to receive the underlying collateral. Requires PRIVATE_KEY in .env.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share | No | Amount of shares to unstake and redeem (raw integer). Omit to unstake and redeem all. | |
| poolIndex | Yes | LP pool index. '0' = mTLP pool, '1' = iTLP pool. Must match stakePoolIndex. | |
| stakePoolIndex | Yes | Stake pool index. '0' = mTLP stake pool, '1' = iTLP stake pool. |