@majora-finance/fees
v1.0.6
Published
## Description
Readme
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:
Clone the repository:
git clone https://github.com/majora-finance/portal.gitInstall the necessary dependencies:
npm install --forceThe --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
Make the desired changes to the contract files.
Compile the contracts:
npx hardhat compileRun the tests to ensure everything is working as expected:
npx hardhat testSubmit 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.
