Skip to content

mytonctrl plugin

The tako mode for mytonctrl bids for a loan before every election, signs the Elector request for the loan contract and sends it with your collateral. It replaces the nominator or liquid staking modes, not the validator mode.

On the validator, as root:

Terminal window
curl -fsSL https://raw.githubusercontent.com/TakoWTF/mytonctrl-plugin/main/install.sh | sudo bash

The script finds mytonctrl’s Python, installs the plugin into it and restarts mytoncore. A mytonctrl update recreates that environment, so the script also installs a systemd drop-in that puts the plugin back before mytoncore starts.

To remove everything:

Terminal window
sudo bash install.sh --uninstall

In mytonctrl:

set tako_dry_run true
enable_mode tako
tako_status
tako_plan

tako_status shows the pool, the next election, its request window and your current bid or loan. tako_plan shows the request Tako would send now: collateral, loan, payment, the resulting stake and whether it wins a seat. Nothing is sent.

With tako_dry_run on, the mode only logs the bids it would send. When the plan looks right:

set tako_dry_run false

The mode is refused while a nominator pool, single nominator or liquid staking mode is on: a validator stakes through one source at a time.

Command What it does
tako_status pool, next election, request window, your bid or loan
tako_plan [loan] [rate] the request Tako would send now; sends nothing
tako_bid [loan] [rate] sends the request now; a new bid replaces the previous one and refunds its collateral
tako_loans your recent bids and loans with their status
tako_market every bid in the next election, best payment first, as the pool will fund them

loan is in Gram, rate in percent of the loan per round.

Set with set <name> <value>.

Name Default Meaning
tako_treasury the network’s pool treasury address
tako_rate the pool’s minimum percent of the loan paid per round
tako_min_loan, tako_max_loan the pool’s limits loan bounds in Gram
tako_keep 20 Gram always left on the wallet
tako_margin_bps 300 safety margin below the surplus-free stake
tako_dry_run false log bids instead of sending them
tako_indexer none indexer API, needed for tako_market
Terminal window
python -m tako_mytonctrl doctor

reports whether the plugin is loaded into mytonctrl’s environment and whether mytonctrl has every method it uses. The plugin refuses to load into a mytonctrl version it does not recognise rather than misbehave.