Skip to content

Reedem Shares

There are two kind of redemptions:

  • Specific Assets Redemptions: the depositor receives the value of their shares in one or several assets
  • In-kind redemptions: the depositor receives a slice of all assets in the vault

Specific Assets Redemption

import { Depositor } from "@enzymefinance/sdk";
 
const redemption = Depositor.redeemSharesForSpecificAssets({
    comptrollerProxy,
    recipient,
    sharesQuantity,
    payoutAssets,
    payoutPercentages,
});
 
await walletClient.sendTransaction(redemption.params);
ParameterDescription
comptrollerProxyAddress of comptrollerProxy
recipientAddress of the recipient of the redemption. Typically, this is the depositor.
sharesQuantityNumber of shares (18 decimals)
payoutAssetsList of asset addresses
payoutPercentagesList of payout percentages (in bps)

In-Kind Redemption

import { Depositor } from "@enzymefinance/sdk";
 
const redemption = Depositor.redeemSharesInKind({
    comptrollerProxy,
    recipient,
    sharesQuantity,
    additionalAssets,
    assetsToSkip,
});
 
await walletClient.sendTransaction(redemption.params);
ParameterDescription
comptrollerProxyAddress of comptrollerProxy
recipientAddress of the recipient of the redemption. Typically, this is the depositor.
sharesQuantityNumber of shares (18 decimals)
additionalAssetsList of additional asset addresses (i.e. assets that the vault owns, but that are not tracked by the vault)
assetsToSkipList of assets to skip (e.g. because they cannot be transferred)