Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bsc-alpaca-contract

> 编程语言
Open source

Smart Contracts for Alpaca Finance on Fantom & BNB Chain

198 stars0 likes2 views
WebsiteGitHub

About

Smart Contracts for Alpaca Finance on Fantom & BNB Chain

Alpaca Contract

Leveraged yield farming on BNB Chain and Fantom chain

Local Development

The following assumes the use of node@>=14.

Install Dependencies

  1. Copy .env.example file and change its name to .env in the project folder
  2. 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 in solidity/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 and solidity/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.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptblockchaindefisolidity

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言