-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdda728
commit 216c633
Showing
5 changed files
with
111 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
test/0.8.25/vaults/vaulthub/contracts/VaultHub__Harness.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
// for testing purposes only | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import {Accounting} from "contracts/0.8.25/Accounting.sol"; | ||
|
||
import {ILido} from "contracts/0.8.25/interfaces/ILido.sol"; | ||
import {ILidoLocator} from "contracts/common/interfaces/ILidoLocator.sol"; | ||
|
||
contract VaultHub__Harness is Accounting { | ||
constructor(address _locator, address _steth) Accounting(ILidoLocator(_locator), ILido(_steth)) {} | ||
|
||
function mock__calculateVaultsRebase( | ||
uint256 _postTotalShares, | ||
uint256 _postTotalPooledEther, | ||
uint256 _preTotalShares, | ||
uint256 _preTotalPooledEther, | ||
uint256 _sharesToMintAsFees | ||
) | ||
external | ||
view | ||
returns (uint256[] memory lockedEther, uint256[] memory treasuryFeeShares, uint256 totalTreasuryFeeShares) | ||
{ | ||
return | ||
_calculateVaultsRebase( | ||
_postTotalShares, | ||
_postTotalPooledEther, | ||
_preTotalShares, | ||
_preTotalPooledEther, | ||
_sharesToMintAsFees | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters