πedit_controller
Permissionned - Update one or multiple properties of controller in a single call
Flow
Parameters
{
redeemable_global_supply_cap: Option<u128>,
}Accounts in
// ...
#[derive(Accounts)]
pub struct EditController<'info> {
/// #1 Authored call accessible only to the signer matching Controller.authority
pub authority: Signer<'info>,
/// #2 The top level UXDProgram on chain account managing the redeemable mint
#[account(
mut,
seeds = [CONTROLLER_NAMESPACE],
bump = controller.load()?.bump,
has_one = authority @UxdError::InvalidAuthority,
)]
pub controller: AccountLoader<'info, Controller>,
}
// ...Last updated