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