GithubHelp home page GithubHelp logo

machu6886 / bsc-alpaca-contract Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alpaca-finance/bsc-alpaca-contract

0.0 0.0 0.0 33.94 MB

Smart Contracts for Alpaca Finance on Fantom & BNB Chain

Home Page: https://alpacafinance.org

License: MIT License

Shell 0.01% TypeScript 64.78% Roff 0.05% Solidity 34.80% Vyper 0.36%

bsc-alpaca-contract's Introduction

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.

bsc-alpaca-contract's People

Contributors

abc-alpaca avatar abraham-alpaca avatar alpaca-cappuccino avatar alpanaca avatar blackalpacaa avatar blueanalpaca avatar endriu00 avatar festusmaria avatar grandpas01 avatar jakeal-papaca avatar jr-alpaca avatar mgjoo avatar ricardo-alpaca avatar sora-alpaca avatar spicysquid168 avatar sundayalpaca avatar wow-alpaca avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.