Skip to content

Commit 00b7eb2

Browse files
authored
Add adapter: minswap (#1212)
* add minswap * minswap adapter: update rewardTokens
1 parent abb961a commit 00b7eb2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/adaptors/minswap/index.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const axios = require('axios');
2+
3+
const API_URL = 'https://api-mainnet-prod.minswap.org/defillama/yield-server';
4+
5+
const apy = async () => {
6+
const data = (await axios.get(API_URL)).data;
7+
return data.map((d) => {
8+
return {
9+
pool: `${d.pool}-cardano`,
10+
chain: "Cardano",
11+
project: "minswap",
12+
symbol: d.symbol,
13+
tvlUsd: d.tvlUsd,
14+
apyBase: d.apyBase,
15+
apyReward: d.apyReward,
16+
rewardTokens: d.rewardTokens,
17+
};
18+
});
19+
};
20+
21+
module.exports = {
22+
timetravel: false,
23+
apy: apy,
24+
url: 'https://app.minswap.org/farm',
25+
};

0 commit comments

Comments
 (0)