Skip to content

Commit

Permalink
chore: upd directMint test
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaSethi committed Dec 24, 2024
1 parent a3ff6f5 commit ca12f63
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,15 +503,16 @@ contract GhoTokenPoolRemote_directMint is GhoTokenPoolRemoteSetup {
function testFuzzDirectMintSuccess(uint256 amount) public {
amount = bound(amount, 1, type(uint128).max); // current pool capacity

address oldFacilitator = makeAddr("oldFacilitator");
address oldTokePool = makeAddr("oldTokePool");

changePrank(AAVE_DAO);
vm.expectEmit(address(s_burnMintERC677));
emit Transfer(address(0), oldFacilitator, amount);
s_pool.directMint(oldFacilitator, amount);
emit Transfer(address(0), oldTokePool, amount);
s_pool.directMint(oldTokePool, amount);

assertEq(s_burnMintERC677.balanceOf(oldFacilitator), amount);
assertEq(s_burnMintERC677.balanceOf(oldTokePool), amount);
assertEq(s_burnMintERC677.balanceOf(address(s_pool)), 0);
assertEq(GhoToken(address(s_burnMintERC677)).getFacilitator(address(s_pool)).bucketLevel, amount);
}

// Reverts
Expand Down

0 comments on commit ca12f63

Please sign in to comment.