We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac154cc commit b7fc25fCopy full SHA for b7fc25f
1 file changed
src/oracles/collectors/PythCollector.ts
@@ -71,7 +71,7 @@ export class PythCollector extends AbstractCollector {
71
assets.push(supplyAsset);
72
}
73
74
- if (assets.find((a) => a?.assetId === withdrawAsset.assetId)) {
+ if (!assets.find((a) => a?.assetId === withdrawAsset.assetId)) {
75
assets.push(withdrawAsset);
76
77
if (collateralToDebt && assets.length == 1) {
0 commit comments