The RedemptionPipe handle the whole redemption process and implement ERC4626 compatibility., It supports two redemption types with different speed/fee tradeoffs. There is only one RedemptionPipe per xToken, meaning that only a single asset can be redeemed.
Instantly redeem shares for assets using liquidity provider.
/** * @paramshares Amount of shares to redeem (18 decimals) * @paramreceiver Address to receive assets * @paramcontroller Address that owns the shares * @returnassets Amount of assets received (underlying decimals, after fees) */functionredeem(uint256shares,addressreceiver,addresscontroller)externalreturns(uint256assets);