From a153d7e0a7331c81daea9e2cc135096e637d73b0 Mon Sep 17 00:00:00 2001 From: Dimas Date: Wed, 29 Nov 2023 14:27:29 +0700 Subject: [PATCH] feat(factor-v2): add tender strategy-adapter --- .../factor-v2/strategy-adapter/tender-adapter.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/adaptors/factor-v2/strategy-adapter/tender-adapter.js diff --git a/src/adaptors/factor-v2/strategy-adapter/tender-adapter.js b/src/adaptors/factor-v2/strategy-adapter/tender-adapter.js new file mode 100644 index 0000000000..1c878a220b --- /dev/null +++ b/src/adaptors/factor-v2/strategy-adapter/tender-adapter.js @@ -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 };