Skip to content

InternalGov-v2.0.6

Latest
Compare
Choose a tag to compare
@Nadro-J Nadro-J released this 09 Nov 17:22
5f42321

What's Changed

  • Adding new setting VOTE_WITH_BALANCE by @Nadro-J in #65
  • Optimisations to RPC + Identity bug fix with incorrect MD format by @Nadro-J in #66
  • WFC added to MD table with default settings by @Nadro-J in #67
  • TaskHandler, New setting 'VOTE_WITH_BALANCE' & adjusting schedule timing to sync_embeds() by @Nadro-J in #68
  • Use dictionary's get method for safer key access in get_asset_price_v2() by @Nadro-J in #69
  • updating README details on PM2 by @Nadro-J in #70
  • Improve error handling & retry logic for fetching price from CoinGecko API by @Nadro-J in #71
  • refactor RPC calls to use asyncio.to_thread & asyncio.wait_for for non-blocking behavior and timeout handling by @Nadro-J in #72
  • changes to asyncio, removal of change_presence + structuring of tasks in preparation for v2.0.6 by @Nadro-J in #73
  • minor changes to timeouts / exception handling by @Nadro-J in #74
  • fixing spelling mistake.. by @Nadro-J in #75
  • updating docstring with high-level details on how each task runs by @Nadro-J in #76
  • Refactor Proxy Handling, Increase Timeouts, and Optimize Task and Voting Management by @Nadro-J in #80
  • bugfix to cater to issues where the call couldn't be decoded. by @Nadro-J in #81
  • Add 'Unable to Decode Call' to call details when creating proposal threads by @Nadro-J in #82
  • Initialize SubstrateInterface once, using self.substrate.connect_websocket to reconnect when required by @Nadro-J in #83
  • bump discord version to 2.4.0 by @Nadro-J in #85

Important

VOTE_WITH_BALANCE allows you set the amount of DOT/KSM the governance proxy votes with. If you set this to 0, the governance proxy will vote with the entire balance. This is useful for cases where the account that receives delegations holds a balance that you don't want to lock up in governance.

The account that receives delegations can vote with as little as 1 DOT/KSM and anyone delegated will follow suit.

Remember to set VOTE_WITH_BALANCE='' in the .env config file before starting the bot back up


libraries

  • discord.py==2.4.0
  • substrate-interface==1.7.11
    • Nothing specific that the bot will benefit from, but its always good to keep up with the latest releases and not fall behind

Security

The following library versions have been updated in requirements.txt - Although the bot doesn't use any of these methods, it is recommended you upgrade these underlying libraries anyway to mitigate any risk.


Full Changelog: InternalGov-v2.0.5...InternalGov-v2.0.6