Vaults is a DeFi/NFT-based smart contract protocol for launching customizable, yield-bearing token vaults. Once a vault’s rules and yield strategy are configured and deployed to the EVM blockchain of your choice, anyone can contribute ERC-20 tokens to mint an ERC-721 NFT representing their yield-bearing position. Use these NFTs to raise funds for charity, govern a vault’s funds as a DAO or multisig, gamble in the ultimate FOMO-inducing ponzi game, and much more!
Projeto vaults-protocol utilizando a estratégia Aave nos testes. Abaixo estão os links para acesso do projeto original. Vale a pena o estudo.
- Website: https://vaults-protocol.netlify.app
- IPFS: https://vaults.on.fleek.co
- Skynet: find the latest sia:// link here under “Deploy to Skynet”
Usei o template https://github.com/Afonsodalvi/template-hardhat-foundry-truffledashboard
- Use Foundry:
forge install
forge test
- Write / run tests with Foundry:
forge test
# or
yarn test
- Use Truffle Dashboard:
truffle dashboard
- Deploy your smart-contract using testnet Truffle Dashboard:
yarn deploy --network truffle
- Use Prettier
yarn prettier
- Install libraries with Foundry which work with Hardhat.
forge install rari-capital/solmate # Already in this repo, just an example
- Configured gas cost with hardhat-gas-reporter
yarn add hardhat-gas-reporter # Already in this repo, just an example
Fiz um conjunto de implementações para ficar mais fácil o uso de diversos frameworks necessários para iniciar qualquer projeto.
Whenever you install new libraries using Foundry, make sure to update your remappings.txt
file by running forge remappings > remappings.txt
. This is required because we use hardhat-preprocessor
and the remappings.txt
file to allow Hardhat to resolve libraries you install with Foundry.