VlodkoMr / simple-dca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flex DCA

Welcome to FlexDCA, where seamless crypto swaps meet the well-known Dollar Cost Averaging (DCA) strategy. Diversify and enhance your portfolio effortlessly with our user-friendly platform. Simplify crypto investing with precision and strategy, using the tried-and-true DCA approach for optimal results.

Requirements

Before you begin, you need to install the following tools:

Quickstart

To get started with Scaffold-ETH 2, follow the steps below:

  1. Clone this repo & install dependencies
git clone https://github.com/scaffold-eth/scaffold-eth-2.git
cd scaffold-eth-2
yarn install
  1. Run a local network in the first terminal:
yarn chain

This command starts a local Ethereum network using Hardhat. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in hardhat.config.ts.

  1. On a second terminal, deploy the test contract:
yarn deploy

This command deploys a test smart contract to the local network. The contract is located in packages/hardhat/contracts and can be modified to suit your needs. The yarn deploy command uses the deploy script located in packages/hardhat/deploy to deploy the contract to the network. You can also customize the deploy script.

  1. On a third terminal, start your NextJS app:
yarn start

Deploy and Verify on Sepolia:

yarn deploy --network sepolia --reset
yarn verify --network sepolia

Deploy and Verify on polygonMumbai:

yarn deploy --network polygonMumbai --reset
yarn verify --network polygonMumbai

You can get test USDC on Uniswap (USDC in the list when you switched to Mumbai network).

Deploy and Verify on Polygon zkEVM:

yarn deploy --network polygonZkEvm --reset
yarn verify --network polygonZkEvm

Deploy and Verify on Polygon:

yarn deploy --network polygon --reset
yarn verify --network polygon

Deploy and Verify on Avalanche:

yarn deploy --network avalanche --reset
yarn verify --network avalanche

Register upkeep for strategy #1 (100 wallets/upkeep)

0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064
0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006500000000000000000000000000000000000000000000000000000000000000c8
0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c9000000000000000000000000000000000000000000000000000000000000012c
0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000012d0000000000000000000000000000000000000000000000000000000000000190
0x0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000019100000000000000000000000000000000000000000000000000000000000001f4

Note: Register upkeeps for each strategy!

About

License:MIT License


Languages

Language:TypeScript 88.0%Language:Solidity 7.8%Language:SCSS 3.4%Language:JavaScript 0.9%Language:Shell 0.0%