diff --git a/src/avs/AVSDetailsOperatorsTab.jsx b/src/avs/AVSDetailsOperatorsTab.jsx
index aa8944b0..8fb972d8 100644
--- a/src/avs/AVSDetailsOperatorsTab.jsx
+++ b/src/avs/AVSDetailsOperatorsTab.jsx
@@ -112,6 +112,7 @@ function AVSOperatorsList({ address, avsError, isAVSLoading, tvl }) {
error: undefined,
operators: [],
promotedOperators: [],
+ promotedOperatorsRate: 1,
isInputTouched: false,
isTableLoading: true,
totalPages: undefined,
@@ -217,7 +218,8 @@ function AVSOperatorsList({ address, avsError, isAVSLoading, tvl }) {
try {
const response = await rdService.getAVSPromotedOperators(address);
dispatch({
- promotedOperators: response.results
+ promotedOperators: response.results,
+ promotedOperatorsRate: response.rate
});
} catch (e) {
//TODO: handle error
@@ -280,14 +282,16 @@ function AVSOperatorsList({ address, avsError, isAVSLoading, tvl }) {
: `${((operator.strategiesTotal / tvl) * 100).toFixed(2)}%`}
- {formatUSD(operator.strategiesTotal * state.currentRate)}
+
+ {formatUSD(operator.strategiesTotal * state.promotedOperatorsRate)}
+
{formatETH(operator.strategiesTotal)}
));
- }, [navigate, state.currentRate, state.promotedOperators, tvl]);
+ }, [navigate, state.promotedOperators, state.promotedOperatorsRate, tvl]);
return (
diff --git a/src/operators/OperatorList.jsx b/src/operators/OperatorList.jsx
index eabae2ff..52691cc8 100644
--- a/src/operators/OperatorList.jsx
+++ b/src/operators/OperatorList.jsx
@@ -47,6 +47,7 @@ export default function OperatorList() {
const [state, dispatch] = useMutativeReducer(reduceState, {
operators: [],
promotedOperators: [],
+ promotedOperatorsRate: 1,
isFetchingData: false,
searchTerm: searchParams.get('search'),
error: null,
@@ -106,7 +107,8 @@ export default function OperatorList() {
try {
const response = await rdService.getPromotedOperators();
dispatch({
- promotedOperators: response.results
+ promotedOperators: response.results,
+ promotedOperatorsRate: response.rate
});
} catch (e) {
//TODO: handle error
@@ -188,14 +190,16 @@ export default function OperatorList() {
{formatNumber(operator.stakerCount)}
- {formatUSD(operator.strategiesTotal * state.rate)}
+
+ {formatUSD(operator.strategiesTotal * state.promotedOperatorsRate)}
+
{formatETH(operator.strategiesTotal)}
));
- }, [navigate, state.promotedOperators, state.rate]);
+ }, [navigate, state.promotedOperators, state.promotedOperatorsRate]);
return (