Skip to content

Commit b7fc25f

Browse files
authored
fix(PythCollector): include withdraw asset for SW prices
1 parent ac154cc commit b7fc25f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/oracles/collectors/PythCollector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class PythCollector extends AbstractCollector {
7171
assets.push(supplyAsset);
7272
}
7373

74-
if (assets.find((a) => a?.assetId === withdrawAsset.assetId)) {
74+
if (!assets.find((a) => a?.assetId === withdrawAsset.assetId)) {
7575
assets.push(withdrawAsset);
7676
}
7777
if (collateralToDebt && assets.length == 1) {

0 commit comments

Comments
 (0)