Strategy

The strategy subcommand handles operations regarding a strategy. Most users should not need access to these commands as they directly control a strategy.

transfer-owner

Transfer the owner of the strategy contract, specified in the configuration file

satlayer-cli strategy transfer-owner <user-key-name> <new-owner-address>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • new-owner-address - address of the new owner of the strategy

set-delegation-manager

Set the delegation manager interacting with the strategy contract

satlayer-cli strategy set-delegation-manager <user-key-name> <delegation-manager-address>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • delegation-manager-address - address of the delegation manager

set-strategy-whitelist

Sets the account to the list of accounts that is allowed to add strategy to the strategy whitelist.

  • user-key-name - name of the key in the keyring to use for contract execution

  • address - the address to be allowed to add strategy to the strategy whitelist

remove-strategy-from-whitelist

Removes a strategy from the strategy whitelist.

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - address of the strategy contract to be removed

add-strategy-to-whitelist

Add a strategy to the strategy whitelist

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - the address of the strategy contract to be added

  • disallow-3rd-party - boolean, true or false. If 3rd party transfers are allowed

set-third-transfer-forbidden

Set if 3rd party transfers are disallowed for a strategy

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - the address of the strategy contract to be added

  • disallow-3rd-party - boolean, true or false. If 3rd party transfers are allowed

deposit-strategy

Deposit into the strategy from the wallet address set in the configuration file

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - the address of the strategy contract to be added

  • token-address - the address of the CW20 token

  • amount - the amount to be deposited

get-deposits

Query a staker's deposit information regarding a strategy

In which:

  • staker-address - the address of the staker you are querying

  • strategy-address - the address of the strategy

get-staker-strategy-list-length

Queries how many strategy a staker has staked into

In which:

  • staker-address - the address of the staker you are querying

get-staker-strategy-shares

Query how many shares a staker owns given a strategy

In which:

  • staker-address - the address of the staker you are querying

  • strategy-address - the address of the strategy

is-third-transfer-forbidden

Queries if 3rd perty transfer is disallowed (set by set-third-transfer-forbidden).

In which:

  • strategy-address - the address of the strategy

get-staker-strategy-list

Queries the list of strategy a staker has staked into

In which:

  • staker-address - the address of the staker you are querying

get-owner

Queries the owner of the strategy, set in the configuration file.

is-strategy-whitelisted

Query is a strategy is whitelisted

In which:

  • strategy-address - The address of the strategy

Last updated