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

Users getting InsufficientAccountLiquidity error when trying to purchase #206

Open
Mateo-Soso opened this issue Nov 28, 2024 · 5 comments
Open
Assignees
Labels
bug Something isn't working high

Comments

@Mateo-Soso
Copy link
Member

The user added enough funds for the transaction and they were correctly poked into his account.
When trying to make a credit purchase he got a rejection.

Sentry trace

Sentry issue

@Mateo-Soso Mateo-Soso added bug Something isn't working medium labels Nov 28, 2024
@cruzdanilo cruzdanilo added high and removed medium labels Dec 2, 2024
@nfmelendez
Copy link
Contributor

@nfmelendez
Copy link
Contributor

nfmelendez commented Dec 2, 2024

Nov-06-2024 10:06:17 AM UTC transfer +0.007 ETH
Nov-28-2024 12:10:57 PM +UTC transfer +0.078 ETH
Nov-28-2024 12:42:43 PM +UTC withdraw -0.078 ETH
Nov-28-2024 01:00:33 PM +UTC collect credit 1.64 USDC
2024-11-28T13:11:25.393Z AUTHORIZTION DECLINED: 15.78 USD ~block 128600355
Nov-28-2024 01:55:25 PM +UTC withdraw -0.0045 ETH

@nfmelendez
Copy link
Contributor

nfmelendez commented Dec 2, 2024

Executed a simulation of the collect credit at block 128_600_355 for the user 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26 and after looking at the stack trace the result is that after borrowing the user had more debt than collateral and is rejecting the authorization properly.

  [743690] ContractTest::testOPAccountLiquidity()
    ├─ [0] VM::prank(0xcDdB23654595C224A563f62943D9Ff189138c04e)
    │   └─ ← [Return] 
    ├─ [733420] 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26::collectCredit(1734566400 [1.734e9], 15780000 [1.578e7], 1732799485 [1.732e9], 0xc2a988d9088815e0d0d07b51839b358e22fa8ff95f871f50c8edb2caa1e5ca023b6b0072d90483234b19bdd76002d9f93bded4439afb4c5e7b5cf481d74bdfbe1b)
    │   ├─ [728612] 0x0046000000000151008789797b54fdb500E2a61e::collectCredit(1734566400 [1.734e9], 15780000 [1.578e7], 1732799485 [1.732e9], 0xc2a988d9088815e0d0d07b51839b358e22fa8ff95f871f50c8edb2caa1e5ca023b6b0072d90483234b19bdd76002d9f93bded4439afb4c5e7b5cf481d74bdfbe1b) [delegatecall]
    │   │   ├─ [2985] 0x96889Bcf91f24efb6D68Ce27638dE4f374c7E73F::bfd151c1(0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000cddb23654595c224a563f62943d9ff189138c04e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001046d055a4000000000000000000000000000000000000000000000000000000000676362000000000000000000000000000000000000000000000000000000000000f0c8a00000000000000000000000000000000000000000000000000000000067486bfd00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000041c2a988d9088815e0d0d07b51839b358e22fa8ff95f871f50c8edb2caa1e5ca023b6b0072d90483234b19bdd76002d9f93bded4439afb4c5e7b5cf481d74bdfbe1b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
    │   │   │   └─ ← [Stop] 
    │   │   ├─ [715403] 0x96889Bcf91f24efb6D68Ce27638dE4f374c7E73F::collectCredit(1734566400 [1.734e9], 15780000 [1.578e7], 1732799485 [1.732e9], 0xc2a988d9088815e0d0d07b51839b358e22fa8ff95f871f50c8edb2caa1e5ca023b6b0072d90483234b19bdd76002d9f93bded4439afb4c5e7b5cf481d74bdfbe1b)
    │   │   │   ├─ [11965] 0xD3dEA3b447859413D8a055954E4fB9409c7B744E::b6724f79(0000000000000000000000001c5a7f61b07dd43f394b5b02abeb8fca52814e260000000000000000000000000000000000000000000000000000000000f0c8a00000000000000000000000000000000000000000000000000000000067486bfd00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000041c2a988d9088815e0d0d07b51839b358e22fa8ff95f871f50c8edb2caa1e5ca023b6b0072d90483234b19bdd76002d9f93bded4439afb4c5e7b5cf481d74bdfbe1b00000000000000000000000000000000000000000000000000000000000000)
    │   │   │   │   ├─ [3000] PRECOMPILES::ecrecover(0xd23c60260423195b537495acb04948891ac9b4a199adaa59af781ea8953f3a3c, 27, 88048234267811297229675601329419755258900380548112530393403482123829479066114, 26875513798632547619522524462978412101903068806714312835505060996638984363966) [staticcall]
    │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000e2d63e18fb136ef84557f79052bfe8efa90f69bd
    │   │   │   │   └─ ← [Stop] 
    │   │   │   ├─ [696881] 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26::38997b11(0000000000000000000000006926b434cce9b5b7966ae1bfeef6d0a7dcf3a8bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a41a5b9e6200000000000000000000000000000000000000000000000000000000676362000000000000000000000000000000000000000000000000000000000000f0c8a0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000f25ba5b8b0ba4ff4df645fde030652da60baba60000000000000000000000001c5a7f61b07dd43f394b5b02abeb8fca52814e2600000000000000000000000000000000000000000000000000000000)
    │   │   │   │   ├─ [696561] 0x0046000000000151008789797b54fdb500E2a61e::38997b11(0000000000000000000000006926b434cce9b5b7966ae1bfeef6d0a7dcf3a8bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a41a5b9e6200000000000000000000000000000000000000000000000000000000676362000000000000000000000000000000000000000000000000000000000000f0c8a0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000f25ba5b8b0ba4ff4df645fde030652da60baba60000000000000000000000001c5a7f61b07dd43f394b5b02abeb8fca52814e2600000000000000000000000000000000000000000000000000000000) [delegatecall]
    │   │   │   │   │   ├─ [17324] 0x96889Bcf91f24efb6D68Ce27638dE4f374c7E73F::46d60eb2(000000000000000000000000000000000000000000000000000000000000000400000000000000000000000096889bcf91f24efb6d68ce27638de4f374c7e73f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000014438997b110000000000000000000000006926b434cce9b5b7966ae1bfeef6d0a7dcf3a8bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a41a5b9e6200000000000000000000000000000000000000000000000000000000676362000000000000000000000000000000000000000000000000000000000000f0c8a0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000f25ba5b8b0ba4ff4df645fde030652da60baba60000000000000000000000001c5a7f61b07dd43f394b5b02abeb8fca52814e260000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
    │   │   │   │   │   │   ├─ [12326] 0xaEb62e6F27BC103702E7BC879AE98bceA56f027E::markets(0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb) [staticcall]
    │   │   │   │   │   │   │   ├─ [5010] 0x3f55a319d2fd003F87a96C1c3484121936243c46::markets(0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb) [delegatecall]
    │   │   │   │   │   │   │   │   └─ ← [Return] true, 6, true
    │   │   │   │   │   │   │   └─ ← [Return] true, 6, true
    │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   ├─ [7656] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::supportsInterface(0x01ffc9a7) [staticcall]
    │   │   │   │   │   │   ├─ [525] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::supportsInterface(0x01ffc9a7) [delegatecall]
    │   │   │   │   │   │   │   └─ ← [Return] true
    │   │   │   │   │   │   └─ ← [Return] true
    │   │   │   │   │   ├─ [1156] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::supportsInterface(0xffffffff) [staticcall]
    │   │   │   │   │   │   ├─ [525] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::supportsInterface(0xffffffff) [delegatecall]
    │   │   │   │   │   │   │   └─ ← [Return] false
    │   │   │   │   │   │   └─ ← [Return] false
    │   │   │   │   │   ├─ [1156] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::supportsInterface(0xf23b1ed7) [staticcall]
    │   │   │   │   │   │   ├─ [525] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::supportsInterface(0xf23b1ed7) [delegatecall]
    │   │   │   │   │   │   │   └─ ← [Return] false
    │   │   │   │   │   │   └─ ← [Return] false
    │   │   │   │   │   ├─ [646355] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::borrowAtMaturity(1734566400 [1.734e9], 15780000 [1.578e7], 115792089237316195423570985008687907853269984665640564039457584007913129639935 [1.157e77], 0x0f25bA5b8B0BA4Ff4dF645fDE030652da60BabA6, 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26)
    │   │   │   │   │   │   ├─ [645702] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::borrowAtMaturity(1734566400 [1.734e9], 15780000 [1.578e7], 115792089237316195423570985008687907853269984665640564039457584007913129639935 [1.157e77], 0x0f25bA5b8B0BA4Ff4dF645fDE030652da60BabA6, 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319e552d0a49250000000000000000000000000000000000000000000000000be91570a62d5faf) [staticcall]
    │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000013227f24cab4402
    │   │   │   │   │   │   │   ├─ emit FloatingDebtUpdate(: 1732799487 [1.732e9], : 806599896941087013 [8.065e17])
    │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319ecc3a6197240000000000000000000000000000000000000000000000000be915d9d5f3f697) [staticcall]
    │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000001322842f850ec89
    │   │   │   │   │   │   │   ├─ [155677] 0xBd1ba78A3976cAB420A9203E6ef14D18C2B2E031::handleDeposit(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019)
    │   │   │   │   │   │   │   │   ├─ [148382] 0x59611c1E363e76E85f246Dd26A821b324841930F::handleDeposit(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019) [delegatecall]
    │   │   │   │   │   │   │   │   │   ├─ [3231] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::balanceOf(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [2600] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::balanceOf(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 150556567 [1.505e8]
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 150556567 [1.505e8]
    │   │   │   │   │   │   │   │   │   ├─ [1034] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::floatingDebt() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [406] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::floatingDebt() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000001e8abfa6496
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000001e8abfa6496
    │   │   │   │   │   │   │   │   │   ├─ [1188] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::floatingAssets() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [560] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::floatingAssets() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000025dd75b55ce
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000025dd75b55ce
    │   │   │   │   │   │   │   │   │   ├─ [1207] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::maxFuturePools() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [579] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::maxFuturePools() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000007
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000007
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1732147200 [1.732e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1732147200 [1.732e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000018380d7150000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000018380d7150000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1734566400 [1.734e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1734566400 [1.734e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000021765b40a00000000000000000000000000000000000000000000000000000001faa3dc10
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000021765b40a00000000000000000000000000000000000000000000000000000001faa3dc10
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1736985600 [1.736e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1736985600 [1.736e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000002a25260c2000000000000000000000000000000000000000000000000000000037e10651e
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000002a25260c2000000000000000000000000000000000000000000000000000000037e10651e
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1739404800 [1.739e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1739404800 [1.739e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000018297f5630000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000018297f5630000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1741824000 [1.741e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1741824000 [1.741e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000cd690dad70000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000cd690dad70000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1744243200 [1.744e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1744243200 [1.744e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000006840698470000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000006840698470000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1746662400 [1.746e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1746662400 [1.746e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000037df5353e0000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000037df5353e0000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5445] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedPoolBalance(1749081600 [1.749e9]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [4811] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedPoolBalance(1749081600 [1.749e9]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000054b781f400000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000054b781f400000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [10514] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::previewRepay(154146285792 [1.541e11]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [9883] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::previewRepay(154146285792 [1.541e11]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319ecc3a6197240000000000000000000000000000000000000000000000000be915d9d5f3f697) [staticcall]
    │   │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000001322842f850ec89
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000021cf61c5bf
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000021cf61c5bf
    │   │   │   │   │   │   │   │   │   ├─ [1188] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::floatingBackupBorrowed() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [560] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::floatingBackupBorrowed() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000001f494066bc
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000001f494066bc
    │   │   │   │   │   │   │   │   │   ├─ [1165] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::treasuryFeeRate() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [537] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::treasuryFeeRate() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000002c68af0bb140000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000002c68af0bb140000
    │   │   │   │   │   │   │   │   │   ├─ [1142] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::interestRateModel() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [514] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::interestRateModel() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d
    │   │   │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319ecc3a6197230000000000000000000000000000000000000000000000000be915d9d5f3f697) [staticcall]
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000001322842f850ec89
    │   │   │   │   │   │   │   │   │   ├─ [990] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::totalSupply() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [362] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::totalSupply() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 2506745527943 [2.506e12]
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 2506745527943 [2.506e12]
    │   │   │   │   │   │   │   │   │   ├─ [1210] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::totalFloatingBorrowShares() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [582] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::totalFloatingBorrowShares() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000001cc5a319c35
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000001cc5a319c35
    │   │   │   │   │   │   │   │   │   ├─ emit IndexUpdate(param0: 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb, param1: 0xbea586A167853ADddEF12818f264f1F9823fBc18, param2: 43793619671256930 [4.379e16], param3: 36587408193123702 [3.658e16], param4: 47228337310134957613650 [4.722e22], param5: 1732799487 [1.732e9])
    │   │   │   │   │   │   │   │   │   ├─ emit Accrue(param0: 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb, param1: 0xbea586A167853ADddEF12818f264f1F9823fBc18, param2: 0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019, param3: false, param4: 36577612347060817 [3.657e16], param5: 36587408193123702 [3.658e16], param6: 1474828954088431 [1.474e15])
    │   │   │   │   │   │   │   │   │   └─ ← [Stop] 
    │   │   │   │   │   │   │   │   └─ ← [Return] 
    │   │   │   │   │   │   │   ├─ emit Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019, value: 722685 [7.226e5])
    │   │   │   │   │   │   │   ├─ [157327] 0xBd1ba78A3976cAB420A9203E6ef14D18C2B2E031::handleBorrow(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26)
    │   │   │   │   │   │   │   │   ├─ [156532] 0x59611c1E363e76E85f246Dd26A821b324841930F::handleBorrow(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   ├─ [7621] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::accounts(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [6984] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::accounts(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001676362000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001676362000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [1207] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::maxFuturePools() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [579] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::maxFuturePools() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000007
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000007
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1715212800 [1.715e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1715212800 [1.715e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1717632000 [1.717e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1717632000 [1.717e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1720051200 [1.72e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1720051200 [1.72e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1722470400 [1.722e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1722470400 [1.722e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1724889600 [1.724e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1724889600 [1.724e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1727308800 [1.727e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1727308800 [1.727e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1729728000 [1.729e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1729728000 [1.729e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1732147200 [1.732e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1732147200 [1.732e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1734566400 [1.734e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1734566400 [1.734e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001906400000000000000000000000000000000000000000000000000000000000001e1f
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001906400000000000000000000000000000000000000000000000000000000000001e1f
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1736985600 [1.736e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1736985600 [1.736e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1739404800 [1.739e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1739404800 [1.739e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1741824000 [1.741e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1741824000 [1.741e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1744243200 [1.744e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1744243200 [1.744e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1746662400 [1.746e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1746662400 [1.746e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [5643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1749081600 [1.749e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [5006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1749081600 [1.749e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [8514] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::previewRepay(1640000 [1.64e6]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [7883] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::previewRepay(1640000 [1.64e6]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319e960a39752b0000000000000000000000000000000000000000000000000be915a02da96cea) [staticcall]
    │   │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000001322816d598ba6b
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001792fe
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001792fe
    │   │   │   │   │   │   │   │   │   ├─ [1207] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::maxFuturePools() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [579] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::maxFuturePools() [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000007
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000007
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1732147200 [1.732e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1732147200 [1.732e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1734566400 [1.734e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1734566400 [1.734e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001906400000000000000000000000000000000000000000000000000000000000001e1f
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001906400000000000000000000000000000000000000000000000000000000000001e1f
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1736985600 [1.736e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1736985600 [1.736e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1739404800 [1.739e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1739404800 [1.739e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1741824000 [1.741e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1741824000 [1.741e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1744243200 [1.744e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1744243200 [1.744e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1746662400 [1.746e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1746662400 [1.746e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [1643] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::fixedBorrowPositions(1749081600 [1.749e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [1006] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::fixedBorrowPositions(1749081600 [1.749e9], 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [8514] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::previewRepay(1640000 [1.64e6]) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [7883] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::previewRepay(1640000 [1.64e6]) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319e960a39752b0000000000000000000000000000000000000000000000000be915a02da96cea) [staticcall]
    │   │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000001322816d598ba6b
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001792fe
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000000000000001792fe
    │   │   │   │   │   │   │   │   │   ├─ emit Accrue(param0: 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb, param1: 0xbea586A167853ADddEF12818f264f1F9823fBc18, param2: 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26, param3: true, param4: 43786111771489145 [4.378e16], param5: 43793619671256930 [4.379e16], param6: 11599389809437 [1.159e13])
    │   │   │   │   │   │   │   │   │   └─ ← [Stop] 
    │   │   │   │   │   │   │   │   └─ ← [Return] 
    │   │   │   │   │   │   │   ├─ [11605] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::d9d9048d(000000000000000000000000000000000000000000000000000000006763620000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000ae268e48cbc40000000000000000000000000000000000000000000000000b319e98b70015730000000000000000000000000000000000000000000000000be91b2700fa1458) [staticcall]
    │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000012a0b14f9f688e9
    │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319e960a39752b0000000000000000000000000000000000000000000000000be91b24285ac4f8) [staticcall]
    │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000001322c45bff74735
    │   │   │   │   │   │   │   ├─ [6548] 0xBd1ba78A3976cAB420A9203E6ef14D18C2B2E031::handleDeposit(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019)
    │   │   │   │   │   │   │   │   ├─ [5753] 0x59611c1E363e76E85f246Dd26A821b324841930F::handleDeposit(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019) [delegatecall]
    │   │   │   │   │   │   │   │   │   ├─ [1231] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::balanceOf(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [600] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::balanceOf(0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 151279252 [1.512e8]
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 151279252 [1.512e8]
    │   │   │   │   │   │   │   │   │   └─ ← [Stop] 
    │   │   │   │   │   │   │   │   └─ ← [Return] 
    │   │   │   │   │   │   │   ├─ emit Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x23fD464e0b0eE21cEdEb929B19CABF9bD5215019, value: 14290 [1.429e4])
    │   │   │   │   │   │   │   ├─ emit BorrowAtMaturity(param0: 161869905153235656889025324823794398890739977766 [1.618e47], param1: 0x0000000000000000000000000000000067636200, param2: 0x0f25bA5b8B0BA4Ff4dF645fDE030652da60BabA6, param3: 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26, param4: 15780000 [1.578e7], param5: 74172 [7.417e4])
    │   │   │   │   │   │   │   ├─ emit MarketUpdate(: 1732799487 [1.732e9], : 2506746264918 [2.506e12], : 2602069066896 [2.602e12], : 1977198156853 [1.977e12], : 2098829354134 [2.098e12], : 2958417339 [2.958e9])
    │   │   │   │   │   │   │   ├─  emit topic 0: 0xa2e6044136bec58e0605f40ac11a7bf87f1a8bdf3e2588b11b2cfae5acd9109f
    │   │   │   │   │   │   │   │        topic 1: 0x0000000000000000000000000000000000000000000000000000000067636200
    │   │   │   │   │   │   │   │           data: 0x0000000000000000000000000000000000000000000000000000000067486bff00000000000000000000000000000000000000000000000000000000001ae0ca
    │   │   │   │   │   │   │   ├─ [157180] 0xaEb62e6F27BC103702E7BC879AE98bceA56f027E::checkBorrow(0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb, 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26)
    │   │   │   │   │   │   │   │   ├─ [156378] 0x3f55a319d2fd003F87a96C1c3484121936243c46::checkBorrow(0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb, 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   ├─ [80023] 0xc4d4500326981eacD020e20A81b1c479c161c7EF::accountSnapshot(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [72722] 0xaD973EF23CD21dD9b38DC84132Adcb4Ff64F8da5::accountSnapshot(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   ├─ [5171] 0xa0a6c37A740346c86430056a9086e1d800410E95::7c21fb1d(0000000000000000000000000000000000000000000000000047c6d4b23e834000000000000000000000000000000000000000000000000000aa2120d7c881db) [staticcall]
    │   │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000004552602da22fb4
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000013d9f3ce54ebf90000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x0000000000000000000000000000000000000000000000000013d9f3ce54ebf90000000000000000000000000000000000000000000000000000000000000000
    │   │   │   │   │   │   │   │   │   ├─ [14637] 0x13e3Ee699D1909E989722E753853AE30b17e08c5::latestAnswer() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [7141] 0x02f5E9e9dcc66ba6392f6904D5Fcf8625d9B19C9::latestAnswer() [staticcall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 360755980000 [3.607e11]
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 360755980000 [3.607e11]
    │   │   │   │   │   │   │   │   │   ├─ [19579] 0x6926B434CCe9b5b7966aE1BfEef6D0A7DCF3A8bb::accountSnapshot(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [18945] 0xcE46bc1f3edB054dACF2087255670090Cdd60F38::accountSnapshot(0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26) [delegatecall]
    │   │   │   │   │   │   │   │   │   │   │   ├─ [5171] 0x185DB2c7f5577fbc44561eC9755Bb1955fcF416d::7c21fb1d(0000000000000000000000000000000000000000000000000b319e94f824e48f0000000000000000000000000000000000000000000000000be91b2304b98b72) [staticcall]
    │   │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x00000000000000000000000000000000000000000000000001322c44e0b15409
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000000013bad300000000000000000000000000000000000000000000000000000000010b0ebb
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 0x000000000000000000000000000000000000000000000000000000000013bad300000000000000000000000000000000000000000000000000000000010b0ebb
    │   │   │   │   │   │   │   │   │   ├─ [14637] 0x16a9FA2FDa030272Ce99B29CF780dFA30361E0f3::latestAnswer() [staticcall]
    │   │   │   │   │   │   │   │   │   │   ├─ [7141] 0xd1Cb03cc31caa72D34dba7eBE21897D9580c4AF0::latestAnswer() [staticcall]
    │   │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 99998777 [9.999e7]
    │   │   │   │   │   │   │   │   │   │   └─ ← [Return] 99998777 [9.999e7]
    │   │   │   │   │   │   │   │   │   └─ ← [Revert] custom error 0x15d58176
    │   │   │   │   │   │   │   │   └─ ← [Revert] custom error 0x15d58176
    │   │   │   │   │   │   │   └─ ← [Revert] custom error 0x15d58176
    │   │   │   │   │   │   └─ ← [Revert] custom error 0x15d58176
    │   │   │   │   │   └─ ← [Revert] custom error 0x15d58176
    │   │   │   │   └─ ← [Revert] custom error 0x15d58176
    │   │   │   └─ ← [Revert] custom error 0x15d58176
    │   │   └─ ← [Revert] custom error 0x15d58176
    │   └─ ← [Revert] custom error 0x15d58176
    └─ ← [Revert] custom error 0x15d58176

@nfmelendez
Copy link
Contributor

nfmelendez commented Dec 2, 2024

    // SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "forge-std/Test.sol";
import "./../interface.sol";


interface IExaAccount {


  function collectCredit(uint256 maturity, uint256 amount, uint256 timestamp, bytes calldata signature) external;
 function accountLiquidity(
    address account,
    address marketToSimulate,
    uint256 withdrawAmount
  ) external  returns (uint256 sumCollateral, uint256 sumDebtPlusEffects) ;
}

contract ContractTest is Test {
    address user = 0x1C5a7f61b07DD43F394b5B02aBeb8FcA52814E26;
    address keeper = 0xcDdB23654595C224A563f62943D9Ff189138c04e;

    function setUp() public {
         vm.createSelectFork("optimism",  128_600_355); //fork optimism at block 128600355
    }

    function testOPAccountLiquidity() public {
      vm.prank(keeper);
      IExaAccount(user).collectCredit(1734566400, 15780000, 1732799485, hex"c2a988d9088815e0d0d07b51839b358e22fa8ff95f871f50c8edb2caa1e5ca023b6b0072d90483234b19bdd76002d9f93bded4439afb4c5e7b5cf481d74bdfbe1b");
    }
}

Used codebase: https://github.com/SunWeb3Sec/DeFiHackLabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high
Projects
None yet
Development

No branches or pull requests

3 participants