MCPcopy Index your code
hub / github.com/Equalizer-Finance/equalizer-smart-contracts-v1

github.com/Equalizer-Finance/equalizer-smart-contracts-v1 @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
29 symbols 105 edges 22 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

BSL 1.1 License LinkedIn

Logo

Equalizer - Smart Contracts V1

Project Summary

Equalizer Vaults/Flash Loan Contracts



<strong>Version: V1</strong>


<a href="https://docs.equalizer.finance/"><strong>Explore the docs »</strong></a>

Table of Contents

  1. Getting Started
  2. Roadmap
  3. Contributing
  4. License
  5. Contact

Getting Started

In order you get started you have to install NodeJs and Yarn

Installation

  1. Clone the repo
  2. Copy .env.sample file to .env
  3. Fill the variables from .env file: ETHERSCAN_API_KEY, WALLET_PRIV_KEY, RPC_URL
  4. Run yarn install

Build

yarn compile

Deploy

For deployment you have to check the available scripts. The pattern for using a scripts is: npx hardhat run scripts/<script_name>.ts --network <rinkeby/mainnet>

In order to make the deployment process you have to run in order: 1. deployVaultFactory.ts; 2. deployFlashLoanProvider.ts; 3. initializeVaultFactory.ts; 4. deployTokens.ts 5. deployVaults.ts; 6. deployFlashBorrowerTestnet.ts

NOTE In each step you have to check the script you are running and change the config needed. For example deployFlashLoanProvider.ts (step 1) requires the VaultFactory contract address from step 1.

Testing

yarn test

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the BSL 1.1 License. See LICENSE for more information.

Contact

Equalizer - @EqualizerFlash - info (a) equalizer.finance

Project Link: https://github.com/Equalizer-Finance/equalizer-smart-contracts-v1

Core symbols most depended-on inside this repo

getTokenBnDecimals
called by 3
scripts/calculateGasCost.ts
getTokenBnDecimals
called by 3
scripts/utils.ts
createFlashLoanProvider
called by 3
scripts/utils.ts
createVaultFactory
called by 3
scripts/utils.ts
provideVaultsLiquidity
called by 2
scripts/utils.ts
createTokens
called by 2
scripts/utils.ts
createEqzToken
called by 2
scripts/utils.ts
createFlashBorrower
called by 2
scripts/utils.ts

Shape

Function 29

Languages

TypeScript100%

Modules by API surface

scripts/utils.ts8 symbols
scripts/calculateGasCost.ts6 symbols
scripts/makeFlashLoansTestnet.ts2 symbols
scripts/provideLiquidityTestnet.ts1 symbols
scripts/pauseVault.ts1 symbols
scripts/initializeVaultFactory.ts1 symbols
scripts/deployment.ts1 symbols
scripts/deployVaults.ts1 symbols
scripts/deployVaultFactory.ts1 symbols
scripts/deployUtility.ts1 symbols
scripts/deployTokens.ts1 symbols
scripts/deployOnNetwork.ts1 symbols

For agents

$ claude mcp add equalizer-smart-contracts-v1 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact