Skip to content

Commit

Permalink
Add whitelisting to E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
xavikh committed Dec 12, 2024
1 parent 0c7eab2 commit 4f4b697
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/fork/e2eV2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import {Deploy, DeploymentParameters} from "script/Deploy.s.sol";

interface IERC20Mint is IERC20 {
function mint(address _to, uint256 _amount) external;

function updateTransferWhitelist(address _account, bool _add) external;
}

contract GhettoMultisig {
Expand Down Expand Up @@ -1435,6 +1437,17 @@ contract TestE2EV2 is Test, IWithdrawalQueueErrors, IGaugeVote, IEscrowCurveToke
return false;
}

address xKIMOwner = address(0x6f1130E4b96C681e2721667DDfFcA99dD6824a2d);

vm.startPrank(xKIMOwner);
{
token.updateTransferWhitelist(whale, true);
token.updateTransferWhitelist(distributor, true);
token.updateTransferWhitelist(address(escrow), true);
token.updateTransferWhitelist(address(queue), true);
}
vm.stopPrank();

vm.prank(whale);
token.transfer(address(distributor), 3_000 ether);
return true;
Expand Down

0 comments on commit 4f4b697

Please sign in to comment.