Operation - Redemption
The Redeem operation within the TroveManager component of the Satoshi Protocol SDK allows users to exchange their satUSD stablecoins for an equivalent amount of collateral at the current redemption rate. This function is crucial for users who wish to exit their investment positions by converting their stablecoins back into the original collateral asset, typically during favorable market conditions.
Key Steps
Estimate Redeem Amount:
Determine the amount of satUSD stablecoins you wish to redeem. This should be specified using the
parseUnits
function, which converts the human-readable amount into the smallest unit of the debt token based on its decimals.
Execute Redeem Transaction:
Call the
doRedeem
method on the TroveManager with the specified collateral and the amount of satUSD stablecoins to be redeemed. This operation interacts with the blockchain to exchange the stablecoins for collateral.
Example
Last updated