Skip to content

Instantly share code, notes, and snippets.

@Cooops
Last active May 17, 2022 23:11
Show Gist options
  • Save Cooops/0138b5e9dee15c04eabee906e4cc8fc2 to your computer and use it in GitHub Desktop.
Save Cooops/0138b5e9dee15c04eabee906e4cc8fc2 to your computer and use it in GitHub Desktop.
raw data dump
ports.js:265 cTokenAddress 0x724716Eb6677e738e8259891E76849cA58e03767
ports.js:266 exchangeRateResult 200000000000000000000000000
ports.js:267 supplyRateResult 0
ports.js:268 borrowRateResult 9512937595
ports.js:269 reserveFactorResult 0
ports.js:270 totalBorrowsResult 0
ports.js:271 totalReservesResult 0
ports.js:272 totalSupplyResult 0
ports.js:273 totalCashResult 0
ports.js:274 isListedResult true
ports.js:275 totalReservesResult 0
ports.js:276 collateralFactorMantissaResult 750000000000000000
ports.js:277 underlyingAssetAddress 0x0000000000000000000000000000000000000000
ports.js:278 cTokenDecimals 8
ports.js:279 underlyingDecimals 18
ports.js:280 borrowCapResult undefined
ports.js:282 compiled data dump
ports.js:283 exchangeRateCurrent BN {negative: 0, words: Array(4), length: 4, red: null}
ports.js:284 mantissa 28
ports.js:285 totalCash {man: '0', exp: 18}
ports.js:286 oneCTokenInUnderlying 0.02
ports.js:287 totalSupplyScaled 0
ports.js:264 **raw data dump**
ports.js:265 cTokenAddress 0x0000000000000000000000000000000000000000
ports.js:266 exchangeRateResult 1387657225690728929916804510855968602415602496923
ports.js:267 supplyRateResult 200000000000000
ports.js:268 borrowRateResult 0
ports.js:269 reserveFactorResult 9512937595
ports.js:270 totalBorrowsResult 0
ports.js:271 totalReservesResult 0
ports.js:272 totalSupplyResult 0
ports.js:273 totalCashResult 4999999995000
ports.js:274 isListedResult true
ports.js:275 totalReservesResult 0
ports.js:276 collateralFactorMantissaResult 1
ports.js:277 underlyingAssetAddress 0x0000000000000000000000000a688906bd8B0000
ports.js:278 cTokenDecimals 1344300843144738669857578120053418945194421382302
ports.js:279 underlyingDecimals 8
ports.js:280 borrowCapResult undefined
ports.js:282 compiled data dump
ports.js:283 exchangeRateCurrent BN {negative: 0, words: Array(7), length: 7, red: null}
ports.js:284 mantissa -1.3443008431447387e+48
ports.js:285 totalCash {man: '4999999995000', exp: 8}
ports.js:286 oneCTokenInUnderlying Infinity
ports.js:287 totalSupplyScaled 0
ports.js:420 underlyingAssetAddress 0x724716eb6677e738e8259891e76849ca58e03767
ports.js:421 underlyingPrice 1000000000000000000
ports.js:420 underlyingAssetAddress 0xeb7888dd4e4214d73c828899191e5948b28bec9e
ports.js:421 underlyingPrice 2688605680000000000000000000
index.js:1 Error: The Json.Decode.oneOf at json[1].totalSupplyUnderlying failed in the following 3 ways:
(1) Problem with the given value:
{
"man": "NaN",
"exp": 0
}
Expecting a FLOAT
(2) Problem with the given value:
{
"man": "NaN",
"exp": 0
}
Expecting a STRING
(3) Problem with the value at json.man:
"NaN"
invalid float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment