# Configuring Withdrawals

> How an Atomist sets up withdrawals: the instant-withdrawal fuses and their order, the withdraw window, the withdraw and request fees, and the Alpha's release of scheduled withdrawals.

A depositor sees one Withdraw form. What happens behind it depends on what the Atomist configures. This page covers the setup. For the depositor's side, see [Withdrawing](https://ipor.io/docs/fusion-for-depositors/user-guide/withdrawing.md). UI terms and their contract names are in the [glossary](https://ipor.io/docs/resources.md).

### Instant-withdrawal fuses

Besides the idle balance, an instant withdrawal can pay from markets. The vault pulls from the markets on the instant-withdrawal list. Until you configure that list, instant withdrawals pay only from the idle balance.

1. **Grant the role.** `CONFIG_INSTANT_WITHDRAWAL_FUSES_ROLE` (role 900) is held by no one after a vault is cloned from the Fusion Factory. The Atomist administers the role and grants it to an account, which can be the Atomist's own.
2. **Set the list.** The holder calls `PlasmaVaultGovernance.configureInstantWithdrawalFuses` with the fuses and their parameters in the order you want. Each call replaces the whole list.

#### Why the order matters

When a `withdraw` or `redeem` exceeds the idle balance, the vault walks the list from the first entry. It stops once the shortfall is covered, and it skips a fuse that fails. The first entries therefore pay for most exits. Put the markets that exit at their booked value first (for example lending markets). Add a market with an exit fee or slippage only as a deliberate decision (see [Exit-cost notes](#exit-cost-notes)).

### The withdraw window

A scheduled withdrawal must be redeemed within the withdraw window after the Alpha releases it. The Atomist sets the window with `WithdrawManager.updateWithdrawWindow` (`ATOMIST_ROLE`). After the window ends, `redeemFromRequest` reverts and the depositor withdraws again.

### Fees

| Fee          | UI term                                          | Function                            | Role                                       |
| ------------ | ------------------------------------------------ | ----------------------------------- | ------------------------------------------ |
| Withdraw fee | Off-boarding contribution (instant withdrawal)   | `WithdrawManager.updateWithdrawFee` | `WITHDRAW_MANAGER_WITHDRAW_FEE_ROLE` (902) |
| Request fee  | Off-boarding contribution (scheduled withdrawal) | `WithdrawManager.updateRequestFee`  | `WITHDRAW_MANAGER_REQUEST_FEE_ROLE` (901)  |

The withdraw fee applies to `withdraw` and `redeem`. The request fee is taken when the depositor calls `requestShares`. `redeemFromRequest` has no withdraw fee. For the economics of the fees, see [On- and Off-boarding Contributions](https://ipor.io/docs/build-on-fusion/atomists/curating-a-fusion-vault/on-and-offboarding-contributions.md).

### The Alpha releases scheduled withdrawals

A scheduled withdrawal is not complete until the Alpha calls `WithdrawManager.releaseFunds` (`ALPHA_ROLE`). The depositor does not do this, and the app shows "Alpha is preparing assets" until it happens.

### Exit-cost notes

- **`redeem` and `redeemFromRequest` pull 2% more than they pay out.** When either needs assets from markets, the vault pulls 2% more than the amount to be paid. The surplus stays in the vault as idle balance.
- **An exit fee on the list is paid by the other holders.** Every cost of an exit lowers the share price before the payout is priced, so the exiting holder bears only a pro-rata share. A market with an exit fee or slippage on the instant-withdrawal list makes the remaining holders pay for other holders' exits. Add such a market only as a deliberate decision that accepts this, or unwind the position through the Alpha before users exit.

### Related

- [Redemption Delay and Contributions](https://ipor.io/docs/build-on-fusion/atomists/curating-a-fusion-vault/managing-redemption-delays.md): the lock after a deposit.
- [Withdrawing](https://ipor.io/docs/fusion-for-depositors/user-guide/withdrawing.md): what the depositor sees.
