Skip to content

Commit

Permalink
Verify deposits that are still germinating after one season cannot be…
Browse files Browse the repository at this point in the history
… transmitted
  • Loading branch information
pizzaman1337 committed Oct 24, 2024
1 parent 0100ffb commit 1d47631
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions protocol/test/foundry/forkSystem/TransmitToFork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ contract TransmitToForkTest is TestHelper {
vm.expectRevert("Transmit: Cannot transmit germinating deposits");
vm.prank(user);
bs.transmitOut(newBsAddr, _assets, abi.encode(""));

// if one season passes, the deposit is still germinating, it should revert

bs.siloSunrise(0);
vm.expectRevert("Transmit: Cannot transmit germinating deposits");
vm.prank(user);
bs.transmitOut(newBsAddr, _assets, abi.encode(""));
}

// Capture Source state.
Expand Down

0 comments on commit 1d47631

Please sign in to comment.