set active set to be always true

This commit is contained in:
fmtabbara
2022-12-09 10:42:38 +00:00
parent ecc89ced08
commit e10f291ee9
2 changed files with 3 additions and 3 deletions
@@ -63,7 +63,7 @@ pub async fn mixnode_reward_estimation(
pub async fn compute_mixnode_reward_estimation(
mix_id: u32,
performance: Option<Performance>,
active_in_rewarded_set: Option<bool>,
_active_in_rewarded_set: Option<bool>,
pledge_amount: Option<u64>,
total_delegation: Option<u64>,
interval_operating_cost: Option<Coin>,
@@ -72,7 +72,7 @@ pub async fn compute_mixnode_reward_estimation(
) -> Result<RewardEstimationResponse, BackendError> {
let request_body = ComputeRewardEstParam {
performance,
active_in_rewarded_set,
active_in_rewarded_set: Some(true),
pledge_amount,
total_delegation,
interval_operating_cost,
@@ -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';