Skip to content

Commit

Permalink
Merge pull request #2441 from 0xShad0w/master
Browse files Browse the repository at this point in the history
Update Nile Exchange Fee Split & Subgraph
  • Loading branch information
dtmkeng authored Feb 20, 2025
2 parents 9b36318 + 170be75 commit c2875c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion dexs/nile-exchange/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import { CHAIN } from "../../helpers/chains";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";

const adapters = univ2Adapter2({
[CHAIN.LINEA]: "https://graph-query.linea.build/subgraphs/name/nileexchange/cl-subgraph"
[CHAIN.LINEA]: "https://api.studio.thegraph.com/query/66247/nile-cl/version/latest/"
}, {
factoriesName: "factories",
dayData: "uniswapDayData",
dailyVolume: "volumeUSD",
totalVolume: "totalVolumeUSD",
});

Expand Down
12 changes: 6 additions & 6 deletions fees/nile-exchange/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ const v2Graphs = getGraphDimensions2({
},
feesPercent: {
type: "fees",
HoldersRevenue: 72,
HoldersRevenue: 92,
ProtocolRevenue: 8,
SupplySideRevenue: 20,
SupplySideRevenue: 0,
UserFees: 100, // User fees are 100% of collected fees
Revenue: 80 // Revenue is 100% of collected fees
Revenue: 100 // Revenue is 100% of collected fees
}
});
// https://docs.ramses.exchange/ramses-cl-v2/concentrated-liquidity/fee-distribution
const methodology = {
UserFees: "User pays 0.3% fees on each swap.",
ProtocolRevenue: "Revenue going to the protocol. 5% of collected fees. (is probably right because the distribution is dynamic.)",
HoldersRevenue: "User fees are distributed among holders. 75% of collected fees. (is probably right because the distribution is dynamic.)",
SupplySideRevenue: "20% of collected fees are distributed among LPs. (is probably right because the distribution is dynamic.)"
ProtocolRevenue: "Revenue going to the protocol. 8% of collected fees. (is probably right because the distribution is dynamic.)",
HoldersRevenue: "User fees are distributed among holders. 92% of collected fees. (is probably right because the distribution is dynamic.)",
SupplySideRevenue: "0% of collected fees are distributed among LPs. (is probably right because the distribution is dynamic.)"
}

const adapter: Adapter = {
Expand Down

0 comments on commit c2875c8

Please sign in to comment.