diff --git a/src/govv3/__snapshots__/generatePayloadReport.spec.ts.snap b/src/govv3/__snapshots__/generatePayloadReport.spec.ts.snap index edb420d..4d2ad29 100644 --- a/src/govv3/__snapshots__/generatePayloadReport.spec.ts.snap +++ b/src/govv3/__snapshots__/generatePayloadReport.spec.ts.snap @@ -28,51 +28,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 @@ -173,11 +173,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) \`\`\` @@ -189,47 +189,47 @@ TetherToken (Tether) at \`0xdAC17F958D2ee523a2206206994597C13D831ec7\`[:ghost:]( - \`UserIndexUpdated(user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, asset: 0xbcca60bb61934080951369a648fb03df4f96263c, index: 35777739039773953913685859)\` - InitializableImmutableAdminUpgradeabilityProxy at \`0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.POOL") with implementation LendingPool at \`0x085E34722e04567Df9E6d2c32e82fd74f3342e79\` - \`ReserveUsedAsCollateralEnabled(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a)\` - - \`ReserveDataUpdated(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, liquidityRate: 123029815053899026525991182, stableBorrowRate: 230113117017905438863598858, variableBorrowRate: 180113117017905438863598858, liquidityIndex: 1.125991030272021514250652312[1125991030272021514250652312], variableBorrowIndex: 1.185097276944910539318953337[1185097276944910539318953337])\` + - \`ReserveDataUpdated(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, liquidityRate: 123029815053899026525991182, stableBorrowRate: 230113117017905438863598858, variableBorrowRate: 180113117017905438863598858, liquidityIndex: 1.125991030272021514250652312[1125991030272021514250652312](27 decimals), variableBorrowIndex: 1.185097276944910539318953337[1185097276944910539318953337](27 decimals))\` - \`ReserveUsedAsCollateralDisabled(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a)\` - - \`Withdraw(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, amount: 1,786,110,738,937[1786110738937])\` - - \`ReserveDataUpdated(reserve: 0xdac17f958d2ee523a2206206994597c13d831ec7, liquidityRate: 36453252711281215796169147, stableBorrowRate: 119998697965005335176069815, variableBorrowRate: 59996093895016005528209445, liquidityIndex: 1.149227808508467355639962102[1149227808508467355639962102], variableBorrowIndex: 1.228783878292595972201993472[1228783878292595972201993472])\` - - \`Deposit(reserve: 0xdac17f958d2ee523a2206206994597c13d831ec7, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, onBehalfOf: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, amount: 750,000,000,000[750000000000], referral: 0)\` + - \`Withdraw(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, amount: 1,786,110.738937[1786110738937](6 decimals))\` + - \`ReserveDataUpdated(reserve: 0xdac17f958d2ee523a2206206994597c13d831ec7, liquidityRate: 36453252711281215796169147, stableBorrowRate: 119998697965005335176069815, variableBorrowRate: 59996093895016005528209445, liquidityIndex: 1.149227808508467355639962102[1149227808508467355639962102](27 decimals), variableBorrowIndex: 1.228783878292595972201993472[1228783878292595972201993472](27 decimals))\` + - \`Deposit(reserve: 0xdac17f958d2ee523a2206206994597c13d831ec7, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, onBehalfOf: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, amount: 750,000[750000000000](6 decimals), referral: 0)\` - InitializableImmutableAdminUpgradeabilityProxy (Aave v2 USDC) at \`0xBcca60bB61934080951369a648Fb03DF4F96263C\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.USDC.A_TOKEN") - - \`BalanceTransfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937], index: 1125991030272021514250652312)\` - - \`Transfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937])\` - - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 1,649.857765[1649857765])\` - - \`Mint(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 1,649.857765[1649857765], index: 1.125991030272021514250652312[1125991030272021514250652312])\` - - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x0000000000000000000000000000000000000000, value: 1,786,110.738937[1786110738937])\` - - \`Burn(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, target: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937], index: 1.125991030272021514250652312[1125991030272021514250652312])\` + - \`BalanceTransfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937](6 decimals), index: 1125991030272021514250652312)\` + - \`Transfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937](6 decimals))\` + - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 1,649.857765[1649857765](6 decimals))\` + - \`Mint(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 1,649.857765[1649857765](6 decimals), index: 1.125991030272021514250652312[1125991030272021514250652312](27 decimals))\` + - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x0000000000000000000000000000000000000000, value: 1,786,110.738937[1786110738937](6 decimals))\` + - \`Burn(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, target: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937](6 decimals), index: 1.125991030272021514250652312[1125991030272021514250652312](27 decimals))\` - FiatTokenProxy (USDC) at \`0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.USDC.UNDERLYING, AaveV2EthereumAMM.ASSETS.USDC.UNDERLYING, AaveV3Ethereum.ASSETS.USDC.UNDERLYING") with implementation FiatTokenV2_2 at \`0x43506849D7C04F9138D1A2050bbF3A0c054402dd\` - - \`Transfer(from: 0xbcca60bb61934080951369a648fb03df4f96263c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937])\` - - \`Transfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,700,000[1700000000000])\` - - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, value: 1,000,000[1000000000000])\` - - \`Approval(owner: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, spender: 0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2, value: 2,486,110.738937[2486110738937])\` - - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x98c23e9d8f34fefb1b7bd6a91b7ff122f4e16f5c, value: 2,486,110.738937[2486110738937])\` - - \`Approval(owner: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, spender: 0x11c76ad590abdffcd980afec9ad951b160f02797, value: 1,000,000[1000000000000])\` - - \`Transfer(from: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, to: 0x9ce312c09ab6ca0cc4cb7d7ceca975729f1ffb6a, value: 1,000,000[1000000000000])\` - - \`Approval(owner: 0x9ce312c09ab6ca0cc4cb7d7ceca975729f1ffb6a, spender: 0xc92e8bdf79f0507f65a392b0ab4667716bfe0110, value: 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129.639935[115792089237316195423570985008687907853269984665640564039457584007913129639935])\` + - \`Transfer(from: 0xbcca60bb61934080951369a648fb03df4f96263c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,786,110.738937[1786110738937](6 decimals))\` + - \`Transfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 1,700,000[1700000000000](6 decimals))\` + - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, value: 1,000,000[1000000000000](6 decimals))\` + - \`Approval(owner: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, spender: 0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2, value: 2,486,110.738937[2486110738937](6 decimals))\` + - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x98c23e9d8f34fefb1b7bd6a91b7ff122f4e16f5c, value: 2,486,110.738937[2486110738937](6 decimals))\` + - \`Approval(owner: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, spender: 0x11c76ad590abdffcd980afec9ad951b160f02797, value: 1,000,000[1000000000000](6 decimals))\` + - \`Transfer(from: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, to: 0x9ce312c09ab6ca0cc4cb7d7ceca975729f1ffb6a, value: 1,000,000[1000000000000](6 decimals))\` + - \`Approval(owner: 0x9ce312c09ab6ca0cc4cb7d7ceca975729f1ffb6a, spender: 0xc92e8bdf79f0507f65a392b0ab4667716bfe0110, value: 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129.639935[115792089237316195423570985008687907853269984665640564039457584007913129639935](6 decimals))\` - 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") - - \`Transfer(src: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, dst: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, wad: 500,000[500000000000000000000000])\` - - \`Approval(src: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, guy: 0x11c76ad590abdffcd980afec9ad951b160f02797, wad: 500,000[500000000000000000000000])\` - - \`Transfer(src: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, dst: 0x9d53cefcd5fbeb850b053a23ec6f59eb3dc76e33, wad: 500,000[500000000000000000000000])\` - - \`Approval(src: 0x9d53cefcd5fbeb850b053a23ec6f59eb3dc76e33, guy: 0xc92e8bdf79f0507f65a392b0ab4667716bfe0110, wad: 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457.584007913129639935[115792089237316195423570985008687907853269984665640564039457584007913129639935])\` + - \`Transfer(src: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, dst: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, wad: 500,000[500000000000000000000000](18 decimals))\` + - \`Approval(src: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, guy: 0x11c76ad590abdffcd980afec9ad951b160f02797, wad: 500,000[500000000000000000000000](18 decimals))\` + - \`Transfer(src: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, dst: 0x9d53cefcd5fbeb850b053a23ec6f59eb3dc76e33, wad: 500,000[500000000000000000000000](18 decimals))\` + - \`Approval(src: 0x9d53cefcd5fbeb850b053a23ec6f59eb3dc76e33, guy: 0xc92e8bdf79f0507f65a392b0ab4667716bfe0110, wad: 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457.584007913129639935[115792089237316195423570985008687907853269984665640564039457584007913129639935](18 decimals))\` - 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") - - \`Transfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 750,000[750000000000])\` - - \`Approval(owner: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, spender: 0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9, value: 750,000[750000000000])\` - - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x3ed3b47dd13ec9a98b44e6204a523e766b225811, value: 750,000[750000000000])\` + - \`Transfer(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, to: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, value: 750,000[750000000000](6 decimals))\` + - \`Approval(owner: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, spender: 0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9, value: 750,000[750000000000](6 decimals))\` + - \`Transfer(from: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, to: 0x3ed3b47dd13ec9a98b44e6204a523e766b225811, value: 750,000[750000000000](6 decimals))\` - InitializableImmutableAdminUpgradeabilityProxy at \`0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV3Ethereum.POOL") with implementation Pool at \`0x5FAab9E1adbddaD0a08734BE8a52185Fd6558E14\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV3Ethereum.POOL_IMPL") - - \`ReserveDataUpdated(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, liquidityRate: 47682188450169651556358657, stableBorrowRate: 74952562439501945201046096, variableBorrowRate: 59430749274023342412553152, liquidityIndex: 1.037202233129559154213915818[1037202233129559154213915818], variableBorrowIndex: 1.048275261439772750668356172[1048275261439772750668356172])\` - - \`Supply(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, onBehalfOf: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, amount: 2,486,110,738,937[2486110738937], referralCode: 0)\` + - \`ReserveDataUpdated(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, liquidityRate: 47682188450169651556358657, stableBorrowRate: 74952562439501945201046096, variableBorrowRate: 59430749274023342412553152, liquidityIndex: 1.037202233129559154213915818[1037202233129559154213915818](27 decimals), variableBorrowIndex: 1.048275261439772750668356172[1048275261439772750668356172](27 decimals))\` + - \`Supply(reserve: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, user: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, onBehalfOf: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, amount: 2,486,110.738937[2486110738937](6 decimals), referralCode: 0)\` - InitializableImmutableAdminUpgradeabilityProxy (Aave v3 USDC) at \`0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV3Ethereum.ASSETS.USDC.A_TOKEN") with implementation AToken at \`0x7EfFD7b47Bfd17e52fB7559d3f924201b9DbfF3d\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV3Ethereum.DEFAULT_A_TOKEN_IMPL_REV_1") - - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 2,486,645.729824[2486645729824])\` - - \`Mint(caller: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, onBehalfOf: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 2,486,645.729824[2486645729824], balanceIncrease: 534990887, index: 1.037202233129559154213915818[1037202233129559154213915818])\` + - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 2,486,645.729824[2486645729824](6 decimals))\` + - \`Mint(caller: 0x5300a1a15135ea4dc7ad5a167152c01efc9b192a, onBehalfOf: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 2,486,645.729824[2486645729824](6 decimals), balanceIncrease: 534990887, index: 1.037202233129559154213915818[1037202233129559154213915818](27 decimals))\` - InitializableImmutableAdminUpgradeabilityProxy (Aave USDT) at \`0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811\`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.USDT.A_TOKEN") - - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 226.08203[226082030])\` - - \`Mint(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 226.08203[226082030], index: 1.149227808508467355639962102[1149227808508467355639962102])\` - - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 750,000[750000000000])\` - - \`Mint(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 750,000[750000000000], index: 1.149227808508467355639962102[1149227808508467355639962102])\` + - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 226.08203[226082030](6 decimals))\` + - \`Mint(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 226.08203[226082030](6 decimals), index: 1.149227808508467355639962102[1149227808508467355639962102](27 decimals))\` + - \`Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 750,000[750000000000](6 decimals))\` + - \`Mint(from: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, value: 750,000[750000000000](6 decimals), index: 1.149227808508467355639962102[1149227808508467355639962102](27 decimals))\` - Milkman at \`0x11C76AD590ABDFFCD980afEC9ad951B160F02797\` - \`SwapRequested(orderContract: 0x9ce312c09ab6ca0cc4cb7d7ceca975729f1ffb6a, orderCreator: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, amountIn: 1000000000000, fromToken: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, toToken: 0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, priceChecker: 0xe80a1c615f75aff7ed8f08c9f21f9d00982d666c, priceCheckerData: 0x000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000020000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f60000000000000000000000003f12643d3f6f874d39c2a4c9f2cd6f2dbac877fc000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001)\` - \`SwapRequested(orderContract: 0x9d53cefcd5fbeb850b053a23ec6f59eb3dc76e33, orderCreator: 0x3ea64b1c0194524b48f9118462c8e9cd61a243c7, amountIn: 500000000000000000000000, fromToken: 0x6b175474e89094c44da98b954eedeac495271d0f, toToken: 0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f, to: 0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c, priceChecker: 0xe80a1c615f75aff7ed8f08c9f21f9d00982d666c, priceCheckerData: 0x000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000aed0c38402a5d19df6e4c03f4e2dced6e29c1ee90000000000000000000000003f12643d3f6f874d39c2a4c9f2cd6f2dbac877fc000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001)\` diff --git a/src/govv3/checks/__snapshots__/state.spec.ts.snap b/src/govv3/checks/__snapshots__/state.spec.ts.snap index f92d62b..a96be46 100644 --- a/src/govv3/checks/__snapshots__/state.spec.ts.snap +++ b/src/govv3/checks/__snapshots__/state.spec.ts.snap @@ -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 @@ -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) \`\`\` ", ], @@ -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\` diff --git a/src/govv3/checks/state.ts b/src/govv3/checks/state.ts index 2502e4f..01349ac 100644 --- a/src/govv3/checks/state.ts +++ b/src/govv3/checks/state.ts @@ -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; } diff --git a/src/govv3/utils/logInterpreter.ts b/src/govv3/utils/logInterpreter.ts index 2ba8699..ed338fc 100644 --- a/src/govv3/utils/logInterpreter.ts +++ b/src/govv3/utils/logInterpreter.ts @@ -1,30 +1,41 @@ import { Client, Hex, formatUnits } from 'viem'; import { Input } from '../../utils/tenderlyClient'; -import { formatNumberString } from './markdownUtils'; +import { formatNumberString, prettifyNumber } from './markdownUtils'; import { findAsset } from './checkAddress'; -const decimalAmountEvents = [ - 'Transfer', - 'Approval', - 'Burn', - 'Mint', - 'BalanceTransfer', - 'Withdraw', - 'Supply', - 'Deposit', -]; +// events emitted typically on the erc20 +const tokenAmountEvents = ['Transfer', 'Approval', 'Burn', 'Mint', 'BalanceTransfer']; + +// events emitted on the pool +const reserveEvents = ['Withdraw', 'Supply', 'Deposit']; export async function interpretLog(client: Client, address: Hex, name: string | null, inputs: Input[]) { - if (name && decimalAmountEvents.includes(name)) { + if (name && tokenAmountEvents.includes(name)) { // fields formatted by the asset decimal const decimalFieldNames = ['value', 'amount', 'wad']; for (const name of decimalFieldNames) { const valueIndex = inputs.findIndex((i) => i.soltype!.name === name); if (valueIndex !== -1) { const asset = await findAsset(client, address); - inputs[valueIndex].value = `${formatNumberString( - formatUnits(BigInt(inputs[valueIndex].value as string), asset.decimals) - )}[${inputs[valueIndex].value}]`; + if (asset) { + inputs[valueIndex].value = prettifyNumber({ + value: inputs[valueIndex].value as string, + decimals: asset.decimals, + }); + } + } + } + } + if (name && reserveEvents.includes(name)) { + const valueIndex = inputs.findIndex((i) => i.soltype!.name === 'amount'); + const reserveIndex = inputs.findIndex((i) => i.soltype!.name === 'reserve'); + if (valueIndex !== -1 && reserveIndex !== -1) { + const asset = await findAsset(client, inputs[reserveIndex].value as Hex); + if (asset) { + inputs[valueIndex].value = prettifyNumber({ + value: inputs[valueIndex].value as string, + decimals: asset.decimals, + }); } } } @@ -34,9 +45,10 @@ export async function interpretLog(client: Client, address: Hex, name: string | for (const name of decimalFieldNames) { const valueIndex = inputs.findIndex((i) => i.soltype!.name === name); if (valueIndex !== -1) { - inputs[valueIndex].value = `${formatNumberString( - formatUnits(BigInt(inputs[valueIndex].value as string), 27) - )}[${inputs[valueIndex].value}]`; + inputs[valueIndex].value = prettifyNumber({ + value: inputs[valueIndex].value as string, + decimals: 27, + }); } } } diff --git a/src/govv3/utils/markdownUtils.ts b/src/govv3/utils/markdownUtils.ts index 504d2e4..8123f91 100644 --- a/src/govv3/utils/markdownUtils.ts +++ b/src/govv3/utils/markdownUtils.ts @@ -75,7 +75,7 @@ export function prettifyNumber({ }) { return `${prefix ? `${prefix}` : ''}${formatNumberString(formatUnits(BigInt(value), decimals))}${ suffix ? `${suffix}` : '' - }[${value}]`; + }[${value}](${decimals} decimals)`; } export function wrapInQuotes(name: string, quotes: boolean) { diff --git a/src/govv3/utils/reserveConfigurationInterpreter.ts b/src/govv3/utils/reserveConfigurationInterpreter.ts index 823d748..2df4318 100644 --- a/src/govv3/utils/reserveConfigurationInterpreter.ts +++ b/src/govv3/utils/reserveConfigurationInterpreter.ts @@ -1,7 +1,6 @@ import * as pools from '@bgd-labs/aave-address-book'; import { getBits } from '../../utils/storageSlots'; -import { formatNumberString, prettifyNumber } from './markdownUtils'; -import { formatUnits } from 'viem'; +import { prettifyNumber } from './markdownUtils'; export function getDecodedReserveData(contractAddress: string, data?: bigint) { if (!data) return data;