Skip to content

Commit

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

async function getTenderApr(underlyingTokenAddress) {
const apr = await getAprFromDefillamaPool(
apy,
underlyingTokenAddress
);

return apr;
}

module.exports = { getTenderApr };

0 comments on commit a153d7e

Please sign in to comment.