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

Commit

Permalink
Feat: allow hedgind bounds to be updated (#151)
Browse files Browse the repository at this point in the history
* Feat: allow hedgind bounds to be updated (#151)
Co-authored-by: Sebastien Verreault <[email protected]>
  • Loading branch information
sebastienverreault authored Nov 17, 2022
1 parent 749ec1e commit 6ca43c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dealer/src/OkexPerpetualSwapStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ export class OkexPerpetualSwapStrategy implements HedgingStrategy {
)
} else if (
exposureInUsd >
totalCollateralInUsd * hedgingBounds.HIGH_BOUND_LEVERAGE * 0.90
totalCollateralInUsd * hedgingBounds.HIGH_BOUND_LEVERAGE * 0.9
) {
const newCollateralInUsd =
exposureInUsd / hedgingBounds.HIGH_SAFEBOUND_LEVERAGE
Expand All @@ -1210,7 +1210,7 @@ export class OkexPerpetualSwapStrategy implements HedgingStrategy {
result.out.transferSizeInBtc = roundBtc(
result.out.transferSizeInUsd / btcPriceInUsd,
)
}
}
// else if (
// totalCollateralInUsd <
// usedCollateralInUsd * hedgingBounds.LOW_BOUND_LEVERAGE
Expand Down

0 comments on commit 6ca43c3

Please sign in to comment.