Important
This repository contains smart contracts that have been developed for educational, experimental, or demonstration purposes only. By using or interacting with these smart contracts, you acknowledge and accept the following:
- The smart contracts in this repository have not been audited and are provided "as is" with no guarantees, warranties, or assurances of any kind. The authors and maintainers of this repository are not responsible for any damages, losses, or liabilities that may arise from the use or deployment of these smart contracts.
- The smart contracts in this repository are not intended for use in production environments or for the management of real-world assets, funds, or resources. Any use or deployment of these smart contracts for such purposes is done entirely at your own risk.
- The smart contracts are provided for reference and learning purposes, and you are solely responsible for understanding, modifying, and deploying them as needed.
One can use the logic provided in the following:
- Functions to get data:
supplyAPYborrowAPYsupplyAssetsUserborrowAssetsUsercollateralAssetsUsermarketTotalSupplymarketTotalBorrowuserHealthFactor
- Functions to modify state:
supplysupplyCollateralwithdrawCollateralwithdrawAmountwithdraw50PercentwithdrawAll
- Functions using callbacks:
leverageMedeLeverageMe
One can use the logic provided in the following:
- Functions to get data:
totalDepositVaultvaultAssetsInMarkettotalSharesUserVaultsupplyQueueVaultwithdrawQueueVaulttotalCapCollateralsupplyAPYMarketsupplyAPYVault
- Functions to modify state:
depositInVaultwithdrawFromVaultAmountredeemAllFromVault
- Install Foundry
- Install yarn
- Run
foundryup - Run
forge install - Create a
.envfile according to the.env.examplefile.
You can run tests by running the command:
forge testIf you have any questions or need further assistance, please don't hesitate to reach out on Discord.
The code is under the MIT License. See LICENSE.