Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Fix in flight withdrawal qty in db (#107)
Browse files Browse the repository at this point in the history
* fix: in-flight quantity recorded in db on withdraw
Co-authored-by: Sebastien Verreault <sebver@pm.me>
  • Loading branch information
sebastienverreault authored Jul 4, 2022
1 parent 9affef3 commit cefedf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dealer/src/OkexPerpetualSwapStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,11 @@ export class OkexPerpetualSwapStrategy implements HedgingStrategy {

const bookingResult = await withdrawBookKeepingCallback(
withdrawOnChainAddress,
transferSizeInBtc,
withdrawArgs.quantity,
)
this.logger.debug(
{ transferSizeInBtc, bookingResult },
"withdrawBookKeepingCallback() returned: {depositResult}",
{ withdrawOnChainAddress, transferSizeInBtc: withdrawArgs.quantity, bookingResult },
"withdrawBookKeepingCallback() returned: {bookingResult}",
)
if (!bookingResult.ok) {
return { ok: false, error: bookingResult.error }
Expand Down

0 comments on commit cefedf4

Please sign in to comment.