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
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const GET_PRICE_TYPES = {
NOTIONAL: 'NOTIONAL',
MESHSWAP_PAIR: 'MESHSWAP_PAIR',
WRAPPED_TOKEN: 'WRAPPED_TOKEN',
QUICKSWAP_GAMMA: 'QUICKSWAP_GAMMA',
}

const ESTIMATED_APY_TYPES = {
Expand Down Expand Up @@ -158,6 +159,7 @@ const ESTIMATED_APY_TYPES = {
APE: 'APE',
MESHSWAP: 'MESHSWAP',
APE_STAKE: 'APE_STAKE',
QUICKSWAP_GAMMA: 'QUICKSWAP_GAMMA',
}

const COLLATERAL_TYPE = {
Expand Down Expand Up @@ -196,6 +198,7 @@ const TRADING_APY_TYPES = {
MSTABLE: 'MSTABLE',
LOOKS: 'LOOKS',
APE: 'APE',
QUICKSWAP_GAMMA: 'QUICKSWAP_GAMMA',
}

const POOL_TYPES = {
Expand Down
Binary file added data/icons/dquick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icons/usdc_weth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icons/wmatic_eth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/icons/wmatic_usdc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions data/mainnet/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,48 @@
"NewPool": "0xCacF3d04C7C31782fdbc66FFD9D7519B3124ed66",
"Gauge": "0xAA59736b80cf77d1E7D56B7bbA5A8050805F5064",
"PoolId": "0xb797adfb7b268faeaa90cadbfed464c76ee599cd0002000000000000000005ba"
},
"quickGamma_MATIC_ETH_narrow": {
"Underlying": "0x02203f2351E7aC6aB5051205172D3f772db7D814",
"NewVault": "0x506337cc631726A21788B9fDFb6BE6292bA7A835",
"NewStrategy": "0x20D5A2a81a2b23EE3D4ac94EB356f962f037e65A",
"NewPool": "0x55740C3a15394EBb635bdAfcbD7Fa8E285122606",
"MasterChef": "0x20ec0d06f447d550fc6edee42121bc8c1817b97d"
},
"quickGamma_MATIC_ETH_wide": {
"Underlying": "0x81Cec323BF8C4164c66ec066F53cc053A535f03D",
"NewVault": "0x2eD9699441CE48F2AA9C03Af66510D6d72750591",
"NewStrategy": "0xC17581fd31140313e634d47c4b001E9926a06087",
"NewPool": "0xdC331E735f820a306ae74ED10F6FFDdC210D0497",
"MasterChef": "0x20ec0d06f447d550fc6edee42121bc8c1817b97d"
},
"quickGamma_MATIC_USDC_narrow": {
"Underlying": "0x04d521E2c414E6d898c6F2599FdD863Edf49e247",
"NewVault": "0xa5422F737F24b10A0928D5E7f6cf404D077e1CD1",
"NewStrategy": "0x713613550CA9dbE91fAc20fB0e8fa33F1fb5822e",
"NewPool": "0xe0F5000e14367930A4781d2cEDa450888C7de163",
"MasterChef": "0x20ec0d06f447d550fc6edee42121bc8c1817b97d"
},
"quickGamma_MATIC_USDC_wide": {
"Underlying": "0x4A83253e88e77E8d518638974530d0cBbbF3b675",
"NewVault": "0xd76BC58b95acAC968Fe0Cf9fa210Bf4bE95cd249",
"NewStrategy": "0x20EB0769422c932ad34800A0211Fa136274c4B45",
"NewPool": "0x291e6768aA66Aa2c91D6aeaA917b1E79999D92f9",
"MasterChef": "0x20ec0d06f447d550fc6edee42121bc8c1817b97d"
},
"quickGamma_USDC_ETH_narrow": {
"Underlying": "0x3Cc20A6795c4b57d9817399F68E83e71C8626580",
"NewVault": "0x548E84517b2891E0316f604f4f5326a306F1830e",
"NewStrategy": "0xD5F0e427aeD0eB51077BA4b078e6431058526Dcb",
"NewPool": "0xD94c25aD1C9F6E39a20E7Ec598B4a88062bCa268",
"MasterChef": "0x20ec0d06f447d550fc6edee42121bc8c1817b97d"
},
"quickGamma_USDC_ETH_wide": {
"Underlying": "0x6077177d4c41E114780D9901C9b5c784841C523f",
"NewVault": "0x0eFe7d1E2C286833e592e887aA48a6A65F21Ee7B",
"NewStrategy": "0x84f6AA524c74D565d5A01E0e6ad388E4246E0378",
"NewPool": "0xFcC9682E08E3B001e9516683cbAAf573aFFc6415",
"MasterChef": "0x20ec0d06f447d550fc6edee42121bc8c1817b97d"
}
}
}
Expand Down
198 changes: 198 additions & 0 deletions data/mainnet/pools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,204 @@ const addresses = require('./addresses.json')
const strat30PercentFactor = '0.7'

module.exports = [
{
chain: CHAINS_ID.MATIC_MAINNET,
id: 'quickGamma_MATIC_ETH_narrow',
type: POOL_TYPES.INCENTIVE,
tradingApyFunction: {
type: TRADING_APY_TYPES.QUICKSWAP_GAMMA,
params: [addresses.MATIC.V2.quickGamma_MATIC_ETH_narrow.Underlying],
},
contractAddress: addresses.MATIC.V2.quickGamma_MATIC_ETH_narrow.NewPool,
collateralAddress: addresses.MATIC.V2.quickGamma_MATIC_ETH_narrow.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.MATIC.miFARM],
rewardTokenSymbols: ['miFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<b>Deposit and stake:</b>
<ol class="numeric-list">
<li>
Go to&nbsp;
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.gamma.xyz/vault-detail/WMATIC-WETH-0-Narrow">
gamma
</a>
and invest <b>WMATIC</b> and/or <b>WETH</b>
</li>
<li>
Go back to this vault, hit &quot;MAX&quot; and then &quot;Deposit&quot;. Leave
&quot;Stake for rewards&quot; checked for staking
</li>
</ol>
</div>
`,
},
{
chain: CHAINS_ID.MATIC_MAINNET,
id: 'quickGamma_MATIC_ETH_wide',
type: POOL_TYPES.INCENTIVE,
tradingApyFunction: {
type: TRADING_APY_TYPES.QUICKSWAP_GAMMA,
params: [addresses.MATIC.V2.quickGamma_MATIC_ETH_wide.Underlying],
},
contractAddress: addresses.MATIC.V2.quickGamma_MATIC_ETH_wide.NewPool,
collateralAddress: addresses.MATIC.V2.quickGamma_MATIC_ETH_wide.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.MATIC.miFARM],
rewardTokenSymbols: ['miFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<b>Deposit and stake:</b>
<ol class="numeric-list">
<li>
Go to&nbsp;
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.gamma.xyz/vault-detail/WMATIC-WETH-0-Wide">
gamma
</a>
and invest <b>WMATIC</b> and/or <b>WETH</b>
</li>
<li>
Go back to this vault, hit &quot;MAX&quot; and then &quot;Deposit&quot;. Leave
&quot;Stake for rewards&quot; checked for staking
</li>
</ol>
</div>
`,
},
{
chain: CHAINS_ID.MATIC_MAINNET,
id: 'quickGamma_MATIC_USDC_narrow',
type: POOL_TYPES.INCENTIVE,
tradingApyFunction: {
type: TRADING_APY_TYPES.QUICKSWAP_GAMMA,
params: [addresses.MATIC.V2.quickGamma_MATIC_USDC_narrow.Underlying],
},
contractAddress: addresses.MATIC.V2.quickGamma_MATIC_USDC_narrow.NewPool,
collateralAddress: addresses.MATIC.V2.quickGamma_MATIC_USDC_narrow.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.MATIC.miFARM],
rewardTokenSymbols: ['miFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<b>Deposit and stake:</b>
<ol class="numeric-list">
<li>
Go to&nbsp;
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.gamma.xyz/vault-detail/WMATIC-USDC-0-Narrow">
gamma
</a>
and invest <b>WMATIC</b> and/or <b>USDC</b>
</li>
<li>
Go back to this vault, hit &quot;MAX&quot; and then &quot;Deposit&quot;. Leave
&quot;Stake for rewards&quot; checked for staking
</li>
</ol>
</div>
`,
},
{
chain: CHAINS_ID.MATIC_MAINNET,
id: 'quickGamma_MATIC_USDC_wide',
type: POOL_TYPES.INCENTIVE,
tradingApyFunction: {
type: TRADING_APY_TYPES.QUICKSWAP_GAMMA,
params: [addresses.MATIC.V2.quickGamma_MATIC_USDC_wide.Underlying],
},
contractAddress: addresses.MATIC.V2.quickGamma_MATIC_USDC_wide.NewPool,
collateralAddress: addresses.MATIC.V2.quickGamma_MATIC_USDC_wide.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.MATIC.miFARM],
rewardTokenSymbols: ['miFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<b>Deposit and stake:</b>
<ol class="numeric-list">
<li>
Go to&nbsp;
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.gamma.xyz/vault-detail/WMATIC-USDC-0-Wide">
gamma
</a>
and invest <b>WMATIC</b> and/or <b>USDC</b>
</li>
<li>
Go back to this vault, hit &quot;MAX&quot; and then &quot;Deposit&quot;. Leave
&quot;Stake for rewards&quot; checked for staking
</li>
</ol>
</div>
`,
},
{
chain: CHAINS_ID.MATIC_MAINNET,
id: 'quickGamma_USDC_ETH_narrow',
type: POOL_TYPES.INCENTIVE,
tradingApyFunction: {
type: TRADING_APY_TYPES.QUICKSWAP_GAMMA,
params: [addresses.MATIC.V2.quickGamma_USDC_ETH_narrow.Underlying],
},
contractAddress: addresses.MATIC.V2.quickGamma_USDC_ETH_narrow.NewPool,
collateralAddress: addresses.MATIC.V2.quickGamma_USDC_ETH_narrow.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.MATIC.miFARM],
rewardTokenSymbols: ['miFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<b>Deposit and stake:</b>
<ol class="numeric-list">
<li>
Go to&nbsp;
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.gamma.xyz/vault-detail/USDC-WETH-0-Narrow">
gamma
</a>
and invest <b>USDC</b> and/or <b>WETH</b>
</li>
<li>
Go back to this vault, hit &quot;MAX&quot; and then &quot;Deposit&quot;. Leave
&quot;Stake for rewards&quot; checked for staking
</li>
</ol>
</div>
`,
},
{
chain: CHAINS_ID.MATIC_MAINNET,
id: 'quickGamma_USDC_ETH_wide',
type: POOL_TYPES.INCENTIVE,
tradingApyFunction: {
type: TRADING_APY_TYPES.QUICKSWAP_GAMMA,
params: [addresses.MATIC.V2.quickGamma_USDC_ETH_wide.Underlying],
},
contractAddress: addresses.MATIC.V2.quickGamma_USDC_ETH_wide.NewPool,
collateralAddress: addresses.MATIC.V2.quickGamma_USDC_ETH_wide.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.MATIC.miFARM],
rewardTokenSymbols: ['miFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<b>Deposit and stake:</b>
<ol class="numeric-list">
<li>
Go to&nbsp;
<a target="_blank" rel="noopener noreferrer" href="https://quickswap.gamma.xyz/vault-detail/USDC-WETH-0-Wide">
gamma
</a>
and invest <b>USDC</b> and/or <b>WETH</b>
</li>
<li>
Go back to this vault, hit &quot;MAX&quot; and then &quot;Deposit&quot;. Leave
&quot;Stake for rewards&quot; checked for staking
</li>
</ol>
</div>
`,
},
{
chain: CHAINS_ID.MATIC_MAINNET,
id: 'balancer_bbamusd',
Expand Down
Loading