Phoenix Integration StagingStaging
withdraw
Ember withdraw: converts the Phoenix-side output mint back to the input mint; `None` = full balance.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | `glam_state` account required by the `withdraw` instruction (see program source for the full constraint). |
| glam_vault | writable | `glam_vault` account required by the `withdraw` instruction (see program source for the full constraint). |
| glam_signer | signer, writable | `glam_signer` account required by the `withdraw` instruction (see program source for the full constraint). |
| integration_authority | read-only | `integration_authority` account required by the `withdraw` instruction (see program source for the full constraint). |
| cpi_program | read-only | `cpi_program` account required by the `withdraw` instruction (see program source for the full constraint). |
| glam_protocol_program | read-only | `glam_protocol_program` account required by the `withdraw` instruction (see program source for the full constraint). |
| system_program | read-only | `system_program` account required by the `withdraw` instruction (see program source for the full constraint). |
| ember_state | read-only | `ember_state` account required by the `withdraw` instruction (see program source for the full constraint). |
| input_mint | read-only | `input_mint` account required by the `withdraw` instruction (see program source for the full constraint). |
| output_mint | writable | `output_mint` account required by the `withdraw` instruction (see program source for the full constraint). |
| input_token_account | writable | `input_token_account` account required by the `withdraw` instruction (see program source for the full constraint). |
| output_token_account | writable | `output_token_account` account required by the `withdraw` instruction (see program source for the full constraint). |
| ember_vault | writable | `ember_vault` account required by the `withdraw` instruction (see program source for the full constraint). |
| token_program | read-only | `token_program` account required by the `withdraw` instruction (see program source for the full constraint). |
Arguments
| Argument | Type | Notes |
|---|---|---|
| withdraw_params | WithdrawParams |