From e10f291ee975e4eb4cca608316670cd27a7dfda9 Mon Sep 17 00:00:00 2001 From: fmtabbara Date: Fri, 9 Dec 2022 10:42:38 +0000 Subject: [PATCH] set active set to be always true --- nym-wallet/src-tauri/src/operations/nym_api/status.rs | 4 ++-- .../src/pages/bonding/node-settings/apy-playground/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nym-wallet/src-tauri/src/operations/nym_api/status.rs b/nym-wallet/src-tauri/src/operations/nym_api/status.rs index 2b6b0173b9..3b3bc1bd88 100644 --- a/nym-wallet/src-tauri/src/operations/nym_api/status.rs +++ b/nym-wallet/src-tauri/src/operations/nym_api/status.rs @@ -63,7 +63,7 @@ pub async fn mixnode_reward_estimation( pub async fn compute_mixnode_reward_estimation( mix_id: u32, performance: Option, - active_in_rewarded_set: Option, + _active_in_rewarded_set: Option, pledge_amount: Option, total_delegation: Option, interval_operating_cost: Option, @@ -72,7 +72,7 @@ pub async fn compute_mixnode_reward_estimation( ) -> Result { let request_body = ComputeRewardEstParam { performance, - active_in_rewarded_set, + active_in_rewarded_set: Some(true), pledge_amount, total_delegation, interval_operating_cost, diff --git a/nym-wallet/src/pages/bonding/node-settings/apy-playground/index.tsx b/nym-wallet/src/pages/bonding/node-settings/apy-playground/index.tsx index 6cca734af0..9963d1af9d 100644 --- a/nym-wallet/src/pages/bonding/node-settings/apy-playground/index.tsx +++ b/nym-wallet/src/pages/bonding/node-settings/apy-playground/index.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect, useContext } from 'react'; import { Box, Card, CardContent, CardHeader, Grid, Typography } from '@mui/material'; import { decimalToPercentage, percentToDecimal } from '@nymproject/types'; import { ResultsTable } from 'src/components/RewardsPlayground/ResultsTable'; -import { computeMixnodeRewardEstimation, getDelegationSummary } from 'src/requests'; +import { getDelegationSummary } from 'src/requests'; import { NodeDetails } from 'src/components/RewardsPlayground/NodeDetail'; import { Inputs, CalculateArgs } from 'src/components/RewardsPlayground/Inputs'; import { AppContext, TBondedMixnode } from 'src/context';