File tree 1 file changed +3
-5
lines changed
screens/Trading/components
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,6 @@ const TradingOperate = () => {
273
273
// if (!isValidate) {
274
274
// setIsDisabled(false);
275
275
// }
276
-
277
276
let liqPriceX = 0 ;
278
277
if ( rangeMount > 1 ) {
279
278
if ( activeTab == "long" ) {
@@ -284,13 +283,12 @@ const TradingOperate = () => {
284
283
liqPriceX =
285
284
( ( ( Number ( shortInput ) +
286
285
Number ( shrinkToken ( estimateData ?. min_amount_out , decimalsC ) ) ) as any ) *
287
- rangeMount *
288
286
( getAssetPrice ( ReduxcategoryAssets2 ) as any ) *
289
287
( 1 - marginConfigTokens . min_safety_buffer / 10000 ) ) /
290
288
shortOutput ;
291
289
}
292
290
}
293
-
291
+ console . log ( Number ( shrinkToken ( estimateData ?. min_amount_out , decimalsC ) ) ) ;
294
292
// const total_debt =
295
293
// (shrinkToken(ReduxcategoryAssets2.margin_debt.balance, decimalsD) as any) * priceD;
296
294
// const total_hp_fee =
@@ -655,10 +653,10 @@ const TradingOperate = () => {
655
653
< div className = "flex items-center justify-between text-sm mb-4" >
656
654
< div className = "text-gray-300" > Fee</ div >
657
655
< div className = "flex items-center justify-center" >
658
- < p className = "border-b border-dashed border-dark-800" > { Fee . fee } </ p >
656
+ < p className = "border-b border-dashed border-dark-800" > { Fee . fee . toFixed ( 6 ) } </ p >
659
657
NEAR
660
658
< span className = "text-xs text-gray-300 ml-1.5" >
661
- (${ Fee . fee * ( Fee . price || 0 ) } )
659
+ (${ ( Fee . fee * ( Fee . price || 0 ) ) . toFixed ( 6 ) } )
662
660
</ span >
663
661
</ div >
664
662
</ div >
You can’t perform that action at this time.
0 commit comments