Skip to content

Commit

Permalink
another miss
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Aug 27, 2024
1 parent 65583eb commit d4da552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d4da552

Please sign in to comment.