Skip to content

Commit

Permalink
rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Jan 5, 2024
1 parent 4390dd3 commit e21744c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/4SushiV2StratBinomial.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import "test/lib/OrderBookNPE2Real.sol";

uint256 constant CONTEXT_VAULT_IO_ROWS = 5;

string constant FORK_RPC = "https://polygon.llamarpc.com";
uint256 constant FORK_BLOCK_NUMBER = 50715909;
uint256 constant VAULT_ID = uint256(keccak256("vault"));

Expand All @@ -70,7 +69,7 @@ contract Test4SushiV2StratBinomial is OrderBookNPE2Real {
using LibFixedPointDecimalScale for uint256;

function selectPolygonFork() internal {
uint256 fork = vm.createFork(FORK_RPC);
uint256 fork = vm.createFork(vm.envString("RPC_URL_POLYGON"));
vm.selectFork(fork);
vm.rollFork(FORK_BLOCK_NUMBER);
}
Expand Down
3 changes: 1 addition & 2 deletions test/5SushiV2LimitOrder.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ contract Test4SushiV2LimitOrder is Test5SushiV2LimitOrderUtil {
using LibFixedPointDecimalArithmeticOpenZeppelin for uint256;
using LibFixedPointDecimalScale for uint256;

string constant FORK_RPC = "https://polygon.llamarpc.com";
uint256 constant FORK_BLOCK_NUMBER = 50848263;

uint32 constant RESERVE_TIMESTAMP = 1701608565;
Expand All @@ -69,7 +68,7 @@ contract Test4SushiV2LimitOrder is Test5SushiV2LimitOrderUtil {
uint256 constant CONTEXT_VAULT_IO_ROWS = 5;

function selectPolygonFork() internal {
uint256 fork = vm.createFork(FORK_RPC);
uint256 fork = vm.createFork(vm.envString("RPC_URL_POLYGON"));
vm.selectFork(fork);
vm.rollFork(FORK_BLOCK_NUMBER);
}
Expand Down

0 comments on commit e21744c

Please sign in to comment.