Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Jun 19, 2022
1 parent 1bc13f9 commit 1fd87f7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions projects/defikingdoms/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const { request, gql } = require("graphql-request");
const { calculateUniTvl } = require("../helper/calculateUniTvl");
const { staking } = require("../helper/staking");
const { getBlock } = require("../helper/getBlock");
const { fixHarmonyBalances, transformHarmonyAddress } = require("../helper/portedTokens");

/*
const { request, gql } = require("graphql-request");
const graphUrl =
"https://graph.defikingdoms.com/subgraphs/name/defikingdoms/dex";
const graphQuery = gql`
Expand All @@ -24,16 +25,14 @@ const transforms = {
"0xfbdd194376de19a88118e84e279b977f165d01b8": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0", //matic
// missing luna
}
*/

const factory = "0x9014B937069918bd319f80e8B3BB4A2cf6FAA5F7"
async function tvl(timestamp, _ethBlock, chainBlocks) {
const block = await getBlock(timestamp, "harmony", chainBlocks, true);
const transformAddress = addr=>{
return transforms[addr.toLowerCase()] ?? `harmony:${addr}`;
}
const balances = await calculateUniTvl(
addr => { return `harmony:${addr}`; },
chainBlocks.harmony,
addr => `harmony:${addr}`,
block,
"harmony",
factory,
0,
Expand Down

0 comments on commit 1fd87f7

Please sign in to comment.