Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add additional Foundry test coverage (#322)
* chore: add Foundry initial test environment mocks * chore: remove mint at test * chore: add tests and borrow fuzz to GhoVariableDebtToken * chore: add initial test engine for gho borrow * chore: add percent calc function * fix: Remove discount lock period mechanism (#293) * fix: remove discount lock period from GhoDebtToken * test: Update tests for new rebalance behaviour * fix: Optimize gho debt balanceof (#297) * fix: Simplify GhoToken.addFacilitator function (#295) * fix: Remove Facilitator struct from addFacilitator function * test: Adjusts test for new addFacilitator parameters * fix: Make facilitatorLabel calldata-like parameter * feat: Add helper contract to manage risk params of GHO reserve (#291) * setup modifier * setup gho manager and tests * remove atoken changes * use interfaces * adds test for ghomanager as pooladmin * fix: Remove updateLockDiscountPeriod calls from GhoManager (#298) * chore: initial repay engine * chore: add makefile with coverage html report and ignore mocks, add rebalance discount tests and onbehalf borrow * chore: add 100% coverage for GhoVariableDebtToken contract * chore: add GhoAToken.sol tests * fix: Stop prettier formatting dependencies and cache * feat: Initial flashminter setup * misc: Slight optimisation * test: Add Gho FlashMinter unit tests * test: Add flash minter unit tests * fix: Resolve VSCode import callback issue with forge-std/ds-test * test: Add GhoAToken tests for transfer and self-rescue reverts * fix: exclude foundry-test for hardhat coverage tests * test: Add initial GhoToken unit tests * fix: remove stkAave mocks, replace with BGD repo and update impacted tests * fix: resolved error in testUpdateDiscountTokenToZero test * fix: increase node testrunner heap alloc to avoid OOM * fix: setup stkAave behind proxy * test: add GhoOracle unit tests * test: add GhoDiscountRateStrategy unit/fuzz tests * test: add GhoInterestRateStrategy fuzz test * test: add GhoManager unit tests, mocked PoolConfigurator * fix: remove unnecessary stopPranks that fail in latest forge * test: added nonce/domain sep unit tests for GhoAToken * test: add GhoStableDebtToken unit tests * feat: add combined coverage from hardhat/foundry * fix: refactor initial foundry tests * fix: move MockFlashBorrower to common location * feat: add EmptyDiscountRateStrategy fuzz test * feat: add UiGhoDataProvider unit tests * feat: complete GhoToken unit tests * feat: complete GhoVariableDebtToken unit tests * feat: add last unit test for GhoVariableDebtToken * fix: update ordering in constant/event test files * fix: remove unnecessary prank on proxy init * fix: naming of fuzz tests to be more descriptive * fix: re-remove old tests that got re-merged * fix: Remove hardhat unitTests folder * fix: Fix constants value of tests * test: Add couple of test cases * test: Rename test titles * fix: Rename EmptyDiscountRateStrategy to ZeroDiscountRateStrategy * fix: Remove unneeded import * feat: add genhtml back to combined coverage * fix: add error messages on test reverts * fix: Fix package scripts * fix: Fix deploy script of GhoStableDebtToken --------- Co-authored-by: David Racero <[email protected]> Co-authored-by: miguelmtz <[email protected]> Co-authored-by: Mark Hinschberger <[email protected]> Co-authored-by: Zer0dot <[email protected]> Co-authored-by: miguelmtzinf <[email protected]>
- Loading branch information