IxGateSet: Log AccountBuybackFeesWithMngo state

This commit is contained in:
Christian Kamm 2023-03-20 13:31:56 +01:00
parent fd0bd1d6d5
commit d1e3da2b75
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ pub fn ix_gate_set(ctx: Context<IxGateSet>, ix_gate: u128) -> Result<()> {
log_if_changed(&group, ix_gate, IxGate::TokenRegisterTrustless);
log_if_changed(&group, ix_gate, IxGate::TokenUpdateIndexAndRate);
log_if_changed(&group, ix_gate, IxGate::TokenWithdraw);
log_if_changed(&group, ix_gate, IxGate::AccountBuybackFeesWithMngo);
group.ix_gate = ix_gate;

View File

@ -187,6 +187,7 @@ pub enum IxGate {
TokenUpdateIndexAndRate = 46,
TokenWithdraw = 47,
AccountBuybackFeesWithMngo = 48,
// NOTE: Adding new variants requires matching changes in ts and the ix_gate_set instruction.
}
// note: using creator instead of admin, since admin can be changed