moonwell-fi / market-reward-adjustments

0 stars 1 forks source link

Moonwell Market Reward Automation

The Moonwell Market Reward Automation tool is a tool designed to automate the market reward emissions in a sane, repeatable, and verifiable way.

Installation

The tool is hosted on NPM and can be installed just like any other node package.

It is recommended to run this tool inside docker to hedge against the risk of malicious supply chains or other comprimises.

You can use the following command to start a new docker container with the local directory mounted, then follow the other installation instructions to use the tool.

If you prefer not to use docker, simply skip the first step below, though it's highly recommended.

$ docker run --rm -it -v $(pwd):$(pwd) --workdir $(pwd) node:lts bash
$ npm install -g @moonwell-fi/market-reward-adjuster

Usage

Once you have the reward adjuster installed, you will have 2 new command line utilities at your disposal

The idea is that you run moonwell-config-generator to generate a config, tweak it as needed, then use moonwell-proposal-generator to generate the artifacts that you need to upload to the gov portal to put the proposal on-chain.

There are a number of sections in the config file that are adjustable, though this process needs to be improved IMO. ONLY update the following things in the generated config file:

Once you've made any of these weighting tweaks desired, you can run moonwell-proposal-generator MIP-xxx.json, which will print out a summary of the proposal/adjustments, and write out the following files:

Updating grant information

When submitting a reward speed proposal for governance, please update the Grants Project and mark the grant as reduced by the amount awarded.