jito-foundation / restaking

https://docs.restaking.jito.network/
Other
54 stars 5 forks source link

VAULT: Fixed vrt reserve calculation #126

Closed coachchucksol closed 5 days ago

coachchucksol commented 1 week ago

We need to account for the fee to withdraw all VRT when calculating the reserve. This fixes that and adds a test.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.92%. Comparing base (77f755d) to head (202c77f). Report is 2 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #126 +/- ## ========================================== + Coverage 81.89% 81.92% +0.02% ========================================== Files 85 85 Lines 8579 8593 +14 ========================================== + Hits 7026 7040 +14 Misses 1553 1553 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ebatsell commented 5 days ago

note to self: will need to incorporate program fee into this function before merging https://github.com/jito-foundation/restaking/pull/120