Skip to content

Commit

Permalink
little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelvm5 committed Aug 28, 2024
1 parent 2a2e8b1 commit bd0cd1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ERC4626a16z.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {TransparentUpgradeableProxy} from 'solidity-utils/contracts/transparent-
import {StakeToken} from 'src/contracts/StakeToken.sol';
import {IRewardsController} from 'src/contracts/interfaces/IRewardsController.sol';

import {MockRewardsController} from '../utils/mock/MockRewardsController.sol';
import {MockERC20Permit} from '../utils/mock/MockERC20Permit.sol';
import {MockRewardsController} from './utils/mock/MockRewardsController.sol';
import {MockERC20Permit} from './utils/mock/MockERC20Permit.sol';

interface ISlashable {
function slash(address to, uint256 amount) external;
Expand Down Expand Up @@ -66,7 +66,7 @@ contract ERC4626StdTest is ERC4626Test {

uint loss = uint(-1 * init.yield);

vm.assume(loss + MIN_ASSETS_REMAINING() < totalShares); // avoid overflow in conversion
vm.assume(loss + MIN_ASSETS_REMAINING() < totalShares);

vm.startPrank(whoCanSlash());
try ISlashable(_vault_).slash(address(0xdead), loss) {} catch {
Expand Down

0 comments on commit bd0cd1f

Please sign in to comment.