diff --git a/packages/nns/src/canisters/governance/response.converters.ts b/packages/nns/src/canisters/governance/response.converters.ts index 4d803e905..3926f4727 100644 --- a/packages/nns/src/canisters/governance/response.converters.ts +++ b/packages/nns/src/canisters/governance/response.converters.ts @@ -1213,6 +1213,15 @@ const toSwapParameters = ( restrictedCountries: toCountries( fromNullable(swapParameters.restricted_countries), ), + maxDirectParticipationIcp: toTokens( + fromNullable(swapParameters.maximum_direct_participation_icp), + ), + minDirectParticipationIcp: toTokens( + fromNullable(swapParameters.minimum_direct_participation_icp), + ), + neuronsFundParticipation: fromNullable( + swapParameters.neurons_fund_participation, + ), }; }; diff --git a/packages/nns/src/types/governance_converters.ts b/packages/nns/src/types/governance_converters.ts index 2f2d2c2f5..2dd6dd935 100644 --- a/packages/nns/src/types/governance_converters.ts +++ b/packages/nns/src/types/governance_converters.ts @@ -557,20 +557,20 @@ export interface NeuronBasketConstructionParameters { count?: bigint; } export interface SwapParameters { - minimumParticipants?: bigint; - duration?: Duration; - neuronBasketConstructionParameters?: NeuronBasketConstructionParameters; - confirmationText?: string; - maximumParticipantIcp?: Tokens; - neuronsFundInvestmentIcp?: Tokens; - minimumIcp?: Tokens; - minimumParticipantIcp?: Tokens; - startTime?: GlobalTimeOfDay; - maximumIcp?: Tokens; - restrictedCountries?: Countries; - maxDirectParticipationIcp?: Tokens; - minDirectParticipationIcp?: Tokens; - neuronsFundParticipation?: boolean; + minimumParticipants: Option; + duration: Option; + neuronBasketConstructionParameters: Option; + confirmationText: Option; + maximumParticipantIcp: Option; + neuronsFundInvestmentIcp: Option; + minimumIcp: Option; + minimumParticipantIcp: Option; + startTime: Option; + maximumIcp: Option; + restrictedCountries: Option; + maxDirectParticipationIcp: Option; + minDirectParticipationIcp: Option; + neuronsFundParticipation: Option; } export interface SwapDistribution {