Skip to content

Commit

Permalink
Adding Saturn Swap TVL to DefiLlama (#11101)
Browse files Browse the repository at this point in the history
* adding saturn swap adaptor

* updating saturn swap tvl for cardano

* saturnswap: use on chain data

* bugfix

* real fix

---------

Co-authored-by: g1nt0ki <[email protected]>
  • Loading branch information
nicholas-maselli and g1nt0ki authored Aug 5, 2024
1 parent f549596 commit 6e323cc
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions projects/saturnswap/index.js
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
}
*/

0 comments on commit 6e323cc

Please sign in to comment.