From 36b29d0d9f792150f27c262db833303e7baf8fb8 Mon Sep 17 00:00:00 2001 From: slasher125 Date: Fri, 29 Nov 2024 10:03:40 +0400 Subject: [PATCH] compx rename --- src/adaptors/{compx => compx-yield}/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename src/adaptors/{compx => compx-yield}/index.js (70%) diff --git a/src/adaptors/compx/index.js b/src/adaptors/compx-yield/index.js similarity index 70% rename from src/adaptors/compx/index.js rename to src/adaptors/compx-yield/index.js index 3049db6419..86f1c40433 100644 --- a/src/adaptors/compx/index.js +++ b/src/adaptors/compx-yield/index.js @@ -1,9 +1,11 @@ const utils = require('../utils'); const poolsFunction = async () => { - return await utils.getData( + const pools = await utils.getData( 'https://api-general.compx.io/api/defillama/yield-farms' ); + + return pools.map((i) => ({ ...i, project: 'compx-yield' })); }; module.exports = {