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