AVS
Interface
IAlephAVS
interface IAlephAVS is IAVSRegistrar {
// View functions
function erc20Factory() external view returns (IERC20Factory);
function vaultToSlashedStrategy(address vault) external view returns (IStrategy);
function vaultToOriginalStrategy(address vault) external view returns (IStrategy);
// Vault initialization (owner only)
function initializeVault(
uint8 _classId,
address _vault,
IStrategy _lstStrategy
) external returns (IStrategy slashedStrategy);
// Allocation (operators only)
function allocate(
address _alephVault,
IAlephVaultDeposit.RequestDepositParams calldata _requestDepositParams
) external;
// Unallocation - Step 1: Request (any token holder)
function requestUnallocate(
address _alephVault,
uint256 _tokenAmount
) external returns (uint48 batchId, uint256 estAmountToRedeem);
// Unallocation - Step 2: Complete (any token holder)
function completeUnallocate(
address _alephVault,
uint256 _strategyDepositExpiry,
bytes calldata _strategyDepositSignature
) external returns (uint256 amount, uint256 shares);
// View helpers for unallocation
function calculateUnallocateAmount(
address _alephVault,
uint256 _tokenAmount
) external view returns (uint256 estimatedAmount, IStrategy strategy, IERC20 token);
function getPendingUnallocateStatus(
address _user,
address _alephVault
) external view returns (
uint256 userPendingAmount,
uint256 totalPendingAmount,
uint256 redeemableAmount,
bool canComplete
);
function calculateCompleteUnallocateAmount(
address _user,
address _alephVault
) external view returns (uint256 expectedAmount);
}Storage Layout (ERC-7201)
Operator Sets
Set ID
Name
Purpose
Functions
initializeVault
allocate
requestUnallocate
completeUnallocate
calculateUnallocateAmount
getPendingUnallocateStatus
calculateCompleteUnallocateAmount
Libraries
AlephSlashing
AlephVaultManagement
RewardsManagement
Events Reference
Last updated
Was this helpful?

