Skip to content

Commit

Permalink
Cian:add btc.b pool. (DefiLlama#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
NatureLab authored Oct 13, 2022
1 parent 24e0d40 commit 82b2485
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/adaptors/cian/index.js
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down

0 comments on commit 82b2485

Please sign in to comment.