Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Portfolio QS maintenance #2290

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/content/quickstarts/automated-portfolio-manager.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The rebalancing strategy and logic outlined in this tutorial are solely for educ
```

- **RPC URL**: You need a Remote Procedure Call (RPC) URL for the Ethereum Sepolia network. You can obtain one by creating an account on [Alchemy](https://www.alchemy.com/) or [Infura](https://www.infura.io/) and setting up an Ethereum Sepolia project.
- **Private key**: You need the private key of the account that will deploy and interact with the contracts. If you use MetaMask, follow the instructions to [Export a Private Key](https://support.metamask.io/hc/en-us/articles/360015289632-How-to-export-an-account-s-private-key).
- **Private key**: You need the private key of the account that will deploy and interact with the contracts. If you use MetaMask, follow the instructions to [Export a Private Key](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key).
- **Testnet funds**: This guide requires testnet ETH, LINK, and USDC on Ethereum Sepolia.
- Get Sepolia testnet ETH and LINK at [faucets.chain.link](https://faucets.chain.link/sepolia).
- Get Sepolia testnet USDC at [faucet.circle.com](https://faucet.circle.com).
Expand Down Expand Up @@ -202,6 +202,16 @@ forge script script/DeployAutomatedPortfolioManager.s.sol --rpc-url $RPC_URL_SEP
cd app
```

1. Create a `.env.local` file in the `app` directory:
```bash
cp .env.example .env.local
```
1. Open your `.env.local` file and add your Sepolia RPC URL:
```
NEXT_PUBLIC_SEPOLIA_RPC_URL=your_sepolia_rpc_url
```
You can use the same RPC URL you used for contract deployment or get one from providers like [Alchemy](https://www.alchemy.com/) or [Infura](https://www.infura.io/).

1. Run the dApp locally:

```bash
Expand Down