Skip to content

Commit

Permalink
doc: Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DeFiFoFum committed Aug 31, 2021
1 parent 7cf16fb commit a3915e6
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# initial-farm-offering
# Initial Ape Offering

[![Actions Status](https://github.com/pancakeswap/inital-farm-offering/workflows/CI/badge.svg)](https://github.com/pancakeswap/inital-farm-offering/actions)
[![Actions Status](https://github.com/ApeSwapFinance/apeswap-iao/workflows/CI/badge.svg)](https://github.com/ApeSwapFinance/apeswap-iao/actions)

This set of contracts is used to run Ape Swap's version of initial farm offerings.

# Local Development
## Operation
- Each IAO raises a predefined `stakeToken` amount in exchange for a predefined `offeringToken` amount
- Once the `startBlock` arrives, users can supply as much of the raising token as they would like
- Once the `endBlock` arrives, users can withdraw their tokens from the IAO
- `offeringTokens` are sent to the users based on the percentage of their allocation and a refund of `stakeTokens` when there is an oversubscription of the IAO

# Development

The following assumes the use of `node@>=12`.

Expand All @@ -15,6 +22,15 @@ The following assumes the use of `node@>=12`.

`yarn compile`

## Migrate Contracts
Create a file named `.env` in the root project directory and copy in the variables from `.env.example`. Provide variables for each relevant item.

To deploy to BSC mainnet:
`yarn migrate:bsc`

To deploy to BSC Testnet:
`yarn migrate:testnet`

## Run Tests

`yarn test`

0 comments on commit a3915e6

Please sign in to comment.