A script for crancking gem-farm fixed rate farms Gem Farm.
Why? • How To Use • Related • License • Documentation •
When working with Fixed Reward Rate farms, some issues are introducing when a farmer finishes an schedule and another begins.
This script allows you to move farmers over to the new staking schedule.
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
git clone https://github.com/gemworks/gem-farm-refresh.git
cd gem-farm-refresh
Install dependencies
yarn
# or
npm install
Create a file called .env
from the .env.template
# you can use this command to create .env file from template
cat .env.template >> .env
Change the values in .env
file to match the farm you are looking to update. Don't forget to point to the payer
, make sure this wallet has some SOL balance in order to pay fees.
RPC_URL='https://api.mainnet-beta.solana.com'
FARM_ADDRESS='ADD_FARM_ADDRESS PUBLIC KEY'
PAYER_WALLET_PATH='~/config/solana/id.json'
- Make sure your local CLI Solana wallet is funded with a small amount of SOL.
- To find your
FARM_ADDRESS
go to
yarn start
# or
npm run start
# or alternatively
ts-node src/index.ts
- gem-farm - Configurable staking for NFT Projects on Solana
- gem-farm-ui - React UI for Gem Farm
MIT
GitHub @gemworks ·