Skip to content

Instantly share code, notes, and snippets.

@pradyuman-verma
Last active August 30, 2022 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pradyuman-verma/0acc2af2cc2ccb0f4387e3346e89e303 to your computer and use it in GitHub Desktop.
Save pradyuman-verma/0acc2af2cc2ccb0f4387e3346e89e303 to your computer and use it in GitHub Desktop.
[
{
"market": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
"marketName": "USDC",
"key": "usdc",
"totalSupplyInBase": "77.497297179140780653",
"totalBorrowInBase": "0",
"totalSupplyInUsd": "77.497297179140780653",
"totalBorrowInUsd": "0",
"netBaseBalance": "0",
"netBaseBalanceUsd": "0",
"interestAccruedInBase": "0",
"interestAccruedInBaseInUsd": "0",
"maxBorrowLimitInBase": "63.935270172791144038725",
"maxBorrowLimitInUSD": "63.9383249999999999995871702805",
"maxBorrowLiquiditationLimitInBase": "69.360080975330998684435",
"maxBorrowLiquiditationLimitInUsd": "69.3633949999999999995521423043",
"status": "0",
"liquidation": "0.825",
"maxLiquidation": "0.895",
"healthFactor": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
"assetsIn": ["weth"],
"nonce": "0",
"index": "0",
"isLiquidatable": false,
"borrowAvailable": true,
"supplyRateBase": "2.2776429355632",
"borrowRateBase": "3.9528462332448",
"assetCount": "5",
"basePosition": {
"priceInBase": "1",
"priceInUSD": "1.00004778",
"supply": "0",
"supplyInUsd": "0",
"supplyInWei": "0",
"borrow": "0",
"borrowInUsd": "0",
"borrowInWei": "0",
"netBalance": "0",
"netBalanceInUsd": "0",
"netBalanceInWei": "0",
"interestAccruedInWei": "0",
"interestAccrued": "0",
"supplyAPY": "2.2776429355632",
"borrowAPY": "3.9528462332448"
},
"baseConfig": {
"key": "usdc",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"priceFeed": "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
"priceInUsd": "1.00004778",
"decimals": "6",
"mantissa": "1000000",
"indexScale": "1000000000000000",
"supplyIndex": "0",
"borrowIndex": "0",
"baseBorrowMin": "100",
"baseBorrowMinInUsd": "100.004778",
"baseBorrowMinInWei": "100000000"
},
"rewards": [
{
"token": "0xc00e94Cb662C3520282E6f5717214004A7f26888",
"key": "comp",
"decimals": "18",
"pendingsInWei": "0",
"pending": "0",
"claimedInWei": "0",
"claimed": "0",
"baseMinForRewardsInWei": "1000000000000",
"baseMinForRewards": "1000000",
"supplyApy": "0",
"borrowApy": "0"
}
],
"marketInfo": {
"assetCount": "5",
"supplyRate": "2.2776429355632",
"borrowRate": "3.9528462332448",
"reserves": "500285.140099",
"reservesInUsd": "500309.04372299393022",
"reservesInWei": "500285140099",
"baseBorrowMin": "100",
"baseBorrowMinInUsd": "100.004778",
"baseBorrowMinInWei": "100000000",
"targetReserves": "5000000",
"targetReservesInUsd": "5000238.9",
"targetReservesInWei": "5000000000000",
"totalSupplyBase": "6168460.08266",
"totalSupplyBaseInUsd": "6168754.8116827494948",
"totalSupplyBaseInWei": "6168460082660",
"totalBorrowBase": "4322938.319151",
"totalBorrowBaseInUsd": "4323144.86914388903478",
"totalBorrowBaseInWei": "4322938319151",
"utilization": "0.700813211275063785"
},
"tokens": [
{
"address": "0xc00e94Cb662C3520282E6f5717214004A7f26888",
"key": "comp",
"supply": "0",
"supplyInwei": "0",
"supplyInUsd": "0",
"supplyInBase": "0",
"symbol": "COMP",
"decimals": "18",
"offset": "0",
"priceInUsd": "47.92187842",
"priceInBase": "47.91958882204608263817",
"borrowCollateralFactor": "0.65",
"liquidateCollateralFactor": "0.7",
"liquidationFactor": "0.93",
"liquidationPenalty": "0.07",
"supplyCapInWei": "200000000000000000000000",
"supplyCap": "200000",
"totalSupplyInMarket": "74441.825924322234065621",
"totalSupplyInMarketInWei": "74441825924322234065621",
"totalSupplyInMarketInUsd": "3567392.13130817422179547186379882"
},
{
"address": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
"key": "wbtc",
"supply": "0",
"supplyInwei": "0",
"supplyInUsd": "0",
"supplyInBase": "0",
"symbol": "WBTC",
"decimals": "8",
"offset": "1",
"priceInUsd": "19995.3",
"priceInBase": "19994.34467021165728701483",
"borrowCollateralFactor": "0.7",
"liquidateCollateralFactor": "0.77",
"liquidationFactor": "0.95",
"liquidationPenalty": "0.05",
"supplyCapInWei": "210000000000",
"supplyCap": "2100",
"totalSupplyInMarket": "1.78645117",
"totalSupplyInMarketInWei": "178645117",
"totalSupplyInMarketInUsd": "35720.627079501"
},
{
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"key": "weth",
"supply": "0.05",
"supplyInwei": "50000000000000000",
"supplyInUsd": "77.501",
"supplyInBase": "77.497297179140780653",
"symbol": "WETH",
"decimals": "18",
"offset": "2",
"priceInUsd": "1550.02",
"priceInBase": "1549.94594358281561307001",
"borrowCollateralFactor": "0.825",
"liquidateCollateralFactor": "0.895",
"liquidationFactor": "0.95",
"liquidationPenalty": "0.05",
"supplyCapInWei": "27000000000000000000000",
"supplyCap": "27000",
"totalSupplyInMarket": "2373.133578115004200581",
"totalSupplyInMarketInWei": "2373133578115004200581",
"totalSupplyInMarketInUsd": "3678404.50874981881098456162"
},
{
"address": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
"key": "uni",
"supply": "0",
"supplyInwei": "0",
"supplyInUsd": "0",
"supplyInBase": "0",
"symbol": "UNI",
"decimals": "18",
"offset": "3",
"priceInUsd": "6.20754634",
"priceInBase": "6.20724975760658155753",
"borrowCollateralFactor": "0.75",
"liquidateCollateralFactor": "0.81",
"liquidationFactor": "0.93",
"liquidationPenalty": "0.07",
"supplyCapInWei": "1250000000000000000000000",
"supplyCap": "1250000",
"totalSupplyInMarket": "1299.076740884786252038",
"totalSupplyInMarketInWei": "1299076740884786252038",
"totalSupplyInMarketInUsd": "8064.07906825848326052080444092"
},
{
"address": "0x514910771AF9Ca656af840dff83E8264EcF986CA",
"key": "link",
"supply": "0",
"supplyInwei": "0",
"supplyInUsd": "0",
"supplyInBase": "0",
"symbol": "LINK",
"decimals": "18",
"offset": "4",
"priceInUsd": "6.64379089",
"priceInBase": "6.64347346483785004752",
"borrowCollateralFactor": "0.79",
"liquidateCollateralFactor": "0.85",
"liquidationFactor": "0.93",
"liquidationPenalty": "0.07",
"supplyCapInWei": "1250000000000000000000000",
"supplyCap": "1250000",
"totalSupplyInMarket": "100543.534508468237123267",
"totalSupplyInMarketInWei": "100543534508468237123267",
"totalSupplyInMarketInUsd": "667990.21861576190165392110163763"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment