-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1994 from DefiLlama/13oct-patches
13oct patches
- Loading branch information
Showing
5 changed files
with
44 additions
and
75 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
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
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 |
---|---|---|
@@ -1,35 +1,24 @@ | ||
import { Adapter } from "../adapters/types"; | ||
import { CHAIN } from "../helpers/chains"; | ||
import { univ2DimensionAdapter2 } from "../helpers/getUniSubgraph"; | ||
import { getUniV2LogAdapter } from "../helpers/uniswap"; | ||
|
||
const adapters = univ2DimensionAdapter2({ | ||
graphUrls: { | ||
[CHAIN.POLYGON]: " https://api.thegraph.com/subgraphs/name/1hive/honeyswap-polygon", | ||
[CHAIN.XDAI]: "https://api.thegraph.com/subgraphs/name/1hive/honeyswap-xdai" | ||
const adapter: Adapter = { | ||
version: 2, | ||
adapter: { | ||
[CHAIN.POLYGON]: { | ||
fetch: getUniV2LogAdapter({ | ||
factory: "0x03daa61d8007443a6584e3d8f85105096543c19c", | ||
}), | ||
start: 1622173831, | ||
}, | ||
[CHAIN.XDAI]: { | ||
fetch: getUniV2LogAdapter({ | ||
factory: "0xa818b4f111ccac7aa31d0bcc0806d64f2e0737d7", | ||
}), | ||
start: 1599191431, | ||
}, | ||
}, | ||
totalVolume: { | ||
factory: "honeyswapFactories" | ||
}, | ||
feesPercent: { | ||
type: 'volume', | ||
Fees: 0.3, | ||
UserFees: 0.3, | ||
SupplySideRevenue: 0.25, | ||
HoldersRevenue: 0, | ||
ProtocolRevenue: 0.05, | ||
Revenue: 0.05 | ||
} | ||
}, { | ||
methodology: { | ||
UserFees: "A 0.3% fee is charged for token swaps", | ||
Fees: "Trading fees are 0.3% of each swap", | ||
SupplySideRevenue: "A 0.25% of each swap is distributed to liquidity providers", | ||
Revenue: "A 0.05% trading fee goes to treasury", | ||
HoldersRevenue: "There's no revenue from trading fees for token holders", | ||
ProtocolRevenue: "A 0.05% goes to the protocol treasury" | ||
} | ||
}); | ||
adapters.adapter.polygon.start = 1622173831; | ||
adapters.adapter.xdai.start = 1599191431; | ||
}; | ||
|
||
|
||
export default adapters; | ||
export default adapter; |
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 |
---|---|---|
|
@@ -39,7 +39,7 @@ const adapter: Adapter = { | |
fetch: fetch, | ||
start: 1646784000, | ||
}, | ||
} | ||
}, | ||
} | ||
|
||
export default adapter; |
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import { Adapter } from "../adapters/types"; | ||
import volumeAdapter from "../dexs/shibaswap"; | ||
import { getDexChainFees } from "../helpers/getUniSubgraphFees"; | ||
|
||
const TOTAL_FEES = 0.003; | ||
|
||
const feeAdapter = getDexChainFees({ | ||
totalFees: TOTAL_FEES, | ||
volumeAdapter | ||
}); | ||
import { CHAIN } from "../helpers/chains"; | ||
import { getUniV2LogAdapter } from "../helpers/uniswap"; | ||
|
||
const adapter: Adapter = { | ||
version: 2, | ||
adapter: feeAdapter | ||
adapter: { | ||
[CHAIN.ETHEREUM]: { | ||
fetch: getUniV2LogAdapter({ | ||
factory: "0x115934131916c8b277dd010ee02de363c09d037c", | ||
}), | ||
start: 1625566975, | ||
}, | ||
}, | ||
}; | ||
|
||
|
||
export default adapter; |