-
Notifications
You must be signed in to change notification settings - Fork 19
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
base: master
Are you sure you want to change the base?
add quickswap gamma pools #248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments
data/mainnet/pools.js
Outdated
rewardAPY: [], | ||
rewardAPR: null, | ||
rewardTokens: [addresses.MATIC.miFARM], | ||
rewardTokenSymbols: ['miFARM', 'WMATIC', 'dQUICK'], |
There was a problem hiding this comment.
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
data/mainnet/pools.js
Outdated
<ol class="numeric-list"> | ||
<li> | ||
Go to | ||
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.exchange/#/pools?currency0=${addresses.MATIC.WMATIC}¤cy1=${addresses.MATIC.pWETH}"> |
There was a problem hiding this comment.
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'], |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
No description provided.