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

fix(dhedge-v2): Early return if position has been unstaked #3134

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Loading