stage-gauge-txs
v1.0.10
Published
CLI to stage gauge vote changes on MasterChefOperator
Downloads
8
Readme
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
}
]