Skip to content

beethovenxfi/stage-gauge-txs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This CLI is intended for admins of the gauge vote to stage farm changes whih will then be executed by the MasterChef multisig.

Installation

npm install -g @beethovenx/stage-gauge-txs

Usage

This script requires usage of the Frame wallet!

After installing globally

stage-gauge-txs -f changes.json -n <network> -e <eta>

with npx

npx @beethovenx/stage-gauge-txs -f changes.json -n <network> -e <eta>

Options

-n, --network   rinkeby | fantom
-f, --file      json file relative to current directory (or the name of the tab in the google sheet file)
-e, --eta       Timestamp for timelock execution

Config File

The file is an array of farm additions or modifications with the following fields:

 type: edit | add
 add:
    lpToken: Address of BPT
    allocationPoints: distribution weight
    rewarder: Address of rewarder contract - optional, defaults to Zero Address
edit:
    pid: pool ID
    allocationPoints: distribution weight
    rewarder: Address of rewarder - optional, if provided will be overwritten!

Example

[
    {
        "type": "add",
        "lpToken": "0xbdc8483c96864a00910d2f16f003823cdf688604",
        "allocationPoints": 10,
        "rewarder": "0x1238483c96864a00910d2f16f003823cdf68ab03"
    },
    {
        "type": "edit",
        "pid": 0,
        "allocationPoints": 5
    }
]

About

CLI to stage gauge transactions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published