Interface for the Vearn protocol supporting Connex instances for VeWorld and Sync2.
Live versions:
Network | URL |
---|---|
Testnet | https://testnet.vearn.finance |
Mainnet | https://vearn.finance |
This DApp was built with Svelte.
- Users can log in using either Sync2 or VeWorld wallet providers.
- Users have the option to set a reserve balance via the UI, indicating the minimum balance that will be retained in their account after swaps.
- If the logged-in account holds a positive VET balance, users can view a list of upcoming trades (swaps).
- Users can authorize the Vearn protocol to spend their VTHO tokens in exchange for VET.
- Upon authorization, the backend service will monitor the user's account and initiate a swap once the VTHO balance reaches a certain threshold.
- After a trade is executed, users can view a list of past trades and updated statistics associated with their account.
- Users have the flexibility to adjust their reserve balance at any time.
- Users can revoke authorization for the Vearn protocol at any time.
Clone the project and set your environmental variables based on the provided example:
git clone [email protected]:vearnfi/client.git
cp .env.example .env
npm install
Run in dev mode:
npm run dev
Build for production:
npm run build
Serve production build locally:
npm run preview
The app is mainly covered using cypress integration tests. You can run all integration tests in interaction mode via cy:open
Start the app in one terminal
nvm use 18
npm run build
npm run preview
On a second terminal, run the test suit
npm run test:integration
Please, refer to the e2e-coverage
folder for coverage report.
npm run storybook