From 82b2485bd8a0eada888f82c599d836dc3da743b6 Mon Sep 17 00:00:00 2001 From: Cian <96416801+NatureLab@users.noreply.github.com> Date: Thu, 13 Oct 2022 22:40:22 +0800 Subject: [PATCH] Cian:add btc.b pool. (#373) --- src/adaptors/cian/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/adaptors/cian/index.js b/src/adaptors/cian/index.js index 6680c858bf..f1935dcc64 100644 --- a/src/adaptors/cian/index.js +++ b/src/adaptors/cian/index.js @@ -1,10 +1,12 @@ const axios = require('axios'); -const apiUrl = 'https://data.cian.app/api/v1/staking_avax/apr'; +const apiUrl_avax = 'https://data.cian.app/api/v1/staking_avax/apr'; +const apiUrl_btc = 'https://data.cian.app/api/v1/staking_btc/apr'; async function fetch() { - const response = (await axios.get(apiUrl)).data.data; - return response; + const response_avax = (await axios.get(apiUrl_avax)).data.data; + const response_btc = (await axios.get(apiUrl_btc)).data.data; + return [...response_avax, ...response_btc]; } const main = async () => {