Skip to content

Commit

Permalink
Merge pull request #904 from DefiLlama/shimmersea
Browse files Browse the repository at this point in the history
add shimmersea
  • Loading branch information
dtmkeng authored Oct 19, 2023
2 parents e72c564 + e857da8 commit 1ef682c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions dexs/shimmersea/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { SimpleAdapter } from "../../adapters/types";
import { CHAIN } from "../../helpers/chains";
import { getGraphDimensions } from "../../helpers/getUniSubgraph";
import { DEFAULT_DAILY_VOLUME_FACTORY, DEFAULT_TOTAL_VOLUME_FIELD, univ2Adapter } from "../../helpers/getUniSubgraphVolume";
const v3Endpoints = {
[CHAIN.SHIMMER_EVM]: "https://graph.shimmersea.finance/subgraphs/name/shimmersea/shimmer-dex",
}
const v3Graphs = getGraphDimensions({
graphUrls: v3Endpoints,
totalVolume: {
factory: "uniswapFactories",
field: DEFAULT_TOTAL_VOLUME_FIELD,
},
dailyVolume: {
factory: DEFAULT_DAILY_VOLUME_FACTORY,
field: "dailyVolumeUSD",
},
feesPercent: {
type: "volume",
UserFees: 0.3,
ProtocolRevenue: 0,
SupplySideRevenue: 0.15,
HoldersRevenue: 0.075,
Revenue: 0.075,
Fees: 0.3
}
});

const adapter: SimpleAdapter = {
adapter: Object.keys(v3Endpoints).reduce((acc, chain) => {
return {
...acc,
[chain]: {
fetch: v3Graphs(chain),
start: async () => 1696377600,
}
}
}, {})
}
export default adapter;

0 comments on commit 1ef682c

Please sign in to comment.