From 620d37f979d1e88e3a3e40b20011aa2bb76007aa Mon Sep 17 00:00:00 2001 From: Anton Cheng Date: Wed, 22 Nov 2023 23:35:00 +0800 Subject: [PATCH] docs: update README --- README.md | 3 ++- foundry.toml | 1 + test/fork-tests/withdraw/LyraWithdrawWrapper.sol | 5 ++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f0f7279..9ce7c19 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ $ forge build ### Test ```shell -$ forge test +# tests on Lyra chain +$ forge test --fork-url ``` ### Using the contracts diff --git a/foundry.toml b/foundry.toml index 12dcae0..5d0b478 100644 --- a/foundry.toml +++ b/foundry.toml @@ -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" \ No newline at end of file diff --git a/test/fork-tests/withdraw/LyraWithdrawWrapper.sol b/test/fork-tests/withdraw/LyraWithdrawWrapper.sol index 078d478..64ec6fa 100644 --- a/test/fork-tests/withdraw/LyraWithdrawWrapper.sol +++ b/test/fork-tests/withdraw/LyraWithdrawWrapper.sol @@ -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"; @@ -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); @@ -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(); }