Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
antoncoding committed Nov 22, 2023
1 parent 0e7bbac commit 620d37f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ $ forge build
### Test

```shell
$ forge test
# tests on Lyra chain
$ forge test --fork-url <LyraMainnetRPC>
```

### Using the contracts
Expand Down
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ optimizer_runs = 2000
[rpc_endpoints]
mainnet = "https://mainnet.infura.io/v3/${INFURA_PROJECT_ID}"
op_goerli = "https://optimism-goerli.blockpi.network/v1/rpc/public"
lyra = "https://rpc.lyra.finance"
5 changes: 2 additions & 3 deletions test/fork-tests/withdraw/LyraWithdrawWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity ^0.8.18;

import "lib/forge-std/src/Test.sol";
import "lib/forge-std/src/console2.sol";

import "src/withdraw/LyraWithdrawWrapper.sol";
import {USDC} from "src/mocks/USDC.sol";
Expand Down Expand Up @@ -45,7 +44,7 @@ contract FORK_LyraWithdrawalTest is Test {
vm.startPrank(alice);
IERC20(usdc).approve(address(wrapper), type(uint256).max);

wrapper.withdrawToL1(amount, alice, connector, 400_000);
wrapper.withdrawToL1(amount, alice, connector, 200_000);
vm.stopPrank();

uint balanceAfter = IERC20(usdc).balanceOf(alice);
Expand All @@ -58,7 +57,7 @@ contract FORK_LyraWithdrawalTest is Test {

uint amount = 1e6;
vm.expectRevert(bytes("withdraw amount < fee"));
wrapper.withdrawToL1(amount, alice, connector, 400_000);
wrapper.withdrawToL1(amount, alice, connector, 200_000);

vm.stopPrank();
}
Expand Down

0 comments on commit 620d37f

Please sign in to comment.