mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
add tvl of project pinkpea
This commit is contained in:
9
projects/pinkpea.js
Normal file
9
projects/pinkpea.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const utils = require("./helper/utils");
|
||||
|
||||
async function fetch() {
|
||||
const data = await utils.fetchURL(`https://pinkpea.finance/api/tvl`);
|
||||
console.log(data, Math.floor(Number(data.data.data.aurora_tvl)));
|
||||
return Math.floor(Number(data.data.data.aurora_tvl));
|
||||
}
|
||||
|
||||
module.exports = { fetch };
|
||||
Reference in New Issue
Block a user