• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IndexCoop / index-protocol / 08e4dbc4-8cef-4ad2-be6e-fc9c09ec5d8b
91%

Build:
DEFAULT BRANCH: master
Ran 07 Oct 2024 11:59AM UTC
Jobs 1
Files 106
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Oct 2024 11:16AM UTC coverage: 96.189% (-1.7%) from 97.845%
08e4dbc4-8cef-4ad2-be6e-fc9c09ec5d8b

push

circleci

web-flow
feat: MorphoLeverageModule (#41)

* Skeleton contract code based on AaveLeverageModule, removing all Aave references

* Add Morpho Library

* Switch to single collateral / borrow asset

* Save only marketParams in storage and avoid saving collateral / token assets separately

* Implement sync method

* Skeleton test code

* Add initialization tests

* Fix interface calls to morpho

* Lever up working in test

* Clean up unused variables in test

* Delever implementation and hooks

* Refactor back to using encodeWithSignature

* Add test for deleverToZero method

* Implementation of deleverToZero method

* Use shares instead of assets when fully delevering

* Add test to check that positions align with balances and morpho data

* Clean up tests and add check comparing borrow position

* Add morpho position check to more tests

* Add tests for componentRedeemHook

* Refactor tests

* Fix componentRedeemHook test

* Fix rounding issue with borrow balance when specifying shares in deleverToZero

* Factor out checkSetComponentsAgainstMorphoPosition

* Implement _validateMarketParams

* Remove unused events and methods

* Add docstrigns

* Emit event when morpho market is set for set token

* Code clean up

* Increase rounding error tolerance in approve call to 2 wei

* Check lastUpdate instead of totalSupplyAssets to determine wether given morpho market exists

* Use SafeMath library in MorphoMathLib

* Use SafeMath library in MorphoSharesMath

* Add more Morpho Libs

* Remove rounding margin on top of assetBalance when repaying via shares

* Update repay token default position after delever

* Don't accrue interest in sync method

* Increase redeem amount in deleverToZero method to a value that results in uniV3 swap not using up the entire collateral amount and therefore leaving collateral tokens in the sets balance

* Fix test by depositing left over wsteth after delevering to zero... (continued)

2278 of 2430 branches covered (93.74%)

Branch coverage included in aggregate %.

166 of 230 new or added lines in 8 files covered. (72.17%)

3452 of 3527 relevant lines covered (97.87%)

247.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 08e4dbc4-8cef-4ad2-be6e-fc9c09ec5d8b.1 07 Oct 2024 11:59AM UTC 0
96.19
Source Files on build 08e4dbc4-8cef-4ad2-be6e-fc9c09ec5d8b
Detailed source file information is not available for this build.
  • Back to Repo
  • CircleCI Build #08E4DBC4...
  • d219221c on github
  • Prev Build on master (#64405C66...)
  • Next Build on master (#F7B40902...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc