CLI Reference

Transaction

MintShare

Mint liquid farm share for auto compounding rewards. The module mints the corresponding amount of sbCoin and sends it to the farmer when the execution is complete.

Usage

mint-share [public-position-id] [desired-amount]

Argument

Description

public-position-id

liquid farm id

desired-amount

deposit amounts of base and quote coins

Example

# In order to fully test the module in your local network, liquidFarm must be set up by governance proposal. 
#
# For example, 

crescentd tx gov submit-proposal public-position-create proposal.json --chain-id localnet --from alice

Where proposal.json contains:
{
  "title": "Public Position Create Proposal",
  "description": "Let's start new liquid amm",
  "pool_id": "1",
  "lower_price": "4.5",
  "upper_price": "5.5",
  "min_bid_amount": "100000000",
  "fee_rate": "0.003"
}

# mint share
crescentd tx liquidamm mint-share 1 100000000uatom,500000000uusd \
--chain-id localnet \
--from alice

#
# Tips
#
# Query all the registered public position objects
crescentd q liquidamm public-positions -o json | jq
#
# Query account balances to see if Alice has sb-coin.
crescentd q bank balances cre1zaavvzxez0elundtn32qnk9lkm8kmcszxclz6p -o json | jq

BurnShare

Burn liquid amm share to withdraw underlying tokens.

Usage

Argument

Description

public-position-id

liquid farm id

share

desired amount of burning share

Example

PlaceBid

Place a bid for a rewards auction. Bidders estimate how much rewards for the next epoch will be accumulated and place their bids accordingly with sb coin amount.

Usage

Argument

Description

public-position-id

liquid farm id

auction-id

auction id

share

bid amount for auction

Example

Query

Params

Query the current liquidamm parameters information.

Usage

Example

PublicPositions

Query for all public positions.

Usage

Example

PublicPosition

Query the specific public position with id.

Usage

Example

RewardsAuctions

Query all rewards auctions for specific public position.

Usage

Example

RewardsAuction

Query the specific reward auction

Usage

Example

Bids

Query all bids for the rewards auction

Usage

Example

Rewards

Query current farming rewards for the particular liquid farm

Usage

Example

Last updated