Among the e2e assets test, some of them are testing for revert when going above supply & borrow caps https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L152
To do this the vaults get seeded with 100k$ of collateral and 10k$ of asset to be tested.
https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L165
https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L166
When the tested asset can be borrowed the test will set borrow cap to 1 and check that borrowing 11**decimals asset revert with the error being that the borrow cap have been reached (BORROW_CAP_EXCEEDED). However if 11**decimals asset is worth moar than 10k$ the test will revert with INVALID_AMOUNT instead as we are trying to borrow moar than the supply. https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L218
Among the e2e assets test, some of them are testing for revert when going above supply & borrow caps https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L152
To do this the vaults get seeded with 100k$ of collateral and 10k$ of asset to be tested.
https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L165
https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L166
When the tested asset can be borrowed the test will set borrow cap to 1 and check that borrowing
11**decimalsasset revert with the error being that the borrow cap have been reached (BORROW_CAP_EXCEEDED). However if11**decimalsasset is worth moar than 10k$ the test will revert withINVALID_AMOUNTinstead as we are trying to borrow moar than the supply. https://github.com/bgd-labs/aave-helpers/blob/30ae8291dbcde38ad398486765e458df3880e526/src/ProtocolV3TestBase.sol#L218