Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored a variable name and some tests #101

Merged
merged 2 commits into from Mar 22, 2024

Conversation

asselstine
Copy link
Contributor

No description provided.

Copy link

linear bot commented Mar 21, 2024

Copy link

LCOV of commit e511bc9 during Tests with 100% Coverage #466

Summary coverage rate:
  lines......: 100.0% (419 of 419 lines)
  functions..: 100.0% (67 of 67 functions)
  branches...: no data found

Files changed coverage rate:
                                             |Lines       |Functions  |Branches    
  Filename                                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================================
  src/abstract/TieredLiquidityDistributor.sol| 100%    156| 100%    19|    -      0

Copy link
Member

@trmid trmid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me! Looks like some extra functions were left in the tests that we can remove to keep things clean.

Comment on lines +1723 to +1759
// function mockGetAverageBalanceBetween(
// address _vault,
// address _user,
// uint48 _startTime,
// uint48 _endTime,
// uint256 _result
// ) internal {
// vm.mockCall(
// address(twabController),
// abi.encodeWithSelector(
// TwabController.getTwabBetween.selector,
// _vault,
// _user,
// _startTime,
// _endTime
// ),
// abi.encode(_result)
// );
// }

// function mockGetAverageTotalSupplyBetween(
// address _vault,
// uint32 _startTime,
// uint32 _endTime,
// uint256 _result
// ) internal {
// vm.mockCall(
// address(twabController),
// abi.encodeWithSelector(
// TwabController.getTotalSupplyTwabBetween.selector,
// _vault,
// _startTime,
// _endTime
// ),
// abi.encode(_result)
// );
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could remove if we don't need these anymore

Comment on lines 1841 to 1877
// function mockGetAverageBalanceBetween(
// address _vault,
// address _user,
// uint48 _startTime,
// uint48 _endTime,
// uint256 _result
// ) internal {
// vm.mockCall(
// address(twabController),
// abi.encodeWithSelector(
// TwabController.getTwabBetween.selector,
// _vault,
// _user,
// _startTime,
// _endTime
// ),
// abi.encode(_result)
// );
// }

// function mockGetAverageTotalSupplyBetween(
// address _vault,
// uint32 _startTime,
// uint32 _endTime,
// uint256 _result
// ) internal {
// vm.mockCall(
// address(twabController),
// abi.encodeWithSelector(
// TwabController.getTotalSupplyTwabBetween.selector,
// _vault,
// _startTime,
// _endTime
// ),
// abi.encode(_result)
// );
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could remove if we don't need these anymore

@asselstine asselstine merged commit a7ae682 into main Mar 22, 2024
2 checks passed
@asselstine asselstine deleted the gen-1117-add-comments-for-prize-token-per-share branch March 22, 2024 23:47
Copy link

LCOV of commit 34a43dc during Tests with 100% Coverage #478

Summary coverage rate:
  lines......: 100.0% (419 of 419 lines)
  functions..: 100.0% (67 of 67 functions)
  branches...: no data found

Files changed coverage rate:
                                             |Lines       |Functions  |Branches    
  Filename                                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================================
  src/abstract/TieredLiquidityDistributor.sol| 100%    156| 100%    19|    -      0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants