-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
f549596
commit 6e323cc
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
*/ |