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 magpie #42

Merged
merged 5 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const ESTIMATED_APY_TYPES = {
BASED: 'BASED',
MOONWELL_FOLD: 'MOONWELL_FOLD',
JONES: 'JONES',
MAGPIE: 'MAGPIE',
LODESTAR_FOLD: 'LODESTAR_FOLD',
}

Expand Down
Binary file added data/icons/mgp.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/wom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions data/mainnet/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,8 @@
"UMAMI": "0x1622bF67e6e5747b81866fE0b85178a93C7F86e3",
"UWU": "0x05d35769a222AfFd6185e20F3f3676Abde56C25F",
"pGOLD": "0xF602A45812040D90B202355bdc05438918CD3FE3",
"MGP": "0xa61F74247455A40b01b0559ff6274441FAfa22A3",
"WOM": "0x7B5EB3940021Ec0e8e463D5dBB4B7B09a89DDF96",
"V2": {
"Curve_2pool_arbitrum": {
"doHardwork": false,
Expand Down Expand Up @@ -2289,6 +2291,42 @@
"NewStrategy": "0x540101eadF05e711c1a7AF259586C16126123759",
"NewPool": "0x0D443205972Cf4222D3FEfB9023f542Eb7B33a9B",
"PoolId": "2"
},
"magpie_DAI_main": {
"Underlying": "0x0Fa7b744F18D8E8c3D61B64b110F25CC27E73055",
"NewVault": "0xbF353C369Aa753b211374D7ecB286da499991C94",
"NewStrategy": "0xAfef0501Cd1e1C00e095e0E1c6B178754aCEB150",
"NewPool": "0x06Df71bD8C9d3a8d5f2ce1111EE7F59379b72b46"
},
"magpie_ETH_frxeth": {
"Underlying": "0xe62880CC6872c9E9Fb1DDd73f400850fdaBE798D",
"NewVault": "0x02Ab76B19944BdEc4d4c612468bB6aF3AC76B15D",
"NewStrategy": "0x903dF5C4C10c4e8AD218A0C41D8A51e4cde1e574",
"NewPool": "0xcf0d31C0Df29592Ec415634Dc4727f99b961E680"
},
"magpie_USDCe_main": {
"Underlying": "0x2977b0B54a76c2b56D32cef19f8ea83Cc766cFD9",
"NewVault": "0x48ad8eE28af1057Cdec42080D3Fd57b3E877d59C",
"NewStrategy": "0x143279F98F0d37725eB6C477495F482fef0CB3E4",
"NewPool": "0x6132bd5AE55873b2E42E4EeB80623B10022E9dc8"
},
"magpie_USDC_main": {
"Underlying": "0xE5232c2837204ee66952f365f104C09140FB2E43",
"NewVault": "0xc49bebC972f5390eE1EC8A69E4151838f59334Fc",
"NewStrategy": "0xC68695d12b436617928aBb6FD53e3c6047C93c75",
"NewPool": "0xc9e36DC26354C5689fe2b17A3BC5F0fF88Fe5472"
},
"magpie_USDT_main": {
"Underlying": "0x85cEBD962861be410a777755dFa06914de6af003",
"NewVault": "0x5Ef78a0966BD47dEd63034678083714b4DE6e013",
"NewStrategy": "0x9496DE9d1C2a33F029D9fdD1b8b41126953b3f22",
"NewPool": "0xC2F4cB1dEA44278A78d59792dE7EF6fA38A51A46"
},
"magpie_WOM_mwom": {
"Underlying": "0x59d8DCA660b71Ba97a16f781A40809a0fC350769",
"NewVault": "0x05518Ea14e694E5eD6afc6085548cdE8c2eB6751",
"NewStrategy": "0xB442627E420e210bC7267acAa7c7f6f4Ec843083",
"NewPool": "0x1FEC8450AD85E6b7C6377Da08B517cC0f0348E33"
}
}
},
Expand Down
132 changes: 132 additions & 0 deletions data/mainnet/pools.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,138 @@ module.exports = [
</div>
`,
},
{
chain: CHAIN_IDS.ARBITRUM_ONE,
id: 'magpie_DAI_main',
type: POOL_TYPES.INCENTIVE,
contractAddress: addresses.ARBITRUM_ONE.V2.magpie_DAI_main.NewPool,
collateralAddress: addresses.ARBITRUM_ONE.V2.magpie_DAI_main.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.ARBITRUM_ONE.iFARM],
rewardTokenSymbols: ['iFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<p> The vault deposits
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_DAI_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-DAI</a> in to a Magpie farm, earning
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.WOM}" target="_blank" rel="noopener noreferrer">WOM</a>,
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.MGP}" target="_blank" rel="noopener noreferrer">MGP</a>.
At every harvest, the earned rewards are reinvested into more
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_DAI_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-DAI</a>.
</p>
</div>
`,
},
{
chain: CHAIN_IDS.ARBITRUM_ONE,
id: 'magpie_ETH_frxeth',
type: POOL_TYPES.INCENTIVE,
contractAddress: addresses.ARBITRUM_ONE.V2.magpie_ETH_frxeth.NewPool,
collateralAddress: addresses.ARBITRUM_ONE.V2.magpie_ETH_frxeth.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.ARBITRUM_ONE.iFARM],
rewardTokenSymbols: ['iFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<p> The vault deposits
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_ETH_frxeth.Underlying}" target="_blank" rel="noopener noreferrer">LP-WETH</a> in to a Magpie farm, earning
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.WOM}" target="_blank" rel="noopener noreferrer">WOM</a>,
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.MGP}" target="_blank" rel="noopener noreferrer">MGP</a>.
At every harvest, the earned rewards are reinvested into more
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_ETH_frxeth.Underlying}" target="_blank" rel="noopener noreferrer">LP-WETH</a>.
</p>
</div>
`,
},
{
chain: CHAIN_IDS.ARBITRUM_ONE,
id: 'magpie_USDCe_main',
type: POOL_TYPES.INCENTIVE,
contractAddress: addresses.ARBITRUM_ONE.V2.magpie_USDCe_main.NewPool,
collateralAddress: addresses.ARBITRUM_ONE.V2.magpie_USDCe_main.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.ARBITRUM_ONE.iFARM],
rewardTokenSymbols: ['iFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<p> The vault deposits
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_USDCe_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-USDC.e</a> in to a Magpie farm, earning
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.WOM}" target="_blank" rel="noopener noreferrer">WOM</a>,
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.MGP}" target="_blank" rel="noopener noreferrer">MGP</a>.
At every harvest, the earned rewards are reinvested into more
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_USDCe_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-USDC.e</a>.
</p>
</div>
`,
},
{
chain: CHAIN_IDS.ARBITRUM_ONE,
id: 'magpie_USDC_main',
type: POOL_TYPES.INCENTIVE,
contractAddress: addresses.ARBITRUM_ONE.V2.magpie_USDC_main.NewPool,
collateralAddress: addresses.ARBITRUM_ONE.V2.magpie_USDC_main.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.ARBITRUM_ONE.iFARM],
rewardTokenSymbols: ['iFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<p> The vault deposits
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_USDC_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-USDC</a> in to a Magpie farm, earning
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.WOM}" target="_blank" rel="noopener noreferrer">WOM</a>,
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.MGP}" target="_blank" rel="noopener noreferrer">MGP</a>.
At every harvest, the earned rewards are reinvested into more
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_USDC_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-USDC</a>.
</p>
</div>
`,
},
{
chain: CHAIN_IDS.ARBITRUM_ONE,
id: 'magpie_USDT_main',
type: POOL_TYPES.INCENTIVE,
contractAddress: addresses.ARBITRUM_ONE.V2.magpie_USDT_main.NewPool,
collateralAddress: addresses.ARBITRUM_ONE.V2.magpie_USDT_main.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.ARBITRUM_ONE.iFARM],
rewardTokenSymbols: ['iFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<p> The vault deposits
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_USDT_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-USDT</a> in to a Magpie farm, earning
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.WOM}" target="_blank" rel="noopener noreferrer">WOM</a>,
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.MGP}" target="_blank" rel="noopener noreferrer">MGP</a>.
At every harvest, the earned rewards are reinvested into more
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_USDT_main.Underlying}" target="_blank" rel="noopener noreferrer">LP-USDT</a>.
</p>
</div>
`,
},
{
chain: CHAIN_IDS.ARBITRUM_ONE,
id: 'magpie_WOM_mwom',
type: POOL_TYPES.INCENTIVE,
contractAddress: addresses.ARBITRUM_ONE.V2.magpie_WOM_mwom.NewPool,
collateralAddress: addresses.ARBITRUM_ONE.V2.magpie_WOM_mwom.NewVault,
rewardAPY: [],
rewardAPR: null,
rewardTokens: [addresses.ARBITRUM_ONE.iFARM],
rewardTokenSymbols: ['iFARM'],
stakeAndDepositHelpMessage: `
<div class="help-message">
<p> The vault deposits
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_WOM_mwom.Underlying}" target="_blank" rel="noopener noreferrer">LP-WOM</a> in to a Magpie farm, earning
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.WOM}" target="_blank" rel="noopener noreferrer">WOM</a>,
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.MGP}" target="_blank" rel="noopener noreferrer">MGP</a>.
At every harvest, the earned rewards are reinvested into more
<a href="https://arbiscan.io/token/${addresses.ARBITRUM_ONE.V2.magpie_WOM_mwom.Underlying}" target="_blank" rel="noopener noreferrer">LP-WOM</a>.
</p>
</div>
`,
},
{
chain: CHAIN_IDS.ARBITRUM_ONE,
id: 'lodestar_ETH',
Expand Down
161 changes: 160 additions & 1 deletion data/mainnet/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,165 @@ module.exports = {
],
cmcRewardTokenSymbols: ['FARM', 'WETH'],
},
MGP: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/mgp.png'],
tokenAddress: addresses.ARBITRUM_ONE.MGP,
decimals: '18',
vaultAddress: null,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['magpie'],
},
},
WOM: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/wom.png'],
tokenAddress: addresses.ARBITRUM_ONE.WOM,
decimals: '18',
vaultAddress: null,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['wombat-exchange'],
},
},
magpie_DAI_main: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/dai.svg'],
apyIconUrls: ['./icons/mgp.png', './icons/wom.png'],
apyTokenSymbols: ['MGP', 'WOM'],
platform: ['Magpie'],
tags: ['Advanced'],
tokenNames: ['DAI'],
tokenAddress: addresses.ARBITRUM_ONE.V2.magpie_DAI_main.Underlying,
decimals: '18',
vaultAddress: addresses.ARBITRUM_ONE.V2.magpie_DAI_main.NewVault,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['dai'],
},
estimateApyFunctions: [
{
type: ESTIMATED_APY_TYPES.MAGPIE,
params: [addresses.ARBITRUM_ONE.V2.magpie_DAI_main.Underlying, profitSharingCut10Percent],
},
],
cmcRewardTokenSymbols: ['iFARM', 'MGP', 'WOM'],
},
magpie_ETH_frxeth: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/eth.svg'],
apyIconUrls: ['./icons/mgp.png', './icons/wom.png'],
apyTokenSymbols: ['MGP', 'WOM'],
platform: ['Magpie'],
tags: ['Advanced'],
tokenNames: ['ETH'],
tokenAddress: addresses.ARBITRUM_ONE.V2.magpie_ETH_frxeth.Underlying,
decimals: '18',
vaultAddress: addresses.ARBITRUM_ONE.V2.magpie_ETH_frxeth.NewVault,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['weth'],
},
estimateApyFunctions: [
{
type: ESTIMATED_APY_TYPES.MAGPIE,
params: [addresses.ARBITRUM_ONE.V2.magpie_ETH_frxeth.Underlying, profitSharingCut10Percent],
},
],
cmcRewardTokenSymbols: ['iFARM', 'MGP', 'WOM'],
},
magpie_USDCe_main: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/usdc.svg'],
apyIconUrls: ['./icons/mgp.png', './icons/wom.png'],
apyTokenSymbols: ['MGP', 'WOM'],
platform: ['Magpie'],
tags: ['Advanced'],
tokenNames: ['USDC.e'],
tokenAddress: addresses.ARBITRUM_ONE.V2.magpie_USDCe_main.Underlying,
decimals: '18',
vaultAddress: addresses.ARBITRUM_ONE.V2.magpie_USDCe_main.NewVault,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['usd-coin'],
},
estimateApyFunctions: [
{
type: ESTIMATED_APY_TYPES.MAGPIE,
params: [addresses.ARBITRUM_ONE.V2.magpie_USDCe_main.Underlying, profitSharingCut10Percent],
},
],
cmcRewardTokenSymbols: ['iFARM', 'MGP', 'WOM'],
},
magpie_USDC_main: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/usdc.svg'],
apyIconUrls: ['./icons/mgp.png', './icons/wom.png'],
apyTokenSymbols: ['MGP', 'WOM'],
platform: ['Magpie'],
tags: ['Advanced'],
tokenNames: ['USDC'],
tokenAddress: addresses.ARBITRUM_ONE.V2.magpie_USDC_main.Underlying,
decimals: '18',
vaultAddress: addresses.ARBITRUM_ONE.V2.magpie_USDC_main.NewVault,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['usd-coin'],
},
estimateApyFunctions: [
{
type: ESTIMATED_APY_TYPES.MAGPIE,
params: [addresses.ARBITRUM_ONE.V2.magpie_USDC_main.Underlying, profitSharingCut10Percent],
},
],
cmcRewardTokenSymbols: ['iFARM', 'MGP', 'WOM'],
},
magpie_USDT_main: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/usdt.svg'],
apyIconUrls: ['./icons/mgp.png', './icons/wom.png'],
apyTokenSymbols: ['MGP', 'WOM'],
platform: ['Magpie'],
tags: ['Advanced'],
tokenNames: ['USDT'],
tokenAddress: addresses.ARBITRUM_ONE.V2.magpie_USDT_main.Underlying,
decimals: '18',
vaultAddress: addresses.ARBITRUM_ONE.V2.magpie_USDT_main.NewVault,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['tether'],
},
estimateApyFunctions: [
{
type: ESTIMATED_APY_TYPES.MAGPIE,
params: [addresses.ARBITRUM_ONE.V2.magpie_USDT_main.Underlying, profitSharingCut10Percent],
},
],
cmcRewardTokenSymbols: ['iFARM', 'MGP', 'WOM'],
},
magpie_WOM_mwom: {
chain: CHAIN_IDS.ARBITRUM_ONE,
logoUrl: ['./icons/wom.png'],
apyIconUrls: ['./icons/mgp.png', './icons/wom.png'],
apyTokenSymbols: ['MGP', 'WOM'],
platform: ['Magpie'],
tags: ['Advanced'],
tokenNames: ['WOM'],
tokenAddress: addresses.ARBITRUM_ONE.V2.magpie_WOM_mwom.Underlying,
decimals: '18',
vaultAddress: addresses.ARBITRUM_ONE.V2.magpie_WOM_mwom.NewVault,
priceFunction: {
type: GET_PRICE_TYPES.COINGECKO_ID,
params: ['wombat-exchange'],
},
estimateApyFunctions: [
{
type: ESTIMATED_APY_TYPES.MAGPIE,
params: [addresses.ARBITRUM_ONE.V2.magpie_WOM_mwom.Underlying, profitSharingCut10Percent],
},
],
cmcRewardTokenSymbols: ['iFARM', 'MGP', 'WOM'],
moonwell_wstETH: {
chain: CHAIN_IDS.BASE,
apyIconUrls: ['./icons/well.svg', './icons/usdc.svg'],
Expand Down Expand Up @@ -301,7 +460,7 @@ module.exports = {
],
},
],
cmcRewardTokenSymbols: ['FARM', 'ARB'],
cmcRewardTokenSymbols: ['iFARM', 'ARB'],
},
camelotV3_ARB_ETH: {
chain: CHAIN_IDS.ARBITRUM_ONE,
Expand Down
Loading
Loading