This repository helps you to compound $PTP from the liquidity pools on platypus.finance into a stablecoin of your choice. Please read the disclaimer before proceeding.
This repository was made so that i wouldn't have to manually compound my $ptp everyday. It's a learning experience for me too. This exposes your wallet's private key locally in the config file. Use this repository only if you understand what you are doing and at your own risk! I will not be responsible for any potential losses.
- Claims your vePTP if the option is turned on in
config.py
. - Claims all your reward $PTP from the pools.
- Market sells all your claimed $PTP to the stablecoin defined in
config.py
via trader joe. There is no slippage used (as im not using an oracle). - Then stakes available stable coins in your wallet into the pools. You can indicate which stablecoins to stake in
config.py
.
This repository assumes all tokens are all already approved. This repository does NOT take care of token approvals. If you are unsure how to perform token approvals, simply just go through the whole staking process once for your stablecoins on platypus.finance.
python>3.8
pip install web3
git clone [email protected]:dhecloud/platypus_compounder.git
cd ptp_compounder
- Modify/change the
config.py
parameters using your text editor - After setting up, run
nohup python compound_ptp.py &
for the python script to run in the background. Alternatively, you can usescreen
instead of thenohup
. Depends on your preference.
ADDR
- your wallet public addressPRIVATE_KEY
- your wallet private key. IMPORTANT!USDT
- Stake all USDT.e in your wallet into the USDT.e poolUSDC
- Stake all USDC.e in your wallet into the USDC.e poolDAI
- Stake all DAI.e in your wallet into the DAI.e poolMIM
- Stake all MIM in your wallet into the MIM poolTO
- coin that your this script will sell to on trader joe. options: 'usdte', 'usdce', 'daie', 'mim'COMPOUND_FREQ
- time (seconds) between each compounding run. default: 86400 (1 day)TX_INTERVALS
- time (seconds) between each transaction. > 30 is best just in case avax is congested. default: 30CLAIM_VEPTP
- Claim $VEPTP before compounding? 1 if yes, 0 if no
If this repository has helped you in any way, and if you would like to support me, you can send me any crypto (preferably stables) on any EVM chain at 0xda929736e4b407F16d2FAB648c87fdF71bf15CA9
or sending me UST at poohbear.ust