Skip to content

Commit

Permalink
fix: misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Jun 19, 2024
1 parent ad1ba74 commit ace776e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions script/add_liq.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ import { LpETH } from "@/lpETH/LpETH.sol";
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
import { ERC20 } from "solady/tokens/ERC20.sol";

contract DeployLocal is Script {
bytes32 salt = bytes32(uint256(1));

contract AddLiquidity is Script {
function run() public {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
address swap = 0xB5A53938316E4a02c0d91F1b454E43583429e347;
address swap = 0x499333147bE243cc1FdC65E218Bcb92B00c8944F;

LpETH(payable(swap)).deposit{ value: 5000 ether }(0);
LpETH(payable(swap)).deposit{ value: 1000 ether }(0);
vm.stopBroadcast();
}
}
6 changes: 3 additions & 3 deletions script/deploy.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
set -x
source .env

nohup bash -c "anvil --fork-url ${MAINNET_RPC} --fork-block-number 19847895 --chain-id 1337 &" >/dev/null 2>&1 && sleep 5
nohup bash -c "anvil --block-time 2 --fork-url ${MAINNET_RPC} --fork-block-number 19847895 --chain-id 1337 &" >/dev/null 2>&1 && sleep 5

forge build

curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","id":67,"method":"anvil_setCode","params": ["0x4e59b44847b379578588920ca78fbf26c0b4956c","0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3"]}' 127.0.0.1:8545

export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

forge script script/deploy.local.s.sol --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv
forge script script/add_liq.s.sol --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY
forge script script/deploy.local.s.sol --legacy --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv
forge script script/add_liq.s.sol --legacy --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv
read -r -d '' _ </dev/tty
echo "Closing Down Anvil"
pkill -9 anvil
4 changes: 2 additions & 2 deletions script/send.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
ME=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

# EETH
UNLUCKY_USER=0x22162DbBa43fE0477cdC5234E248264eC7C6EA7c;
TOKEN=0x35fA164735182de50811E8e2E824cFb9B6118ac2
UNLUCKY_USER=0x78605Df79524164911C144801f41e9811B7DB73D;
TOKEN=0xd5F7838F5C461fefF7FE49ea5ebaF7728bB0ADfa
AMOUNT=100000000000000000000
cast rpc anvil_impersonateAccount $UNLUCKY_USER
cast send $TOKEN \
Expand Down
2 changes: 0 additions & 2 deletions src/unsETH/UnsETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import { Registry } from "@/Registry.sol";
import { ERC721Receiver } from "@/utils/ERC721Receiver.sol";
import { Adapter, AdapterDelegateCall } from "@/adapters/Adapter.sol";

// TODO: ERC165 for adapters

pragma solidity >=0.8.20;

// solhint-disable quotes
Expand Down

0 comments on commit ace776e

Please sign in to comment.