White-Whale-Defi-Platform / white-whale-core

Core contracts for White Whale, The Interchain Liquidity Protocol for the Cosmos.
https://whitewhale.money
MIT License
36 stars 22 forks source link

fix: fee distributor claim floor fix #370

Closed kerber0x closed 4 months ago

kerber0x commented 4 months ago

Description and Motivation

This PR makes the fee distributor use checked_mul_floor when calculating rewards to be distributed. This might fix the issue some users have when claiming rewards.

Related Issues


Checklist:

codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 93.20%. Comparing base (78df4e7) to head (ed662e5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #370 +/- ## ========================================== - Coverage 93.20% 93.20% -0.01% ========================================== Files 219 219 Lines 24860 24859 -1 ========================================== - Hits 23172 23171 -1 Misses 1688 1688 ```

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