Non-custodial protocol, Users can deposit and withdraw assets from the vault without requiring approval from the vault manager. The vault manager will implement strategies to long and short assets, aiming to generate profits through effective vault management.
git clone git@github.com:xiaoyu1998/defund-contracts.git --recursive
cd defund-contracts
npm install
npx hardhat node
cp deployed_addresses.json /to/path/df-contracts/deployments/localhost_deployed_addresses.json
cp token_addresses.json /to/path//df-contracts/deployments/localhost_token_addresses.json
npx hardhat run scripts/00deployDefund.ts --network localhost
npx hardhat run scripts/01deposit.ts --network localhost
npx hardhat run scripts/03long.ts --network localhost
npx hardhat run scripts/04short.ts --network localhost
npx hardhat run scripts/05closePosition.ts --network localhost
npx hardhat run scripts/06close.ts --network localhost