Skip to content

Commit

Permalink
fix: remove openFeeAmount logic
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Jan 12, 2025
1 parent 41bd5f5 commit 8eec0bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions screens/Trading/components/TradingOperate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,7 @@ const TradingOperate: React.FC<TradingOperateProps> = ({ onMobileClose, id }) =>
const openFeeAmount = (inputAmount * config.open_position_fee_rate) / 10000;
const rangeMountSafty =
+config.max_leverage_rate == +rangeMount ? +rangeMount * 0.999 : +rangeMount;
const adjustedInputAmount =
inputAmount * inputUsdCharcate2 * rangeMountSafty - openFeeAmount * inputUsdCharcate2;
const adjustedInputAmount = inputAmount * inputUsdCharcate2 * rangeMountSafty;
const inputUsdSetter = tab === "long" ? setLongInputUsd : setShortInputUsd;

// set input usd
Expand Down

0 comments on commit 8eec0bf

Please sign in to comment.