SatLayer
Restake now
  • 🟨Overview
    • Introduction to SatLayer
  • SatLayer on Babylon
  • 🏛️Architecture
    • SatLayer Overview
  • Roadmap
  • Protocol Rewards
  • Slashing
  • SatLayer Contracts
  • 🔓Security
    • Audits
      • Staking App
      • SatLayer Core
      • Cube by SatLayer
    • Contracts
      • Staking App
      • SatLayer Core
      • Cube by SatLayer
    • Bug Bounty
  • 🪙Restakers
    • How to Restake
    • Sats² Staker Rewards
      • Earning Sats²
      • Monthly Sats² Sprints
      • Referral Guide
      • Sats² FAQs
      • Current Campaigns
        • 5 Million Sats² OKX Wallet Giveaway Rewards
        • The Order of the Sats
      • Past Campaigns
        • OKX Cryptopedia
        • Journey to the Sats
        • The Great BTC Meme War
  • Partner Rewards
    • Babylon
    • Bedrock
    • Tower Finance
  • 🎛️Operators
    • Overview
    • 👉Apply as Operator
  • BVS Developers
    • Introduction
  • 👉Apply as Developer
  • SatLayer Testnet
    • Operator Onboarding
    • BVS Onboarding
  • 🧊Cube by SatLayer
    • Introduction
    • Understanding the LST
    • How to Stake
      • Cube and cBABY FAQ
  • 🧰Resources
    • Website
    • Discord
    • Twitter
    • GitHub
    • SatLayer Brand Guidelines
Powered by GitBook
On this page
  • create-strategy
  • update-config
  • blacklist-tokens
  • transfer-owner
  • is-token-blacklisted

Was this helpful?

  1. BVS Developers
  2. Developer Toolbox
  3. SatLayer CLI

Strategy Factory

The strategy-factory subcommand allows interaction with the Strategy Factory contract.

create-strategy

Create a new strategy

satlayer-cli strategy-factory create-strategy <user-key-name> <token> <pauser> <unpauser>

In which:

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

  • token - the address of the CW20 token to be used in the strategy

  • pauser/unpauser - the address that will be allowed to pause/unpause the strategy

update-config

Updates the strategy factory

satlayer-cli strategy-factory update-config <user-key-name> <new-owner> <code-id>

In which:

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

  • new-owner - new owner of the Strategy Factory

  • code-id - the code-id of the new contract

blacklist-tokens

Block tokens to be used in strategies.

satlayer-cli strategy-factory blacklist-tokens <user-key-name> token1 [token2...]

In which:

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

  • tokenN - token to be blacklisted

transfer-owner

Transfers the ownership of the Strategy Factory contract to a new address

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

In which:

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

  • new-owner-address - the new address to transfer the ownership of strategy factory

is-token-blacklisted

Queries if a token is blacklisted

satlayer-cli strategy-factory is-token-blacklisted <token>

In which:

  • token - the token to be convened about

Last updated 6 months ago

Was this helpful?

🛠️