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