Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(dhedge-v2): Early return if position has been unstaked (#3134)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin committed Dec 12, 2023
1 parent 0116908 commit 629814b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -120,7 +120,7 @@ export abstract class DhedgeV2StakingContractPositionFetcher extends CustomContr
const matchingPosition = contractPositions.find(x =>
x.tokens.find(x => x.address == lpTokenAddress.toLowerCase()),
);
if (!matchingPosition) return null;
if (!matchingPosition || suppliedBalances[6] == true) return null;

const suppliedDht = suppliedBalances[0];
const suppliedLp = suppliedBalances[3];
Expand Down

0 comments on commit 629814b

Please sign in to comment.