Skip to content

Commit

Permalink
Merge pull request #912 from lidofinance/feat/fix-accounting-tests-va…
Browse files Browse the repository at this point in the history
…ults

Fix accounting tests for vaults
  • Loading branch information
folkyatina authored Jan 21, 2025
2 parents 8cf3484 + ade6c03 commit cf4ad78
Show file tree
Hide file tree
Showing 11 changed files with 614 additions and 1,438 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"typecheck": "tsc --noEmit",
"prepare": "husky",
"abis:extract": "hardhat abis:extract",
"verify:deployed": "hardhat verify:deployed"
"verify:deployed": "hardhat verify:deployed",
"postinstall": "husky"
},
"lint-staged": {
"./**/*.ts": [
Expand Down
8 changes: 4 additions & 4 deletions test/0.4.24/contracts/Burner__MockForAccounting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
pragma solidity 0.4.24;

contract Burner__MockForAccounting {
event StETHBurnRequested(
event Mock__StETHBurnRequested(
bool indexed isCover,
address indexed requestedBy,
uint256 amountOfStETH,
uint256 amountOfShares
);

event Mock__CommitSharesToBurnWasCalled();
event Mock__CommitSharesToBurnWasCalled(uint256 sharesToBurn);

function requestBurnShares(address, uint256 _sharesAmountToBurn) external {
// imitating share to steth rate 1:2
uint256 _stETHAmount = _sharesAmountToBurn * 2;
emit StETHBurnRequested(false, msg.sender, _stETHAmount, _sharesAmountToBurn);
emit Mock__StETHBurnRequested(false, msg.sender, _stETHAmount, _sharesAmountToBurn);
}

function commitSharesToBurn(uint256 _sharesToBurn) external {
_sharesToBurn;

emit Mock__CommitSharesToBurnWasCalled();
emit Mock__CommitSharesToBurnWasCalled(_sharesToBurn);
}
}

This file was deleted.

15 changes: 0 additions & 15 deletions test/0.4.24/contracts/WithdrawalVault__MockForLidoAccounting.sol

This file was deleted.

Loading

0 comments on commit cf4ad78

Please sign in to comment.