jito-foundation / restaking

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

Restaking: Add operator fee field #117

Closed ebatsell closed 6 days ago

ebatsell commented 2 weeks ago

Operator fee. Not enforced by these programs, will be handled by Rewards NCN.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 92.95775% with 5 lines in your changes missing coverage. Please review.

Project coverage is 82.10%. Comparing base (77f755d) to head (777fb64). Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
restaking_core/src/operator.rs 50.00% 4 Missing :warning:
restaking_program/src/operator_set_fee.rs 95.65% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #117 +/- ## ========================================== + Coverage 81.89% 82.10% +0.20% ========================================== Files 85 86 +1 Lines 8579 8637 +58 ========================================== + Hits 7026 7091 +65 + Misses 1553 1546 -7 ```

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

coachchucksol commented 1 week ago

Note: @buffalu I think eventually we will want the ramp-up fee protection. And we need to be careful of it on the rewards side. If the rewards are calculated on the fee, without the ramp-up the operator can rug the rewards