Skip to content

Commit

Permalink
added minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham committed Feb 1, 2024
1 parent 4fd3661 commit 3d4a684
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/sample_showrunners/aave/aaveChannel.ts
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ export default class AaveChannel extends EPNSChannel {
}
else if (settings.index == 1 && settings.enabled == false) {
//If User settings Exist but is disabled by the user => send normal notification.
this.checkHealthFactor(subscriberObj.subscriber, 0, 3, simulate)
// Don't send any notifications.
}
// Supply APY code goes here -->
if (settings.index == 2 && settings.enabled == true) {
@@ -133,7 +133,6 @@ export default class AaveChannel extends EPNSChannel {
}
loopCounter++;
}

k++;
})
const tx = await this.sendNotification({
@@ -152,7 +151,7 @@ export default class AaveChannel extends EPNSChannel {
}
else {
// For Users who have not opted into notification setting
// this.checkHealthFactor(subscriberObj.subscriber, 0, 3, simulate)
this.checkHealthFactor(subscriberObj.subscriber, 0, 3, simulate)
}
})
} else {
@@ -305,15 +304,4 @@ export default class AaveChannel extends EPNSChannel {
return true;
}

public async testLogic(healthFactor) {

if (Number(healthFactor) >= 0 && Number(healthFactor) <= 3) {
const precision = CUSTOMIZABLE_SETTINGS.precision;
const newHealthFactor = parseFloat(healthFactor).toFixed(precision);
return true;
} else {
return false;
}
}

}

0 comments on commit 3d4a684

Please sign in to comment.