Skip to content

Commit

Permalink
fix: Use LQTY mock with wildcard spender for Sepolia deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed Dec 13, 2024
1 parent 5a34f92 commit 74350fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contracts/scripts/DeployLiquity2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,12 @@ contract DeployLiquity2Script is DeployGovernance, UniPriceConverter, StdCheats,
uniV3PositionManager = uniV3PositionManagerSepolia;
balancerFactory = balancerFactorySepolia;
// Needed for Governance (they will be constants for mainnet)
lqty = address(new ERC20Faucet("Liquity", "LQTY", 100 ether, 1 days));
ERC20Faucet lusd = new ERC20Faucet("Liquity USD", "LUSD", 100 ether, 1 days);
lqty = address(new MockERC20Tester("Liquity", "LQTY"));
MockERC20Tester lusd = new MockERC20Tester("Liquity USD", "LUSD");
stakingV1 = address(new MockStakingV1(IERC20_GOV(lqty), IERC20_GOV(address(lusd))));

// Let stakingV1 spend anyone's LQTY without approval, like in the real LQTYStaking
MockERC20Tester(lqty).mock_setWildcardSpender(address(stakingV1), true);
}

TroveManagerParams[] memory troveManagerParamsArray = new TroveManagerParams[](3);
Expand Down

0 comments on commit 74350fb

Please sign in to comment.