Skip to content

Commit

Permalink
feat(factor-v2): add redacted strategy-adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasriat committed Nov 29, 2023
1 parent 91d65d9 commit 4e8b82c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/adaptors/factor-v2/strategy-adapter/redacted-adapter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { default: axios } = require('axios');

async function getPxGMXApr() {
const response = await axios.get(
'https://pirex.io/_next/data/33VnMjJ28usC4n5WCEd0z/vaults.json',

);
const apr = parseFloat(response.data.pageProps.apy.pxGMX);

return apr;
}

module.exports = { getPxGMXApr };

0 comments on commit 4e8b82c

Please sign in to comment.