Skip to content

Commit

Permalink
Mars Protocol adaptor update (#1494)
Browse files Browse the repository at this point in the history
Remove pools that have the deposit disabled or are deprecated
  • Loading branch information
linkielink committed Sep 6, 2024
1 parent 0cd2eb2 commit 5de0b7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/adaptors/mars-protocol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ async function apy() {
.times(price)
.toNumber();

if (tvlUsd < 10_000 || !currentParams.credit_manager.whitelisted)
if (
tvlUsd < 10_000 ||
!currentParams.credit_manager.whitelisted ||
!currentParams.red_bank.deposit_enabled
)
return;

apyData.push({
Expand Down

0 comments on commit 5de0b7c

Please sign in to comment.