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