From 2c018c7697a20805adbef1632db9bd399910402d Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Thu, 9 May 2024 15:47:52 -0600 Subject: [PATCH 1/2] chore: v3 tvl --- projects/sundaeswap-v3/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 projects/sundaeswap-v3/index.js diff --git a/projects/sundaeswap-v3/index.js b/projects/sundaeswap-v3/index.js new file mode 100644 index 000000000000..0b6c0ddf47ac --- /dev/null +++ b/projects/sundaeswap-v3/index.js @@ -0,0 +1,16 @@ +const { getAdaInAddress } = require('../helper/chain/cardano') + +async function tvl(){ + const ammLocked = await getAdaInAddress("addr1x8srqftqemf0mjlukfszd97ljuxdp44r372txfcr75wrz26rnxqnmtv3hdu2t6chcfhl2zzjh36a87nmd6dwsu3jenqsslnz7e") + const orderBookLocked = await getAdaInAddress("addr1w8ax5k9mutg07p2ngscu3chsauktmstq92z9de938j8nqacprc9mw") + return { + "cardano": ammLocked * 2 + orderBookLocked + } +} + +module.exports={ + timetravel: false, + cardano:{ + tvl + } +} From 01d4fbc22008aadc0df693be3b69ecd1a8e464a8 Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Thu, 9 May 2024 15:58:52 -0600 Subject: [PATCH 2/2] chore: add v3 contract tvl --- projects/sundaeswap-v3/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/sundaeswap-v3/index.js b/projects/sundaeswap-v3/index.js index 0b6c0ddf47ac..ab3b6a2c625d 100644 --- a/projects/sundaeswap-v3/index.js +++ b/projects/sundaeswap-v3/index.js @@ -2,9 +2,9 @@ const { getAdaInAddress } = require('../helper/chain/cardano') async function tvl(){ const ammLocked = await getAdaInAddress("addr1x8srqftqemf0mjlukfszd97ljuxdp44r372txfcr75wrz26rnxqnmtv3hdu2t6chcfhl2zzjh36a87nmd6dwsu3jenqsslnz7e") - const orderBookLocked = await getAdaInAddress("addr1w8ax5k9mutg07p2ngscu3chsauktmstq92z9de938j8nqacprc9mw") + // const orderBookLocked = await getAdaInAddress("addr1w8ax5k9mutg07p2ngscu3chsauktmstq92z9de938j8nqacprc9mw") return { - "cardano": ammLocked * 2 + orderBookLocked + "cardano": ammLocked * 2 } }