From 6e323cc513d48e79106d1e6c36b92ae390d56c70 Mon Sep 17 00:00:00 2001 From: Nicholas Maselli Date: Mon, 5 Aug 2024 10:34:51 -0400 Subject: [PATCH] Adding Saturn Swap TVL to DefiLlama (#11101) * adding saturn swap adaptor * updating saturn swap tvl for cardano * saturnswap: use on chain data * bugfix * real fix --------- Co-authored-by: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> --- projects/saturnswap/index.js | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 projects/saturnswap/index.js diff --git a/projects/saturnswap/index.js b/projects/saturnswap/index.js new file mode 100644 index 000000000000..d9a275ed698e --- /dev/null +++ b/projects/saturnswap/index.js @@ -0,0 +1,52 @@ +const { sumTokensExport } = require('../helper/chain/cardano') + +module.exports = { + timetravel: false, + cardano: { + tvl: sumTokensExport({ scripts: ['addr1zyd0sj57d9lpu7cy9g9qdurpazqc9l4eaxk6j59nd2gkh4275jq4yvpskgayj55xegdp30g5rfynax66r8vgn9fldndsqzf5tn'] },), // 0x0f4b4f7f7e507f3b6e9e954d5f6f3f8f7fa06e0f + } +} + +/* +// graph query for info +https://api.saturnswap.io/v1/graphql +query { + pools(first: 1000, order: { pool_stats: { tvl: DESC } }) { + edges { + node { + lp_fee_percent + name + pool_stats { + tvl + user_fees_earned_1d + updated_at + volume_1d + reserve_token_two + reserve_token_one + price + } + token_project_one { + asset_name + id + policy_id + name + ticker + price + decimals + } + token_project_one_id + token_project_two { + asset_name + id + policy_id + name + price + decimals + ticker + } + } + } + } +} + +*/ \ No newline at end of file