Running in Docker
Running a debt auction keeper in a Docker container
1. Get RAI
Buy RAI or open a SAFE to generate it.
2. Modify the model file as needed
A basic debt auction bidding model can be found in models/debt_model.py
. This model retrieves the latest FLX/USD price from Coingecko and will automatically place bids in an auction.
You probably want to modify the following variables in models/debt_model.py
:
MAXIMUM_FLX_MULTIPLIER
: the maximum acceptable FLX price to use when bidding. Default:0.90
meaning the maximum price to pay when biding for FLX (with RAI) is 90% of the current FLX/USD market price from CoingeckoMY_BID_DECREASE
: the bid decrease (in FLX) to propose when outbidding another bidder. If the value is smaller than the debt auction house'sbidDecrease
, then it will use the value set in the debt auction house. Example: a value of1.10
will use bid decreases of 10%. Note: the currentbidDecrease
on mainnet is1.03
Then, use chmod +x debt_model.py
.
For more information about bidding models, see this.
3) Modify the keeper run file
Modify the following variables in run_debt_keeper.sh
:
KEEPER_ADDRESS
- the keeper's address. It should be in checksummed format (not lowercase)ETH_RPC_URL
- the URL of your Ethereum RPC connectionKEYSTORE_DIR
- the full path of the directory where your keystore file isMODEL_DIR
- the full path of directory where yoursurplus_model.py
file isKEYSTORE_FILE
- your Ethereum UTC JSON keystore filename. For more information about the keystore format and how to generate it, check Ethereum UTC / JSON Wallet Encryption or keythereum.GAS_MAXIMUM
-maximum gas price, in GWEI
Then, use chmod +x run_debt_keeper.sh
.
4) Start the keeper and enter your keystore file password
Use ./run_debt_keeper.sh
.
Debt Auction Output
Sample debt auction output
Last updated