Skip to content

Vault-Maxi 2.4.0, Reinvest 2.0 & Command Center 1.1

Compare
Choose a tag to compare
@kuegi kuegi released this 07 Nov 20:36
· 41 commits to develop since this release
889c89a

this is a optional update including major improvements in the reinvest logic

Vault Maxi via Ocean API

This tool is made to optimize your defichain vault rewards by maximizing the amount of loans put into the liquidity mining of dTokens. You can define the thresholds for your collateralization ratio. if the collateral rises, the tool increases LM-exposure, if it falls it automatically decreases it.
If the parameter is set, it even reinvests the rewards into your vault for automatic compounding.

It is meant to be run as a lambda on AWS, using the ocean-api. Therefore it doesn't need a fullnode or any server maintenance (as opposed to the python version of this script).

new reinvest logic

With the new reinvest logic, you can highly customize how vault-maxi (and also lm-reinvest) uses the DFI rewards that come into your wallet.

Everything is defined via a reinvest-pattern which is a string of (comma or space) separated reinvest-targets. each target can contain 3 parts:

  • the target token (can be any token with a possible swap path from DFI, or any LM-token)
  • the percentage (0-100) from the reinvested amount that should be used for this target
  • a target address or vaultId (vaultId is only valid if the token is a collateralToken). you can use wallet and vault as shortcut for your own address and vault

if you leave the percentage empty (for all or some targets) the remaining percentage (after filling all defined percentage targets) is split equally over all targets without a specified percentage.

if you leave the address/vaultId empty, collateralTokens are deposited to your own vault. All other tokens stay in your address.

If the whole parameter is empty, it falls back to the pattern <mainCollateralAsset> which effectively deposits the amount as DFI or DUSD into your vault. so exactly the same behavior as before (means no action needed if you do not want to use the new functionality)

examples

this pattern can be super simple in the usage, but is extremly powerful for those who need it. here are some examples:

  • just reinvest the DFI into the vault: DFI (1 target: coin = DFI, no percentage = split equally over targets, no address/vault= reinvest to own vault cause collateral Token
  • split equally between DFI and DUSD and reinvest: DFI,DUSD
  • swap 20% to USDT and keep in wallet, split remaining to DFI and BTC, send the BTC to df1address1: USDT:20:wallet,DFI,BTC::df1address1
  • swap 10% to BTC-DFI, 15% to SPY-DUSD, 10% reinvest in other vault as DFI, 20% send as TLT-DUSD to address2, rest as DFI in own vault: BTC-DFI:10,SPY-DUSD:15,DFI:10:vaultIdOfOther,TLT-DUSD:20:address2,DFI

release hashes

windows / debian:
sha256 hash base64: AKgKuawMMndViyHYhZARDPPf6akruZU4rLYJ4YXJ1pY=
sha256 hash hex: 00a80ab9ac0c3277558b21d88590110cf3dfe9a92bb99538acb609e185c9d696
macOS:
sha256 hash base64: BF0XhYlqgAU/0by/Q7watAy2eGl8d0/SI1OgLPO01ZM=
sha256 hash hex: 045d1785896a80053fd1bcbf43bc1ab40cb678697c774fd22353a02cf3b4d593

Changes

  • major upgrade to reinvest functionality
  • moved main used environmentVariables to parameters (envVars are still overriding parameter values)
  • auto-donation now splits the donation directly between kuegi and krysh (till now we had to rebalance manually). Nothing changes in the amounts etc. Also still done in one transaction.

Guide

We wrote an extensive guide for the whole setup process in AWS. If you just want to run the bot, follow this guide and make sure to read the risk-warnings carefully. Vault-Maxi Guide

Reinvest

Reinvest is based on the vault-maxi code but only the reinvest without managing of any vault, It also got updated and now uses exactly the same reinvest logic as vault-maxi.

Guide

We wrote an extensive guide for the whole setup process in AWS. If you just want to run the bot, follow this guide and make sure to read the risk-warnings carefully. Reinvest Guide

release hashes

windows / debian:
sha256 hash base64: V9p7yNOW5taSekJfK6tMlNuEdNLgP0bwAwF4IyuCs9I=
sha256 hash hex: 57da7bc8d396e6d6927a425f2bab4c94db8474d2e03f46f0030178232b82b3d2
macOS:
sha256 hash base64: EMuN5pu+9NdLBjD0NCJcmLJxW/Z8w81Mi2+HBeaKf+o=
sha256 hash hex: 10cb8de69bbef4d74b0630f434225c98b2715bf67cc3cd4c8b6f8705e68a7fea

Command Center

It is an optional addon, which can be installed to receive more functionality for your vault-maxi or lm-reinvest via Telegram. You can send commands to change existing parameters without the need of logging into AWS.

What it does

  • it executes certain commands to ease usage of vault-maxi without the need of logging into your AWS account and change some settings
  • it is being achieved by using your vault-maxis’ telegram bot to exchange information. This makes it secure, as you are not directly communicating via an API, which could be an additional attack vector for a hacker
  • it will check every minute through polling of new chat commands from you. Therefore chat id and your username are needed to make sure, the message which command center receives is from you and from nobody else
  • /help is your best friend. It will show you all commands, which the command center is able to execute
  • the command center has no access to your private key/seed. It can only change settings of vault-maxi.

Guide

We wrote a guide for the whole setup process in AWS. If you just want to install the addon, follow this guide and make sure to read the risk-warnings carefully. Command-Center Guide

release hashes

windows / debian:
sha256 hash base64: vhvdwGDYSlPbvLq0cggK2JBjS5WOx1JVDOcGu603ThI=
sha256 hash hex: be1bddc060d84a53dbbcbab472080ad890634b958ec752550ce706bbad374e12
macOS:
sha256 hash base64: 2Sf0JVtg6OKnDJkPco9aS8hksBCSmLpowstsHRQJN04=
sha256 hash hex: d927f4255b60e8e2a70c990f728f5a4bc864b0109298ba68c2cb6c1d1409374e

Disclaimer

This is not financial advice and anyone using this tool is doing so at their own risk. Never invest more than you are ok to lose. We are using it ourselves but can’t guarantee that it’s working flawlessly in every edge case. We are not responsible for any lost funds.

Donations

We are developing this thing in our free time. Noone is paying us for it. If you benefit from our work, it would be a nice gesture to give something back. Here are our DFI donation addresses:

@kuegi : df1qqtlz4uw9w5s4pupwgucv4shl6atqw7xlz2wn07

@Krysh90 : df1qw2yusvjqctn6p4esyfm5ajgsu5ek8zddvhv8jm

What's Changed

Full Changelog: v2.3.2...v2.4.0