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
--> 66dce40c5781cac69e8c6d95f68765a839200d4fc0cb9004cbd6a2f9f27a339e: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
--> 66dce40c5781cac69e8c6d95f68765a839200d4fc0cb9004cbd6a2f9f27a339e:27:79
|
27 | let callback = fun (loanedVault: @FungibleToken.Vault, repayAmount: UFix64): @FungibleToken.Vault {
| ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}`
error: mismatched types
--> 66dce40c5781cac69e8c6d95f68765a839200d4fc0cb9004cbd6a2f9f27a339e:29:160
|
29 | let remainingVault <- repayPoolRef.liquidate(liquidator: signer.address, borrower: borrower, poolCollateralizedToSeize: seizePoolAddr, repayUnderlyingVault: <-loanedVault)
| ^^^^^^^^^^^^^ expected `{FungibleToken.Vault}`, got `FungibleToken.Vault`