Veliko
Veliko
For our use case the fork-related cheatcodes are good enough alternative. It is still useful to mark a test case as skipped when the reasons for its failure are not...
Here is a complete example, please note that contractEvents will be undefined unless fixed ( https://github.com/polkadot-js/api/pull/3324 ) The breaking code is in the Mocha files test/test.js https://github.com/vminkov/polkadotjs-events-issue
This can be handled inside the interest rate strategy calculcateInterestRates() method where `availableLiquidity` and `liquidityTaken` are available to compare