Skip to content

Commit

Permalink
test: add random amount for swapExactSyForYt handler
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Jun 25, 2024
1 parent b6e025a commit f234d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/invariant/RMMHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ contract RMMHandler is CommonBase, StdUtils, StdCheats {
ghost_totalLiquidity -= int256(deltaLiquidity);
}

function swapExactSyForYt() public createActor countCall(this.swapExactSyForYt.selector) {
uint256 exactSYIn = 1 ether;
function swapExactSyForYt(uint256 exactSYIn) public createActor countCall(this.swapExactSyForYt.selector) {
exactSYIn = bound(exactSYIn, 0.1 ether, 100 ether);
deal(address(SY), address(currentActor), exactSYIn);

PYIndex index = YT.newIndex();
Expand Down

0 comments on commit f234d46

Please sign in to comment.