Redemption Pipe
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.
Redemption Types
Instant
Immediate
0.3%
On-chain liquidity
Time-sensitive redemptions
Standard
1-3 days
0
Request/fulfill
Large redemptions, no rush
Instant Redemption
redeem(uint256 shares, address receiver, address controller)
Instantly redeem shares for assets using liquidity provider.
/**
* @param shares Amount of shares to redeem (18 decimals)
* @param receiver Address to receive assets
* @param controller Address that owns the shares
* @return assets Amount of assets received (underlying decimals, after fees)
*/
function redeem(
uint256 shares,
address receiver,
address controller
) external returns (uint256 assets);withdraw(uint256 assets, address receiver, address controller)
Instantly withdraw specific asset amount by burning shares.
Standard Redemption
Two-step process: request, then fulfill (no fee).
requestRedeem(uint256 shares, address controller, address owner)
Submit a standard redemption request.
Check Pending Request
Preview Functions
Fee Information
Last updated