Skip to content

Commit

Permalink
feat: add test code
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Feb 4, 2025
1 parent b51f5d6 commit 0c037c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/Trading/components/TradingOperate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ const TradingOperate: React.FC<TradingOperateProps> = ({ onMobileClose, id }) =>
shrinkToken(temp2, asset.metadata.decimals + asset.config.extra_decimals),
);
const scale = marginConfig.pending_debt_scale / 10000;
const availableLiquidityForMargin = availableLiquidity * scale;
const availableLiquidityForMargin = availableLiquidity;
// asset.config.min_borrowed_amount;
if (new Decimal(debt_amount || 0).gte(availableLiquidityForMargin || 0)) {
return {
Expand Down

0 comments on commit 0c037c7

Please sign in to comment.