Skip to content

Commit

Permalink
Merge pull request #66 from Jeff-CCH/feat/add-markets
Browse files Browse the repository at this point in the history
Feat/add markets
  • Loading branch information
Jeff-CCH authored Jun 17, 2024
2 parents 0c4a480 + 9a80b2a commit dc92ad4
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-dots-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@protocolink/logics': minor
---

add Morphoblue markets
5 changes: 5 additions & 0 deletions .changeset/dirty-beans-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@protocolink/logics': minor
---

add Compound V3 USDC market on Optimism and Base
25 changes: 25 additions & 0 deletions src/logics/compound-v3/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@ export const configs: Config[] = [
'Compound'
),
},
{
chainId: common.ChainId.optimism,
contract: {
CometRewards: '0x443EA0340cb75a160F31A440722dec7b5bc3C2E9',
},
markets: [
{
id: MarketId.USDC,
cometAddress: '0x2e44e174f7D53F0212823acC11C01A11d58c5bCB',
baseTokenAddress: '0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
},
],
COMP: new common.Token(
common.ChainId.optimism,
'0x7e7d4467112689329f7E06571eD0E8CbAd4910eE',
18,
'COMP',
'Compound'
),
},
{
chainId: common.ChainId.polygon,
contract: {
Expand All @@ -74,6 +94,11 @@ export const configs: Config[] = [
CometRewards: '0x123964802e6ABabBE1Bc9547D72Ef1B69B00A6b1',
},
markets: [
{
id: MarketId.USDC,
cometAddress: '0xb125E6687d4313864e53df431d5425969c15Eb2F',
baseTokenAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
},
{
id: MarketId.USDbC,
cometAddress: '0x9c4ec768c28520B50860ea7a15bd7213a9fF58bf',
Expand Down
112 changes: 112 additions & 0 deletions src/logics/morphoblue/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,118 @@ export const configs: Config[] = [
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '915000000000000000',
},
{
id: '0xb8fc70e82bc5bb53e773626fcc6a23f7eefa036918d7ef216ecfb1950a94a85e',
loanTokenAddress: mainnetTokens.WETH.address,
collateralTokenAddress: mainnetTokens.wstETH.address,
oracle: '0xbD60A6770b27E084E8617335ddE769241B0e71D8',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '965000000000000000',
},
{
id: '0x423cb007534ac88febb8ce39f544ab303e8b757f8415ed891fc76550f8f4c965',
loanTokenAddress: mainnetTokens.USDA.address,
collateralTokenAddress: mainnetTokens.wstETH.address,
oracle: '0xBC693693fDBB177Ad05ff38633110016BC043AC5',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '860000000000000000',
},
{
id: '0xea023e57814fb9a814a5a9ee9f3e7ece5b771dd8cc703e50b911e9cde064a12d',
loanTokenAddress: mainnetTokens.WETH.address,
collateralTokenAddress: mainnetTokens.WOETH.address,
oracle: '0xb7948b5bEEe825E609990484A99340D8767B420e',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '860000000000000000',
},
{
id: '0xbd33e0ae076c82cfd0fa8d759ea83a296190f9f98d9f79b74a0eb4a294d8bf42',
loanTokenAddress: mainnetTokens.USDC.address,
collateralTokenAddress: mainnetTokens.weETH.address,
oracle: '0x90CFE73B913ee1B93EA75Aa47134b7330289a458',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '770000000000000000',
},
{
id: '0x9337a95dcb09d10abb33fdb955dd27b46e345f5510d54d9403f570f8f37b5983',
loanTokenAddress: mainnetTokens.PYUSD.address,
collateralTokenAddress: mainnetTokens.WBTC.address,
oracle: '0xc53c90d6E9A5B69E4ABf3d5Ae4c79225C7FeF3d2',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '860000000000000000',
},
{
id: '0x138eec0e4a1937eb92ebc70043ed539661dd7ed5a89fb92a720b341650288a40',
loanTokenAddress: mainnetTokens.WETH.address,
collateralTokenAddress: mainnetTokens.WBTC.address,
oracle: '0xc29B3Bc033640baE31ca53F8a0Eb892AdF68e663',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '915000000000000000',
},
{
id: '0xdb760246f6859780f6c1b272d47a8f64710777121118e56e0cdb4b8b744a3094',
loanTokenAddress: mainnetTokens.DAI.address,
collateralTokenAddress: mainnetTokens.USDe.address,
oracle: '0xaE4750d0813B5E37A51f7629beedd72AF1f9cA35',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '945000000000000000',
},
{
id: '0xcec858380cba2d9ca710fce3ce864d74c3f620d53826f69d08508902e09be86f',
loanTokenAddress: mainnetTokens.USDT.address,
collateralTokenAddress: mainnetTokens.USDe.address,
oracle: '0xAf5060C11D3E8325a8ECF84c07fAB7Ac2297A72d',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '915000000000000000',
},
{
id: '0xe475337d11be1db07f7c5a156e511f05d1844308e66e17d2ba5da0839d3b34d9',
loanTokenAddress: mainnetTokens.DAI.address,
collateralTokenAddress: mainnetTokens.sUSDe.address,
oracle: '0x5D916980D5Ae1737a8330Bf24dF812b2911Aae25',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '945000000000000000',
},
{
id: '0xb1eac1c0f3ad13fb45b01beac8458c055c903b1bff8cb882346635996a774f77',
loanTokenAddress: mainnetTokens.DAI.address,
collateralTokenAddress: mainnetTokens.sDAI.address,
oracle: '0x9d4eb56E054e4bFE961F861E351F606987784B65',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '980000000000000000',
},
{
id: '0xa72f4af2570dca1b356aa6c1e6a804d0d3df5b23bb092189776d0dc652feabb4',
loanTokenAddress: mainnetTokens.USDA.address,
collateralTokenAddress: mainnetTokens.rsETH.address,
oracle: '0x599AD2053bFE462AB535f6370B9aBBa137CDeb83',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '770000000000000000',
},
{
id: '0x5d09770b08517329e25b7dff8f32ad7098c8b6fd075660cdabec3e717ca8068f',
loanTokenAddress: mainnetTokens.USDA.address,
collateralTokenAddress: mainnetTokens.Re7USDT.address,
oracle: '0x1f083a4c51E6cAa627A8Cbe7452bF3D6eb815F57',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '915000000000000000',
},
{
id: '0x459687783a68f4cf4e230618f88ce135d1cd459a850f6496751c2a9c1c6e852e',
loanTokenAddress: mainnetTokens.USDA.address,
collateralTokenAddress: mainnetTokens.ezETH.address,
oracle: '0xd5116061F4a1FFac23E9c6c9f6B4AF28b9AF7676',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '770000000000000000',
},
{
id: '0xbe4c211adca4400078db69af91ea0df98401adb5959510ae99edd06fee5146f7',
loanTokenAddress: mainnetTokens.USDC.address,
collateralTokenAddress: mainnetTokens.mTBILL.address,
oracle: '0x6E8F5b2DF218443E87fe8aA9811E6956716dde88',
irm: '0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC',
lltv: '980000000000000000',
},
],
},
];
Expand Down
35 changes: 35 additions & 0 deletions src/logics/morphoblue/tokens/data/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,27 @@
"symbol": "apxETH",
"name": "Autocompounding Pirex Ether"
},
"WOETH": {
"chainId": 1,
"address": "0xDcEe70654261AF21C44c093C300eD3Bb97b78192",
"decimals": 18,
"symbol": "WOETH",
"name": "Wrapped OETH"
},
"rsETH": {
"chainId": 1,
"address": "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
"decimals": 18,
"symbol": "rsETH",
"name": "rsETH"
},
"USDA": {
"chainId": 1,
"address": "0x0000206329b97DB379d5E1Bf586BbDB969C63274",
"decimals": 18,
"symbol": "USDA",
"name": "USDA"
},
"USDC": {
"chainId": 1,
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
Expand All @@ -62,6 +83,13 @@
"symbol": "USDT",
"name": "Tether USD"
},
"Re7USDT": {
"chainId": 1,
"address": "0x95EeF579155cd2C5510F312c8fA39208c3Be01a8",
"decimals": 18,
"symbol": "Re7USDT",
"name": "Re7 USDT"
},
"PYUSD": {
"chainId": 1,
"address": "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8",
Expand Down Expand Up @@ -110,5 +138,12 @@
"decimals": 18,
"symbol": "MKR",
"name": "Maker"
},
"mTBILL": {
"chainId": 1,
"address": "0xDD629E5241CbC5919847783e6C96B2De4754e438",
"decimals": 18,
"symbol": "mTBILL",
"name": "mTBILL"
}
}

0 comments on commit dc92ad4

Please sign in to comment.