Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> e195f7a6426e6d499ef41b21d92999378ee1d9002bd1b423637635a6bb94e6d7:77:21
|
77 | let leftVault <- repayPoolRef.liquidate(
78 | liquidator: liquidatorAddr,
79 | borrower: borrowerAddr,
80 | poolCollateralizedToSeize: poolAddrs[maxSupplyIndex],
81 | repayUnderlyingVault: <-inWallet.withdraw(amount: repayAmount)
82 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 7492e2f9b4acea9a.LendingPool:1061:21
|
1061 | return <-LendingPool.liquidate(liquidator: liquidator, borrower: borrower, poolCollateralizedToSeize: poolCollateralizedToSeize, repayUnderlyingVault: <-repayUnderlyingVault)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: pre-condition failed: [IncErrorMsg:Liquidator repaid zero][IncErrorCode:8]
--> 7492e2f9b4acea9a.LendingPool:571:12
|
571 | repayUnderlyingVault.balance > 0.0: LendingError.ErrorEncode(msg: "Liquidator repaid zero", err: LendingError.ErrorCode.EMPTY_FUNGIBLE_TOKEN_VAULT)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^