Teller V1 is a composition of smart contracts, which create the protocol. These contracts enable digital asset holders on the Ethereum blockchain to engage in decentralized, lending and borrowing activities, with down to zero collateral.
The protocol is currently in beta and deployed on the Kovan testnet. We envision the protocol to evolve into a decentralized, community-run project, maintained by a DAO (Decentralized Autonomous Organization) structure.
If you would like to contribute, we encourage you to submit a PR directly or join the open-source team at hello@teller.finance.
This is important to have a stable NodeJS version installed. At the moment of writing this document, the team is using the NodeJS v14.15.4 (Fermium LTS) without issues.
To make the development process easier, we use Hardhat to develop and manage the smart contracts.
Run yarn setup
to perform the necessary steps to get the repository setup.
It will:
.env
file by using the predefined .env.template
After this, you will need to make sure that the following variables are defined in the .env
file:
MNEMONIC_KEY
- Used to interact with or deploy smart contracts on a network.
ALCHEMY_MAINNET_KEY
ALCHEMY_RINKEBY_KEY
ALCHEMY_ROPSTEN_KEY
ALCHEMY_KOVAN_KEY
MATIC_MAINNET_KEY
MATIC_MUMBAI_KEY
ETHERSCAN_API_KEY
- Used to verify smart contracts after deploymentCMC_KEY
- Used to fetch gas pricing info when running testsGAS_PRICE_GWEI_KEY
- Default gas price to use when running HardhatAfter ENV variables are set, you will need to compile the contracts and build Typescript files:
yarn build
After installing dependencies and setup, you are able to:
Hardhat creates a local ganache RPC network instance and deploys all contracts to it.
To create a localhost network:
yarn hh node
To verify if instances have been deployed, check deployments/localhost
For a deeper dive into available commands see the tasks documentation
Execute the command:
yarn test
As result, you should see:
© Copyright 2021, Teller