Skip to content

Commit

Permalink
πŸ”§ fix: 수수료 계산 둜직 μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunie committed Nov 27, 2024
1 parent 297cd92 commit ebbbdd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions BE/src/stockSocket/stock-price-socket.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ export class StockPriceSocketService extends BaseStockSocketDomainService {
}

private calculateFee(totalPrice: number) {
if (totalPrice <= 10000000) return Math.floor(totalPrice * 0.16);
if (totalPrice <= 10000000) return Math.floor(totalPrice * 0.0016);
if (totalPrice > 10000000 && totalPrice <= 50000000)
return Math.floor(totalPrice * 0.14);
return Math.floor(totalPrice * 0.0014);
if (totalPrice > 50000000 && totalPrice <= 100000000)
return Math.floor(totalPrice * 0.12);
return Math.floor(totalPrice * 0.0012);
if (totalPrice > 100000000 && totalPrice <= 300000000)
return Math.floor(totalPrice * 0.1);
return Math.floor(totalPrice * 0.08);
return Math.floor(totalPrice * 0.001);
return Math.floor(totalPrice * 0.0008);
}
}

0 comments on commit ebbbdd5

Please sign in to comment.