Skip to content

Commit 5572210

Browse files
authored
Merge pull request #1889 from bob-collective/merkl-remove-past-and-uniswap-pools
Merkl: remove past and uniswap pools
2 parents 2b7db80 + 91d2855 commit 5572210

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/adaptors/merkl/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { networks } = require('./config');
55

66
// Protocols that should not be listed under Merkl
77
// as they already have their own adapters.
8-
const protocolsBlacklist = ['euler', 'crosscurve', 'aerodrome', 'gamma'];
8+
const protocolsBlacklist = ['euler', 'crosscurve', 'aerodrome', 'gamma', 'uniswap'];
99

1010
// Allow specific pools from blacklisted protocols
1111
const poolsWhitelist = [
@@ -72,6 +72,7 @@ const main = async () => {
7272
pool: `${poolAddress}-merkl`,
7373
chain: chain,
7474
project: project,
75+
poolMeta: pool.status === 'PAST' ? 'past' : undefined,
7576
symbol: symbol,
7677
tvlUsd: tvlUsd ?? 0,
7778
apyReward: apyReward ?? 0,

src/handlers/triggerEnrichment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ const main = async () => {
4040
return !isNaN(date) && date > new Date(); // keep if valid future date
4141
});
4242

43+
// remove past Merkl pools
44+
data = data.filter((p) => !(p.project === 'merkl' && p.poolMeta === 'past'));
45+
4346
// ---------- add additional fields
4447
// for each project we get 3 offsets (1D, 7D, 30D) and calculate absolute apy pct-change
4548
console.log('\nadding pct-change fields');

0 commit comments

Comments
 (0)