From d4da552c2e2d5ddf3f428ab4b00057c5d3dde991 Mon Sep 17 00:00:00 2001 From: Sam MacPherson Date: Tue, 27 Aug 2024 12:21:13 -0400 Subject: [PATCH] another miss --- src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol b/src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol index 49c64332..e16ce971 100644 --- a/src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol +++ b/src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol @@ -215,11 +215,11 @@ contract D3MAaveV3USDSNoSupplyCapTypePool is ID3MPool { // Withdraws USDS from Aave in exchange for ausds // Aave: https://docs.aave.com/developers/core-contracts/pool#withdraw function withdraw(uint256 wad) external override onlyHub { - uint256 prevNst = usds.balanceOf(address(this)); + uint256 prevUsds = usds.balanceOf(address(this)); pool.withdraw(address(usds), wad, address(this)); - require(usds.balanceOf(address(this)) == prevNst + wad, "D3MAaveV3NoSupplyCapTypePool/incorrect-usds-balance-received"); + require(usds.balanceOf(address(this)) == prevUsds + wad, "D3MAaveV3NoSupplyCapTypePool/incorrect-usds-balance-received"); usdsJoin.join(address(this), wad); daiJoin.exit(msg.sender, wad);