galleon-symbiotic-withdrawals
Symbiotic vault withdrawals
Resolve the vault contract
Identify chain, vault/version, collateral, depositor, claimer, amount/unit and requested epoch. Read the verified deployment rather than assuming all curator vaults share settings. This workflow concerns vault collateral; rewards and network middleware are distinct. A network's Relay integration is not a cross-chain swap route.
Read vault collateral(), epochDuration(), currentEpoch(), active stake/shares, activeBalanceOf(account), delegator, slasher and deposit access/limits where relevant. Match these functions to the vault's deployed version. Record block timestamp and epoch origin/boundaries. Read delegator allocations, network/operator opt-ins, slash/veto policy and pending penalties before presenting restaking exposure.
Track the actual withdrawal
For the selected claimer and epoch, read withdrawalsOf(epoch, claimer) and isWithdrawalsClaimed(epoch, claimer) from the version-matched interface. Preserve the Withdraw event's claimer, active shares burned and withdrawal shares minted. A withdrawal can be requested for a different claimer; depositor identity alone does not prove claim authority.
- An assets request uses
withdraw(claimer, amount); a share request usesredeem(claimer, shares). Both queue collateral instead of transferring it immediately. - In the reviewed V1 implementation, a request during epoch k is recorded under withdrawal epoch k+1. Preserve that stored epoch when calling
withdrawalsOforclaim; passing the request epoch k is wrong. It becomes claimable only after epoch k+1 ends. Read actual boundaries; the wait is generally between one and two epoch durations, not one duration after request. - Queued collateral remains slashable until its eligibility boundary. Re-read the epoch's remaining assets and shares after a penalty; do not promise the initially requested amount.
- Prepare
claim(recipient, epoch)or the supported batch-claim variant only for eligible, unclaimed epochs and the actual claimer. Simulate from that account with the exact recipient.