|
19 | 19 | for address in "${addresses[@]}"
|
20 | 20 | do
|
21 | 21 | echo "funding ${address}..."
|
| 22 | + |
22 | 23 | echo " - funding eth..."
|
23 | 24 | npx hardhat fork:mint-eth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts"
|
24 |
| - echo " - funding dai..." |
25 |
| - npx hardhat fork:mint-dai --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
26 |
| - echo " - funding eeth..." |
27 |
| - npx hardhat fork:mint-eeth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
28 |
| - echo " - funding ezeth..." |
29 |
| - npx hardhat fork:mint-ezeth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
30 |
| - echo " - funding reth..." |
31 |
| - npx hardhat fork:mint-reth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
32 |
| - echo " - funding sdai..." |
33 |
| - npx hardhat fork:mint-sdai --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
34 |
| - echo " - funding steth..." |
35 |
| - npx hardhat fork:mint-steth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
36 |
| - echo " - funding usde..." |
37 |
| - npx hardhat fork:mint-usde --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
38 |
| - echo " - funding wsteth..." |
39 |
| - npx hardhat fork:mint-wsteth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
40 |
| - echo " - funding usdc..." |
41 |
| - npx hardhat fork:mint-usdc --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 25 | + |
| 26 | + if [ "$NETWORK" = "mainnet_fork"]; then |
| 27 | + echo " - funding dai..." |
| 28 | + npx hardhat fork:mint-dai --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 29 | + echo " - funding eeth..." |
| 30 | + npx hardhat fork:mint-eeth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 31 | + echo " - funding ezeth..." |
| 32 | + npx hardhat fork:mint-ezeth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 33 | + echo " - funding reth..." |
| 34 | + npx hardhat fork:mint-reth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 35 | + echo " - funding sdai..." |
| 36 | + npx hardhat fork:mint-sdai --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 37 | + echo " - funding steth..." |
| 38 | + npx hardhat fork:mint-steth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 39 | + echo " - funding usde..." |
| 40 | + npx hardhat fork:mint-usde --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 41 | + echo " - funding wsteth..." |
| 42 | + npx hardhat fork:mint-wsteth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 43 | + echo " - funding usdc..." |
| 44 | + npx hardhat fork:mint-usdc --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 45 | + fi |
| 46 | + |
| 47 | + if [ "$NETWORK" = "gnosis" ]; then |
| 48 | + echo " - funding wsteth..." |
| 49 | + npx hardhat fork:mint-wsteth --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 50 | + echo " - funding wxdai..." |
| 51 | + npx hardhat fork:mint-wxdai --address "${address}" --network "${NETWORK}" --config "hardhat.config.${NETWORK}.ts" |
| 52 | + fi |
| 53 | + |
42 | 54 | done
|
0 commit comments