Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> a3046c5b28dcd37f160fa47b0ec0e2f88c80dd08d44627c9703b9b6de9db8d96: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)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^