Once the EmergencyMigration.s.sol is run to migrate from the MoneyShelf.sol contract to the MoneyVault.sol contract. The balance's stored in MoneyShelf.sol are not transferred over to MoneyVault.sol to be protected.
As per the documentation, the money from MoneyShelf.sol is to be protected inside of the MoneyVault.sol contract once the Emergency Migration occurs. This does not work though because the money will still be inside of the MoneyShelf.sol contract.
Because the MoneyValue.sol contract cannot be deposited to and it does not hold any value, it is essentially useless once the Emergency Migration occurs.
The below test fails showing that the value deposited into the MoneyShelf.sol contract is not transferred over to MoneyVault.sol.
--Foundry
It is recommended to re-work how the emergency migration to the MoneyVault.sol occurs. It would be best to transfer the money to this contract during the migration.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.