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