1.0.6 • Published 1 year ago

@majora-finance/fees v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Majora Protocol Fees

Description

Majora Protocol Fees is a Hardhat-based project that implements fee management and profit sharing for the Majora protocol.

  • FeeCollectorGateways: deployed on each chain, it receive fees taken by the protocol, swap them for USDC and bridge them to the main fee colelctor
  • MainFeeCollector: receive all fees (USDC) and store them on aave. On new epich the fee manager can trigger a new epoch distribution
  • FeeDistributor: Split distributed fees accross multiple receiver (StkMAJ etc)
  • StkMaj and others: stacking system to ERC20Vote library to track balances and distribute fees. It has the same unstake implementation than StkAave

Development

To contribute or make changes to these contracts, follow these steps:

  1. Clone the repository:

    git clone https://github.com/majora-finance/portal.git
  2. Install the necessary dependencies:

    npm install --force

    The --force is mandatory because there is a package version conflict with hardhat-deploy but everything is working fine. There is no solution until we migrate on ethers v6

  3. Make the desired changes to the contract files.

  4. Compile the contracts:

    npx hardhat compile
  5. Run the tests to ensure everything is working as expected:

    npx hardhat test
  6. Submit a pull request with your changes for review.

License

This project is licensed under the BUSL-1.1 license. Please refer to the individual contract files for their specific license information.

Disclaimer

These contracts are provided as-is without any warranty or guarantee of any kind. Use them at your own risk. Always review and audit the code before deploying it in a production environment.

1.0.1

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.1.26

1 year ago

0.1.22

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.16

1 year ago