Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add quickswap gamma pools #248

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Crypto-One-dev
Copy link
Contributor

No description provided.

Copy link
Contributor

@CryptJS13 CryptJS13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments

rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.MATIC.miFARM],
rewardTokenSymbols: ['miFARM', 'WMATIC', 'dQUICK'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only miFARM, same comment for the other pools

<ol class="numeric-list">
<li>
Go to&nbsp;
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.exchange/#/pools?currency0=${addresses.MATIC.WMATIC}&currency1=${addresses.MATIC.pWETH}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong link, we need a link to quickswap.gamma.xyz for the correct pool. Same for the other pools

chain: CHAINS_ID.MATIC_MAINNET,
logoUrl: './icons/wmatic_eth.png',
apyIconUrls: ['./icons/quick.png', './icons/wmatic.png'],
apyTokenSymbols: ['dQUICK', 'WMATIC'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all the pools earn wMATIC, please check and only add for the pools that get wMATIC

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://quickswap.gamma.xyz/dashboard
Via this link, all pools are getting dQuick and wMatic.

let totalSupply = get(response, `data.${poolAddress.toLowerCase()}.totalSupply`, 0)
totalSupply = new BigNumber(totalSupply).dividedBy(new BigNumber(10).pow(18))
if (totalSupply && totalSupply > 0) {
price = parseFloat(tvlUSD) / totalSupply.toFixed(2, 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to not round the totalSupply number, can just use toFixed()

@@ -12,7 +12,7 @@ const getPrice = async poolAddress => {
let totalSupply = get(response, `data.${poolAddress.toLowerCase()}.totalSupply`, 0)
totalSupply = new BigNumber(totalSupply).dividedBy(new BigNumber(10).pow(18))
if (totalSupply && totalSupply > 0) {
price = parseFloat(tvlUSD) / totalSupply.toFixed(2, 1)
price = parseFloat(tvlUSD) / totalSupply.toFixed(2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still rounding to 2 decimals, which is not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants