TransferSnsTreasuryFunds: What's from_treasury

In a TransferSnsTreasuryFunds payload, there is a field from_treasury. What’s its purpose and what value should be provided?

type TransferSnsTreasuryFunds = record {
  from_treasury : int32; // <----- ??????
  to_principal : opt principal;
  to_subaccount : opt Subaccount;
  memo : opt nat64;
  amount_e8s : nat64;
};

It’s an enumerated type, to select either the ICP treasury or the SNS token treasury (e.g., CHAT, WTN, etc.) of the SNS.

1 Like

Thanks Dylan!

Both fields seem undocumented on the portal.