Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashtech15/credit-capital

rewards v2 & vault contracts for the credit capital ecosystem
https://github.com/ashtech15/credit-capital

chai ethereum ethers fantom hardhat solidity typescript unit-testing vue3 vuex

Last synced: 3 months ago
JSON representation

rewards v2 & vault contracts for the credit capital ecosystem

Awesome Lists containing this project

README

        

# Credit Capital

The frontend can be found here: ``packages/app``
The backend can be found here ``packages/sol``

### Development
- first, bootstrap the repository

``yarn bootstrap``

- then, if you want to run the web app, first copy the contents of``.env.example`` file located in the ``app`` package into a new file called ``.env``, then

``yarn start``

The app will then be available at ``http://localhost:8080/``

## Smart contracts
- If you want to compile contracts, run

``yarn compile``

- If you want to run backend tests, run

``yarn test``

## Deployment
- first, replace the properties in the ``packages/sol/.env`` file with the proper values.

```
CAPL_CAP=[CAPL CAP limit(probably 100000000000000000000000000)]
LP_TOKEN_ADDRESS=[TreasuryShare token address(USDC-CAPL Token Pool)]
PRIVATE_KEY=[Metamask PrivateKey]
INFURA_ID=[Infura Project ID]
```
**In order to deploy the account (private key) used for deployment must have admin access to the CAPL token.**
**In order to deploy the contracts, CAPL must have already been deployed**

There are three chains currently supported:

**kovan**
``yarn deploy-testnet-kovan``

**fantom testnet**
``yarn deploy-testnet-fantom``

**fantom**
``yarn deploy-fantom``

- last, copy the contract addresses from the ``.config.js`` file located in the ``sol`` package into ``packages/app/src/constants``