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

fix: some formatting tweaks #122

Merged
merged 3 commits into from
Mar 20, 2024
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
126 changes: 63 additions & 63 deletions src/govv3/__snapshots__/generatePayloadReport.spec.ts.snap

Large diffs are not rendered by default.

196 changes: 98 additions & 98 deletions src/govv3/checks/__snapshots__/state.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,51 +18,51 @@ InitializableImmutableAdminUpgradeabilityProxy (Aave USDT) at \`0x3Ed3B47Dd13EC9
Dai (Dai) at \`0x6B175474E89094C44Da98b954EedeAC495271d0F\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.DAI.UNDERLYING, AaveV2EthereumAMM.ASSETS.DAI.UNDERLYING, AaveV3Ethereum.ASSETS.DAI.UNDERLYING")
\`\`\`diff
@@ \`balanceOf\` key \`0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c\` @@
- 502,889.065017878577338563[502889065017878577338563]
+ 2,889.065017878577338563[2889065017878577338563]
- 502,889.065017878577338563[502889065017878577338563](18 decimals)
+ 2,889.065017878577338563[2889065017878577338563](18 decimals)
@@ \`balanceOf\` key \`0x9d53cefcd5fbeb850b053a23ec6f59eb3dc76e33\` @@
- 0[0]
+ 500,000[500000000000000000000000]
- 0[0](18 decimals)
+ 500,000[500000000000000000000000](18 decimals)
@@ \`allowance\` key \`0x9d53cefcd5fbeb850b053a23ec6f59eb3dc76e33.0xc92e8bdf79f0507f65a392b0ab4667716bfe0110\` @@
- 0[0]
+ 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457.584007913129639935[115792089237316195423570985008687907853269984665640564039457584007913129639935]
- 0[0](18 decimals)
+ 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457.584007913129639935[115792089237316195423570985008687907853269984665640564039457584007913129639935](18 decimals)
\`\`\`

InitializableImmutableAdminUpgradeabilityProxy at \`0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.POOL") with implementation LendingPool at \`0x085E34722e04567Df9E6d2c32e82fd74f3342e79\`
\`\`\`diff
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.liquidityIndex\` @@
- 1.125972900043692179606694722[1125972900043692179606694722]
+ 1.125991030272021514250652312[1125991030272021514250652312]
- 1.125972900043692179606694722[1125972900043692179606694722](27 decimals)
+ 1.125991030272021514250652312[1125991030272021514250652312](27 decimals)
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.variableBorrowIndex\` @@
- 1.185069240973920592952379763[1185069240973920592952379763]
+ 1.185097276944910539318953337[1185097276944910539318953337]
- 1.185069240973920592952379763[1185069240973920592952379763](27 decimals)
+ 1.185097276944910539318953337[1185097276944910539318953337](27 decimals)
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.currentLiquidityRate\` @@
- 100751473401236648012460614
+ 123029815053899026525991182
- 10.0751473401236648012460614%[100751473401236648012460614](25 decimals)
+ 12.3029815053899026525991182%[123029815053899026525991182](25 decimals)
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.currentVariableBorrowRate\` @@
- 148027638325434642033107448
+ 180113117017905438863598858
- 14.8027638325434642033107448%[148027638325434642033107448](25 decimals)
+ 18.0113117017905438863598858%[180113117017905438863598858](25 decimals)
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.currentStableBorrowRate\` @@
- 198027638325434642033107448
+ 230113117017905438863598858
- 19.8027638325434642033107448%[198027638325434642033107448](25 decimals)
+ 23.0113117017905438863598858%[230113117017905438863598858](25 decimals)
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.lastUpdateTimestamp\` @@
- 1705396271
+ 1705401311
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.liquidityIndex\` @@
- 1.149223734302009162656035865[1149223734302009162656035865]
+ 1.149227808508467355639962102[1149227808508467355639962102]
- 1.149223734302009162656035865[1149223734302009162656035865](27 decimals)
+ 1.149227808508467355639962102[1149227808508467355639962102](27 decimals)
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.variableBorrowIndex\` @@
- 1.228776684865256100554716625[1228776684865256100554716625]
+ 1.228783878292595972201993472[1228783878292595972201993472]
- 1.228776684865256100554716625[1228776684865256100554716625](27 decimals)
+ 1.228783878292595972201993472[1228783878292595972201993472](27 decimals)
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.currentLiquidityRate\` @@
- 45670276364018875818860783
+ 36453252711281215796169147
- 4.5670276364018875818860783%[45670276364018875818860783](25 decimals)
+ 3.6453252711281215796169147%[36453252711281215796169147](25 decimals)
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.currentVariableBorrowRate\` @@
- 75414841326160726671541020
+ 59996093895016005528209445
- 7.541484132616072667154102%[75414841326160726671541020](25 decimals)
+ 5.9996093895016005528209445%[59996093895016005528209445](25 decimals)
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.currentStableBorrowRate\` @@
- 135414841326160726671541020
+ 119998697965005335176069815
- 13.541484132616072667154102%[135414841326160726671541020](25 decimals)
+ 11.9998697965005335176069815%[119998697965005335176069815](25 decimals)
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.lastUpdateTimestamp\` @@
- 1705398863
+ 1705401311
Expand Down Expand Up @@ -163,11 +163,11 @@ TransparentUpgradeableProxy at \`0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5\`[:g
TetherToken (Tether) at \`0xdAC17F958D2ee523a2206206994597C13D831ec7\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.USDT.UNDERLYING, AaveV2EthereumAMM.ASSETS.USDT.UNDERLYING, AaveV3Ethereum.ASSETS.USDT.UNDERLYING")
\`\`\`diff
@@ \`balances\` key \`0x3ed3b47dd13ec9a98b44e6204a523e766b225811\` @@
- 37,673,056.276055[37673056276055]
+ 38,423,056.276055[38423056276055]
- 37,673,056.276055[37673056276055](6 decimals)
+ 38,423,056.276055[38423056276055](6 decimals)
@@ \`balances\` key \`0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c\` @@
- 750,000[750000000000]
+ 0[0]
- 750,000[750000000000](6 decimals)
+ 0[0](6 decimals)
\`\`\`
",
],
Expand All @@ -186,206 +186,206 @@ InitializableImmutableAdminUpgradeabilityProxy at \`0x7d2768dE32b0b80b7a3454c06B
- 184283194582935181459456
+ 184449215279598567424000
@@ \`_reserves\` key \`0x0000000000085d4780b73119b644ae5ecd22b376.configuration.data_decoded.reserveFactor\` @@
- 99.9%[9990]
+ 99.99%[9999]
- 99.9%[9990](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x03ab458634910aad20ef5f1c8ee96f1d6ac54919.configuration.data\` @@
- 182623275799432407285760
+ 184449503462729652895744
@@ \`_reserves\` key \`0x03ab458634910aad20ef5f1c8ee96f1d6ac54919.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x056fd409e1d7a124bd7017459dfea2f387b6d5cd.configuration.data\` @@
- 36893848998339246292992
+ 46117221035194022100992
@@ \`_reserves\` key \`0x056fd409e1d7a124bd7017459dfea2f387b6d5cd.configuration.data_decoded.reserveFactor\` @@
- 20%[2000]
+ 25%[2500]
- 20%[2000](2 decimals)
+ 25%[2500](2 decimals)
@@ \`_reserves\` key \`0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e.configuration.data\` @@
- 182623275846677047869440
+ 184449503509974293479424
@@ \`_reserves\` key \`0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x0d8775f648430679a709e98d2b0cb6250d2887ef.configuration.data\` @@
- 182622987616300896157696
+ 184449215279598141767680
@@ \`_reserves\` key \`0x0d8775f648430679a709e98d2b0cb6250d2887ef.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x0f5d2fb29fb7d3cfee444a200298f468908cc942.configuration.data\` @@
- 182623275846677047869440
+ 184449503509974293479424
@@ \`_reserves\` key \`0x0f5d2fb29fb7d3cfee444a200298f468908cc942.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x111111111117dc0aa78b770fa6a738034120c302.configuration.data\` @@
- 182622987615656651063296
+ 184449215278953896673280
@@ \`_reserves\` key \`0x111111111117dc0aa78b770fa6a738034120c302.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b.configuration.data\` @@
- 182622987616300896157696
+ 184449215279598141767680
@@ \`_reserves\` key \`0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x1f9840a85d5af5bf1d1762f925bdaddc4201f984.configuration.data\` @@
- 182622987615871490850816
+ 184449215279168736460800
@@ \`_reserves\` key \`0x1f9840a85d5af5bf1d1762f925bdaddc4201f984.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x2260fac5e5542a773aa44fbcfedf7c193bc2c599.configuration.data\` @@
- 55340594805996352183328
+ 64563966842851127991328
@@ \`_reserves\` key \`0x2260fac5e5542a773aa44fbcfedf7c193bc2c599.configuration.data_decoded.reserveFactor\` @@
- 30%[3000]
+ 35%[3500]
- 30%[3000](2 decimals)
+ 35%[3500](2 decimals)
@@ \`_reserves\` key \`0x408e41876cccdc0f92210600ef50372656052a38.configuration.data\` @@
- 182622987616300896157696
+ 184449215279598141767680
@@ \`_reserves\` key \`0x408e41876cccdc0f92210600ef50372656052a38.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b.configuration.data\` @@
- 182622987615656651063296
+ 184449215278953896673280
@@ \`_reserves\` key \`0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x4fabb145d64652a948d72533023f6e7a623c7c53.configuration.data\` @@
- 184283482766066266931200
+ 184449503462729652895744
@@ \`_reserves\` key \`0x4fabb145d64652a948d72533023f6e7a623c7c53.configuration.data_decoded.reserveFactor\` @@
- 99.9%[9990]
+ 99.99%[9999]
- 99.9%[9990](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x514910771af9ca656af840dff83e8264ecf986ca.configuration.data\` @@
- 55340453506416971350016
+ 64563825543271747158016
@@ \`_reserves\` key \`0x514910771af9ca656af840dff83e8264ecf986ca.configuration.data_decoded.reserveFactor\` @@
- 30%[3000]
+ 35%[3500]
- 30%[3000](2 decimals)
+ 35%[3500](2 decimals)
@@ \`_reserves\` key \`0x57ab1ec28d129707052df4df418d58a2d46d5f51.configuration.data\` @@
- 55340597575648425279488
+ 64563969612503201087488
@@ \`_reserves\` key \`0x57ab1ec28d129707052df4df418d58a2d46d5f51.configuration.data_decoded.reserveFactor\` @@
- 30%[3000]
+ 35%[3500]
- 30%[3000](2 decimals)
+ 35%[3500](2 decimals)
@@ \`_reserves\` key \`0x5f98805a4e8be255a32880fdec7f6728c6568ba0.configuration.data\` @@
- 46117225538793649471488
+ 55340597575648425279488
@@ \`_reserves\` key \`0x5f98805a4e8be255a32880fdec7f6728c6568ba0.configuration.data_decoded.reserveFactor\` @@
- 25%[2500]
+ 30%[3000]
- 25%[2500](2 decimals)
+ 30%[3000](2 decimals)
@@ \`_reserves\` key \`0x6b175474e89094c44da98b954eedeac495271d0f.configuration.data\` @@
- 46117225583461879520588
+ 55340597620316655328588
@@ \`_reserves\` key \`0x6b175474e89094c44da98b954eedeac495271d0f.configuration.data_decoded.reserveFactor\` @@
- 25%[2500]
+ 30%[3000]
- 25%[2500](2 decimals)
+ 30%[3000](2 decimals)
@@ \`_reserves\` key \`0x853d955acef822db058eb8505911ed77f175b99e.configuration.data\` @@
- 55340597575648425279488
+ 64563969612503201087488
@@ \`_reserves\` key \`0x853d955acef822db058eb8505911ed77f175b99e.configuration.data_decoded.reserveFactor\` @@
- 30%[3000]
+ 35%[3500]
- 30%[3000](2 decimals)
+ 35%[3500](2 decimals)
@@ \`_reserves\` key \`0x8798249c2e607446efb7ad49ec89dd1865ff4272.configuration.data\` @@
- 182622987616300896157696
+ 184449215279598141767680
@@ \`_reserves\` key \`0x8798249c2e607446efb7ad49ec89dd1865ff4272.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x8e870d67f660d95d5be530380d0ec0bd388289e1.configuration.data\` @@
- 36893853501938873663488
+ 46117225538793649471488
@@ \`_reserves\` key \`0x8e870d67f660d95d5be530380d0ec0bd388289e1.configuration.data_decoded.reserveFactor\` @@
- 20%[2000]
+ 25%[2500]
- 20%[2000](2 decimals)
+ 25%[2500](2 decimals)
@@ \`_reserves\` key \`0x956f47f50a910163d8bf957cf5846d573e7f87ca.configuration.data\` @@
- 182623275846677047869440
+ 184449503509974293479424
@@ \`_reserves\` key \`0x956f47f50a910163d8bf957cf5846d573e7f87ca.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2.configuration.data\` @@
- 182622987615227245756416
+ 184449215278524491366400
@@ \`_reserves\` key \`0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.configuration.data\` @@
- 46117222205976910634816
+ 55340594242831686442816
@@ \`_reserves\` key \`0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.configuration.data_decoded.reserveFactor\` @@
- 25%[2500]
+ 30%[3000]
- 25%[2500](2 decimals)
+ 30%[3000](2 decimals)
@@ \`_reserves\` key \`0xa693b19d2931d498c5b318df961919bb4aee87a5.configuration.data\` @@
- 182623272421732686757888
+ 184449500085029932367872
@@ \`_reserves\` key \`0xa693b19d2931d498c5b318df961919bb4aee87a5.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xba100000625a3754423978a60c9317c58a424e3d.configuration.data\` @@
- 182622987615441902698496
+ 184449215278739148308480
@@ \`_reserves\` key \`0xba100000625a3754423978a60c9317c58a424e3d.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f.configuration.data\` @@
- 182622987615227154333696
+ 184449215278524399943680
@@ \`_reserves\` key \`0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.configuration.data\` @@
- 46117225583891369697338
+ 55340597620746145505338
@@ \`_reserves\` key \`0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.configuration.data_decoded.reserveFactor\` @@
- 25%[2500]
+ 30%[3000]
- 25%[2500](2 decimals)
+ 30%[3000](2 decimals)
@@ \`_reserves\` key \`0xc18360217d8f7ab5e7c516566761ea12ce7f9d72.configuration.data\` @@
- 182622987615441902698496
+ 184449215278739148308480
@@ \`_reserves\` key \`0xc18360217d8f7ab5e7c516566761ea12ce7f9d72.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xd46ba6d942050d489dbd938a2c909a5d5039a161.configuration.data\` @@
- 184283480232791476535296
+ 184449500929454862499840
@@ \`_reserves\` key \`0xd46ba6d942050d489dbd938a2c909a5d5039a161.configuration.data_decoded.reserveFactor\` @@
- 99.9%[9990]
+ 99.99%[9999]
- 99.9%[9990](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xd533a949740bb3306d119cc777fa900ba034cd52.configuration.data\` @@
- 182622987615441994121216
+ 184449215278739239731200
@@ \`_reserves\` key \`0xd533a949740bb3306d119cc777fa900ba034cd52.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.configuration.data\` @@
- 46117222161093928943616
+ 55340594197948704751616
@@ \`_reserves\` key \`0xdac17f958d2ee523a2206206994597c13d831ec7.configuration.data_decoded.reserveFactor\` @@
- 25%[2500]
+ 30%[3000]
- 25%[2500](2 decimals)
+ 30%[3000](2 decimals)
@@ \`_reserves\` key \`0xdd974d5c2e2928dea5f71b9825b8b646686bd200.configuration.data\` @@
- 182623275846677047869440
+ 184449503509974293479424
@@ \`_reserves\` key \`0xdd974d5c2e2928dea5f71b9825b8b646686bd200.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xe41d2489571d322189246dafa5ebde1f4699f498.configuration.data\` @@
- 182622987616300948258816
+ 184449215279598193868800
@@ \`_reserves\` key \`0xe41d2489571d322189246dafa5ebde1f4699f498.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
@@ \`_reserves\` key \`0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c.configuration.data\` @@
- 182623275846677047869440
+ 184449503509974293479424
@@ \`_reserves\` key \`0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c.configuration.data_decoded.reserveFactor\` @@
- 99%[9900]
+ 99.99%[9999]
- 99%[9900](2 decimals)
+ 99.99%[9999](2 decimals)
\`\`\`

TransparentUpgradeableProxy at \`0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5\`[:ghost:](https://github.com/bgd-labs/aave-address-book "GovernanceV3Ethereum.PAYLOADS_CONTROLLER") with implementation PayloadsController at \`0x7222182cB9c5320587b5148BF03eeE107AD64578\`
Expand Down
8 changes: 8 additions & 0 deletions src/govv3/checks/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ async function enhanceValue({
if (subType && ['_reserves'].includes(type) && ['liquidityIndex', 'variableBorrowIndex'].includes(subType)) {
return prettifyNumber({ decimals: 27, value });
}
// also rays but representing percentage
if (
subType &&
['_reserves'].includes(type) &&
['currentLiquidityRate', 'currentVariableBorrowRate', 'currentStableBorrowRate'].includes(subType)
) {
return prettifyNumber({ decimals: 25, value, suffix: '%' });
}
}
return value;
}
Expand Down
Loading
Loading