|
@@ -1475,11 +1475,11 @@ const calcFansUnitAmount = () => {
|
|
|
}
|
|
|
|
|
|
let unitAmount = baseFormData.amountValue / baseFormData.totalCount;
|
|
|
+ setUpGainAmountUsdValue({totalAmount: baseFormData.amountValue, unitPrice: unitAmount});
|
|
|
if(currentCurrencyInfo.value.currencyCode != 'USD') {
|
|
|
unitAmount = calcToken2UsdEstimate({amount: unitAmount, usdPrice: currentCurrencyInfo.value.usdPrice });
|
|
|
}
|
|
|
|
|
|
- setUpGainAmountUsdValue({totalAmount: baseFormData.amountValue, unitPrice: unitAmount});
|
|
|
return unitAmount;
|
|
|
};
|
|
|
|
|
@@ -1489,7 +1489,7 @@ const setUpGainAmountUsdValue = (params) => {
|
|
|
if(!currencyCode) return;
|
|
|
upGainCalculate({
|
|
|
params: {
|
|
|
- amountValue: totalAmount,
|
|
|
+ amountValue: +totalAmount,
|
|
|
currencyUsdPrice: usdPrice,
|
|
|
fansUnitAmountValue: unitPrice
|
|
|
}
|