Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: invalid use of interface as type
--> 481bc31fc9cc6774e1a033722884631fc5943d0c12c8c16ec778f2e77674122e:27:35
|
27 | let callback = fun (loanedVault: @FungibleToken.Vault, repayAmount: UFix64): @FungibleToken.Vault {
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: invalid use of interface as type
--> 481bc31fc9cc6774e1a033722884631fc5943d0c12c8c16ec778f2e77674122e:27:79
|
27 | let callback = fun (loanedVault: @FungibleToken.Vault, repayAmount: UFix64): @FungibleToken.Vault {
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: mismatched types
--> 481bc31fc9cc6774e1a033722884631fc5943d0c12c8c16ec778f2e77674122e:29:160
|
29 | let remainingVault <- repayPoolRef.liquidate(liquidator: signer.address, borrower: borrower, poolCollateralizedToSeize: seizePoolAddr, repayUnderlyingVault: <-loanedVault)
| ^^^^^^^^^^^^^ expected `{FungibleToken.Vault}`, got `FungibleToken.Vault`