Adapter

Quickswap Fees

Quickswap is a permissionless, decentralized exchange

Sub-Adapters 1

Preview and test each sub adapter.

Quickswap (quickswap)

Metadata

ID
quickswap
name

"Quickswap"

icon
category

"dex"

description

"Quickswap is a permissionless, decentralized exchange"

feeDescription

"Trading fees are paid by traders to liquidity providers"

website

"https://quickswap.exchange"

blockchain

"Polygon"

source

"The Graph Protocol"

tokenTicker

"QUICK"

tokenCoingecko

"quick"

protocolLaunch

"2020-11-03"

tokenLaunch

"2021-02-15"

Queries

Adapter Code

Check the entire code written for the Adapter.

Source code

Showing TS source.
1export const name = 'Quickswap Fees';
2export const version = '0.1.0';
3export const license = 'MIT';
4
5export function setup(sdk: Context) {
6  async function getQuickswapData(date: string): Promise<number> {
7    const graphQuery = `query fees($date: Int!) {
8      uniswapDayDatas(where: {date: $date}) {
9        date
10        dailyVolumeUSD
11      }
12    }`;
13
14    const timestamp = sdk.date.dateToTimestamp(date);
15    const data = await sdk.graph.query('sameepsi/quickswap06', graphQuery, { date: timestamp });
16
17    const oneDayVolume = parseFloat(
18      data.uniswapDayDatas[data.uniswapDayDatas.length - 1].dailyVolumeUSD
19    );
20    const oneDay = oneDayVolume * 0.003;
21
22    return oneDay;
23  }
24
25  sdk.register({
26    id: 'quickswap',
27    queries: {
28      oneDayTotalFees: getQuickswapData,
29    },
30    metadata: {
31      name: 'Quickswap',
32      icon: sdk.ipfs.getDataURILoader('QmTW6Ch8FJoQCcjTKwmUyTZCzGEnjiW7w219zP3NPg1q6Z', 'image/png'),
33      category: 'dex',
34      description: 'Quickswap is a permissionless, decentralized exchange',
35      feeDescription: 'Trading fees are paid by traders to liquidity providers',
36      website: 'https://quickswap.exchange',
37      blockchain: 'Polygon',
38      source: 'The Graph Protocol',
39      tokenTicker: 'QUICK',
40      tokenCoingecko: 'quick',
41      protocolLaunch: '2020-11-03',
42      tokenLaunch: '2021-02-15',
43    },
44  });
45}
46

It's something off?

Report it to the discussion board on Discord, we will take care of it.

Adapter Info

Version

0.1.0

License

MIT

IPFS CID

QmXVd9zJpWZNuuzFfzyjLhkqumhAyKdgy6hTX4eyZukuTJ

CID (source)

QmXwGgjP1VRnX7vZZ2dZ5yTwmHWg9AZv2CoY92EeBDfPTo

Collections

fees

Author

mihal.eth