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