Skip to content

Commit

Permalink
fix: ask error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGwan123 committed Nov 21, 2024
1 parent 1595589 commit 67eb989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/trade/trade-ask.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class AskService implements OnModuleInit {
})
}else{
userAsset.quantity = assetBalance
userAsset.price -= Math.floor(askDto.receivedPrice + askDto.receivedAmount)
userAsset.price -= askDto.receivedPrice.toFixed(8) * askDto.receivedAmount.toFixed(8)
this.assetRepository.updateAssetPrice(userAsset, queryRunner);
}
await this.tradeRepository.createTrade(askDto, user.userId,'sell', queryRunner);
Expand Down

0 comments on commit 67eb989

Please sign in to comment.