Skip to content

Solidity compile errors on main #56

@0xBigBoss

Description

@0xBigBoss
forge build
[⠊] Compiling...
[⠒] Compiling 74 files with Solc 0.8.21
[⠢] Compiling 50 files with Solc 0.8.23
[⠢] Compiling 65 files with Solc 0.8.19
[⠔] Solc 0.8.23 finished in 3.05s
[⠒] Solc 0.8.19 finished in 3.23s
[⠑] Solc 0.8.21 finished in 3.24s
Error: Compiler run failed:
Error (7576): Undeclared identifier.
  --> src/morpho-blue/VirtualHealthFactor.sol:54:9:
   |
54 |         healthFactor = maxBorrow.wDivDown(borrowed);
   |         ^^^^^^^^^^^^

Error (7576): Undeclared identifier.
  --> src/morpho-blue/VirtualHealthFactor.sol:54:9:
   |
54 |         healthFactor = maxBorrow.wDivDown(borrowed);
   |         ^^^^^^^^^^^^

Seems just returning that health factor fixes the above. But then there is one more.

forge build
[⠊] Compiling...
[⠒] Compiling 74 files with Solc 0.8.21
[⠢] Compiling 65 files with Solc 0.8.19
[⠒] Compiling 50 files with Solc 0.8.23
[⠒] Solc 0.8.19 finished in 818.57ms
[⠔] Solc 0.8.23 finished in 1.28s
[⠒] Solc 0.8.21 finished in 3.09s
Error: Compiler run failed:
Error (9582): Member "userHealthFactorAfterVirtualRepayment" not found or not visible after argument-dependent lookup in contract VirtualHealthFactorSnippets.
  --> test/morpho-blue/TestVirtualHealthFactorSnippets.sol:55:29:
   |
55 |         uint256 virtualHF = snippets.userHealthFactorAfterVirtualRepayment(marketParams, id, BORROWER, repaymentAmount);
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Any guidance is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions