@alpaca-finance/alpaca-contract
v1.2.47
Published
**Leveraged yield farming on BNB Chain and Fantom chain**
Downloads
173
Maintainers
Keywords
Readme
Alpaca Contract
Leveraged yield farming on BNB Chain and Fantom chain
Local Development
The following assumes the use of node@>=14
.
Install Dependencies
- Copy
.env.example
file and change its name to.env
in the project folder - Run
yarn
to install all dependencies
Compile Contracts
yarn compile
Note: There will be a new folder called typechain
generated in your project workspace. You will need to navigate to typechain/index.ts
and delete duplicated lines inside this file in order to proceed.
Run Tests with hardhat
yarn test
Testing with Forge
Install Forge
$ curl -L https://foundry.paradigm.xyz | bash # install foundryup
$ foundryup # install forge and cast
Test
$ forge test
Licensing
The primary license for Alpaca Protocol is the MIT License, see MIT LICENSE.
Exceptions
- Single Asset LYF:
solidity/contracts/6/protocol/workers/CakeMaxiWorker.sol
and all files insolidity/contracts/6/protocol/strategies/pancakeswapV2-restricted-single-asset
are licensed under Business Source License 1.1 (BUSL-1.1
) (as indicated in their SPDX headers), see BUSL-1.1 - Delta Neutral Vault: All files that match
DeltaNeutral*.sol
andsolidity/contracts/8.13/protocol/AutomatedVaultController.sol
,solidity/contracts/8.13/protocol/xALPACACreditor.sol
are licensed under Business Source License 1.1 (BUSL-1.1
) (as indicated in their SPDX headers), see BUSL-1.1 - All files in
tests
remain unlicensed.