DeFi Suite is a collection of Solidity smart contracts that power various decentralized finance (DeFi) features, including token swapping, liquidity provision, staking, lending, borrowing, and more.
DeFi Suite comprises a set of smart contracts that enable decentralized finance operations, offering a range of functionalities and services for users in the DeFi ecosystem. These contracts are designed to be flexible, efficient, and secure.
Description: SwapRouter is a Solidity smart contract that facilitates token swapping and liquidity provision on decentralized exchanges.
Description: StakingPoolRouter is a Solidity smart contract that interacts with staking pools, allowing users to stake, unstake, and claim rewards.
Description: LendingPoolRouter is a Solidity smart contract designed for lending and borrowing tokens, both ERC-20 and Ether (via Wrapped Ether or WETH).
- Swap Tokens: Swap tokens using SwapRouter.
- Stake Tokens: Stake tokens and earn rewards using StakingPoolRouter.
- Lend and Borrow: Lend and borrow tokens, including Ether, using LendingPoolRouter.
To begin using the contracts, follow these steps:
- Clone by using
git https://github.com/0xhaz/Uniswap-DEX.git
- Use
yarn install
to install all the components in package.json - To deploy using local network, you can use
yarn hardhat run
- To deploy using testnet, you can use
yarn hardhat deploy --network sepolia
. - All contract address and ABI's are copied automatically using node.js scripts.
To use these contracts, follow the steps outlined in the "Getting Started" section above. Interact with the contract functions to participate in staking, lending and swapping a tokens. Make sure to follow the rules and requirements for each contract's functionalities.
Contributions to this project are welcome! If you find any issues or have ideas for improvement, feel free to open an issue or submit a pull request.
This project is licensed under the [License Name] License - see the LICENSE.md file for details.