Skip to content

gemworks/gem-farm-refresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


GemFarm
Gem Farm Refresh

A script for crancking gem-farm fixed rate farms Gem Farm.

Why?How To UseRelatedLicenseDocumentation

Why Do You Need this script?

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.

How To Use

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:

Installation

git clone https://github.com/gemworks/gem-farm-refresh.git
cd gem-farm-refresh

Install dependencies

yarn
# or
npm install

Configuration

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

Running the script

yarn start
# or
npm run start
# or alternatively
ts-node src/index.ts

Related

  • gem-farm - Configurable staking for NFT Projects on Solana
  • gem-farm-ui - React UI for Gem Farm

License

MIT


GitHub @gemworks  ·

About

A script for crancking gem-farm fixed rate farms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published