pub fn configure_token(
    ctx: Context<'_, '_, '_, '_, ConfigureToken<'_>>,
    update: Option<TokenConfigUpdate>
) -> Result<()>
Expand description

Set the configuration for a token, which allows it to be used as a position in a margin account.

The configuration for a token only applies for the associated airspace, and changing any configuration requires the airspace authority to sign.

The account storing the configuration will be funded if not already. If a None is provided as the updated configuration, then the account will be defunded.