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';