aglamadrid19 / rock3t-core-contracts-main

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rock3t-core-contracts

ROCK3T (R3T) is an ERC20 token with changeable FOT with total fixed supply of 11,000,000.

Overview

The main contracts are LiquidVault for sending ETH and pooling it with R3T to create LP tokens, FeeApprover that calculates FOT, FeeDistributor that distributes fees on LiquidVault. LiquidVault allows users to send ETH and pool it with R3T, while certain percentage of fee that is calculated using buy pressure formula is swapped on Uniswap market. Minted LP tokens are locked in LiquidVault for a period that is calculated based on the system health.

Tests and setup

Prerequisites

Running the tests

  1. Run a Ganache environment with predefined ETH amount for test suite:
npm run ganache
  1. Run the tests:
npm run test

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 66.6%Language:Solidity 32.6%Language:Shell 0.8%